msm-pcm-routing-v2.c 723 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224
  1. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data;
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* 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. {
  834. struct list_head *ptr, *next;
  835. struct cal_block_data *cal_block = NULL;
  836. pr_debug("%s\n", __func__);
  837. list_for_each_safe(ptr, next,
  838. &cal_data->cal_blocks) {
  839. cal_block = list_entry(ptr,
  840. struct cal_block_data, list);
  841. if (((struct audio_cal_info_adm_top *)cal_block->cal_info)
  842. ->path == path) {
  843. return cal_block;
  844. }
  845. }
  846. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  847. return NULL;
  848. }
  849. static struct cal_block_data *msm_routing_find_topology(int path,
  850. int app_type,
  851. int acdb_id)
  852. {
  853. struct list_head *ptr, *next;
  854. struct cal_block_data *cal_block = NULL;
  855. struct audio_cal_info_adm_top *cal_info;
  856. pr_debug("%s\n", __func__);
  857. list_for_each_safe(ptr, next,
  858. &cal_data->cal_blocks) {
  859. cal_block = list_entry(ptr,
  860. struct cal_block_data, list);
  861. cal_info = (struct audio_cal_info_adm_top *)
  862. cal_block->cal_info;
  863. if ((cal_info->path == path) &&
  864. (cal_info->app_type == app_type) &&
  865. (cal_info->acdb_id == acdb_id)) {
  866. return cal_block;
  867. }
  868. }
  869. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  870. __func__, path, app_type, acdb_id);
  871. return msm_routing_find_topology_by_path(path);
  872. }
  873. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  874. int be_id)
  875. {
  876. int topology = NULL_COPP_TOPOLOGY;
  877. struct cal_block_data *cal_block = NULL;
  878. int app_type = 0, acdb_dev_id = 0;
  879. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  880. __func__, fedai_id, session_type, be_id);
  881. if (cal_data == NULL)
  882. goto done;
  883. mutex_lock(&cal_data->lock);
  884. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  885. acdb_dev_id =
  886. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  887. cal_block = msm_routing_find_topology(session_type, app_type,
  888. acdb_dev_id);
  889. if (cal_block == NULL)
  890. goto unlock;
  891. topology = ((struct audio_cal_info_adm_top *)
  892. cal_block->cal_info)->topology;
  893. unlock:
  894. mutex_unlock(&cal_data->lock);
  895. done:
  896. pr_debug("%s: Using topology %d\n", __func__, topology);
  897. return topology;
  898. }
  899. static uint8_t is_be_dai_extproc(int be_dai)
  900. {
  901. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  902. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  903. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  904. return 1;
  905. else
  906. return 0;
  907. }
  908. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  909. int path_type, int perf_mode,
  910. uint32_t passthr_mode)
  911. {
  912. int i, port_type, j, num_copps = 0;
  913. struct route_payload payload;
  914. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  915. path_type == ADM_PATH_COMPRESSED_RX) ?
  916. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  917. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  918. if (!is_be_dai_extproc(i) &&
  919. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  920. (msm_bedais[i].active) &&
  921. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  922. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  923. unsigned long copp =
  924. session_copp_map[fedai_id][sess_type][i];
  925. if (test_bit(j, &copp)) {
  926. payload.port_id[num_copps] =
  927. msm_bedais[i].port_id;
  928. payload.copp_idx[num_copps] = j;
  929. payload.app_type[num_copps] =
  930. fe_dai_app_type_cfg
  931. [fedai_id][sess_type][i]
  932. .app_type;
  933. payload.acdb_dev_id[num_copps] =
  934. fe_dai_app_type_cfg
  935. [fedai_id][sess_type][i]
  936. .acdb_dev_id;
  937. payload.sample_rate[num_copps] =
  938. fe_dai_app_type_cfg
  939. [fedai_id][sess_type][i]
  940. .sample_rate;
  941. num_copps++;
  942. }
  943. }
  944. }
  945. }
  946. if (num_copps) {
  947. payload.num_copps = num_copps;
  948. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  949. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  950. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  951. }
  952. }
  953. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  954. int stream_type)
  955. {
  956. int i, session_type, path_type, port_type;
  957. u32 mode = 0;
  958. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  959. /* bad ID assigned in machine driver */
  960. pr_err("%s: bad MM ID\n", __func__);
  961. return;
  962. }
  963. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  964. session_type = SESSION_TYPE_RX;
  965. path_type = ADM_PATH_PLAYBACK;
  966. port_type = MSM_AFE_PORT_TYPE_RX;
  967. } else {
  968. session_type = SESSION_TYPE_TX;
  969. path_type = ADM_PATH_LIVE_REC;
  970. port_type = MSM_AFE_PORT_TYPE_TX;
  971. }
  972. mutex_lock(&routing_lock);
  973. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  974. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  975. if (!is_be_dai_extproc(i) &&
  976. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  977. (msm_bedais[i].active) &&
  978. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  979. mode = afe_get_port_type(msm_bedais[i].port_id);
  980. adm_connect_afe_port(mode, dspst_id,
  981. msm_bedais[i].port_id);
  982. break;
  983. }
  984. }
  985. mutex_unlock(&routing_lock);
  986. }
  987. static bool route_check_fe_id_adm_support(int fe_id)
  988. {
  989. bool rc = true;
  990. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  991. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  992. /* fe id is listen while port is set to afe */
  993. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  994. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  995. __func__, fe_id, lsm_port_index);
  996. rc = false;
  997. }
  998. }
  999. return rc;
  1000. }
  1001. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1002. int dspst_id, int stream_type,
  1003. uint32_t passthr_mode)
  1004. {
  1005. int i, j, session_type, path_type, port_type, topology;
  1006. int num_copps = 0;
  1007. struct route_payload payload;
  1008. u32 channels, sample_rate;
  1009. u16 bit_width = 16;
  1010. bool is_lsm;
  1011. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1012. __func__, fe_id, perf_mode, dspst_id,
  1013. stream_type, passthr_mode);
  1014. if (!is_mm_lsm_fe_id(fe_id)) {
  1015. /* bad ID assigned in machine driver */
  1016. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1017. return -EINVAL;
  1018. }
  1019. if (!route_check_fe_id_adm_support(fe_id)) {
  1020. /* ignore adm open if not supported for fe_id */
  1021. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1022. return 0;
  1023. }
  1024. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1025. session_type = SESSION_TYPE_RX;
  1026. if (passthr_mode != LEGACY_PCM)
  1027. path_type = ADM_PATH_COMPRESSED_RX;
  1028. else
  1029. path_type = ADM_PATH_PLAYBACK;
  1030. port_type = MSM_AFE_PORT_TYPE_RX;
  1031. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1032. session_type = SESSION_TYPE_TX;
  1033. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1034. path_type = ADM_PATH_COMPRESSED_TX;
  1035. else
  1036. path_type = ADM_PATH_LIVE_REC;
  1037. port_type = MSM_AFE_PORT_TYPE_TX;
  1038. } else {
  1039. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1040. return -EINVAL;
  1041. }
  1042. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1043. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1044. mutex_lock(&routing_lock);
  1045. payload.num_copps = 0; /* only RX needs to use payload */
  1046. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1047. /* re-enable EQ if active */
  1048. msm_qti_pp_send_eq_values(fe_id);
  1049. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1050. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1051. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1052. if (!is_be_dai_extproc(i) &&
  1053. (afe_get_port_type(msm_bedais[i].port_id) ==
  1054. port_type) &&
  1055. (msm_bedais[i].active) &&
  1056. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1057. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1058. /*
  1059. * check if ADM needs to be configured with different
  1060. * channel mapping than backend
  1061. */
  1062. if (!msm_bedais[i].adm_override_ch)
  1063. channels = msm_bedais[i].channel;
  1064. else
  1065. channels = msm_bedais[i].adm_override_ch;
  1066. bit_width = msm_routing_get_bit_width(
  1067. msm_bedais[i].format);
  1068. app_type =
  1069. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1070. if (app_type && is_lsm) {
  1071. app_type_idx =
  1072. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1073. sample_rate =
  1074. fe_dai_app_type_cfg[fe_id][session_type][i]
  1075. .sample_rate;
  1076. bit_width =
  1077. lsm_app_type_cfg[app_type_idx].bit_width;
  1078. } else if (app_type) {
  1079. app_type_idx =
  1080. msm_pcm_routing_get_app_type_idx(
  1081. app_type);
  1082. sample_rate =
  1083. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1084. bit_width =
  1085. app_type_cfg[app_type_idx].bit_width;
  1086. } else {
  1087. sample_rate = msm_bedais[i].sample_rate;
  1088. }
  1089. acdb_dev_id =
  1090. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1091. topology = msm_routing_get_adm_topology(fe_id,
  1092. session_type,
  1093. i);
  1094. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1095. || (passthr_mode ==
  1096. COMPRESSED_PASSTHROUGH_GEN))
  1097. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1098. pr_debug("%s: Before adm open topology %d\n", __func__,
  1099. topology);
  1100. copp_idx =
  1101. adm_open(msm_bedais[i].port_id,
  1102. path_type, sample_rate, channels,
  1103. topology, perf_mode, bit_width,
  1104. app_type, acdb_dev_id);
  1105. if ((copp_idx < 0) ||
  1106. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1107. pr_err("%s:adm open failed coppid:%d\n",
  1108. __func__, copp_idx);
  1109. mutex_unlock(&routing_lock);
  1110. return -EINVAL;
  1111. }
  1112. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1113. __func__, fe_id, session_type, i);
  1114. set_bit(copp_idx,
  1115. &session_copp_map[fe_id][session_type][i]);
  1116. if (msm_is_resample_needed(
  1117. sample_rate,
  1118. msm_bedais[i].sample_rate))
  1119. adm_copp_mfc_cfg(
  1120. msm_bedais[i].port_id, copp_idx,
  1121. msm_bedais[i].sample_rate);
  1122. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1123. unsigned long copp =
  1124. session_copp_map[fe_id][session_type][i];
  1125. if (test_bit(j, &copp)) {
  1126. payload.port_id[num_copps] =
  1127. msm_bedais[i].port_id;
  1128. payload.copp_idx[num_copps] = j;
  1129. payload.app_type[num_copps] =
  1130. fe_dai_app_type_cfg
  1131. [fe_id][session_type][i]
  1132. .app_type;
  1133. payload.acdb_dev_id[num_copps] =
  1134. fe_dai_app_type_cfg
  1135. [fe_id][session_type][i]
  1136. .acdb_dev_id;
  1137. payload.sample_rate[num_copps] =
  1138. fe_dai_app_type_cfg
  1139. [fe_id][session_type][i]
  1140. .sample_rate;
  1141. num_copps++;
  1142. }
  1143. }
  1144. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1145. && passthr_mode !=
  1146. COMPRESSED_PASSTHROUGH_GEN) {
  1147. msm_routing_send_device_pp_params(
  1148. msm_bedais[i].port_id,
  1149. copp_idx, fe_id);
  1150. }
  1151. }
  1152. }
  1153. if (num_copps) {
  1154. payload.num_copps = num_copps;
  1155. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1156. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1157. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1158. }
  1159. mutex_unlock(&routing_lock);
  1160. return 0;
  1161. }
  1162. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1163. {
  1164. u32 session_id;
  1165. switch (val) {
  1166. case MSM_FRONTEND_DAI_QCHAT:
  1167. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1168. break;
  1169. case MSM_FRONTEND_DAI_VOIP:
  1170. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1171. break;
  1172. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1173. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1174. break;
  1175. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1176. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1177. break;
  1178. default:
  1179. session_id = 0;
  1180. }
  1181. pr_debug("%s session_id 0x%x", __func__, session_id);
  1182. return session_id;
  1183. }
  1184. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1185. int dspst_id, int stream_type)
  1186. {
  1187. int copp_idx = 0;
  1188. int sess_type = 0;
  1189. int i = 0, j = 0, be_id;
  1190. int ret = 0;
  1191. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1192. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1193. return 0;
  1194. }
  1195. if (!(channel_mixer[fe_id].enable)) {
  1196. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1197. __func__, fe_id);
  1198. return 0;
  1199. }
  1200. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1201. sess_type = SESSION_TYPE_RX;
  1202. else
  1203. sess_type = SESSION_TYPE_TX;
  1204. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1205. ++i) {
  1206. be_id = channel_input[fe_id][i] - 1;
  1207. channel_mixer[fe_id].input_channels[i] =
  1208. msm_bedais[be_id].channel;
  1209. if ((msm_bedais[be_id].active) &&
  1210. test_bit(fe_id,
  1211. &msm_bedais[be_id].fe_sessions[0])) {
  1212. unsigned long copp =
  1213. session_copp_map[fe_id][sess_type][be_id];
  1214. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1215. if (test_bit(j, &copp)) {
  1216. copp_idx = j;
  1217. break;
  1218. }
  1219. }
  1220. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1221. __func__,
  1222. fe_id, be_id, msm_bedais[be_id].channel,
  1223. copp_idx);
  1224. ret = adm_programable_channel_mixer(
  1225. msm_bedais[be_id].port_id,
  1226. copp_idx, dspst_id, sess_type,
  1227. channel_mixer + fe_id, i);
  1228. }
  1229. }
  1230. return ret;
  1231. }
  1232. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1233. int dspst_id, int stream_type)
  1234. {
  1235. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1236. struct route_payload payload;
  1237. u32 channels, sample_rate;
  1238. uint16_t bits_per_sample = 16;
  1239. uint32_t passthr_mode = LEGACY_PCM;
  1240. int ret = 0;
  1241. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1242. /* bad ID assigned in machine driver */
  1243. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1244. return -EINVAL;
  1245. }
  1246. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1247. session_type = SESSION_TYPE_RX;
  1248. path_type = ADM_PATH_PLAYBACK;
  1249. port_type = MSM_AFE_PORT_TYPE_RX;
  1250. } else {
  1251. session_type = SESSION_TYPE_TX;
  1252. path_type = ADM_PATH_LIVE_REC;
  1253. port_type = MSM_AFE_PORT_TYPE_TX;
  1254. }
  1255. mutex_lock(&routing_lock);
  1256. payload.num_copps = 0; /* only RX needs to use payload */
  1257. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1258. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1259. /* re-enable EQ if active */
  1260. msm_qti_pp_send_eq_values(fedai_id);
  1261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1262. if (!is_be_dai_extproc(i) &&
  1263. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1264. (msm_bedais[i].active) &&
  1265. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1266. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1267. /*
  1268. * check if ADM needs to be configured with different
  1269. * channel mapping than backend
  1270. */
  1271. if (!msm_bedais[i].adm_override_ch)
  1272. channels = msm_bedais[i].channel;
  1273. else
  1274. channels = msm_bedais[i].adm_override_ch;
  1275. msm_bedais[i].passthr_mode[fedai_id] =
  1276. LEGACY_PCM;
  1277. bits_per_sample = msm_routing_get_bit_width(
  1278. msm_bedais[i].format);
  1279. app_type =
  1280. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1281. if (app_type) {
  1282. app_type_idx =
  1283. msm_pcm_routing_get_app_type_idx(app_type);
  1284. sample_rate =
  1285. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1286. .sample_rate;
  1287. bits_per_sample =
  1288. app_type_cfg[app_type_idx].bit_width;
  1289. } else
  1290. sample_rate = msm_bedais[i].sample_rate;
  1291. acdb_dev_id =
  1292. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1293. .acdb_dev_id;
  1294. topology = msm_routing_get_adm_topology(fedai_id,
  1295. session_type,
  1296. i);
  1297. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1298. sample_rate, channels, topology,
  1299. perf_mode, bits_per_sample,
  1300. app_type, acdb_dev_id);
  1301. if ((copp_idx < 0) ||
  1302. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1303. pr_err("%s: adm open failed copp_idx:%d\n",
  1304. __func__, copp_idx);
  1305. mutex_unlock(&routing_lock);
  1306. return -EINVAL;
  1307. }
  1308. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1309. __func__, fedai_id, session_type, i);
  1310. set_bit(copp_idx,
  1311. &session_copp_map[fedai_id][session_type][i]);
  1312. if (msm_is_resample_needed(
  1313. sample_rate,
  1314. msm_bedais[i].sample_rate))
  1315. adm_copp_mfc_cfg(
  1316. msm_bedais[i].port_id, copp_idx,
  1317. msm_bedais[i].sample_rate);
  1318. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1319. unsigned long copp =
  1320. session_copp_map[fedai_id][session_type][i];
  1321. if (test_bit(j, &copp)) {
  1322. payload.port_id[num_copps] =
  1323. msm_bedais[i].port_id;
  1324. payload.copp_idx[num_copps] = j;
  1325. payload.app_type[num_copps] =
  1326. fe_dai_app_type_cfg
  1327. [fedai_id][session_type]
  1328. [i].app_type;
  1329. payload.acdb_dev_id[num_copps] =
  1330. fe_dai_app_type_cfg
  1331. [fedai_id][session_type]
  1332. [i].acdb_dev_id;
  1333. payload.sample_rate[num_copps] =
  1334. fe_dai_app_type_cfg
  1335. [fedai_id][session_type]
  1336. [i].sample_rate;
  1337. num_copps++;
  1338. }
  1339. }
  1340. if ((perf_mode == LEGACY_PCM_MODE) &&
  1341. (msm_bedais[i].passthr_mode[fedai_id] ==
  1342. LEGACY_PCM))
  1343. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1344. copp_idx, topology,
  1345. channels);
  1346. }
  1347. }
  1348. if (num_copps) {
  1349. payload.num_copps = num_copps;
  1350. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1351. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1352. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1353. }
  1354. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1355. dspst_id, stream_type);
  1356. mutex_unlock(&routing_lock);
  1357. return ret;
  1358. }
  1359. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1360. int dspst_id, int stream_type,
  1361. struct msm_pcm_routing_evt event_info)
  1362. {
  1363. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1364. stream_type)) {
  1365. pr_err("%s: failed to reg phy stream\n", __func__);
  1366. return -EINVAL;
  1367. }
  1368. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1369. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1370. else
  1371. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1372. return 0;
  1373. }
  1374. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1375. {
  1376. int i, port_type, session_type, path_type, topology;
  1377. struct msm_pcm_routing_fdai_data *fdai;
  1378. if (!is_mm_lsm_fe_id(fedai_id)) {
  1379. /* bad ID assigned in machine driver */
  1380. pr_err("%s: bad MM ID\n", __func__);
  1381. return;
  1382. }
  1383. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1384. port_type = MSM_AFE_PORT_TYPE_RX;
  1385. session_type = SESSION_TYPE_RX;
  1386. path_type = ADM_PATH_PLAYBACK;
  1387. } else {
  1388. port_type = MSM_AFE_PORT_TYPE_TX;
  1389. session_type = SESSION_TYPE_TX;
  1390. path_type = ADM_PATH_LIVE_REC;
  1391. }
  1392. mutex_lock(&routing_lock);
  1393. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1394. if (!is_be_dai_extproc(i) &&
  1395. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1396. (msm_bedais[i].active) &&
  1397. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1398. int idx;
  1399. unsigned long copp =
  1400. session_copp_map[fedai_id][session_type][i];
  1401. fdai = &fe_dai_map[fedai_id][session_type];
  1402. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1403. if (test_bit(idx, &copp))
  1404. break;
  1405. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1406. pr_debug("%s: copp idx is invalid, exiting\n",
  1407. __func__);
  1408. continue;
  1409. }
  1410. topology = adm_get_topology_for_port_copp_idx(
  1411. msm_bedais[i].port_id, idx);
  1412. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1413. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1414. __func__, copp, fedai_id, session_type, i);
  1415. clear_bit(idx,
  1416. &session_copp_map[fedai_id][session_type][i]);
  1417. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1418. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1419. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1420. (msm_bedais[i].passthr_mode[fedai_id] ==
  1421. LEGACY_PCM))
  1422. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1423. topology);
  1424. }
  1425. }
  1426. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1427. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1428. mutex_unlock(&routing_lock);
  1429. }
  1430. /* Check if FE/BE route is set */
  1431. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1432. {
  1433. bool rc = false;
  1434. if (!is_mm_lsm_fe_id(fe_id)) {
  1435. /* recheck FE ID in the mixer control defined in this file */
  1436. pr_err("%s: bad MM ID\n", __func__);
  1437. return rc;
  1438. }
  1439. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1440. rc = true;
  1441. return rc;
  1442. }
  1443. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1444. {
  1445. int session_type, path_type, topology;
  1446. u32 channels, sample_rate;
  1447. uint16_t bits_per_sample = 16;
  1448. struct msm_pcm_routing_fdai_data *fdai;
  1449. uint32_t passthr_mode;
  1450. bool is_lsm;
  1451. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1452. if (!is_mm_lsm_fe_id(val)) {
  1453. /* recheck FE ID in the mixer control defined in this file */
  1454. pr_err("%s: bad MM ID\n", __func__);
  1455. return;
  1456. }
  1457. if (!route_check_fe_id_adm_support(val)) {
  1458. /* ignore adm open if not supported for fe_id */
  1459. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1460. return;
  1461. }
  1462. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1463. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1464. MSM_AFE_PORT_TYPE_RX) {
  1465. session_type = SESSION_TYPE_RX;
  1466. if (passthr_mode != LEGACY_PCM)
  1467. path_type = ADM_PATH_COMPRESSED_RX;
  1468. else
  1469. path_type = ADM_PATH_PLAYBACK;
  1470. } else {
  1471. session_type = SESSION_TYPE_TX;
  1472. if (passthr_mode != LEGACY_PCM)
  1473. path_type = ADM_PATH_COMPRESSED_TX;
  1474. else
  1475. path_type = ADM_PATH_LIVE_REC;
  1476. }
  1477. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1478. (val <= MSM_FRONTEND_DAI_LSM8);
  1479. mutex_lock(&routing_lock);
  1480. if (set) {
  1481. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1482. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1483. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1484. voc_start_playback(set, msm_bedais[reg].port_id);
  1485. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1486. fdai = &fe_dai_map[val][session_type];
  1487. if (msm_bedais[reg].active && fdai->strm_id !=
  1488. INVALID_SESSION) {
  1489. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1490. /*
  1491. * check if ADM needs to be configured with different
  1492. * channel mapping than backend
  1493. */
  1494. if (!msm_bedais[reg].adm_override_ch)
  1495. channels = msm_bedais[reg].channel;
  1496. else
  1497. channels = msm_bedais[reg].adm_override_ch;
  1498. if (session_type == SESSION_TYPE_TX &&
  1499. fdai->be_srate &&
  1500. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1501. pr_debug("%s: flush strm %d diff BE rates\n",
  1502. __func__, fdai->strm_id);
  1503. if (fdai->event_info.event_func)
  1504. fdai->event_info.event_func(
  1505. MSM_PCM_RT_EVT_BUF_RECFG,
  1506. fdai->event_info.priv_data);
  1507. fdai->be_srate = 0; /* might not need it */
  1508. }
  1509. bits_per_sample = msm_routing_get_bit_width(
  1510. msm_bedais[reg].format);
  1511. app_type =
  1512. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1513. if (app_type && is_lsm) {
  1514. app_type_idx =
  1515. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1516. sample_rate =
  1517. fe_dai_app_type_cfg[val][session_type][reg]
  1518. .sample_rate;
  1519. bits_per_sample =
  1520. lsm_app_type_cfg[app_type_idx].bit_width;
  1521. } else if (app_type) {
  1522. app_type_idx =
  1523. msm_pcm_routing_get_app_type_idx(app_type);
  1524. sample_rate =
  1525. fe_dai_app_type_cfg[val][session_type][reg]
  1526. .sample_rate;
  1527. bits_per_sample =
  1528. app_type_cfg[app_type_idx].bit_width;
  1529. } else
  1530. sample_rate = msm_bedais[reg].sample_rate;
  1531. topology = msm_routing_get_adm_topology(val,
  1532. session_type,
  1533. reg);
  1534. acdb_dev_id =
  1535. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1536. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1537. sample_rate, channels, topology,
  1538. fdai->perf_mode, bits_per_sample,
  1539. app_type, acdb_dev_id);
  1540. if ((copp_idx < 0) ||
  1541. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1542. pr_err("%s: adm open failed\n", __func__);
  1543. mutex_unlock(&routing_lock);
  1544. return;
  1545. }
  1546. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1547. __func__, val, session_type, reg);
  1548. set_bit(copp_idx,
  1549. &session_copp_map[val][session_type][reg]);
  1550. if (msm_is_resample_needed(
  1551. sample_rate,
  1552. msm_bedais[reg].sample_rate))
  1553. adm_copp_mfc_cfg(
  1554. msm_bedais[reg].port_id, copp_idx,
  1555. msm_bedais[reg].sample_rate);
  1556. if (session_type == SESSION_TYPE_RX &&
  1557. fdai->event_info.event_func)
  1558. fdai->event_info.event_func(
  1559. MSM_PCM_RT_EVT_DEVSWITCH,
  1560. fdai->event_info.priv_data);
  1561. msm_pcm_routing_build_matrix(val, session_type,
  1562. path_type,
  1563. fdai->perf_mode,
  1564. passthr_mode);
  1565. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1566. (passthr_mode == LEGACY_PCM))
  1567. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1568. copp_idx, topology,
  1569. channels);
  1570. }
  1571. } else {
  1572. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1573. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1574. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1575. voc_start_playback(set, msm_bedais[reg].port_id);
  1576. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1577. fdai = &fe_dai_map[val][session_type];
  1578. if (msm_bedais[reg].active && fdai->strm_id !=
  1579. INVALID_SESSION) {
  1580. int idx;
  1581. int port_id;
  1582. unsigned long copp =
  1583. session_copp_map[val][session_type][reg];
  1584. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1585. if (test_bit(idx, &copp))
  1586. break;
  1587. port_id = msm_bedais[reg].port_id;
  1588. topology = adm_get_topology_for_port_copp_idx(port_id,
  1589. idx);
  1590. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1591. idx);
  1592. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1593. __func__, copp, val, session_type, reg,
  1594. topology);
  1595. clear_bit(idx,
  1596. &session_copp_map[val][session_type][reg]);
  1597. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1598. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1599. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1600. (passthr_mode == LEGACY_PCM))
  1601. msm_pcm_routing_deinit_pp(
  1602. msm_bedais[reg].port_id,
  1603. topology);
  1604. msm_pcm_routing_build_matrix(val, session_type,
  1605. path_type,
  1606. fdai->perf_mode,
  1607. passthr_mode);
  1608. }
  1609. }
  1610. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1611. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1612. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1613. mutex_unlock(&routing_lock);
  1614. }
  1615. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1616. struct snd_ctl_elem_value *ucontrol)
  1617. {
  1618. struct soc_mixer_control *mc =
  1619. (struct soc_mixer_control *)kcontrol->private_value;
  1620. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1621. ucontrol->value.integer.value[0] = 1;
  1622. else
  1623. ucontrol->value.integer.value[0] = 0;
  1624. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1625. ucontrol->value.integer.value[0]);
  1626. return 0;
  1627. }
  1628. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1629. struct snd_ctl_elem_value *ucontrol)
  1630. {
  1631. struct snd_soc_dapm_widget *widget =
  1632. snd_soc_dapm_kcontrol_widget(kcontrol);
  1633. struct soc_mixer_control *mc =
  1634. (struct soc_mixer_control *)kcontrol->private_value;
  1635. struct snd_soc_dapm_update *update = NULL;
  1636. if (ucontrol->value.integer.value[0] &&
  1637. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1638. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1639. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1640. update);
  1641. } else if (!ucontrol->value.integer.value[0] &&
  1642. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1643. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1644. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1645. update);
  1646. }
  1647. return 1;
  1648. }
  1649. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1650. struct snd_ctl_elem_value *ucontrol)
  1651. {
  1652. struct soc_mixer_control *mc =
  1653. (struct soc_mixer_control *)kcontrol->private_value;
  1654. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1655. ucontrol->value.integer.value[0] = 1;
  1656. else
  1657. ucontrol->value.integer.value[0] = 0;
  1658. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1659. ucontrol->value.integer.value[0]);
  1660. return 0;
  1661. }
  1662. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1663. struct snd_ctl_elem_value *ucontrol)
  1664. {
  1665. struct snd_soc_dapm_widget *widget =
  1666. snd_soc_dapm_kcontrol_widget(kcontrol);
  1667. struct soc_mixer_control *mc =
  1668. (struct soc_mixer_control *)kcontrol->private_value;
  1669. struct snd_soc_dapm_update *update = NULL;
  1670. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1671. ucontrol->value.integer.value[0]);
  1672. if (ucontrol->value.integer.value[0]) {
  1673. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1674. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1675. snd_soc_dapm_mixer_update_power(widget->dapm,
  1676. kcontrol, 1, update);
  1677. } else if (!ucontrol->value.integer.value[0]) {
  1678. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1679. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1680. snd_soc_dapm_mixer_update_power(widget->dapm,
  1681. kcontrol, 0, update);
  1682. }
  1683. return 1;
  1684. }
  1685. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1686. {
  1687. u32 session_id = 0;
  1688. u16 path_type;
  1689. struct media_format_info voc_be_media_format;
  1690. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1691. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1692. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1693. __func__, val, session_id);
  1694. mutex_lock(&routing_lock);
  1695. if (set)
  1696. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1697. else
  1698. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1699. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1700. afe_get_port_type(msm_bedais[reg].port_id) ==
  1701. MSM_AFE_PORT_TYPE_RX) {
  1702. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1703. __func__, set, msm_bedais[reg].port_id);
  1704. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1705. }
  1706. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1707. MSM_AFE_PORT_TYPE_RX)
  1708. path_type = RX_PATH;
  1709. else
  1710. path_type = TX_PATH;
  1711. if (set) {
  1712. if (msm_bedais[reg].active) {
  1713. voc_set_route_flag(session_id, path_type, 1);
  1714. memset(&voc_be_media_format, 0,
  1715. sizeof(struct media_format_info));
  1716. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1717. voc_be_media_format.num_channels =
  1718. msm_bedais[reg].channel;
  1719. voc_be_media_format.sample_rate =
  1720. msm_bedais[reg].sample_rate;
  1721. voc_be_media_format.bits_per_sample =
  1722. msm_bedais[reg].format;
  1723. /* Defaulting this to 1 for voice call usecases */
  1724. voc_be_media_format.channel_mapping[0] = 1;
  1725. voc_set_device_config(session_id, path_type,
  1726. &voc_be_media_format);
  1727. if (voc_get_route_flag(session_id, TX_PATH) &&
  1728. voc_get_route_flag(session_id, RX_PATH))
  1729. voc_enable_device(session_id);
  1730. } else {
  1731. pr_debug("%s BE is not active\n", __func__);
  1732. }
  1733. } else {
  1734. voc_set_route_flag(session_id, path_type, 0);
  1735. voc_disable_device(session_id);
  1736. }
  1737. mutex_unlock(&routing_lock);
  1738. }
  1739. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1740. struct snd_ctl_elem_value *ucontrol)
  1741. {
  1742. struct soc_mixer_control *mc =
  1743. (struct soc_mixer_control *)kcontrol->private_value;
  1744. mutex_lock(&routing_lock);
  1745. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1746. ucontrol->value.integer.value[0] = 1;
  1747. else
  1748. ucontrol->value.integer.value[0] = 0;
  1749. mutex_unlock(&routing_lock);
  1750. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1751. ucontrol->value.integer.value[0]);
  1752. return 0;
  1753. }
  1754. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1755. struct snd_ctl_elem_value *ucontrol)
  1756. {
  1757. struct snd_soc_dapm_widget *widget =
  1758. snd_soc_dapm_kcontrol_widget(kcontrol);
  1759. struct soc_mixer_control *mc =
  1760. (struct soc_mixer_control *)kcontrol->private_value;
  1761. struct snd_soc_dapm_update *update = NULL;
  1762. if (ucontrol->value.integer.value[0]) {
  1763. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1764. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1765. update);
  1766. } else {
  1767. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1768. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1769. update);
  1770. }
  1771. return 1;
  1772. }
  1773. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1774. struct snd_ctl_elem_value *ucontrol)
  1775. {
  1776. struct soc_mixer_control *mc =
  1777. (struct soc_mixer_control *)kcontrol->private_value;
  1778. mutex_lock(&routing_lock);
  1779. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1780. ucontrol->value.integer.value[0] = 1;
  1781. else
  1782. ucontrol->value.integer.value[0] = 0;
  1783. mutex_unlock(&routing_lock);
  1784. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1785. ucontrol->value.integer.value[0]);
  1786. return 0;
  1787. }
  1788. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1789. struct snd_ctl_elem_value *ucontrol)
  1790. {
  1791. struct snd_soc_dapm_widget *widget =
  1792. snd_soc_dapm_kcontrol_widget(kcontrol);
  1793. struct soc_mixer_control *mc =
  1794. (struct soc_mixer_control *)kcontrol->private_value;
  1795. struct snd_soc_dapm_update *update = NULL;
  1796. if (ucontrol->value.integer.value[0]) {
  1797. mutex_lock(&routing_lock);
  1798. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1799. mutex_unlock(&routing_lock);
  1800. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1801. update);
  1802. } else {
  1803. mutex_lock(&routing_lock);
  1804. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1805. mutex_unlock(&routing_lock);
  1806. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1807. update);
  1808. }
  1809. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1810. ucontrol->value.integer.value[0]);
  1811. return 1;
  1812. }
  1813. /*
  1814. * Return the mapping between port ID and backend ID to enable the AFE callback
  1815. * to determine the acdb_dev_id from the port id
  1816. */
  1817. int msm_pcm_get_be_id_from_port_id(int port_id)
  1818. {
  1819. int i;
  1820. int be_id = -EINVAL;
  1821. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1822. if (msm_bedais[i].port_id == port_id) {
  1823. be_id = i;
  1824. break;
  1825. }
  1826. }
  1827. return be_id;
  1828. }
  1829. /*
  1830. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1831. * correct AFE calibration information by comparing the header information.
  1832. */
  1833. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1834. {
  1835. int acdb_id = -EINVAL;
  1836. int i = 0;
  1837. int session;
  1838. int port_type = afe_get_port_type(port_id);
  1839. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1840. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1841. __func__, port_id, be_id, port_type);
  1842. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1843. session = SESSION_TYPE_TX;
  1844. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1845. session = SESSION_TYPE_RX;
  1846. } else {
  1847. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1848. acdb_id = -EINVAL;
  1849. goto exit;
  1850. }
  1851. if (be_id < 0) {
  1852. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1853. goto exit;
  1854. }
  1855. mutex_lock(&routing_lock);
  1856. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1857. MSM_FRONTEND_DAI_MAX);
  1858. if (i < MSM_FRONTEND_DAI_MAX)
  1859. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1860. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1861. __func__, i, session, be_id, acdb_id);
  1862. mutex_unlock(&routing_lock);
  1863. exit:
  1864. return acdb_id;
  1865. }
  1866. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1867. struct snd_ctl_elem_value *ucontrol)
  1868. {
  1869. ucontrol->value.integer.value[0] = fm_switch_enable;
  1870. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1871. ucontrol->value.integer.value[0]);
  1872. return 0;
  1873. }
  1874. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1875. struct snd_ctl_elem_value *ucontrol)
  1876. {
  1877. struct snd_soc_dapm_widget *widget =
  1878. snd_soc_dapm_kcontrol_widget(kcontrol);
  1879. struct snd_soc_dapm_update *update = NULL;
  1880. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1881. ucontrol->value.integer.value[0]);
  1882. if (ucontrol->value.integer.value[0])
  1883. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1884. update);
  1885. else
  1886. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1887. update);
  1888. fm_switch_enable = ucontrol->value.integer.value[0];
  1889. return 1;
  1890. }
  1891. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1892. struct snd_ctl_elem_value *ucontrol)
  1893. {
  1894. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1895. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1896. ucontrol->value.integer.value[0]);
  1897. return 0;
  1898. }
  1899. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1900. struct snd_ctl_elem_value *ucontrol)
  1901. {
  1902. struct snd_soc_dapm_widget *widget =
  1903. snd_soc_dapm_kcontrol_widget(kcontrol);
  1904. struct snd_soc_dapm_update *update = NULL;
  1905. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1906. ucontrol->value.integer.value[0]);
  1907. if (ucontrol->value.integer.value[0])
  1908. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1909. 1, update);
  1910. else
  1911. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1912. 0, update);
  1913. hfp_switch_enable = ucontrol->value.integer.value[0];
  1914. return 1;
  1915. }
  1916. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1917. struct snd_ctl_elem_value *ucontrol)
  1918. {
  1919. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1920. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1921. ucontrol->value.integer.value[0]);
  1922. return 0;
  1923. }
  1924. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1925. struct snd_ctl_elem_value *ucontrol)
  1926. {
  1927. struct snd_soc_dapm_widget *widget =
  1928. snd_soc_dapm_kcontrol_widget(kcontrol);
  1929. struct snd_soc_dapm_update *update = NULL;
  1930. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1931. ucontrol->value.integer.value[0]);
  1932. if (ucontrol->value.integer.value[0])
  1933. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1934. update);
  1935. else
  1936. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1937. update);
  1938. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1939. return 1;
  1940. }
  1941. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1942. struct snd_ctl_elem_value *ucontrol)
  1943. {
  1944. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1945. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1946. ucontrol->value.integer.value[0]);
  1947. return 0;
  1948. }
  1949. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1950. struct snd_ctl_elem_value *ucontrol)
  1951. {
  1952. struct snd_soc_dapm_widget *widget =
  1953. snd_soc_dapm_kcontrol_widget(kcontrol);
  1954. struct snd_soc_dapm_update *update = NULL;
  1955. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1956. ucontrol->value.integer.value[0]);
  1957. if (ucontrol->value.integer.value[0])
  1958. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1959. update);
  1960. else
  1961. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1962. update);
  1963. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1964. return 1;
  1965. }
  1966. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1967. struct snd_ctl_elem_value *ucontrol)
  1968. {
  1969. ucontrol->value.integer.value[0] = usb_switch_enable;
  1970. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1971. ucontrol->value.integer.value[0]);
  1972. return 0;
  1973. }
  1974. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1975. struct snd_ctl_elem_value *ucontrol)
  1976. {
  1977. struct snd_soc_dapm_widget *widget =
  1978. snd_soc_dapm_kcontrol_widget(kcontrol);
  1979. struct snd_soc_dapm_update *update = NULL;
  1980. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1981. ucontrol->value.integer.value[0]);
  1982. if (ucontrol->value.integer.value[0])
  1983. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1984. 1, update);
  1985. else
  1986. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1987. 0, update);
  1988. usb_switch_enable = ucontrol->value.integer.value[0];
  1989. return 1;
  1990. }
  1991. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1992. struct snd_ctl_elem_value *ucontrol)
  1993. {
  1994. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  1995. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  1996. ucontrol->value.integer.value[0]);
  1997. return 0;
  1998. }
  1999. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2000. struct snd_ctl_elem_value *ucontrol)
  2001. {
  2002. struct snd_soc_dapm_widget *widget =
  2003. snd_soc_dapm_kcontrol_widget(kcontrol);
  2004. struct snd_soc_dapm_update *update = NULL;
  2005. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2006. ucontrol->value.integer.value[0]);
  2007. if (ucontrol->value.integer.value[0])
  2008. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2009. update);
  2010. else
  2011. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2012. update);
  2013. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2014. return 1;
  2015. }
  2016. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2017. struct snd_ctl_elem_value *ucontrol)
  2018. {
  2019. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2020. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2021. ucontrol->value.integer.value[0]);
  2022. return 0;
  2023. }
  2024. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2025. struct snd_ctl_elem_value *ucontrol)
  2026. {
  2027. struct snd_soc_dapm_widget *widget =
  2028. snd_soc_dapm_kcontrol_widget(kcontrol);
  2029. struct snd_soc_dapm_update *update = NULL;
  2030. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2031. ucontrol->value.integer.value[0]);
  2032. if (ucontrol->value.integer.value[0])
  2033. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2034. update);
  2035. else
  2036. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2037. update);
  2038. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2039. return 1;
  2040. }
  2041. static int msm_routing_get_tert_mi2s_switch_mixer(
  2042. struct snd_kcontrol *kcontrol,
  2043. struct snd_ctl_elem_value *ucontrol)
  2044. {
  2045. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2046. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2047. ucontrol->value.integer.value[0]);
  2048. return 0;
  2049. }
  2050. static int msm_routing_put_tert_mi2s_switch_mixer(
  2051. struct snd_kcontrol *kcontrol,
  2052. struct snd_ctl_elem_value *ucontrol)
  2053. {
  2054. struct snd_soc_dapm_widget *widget =
  2055. snd_soc_dapm_kcontrol_widget(kcontrol);
  2056. struct snd_soc_dapm_update *update = NULL;
  2057. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2058. ucontrol->value.integer.value[0]);
  2059. if (ucontrol->value.integer.value[0])
  2060. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2061. update);
  2062. else
  2063. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2064. update);
  2065. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2066. return 1;
  2067. }
  2068. static int msm_routing_get_quat_mi2s_switch_mixer(
  2069. struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2073. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2074. ucontrol->value.integer.value[0]);
  2075. return 0;
  2076. }
  2077. static int msm_routing_put_quat_mi2s_switch_mixer(
  2078. struct snd_kcontrol *kcontrol,
  2079. struct snd_ctl_elem_value *ucontrol)
  2080. {
  2081. struct snd_soc_dapm_widget *widget =
  2082. snd_soc_dapm_kcontrol_widget(kcontrol);
  2083. struct snd_soc_dapm_update *update = NULL;
  2084. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. if (ucontrol->value.integer.value[0])
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2088. update);
  2089. else
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2091. update);
  2092. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2093. return 1;
  2094. }
  2095. static int msm_routing_get_quin_mi2s_switch_mixer(
  2096. struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2100. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2101. ucontrol->value.integer.value[0]);
  2102. return 0;
  2103. }
  2104. static int msm_routing_put_quin_mi2s_switch_mixer(
  2105. struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. struct snd_soc_dapm_widget *widget =
  2109. snd_soc_dapm_kcontrol_widget(kcontrol);
  2110. struct snd_soc_dapm_update *update = NULL;
  2111. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2112. ucontrol->value.integer.value[0]);
  2113. if (ucontrol->value.integer.value[0])
  2114. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2115. update);
  2116. else
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2118. update);
  2119. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2120. return 1;
  2121. }
  2122. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2123. struct snd_ctl_elem_value *ucontrol)
  2124. {
  2125. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2126. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2127. ucontrol->value.integer.value[0]);
  2128. return 0;
  2129. }
  2130. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. struct snd_soc_dapm_widget *widget =
  2134. snd_soc_dapm_kcontrol_widget(kcontrol);
  2135. struct snd_soc_dapm_update *update = NULL;
  2136. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2137. ucontrol->value.integer.value[0]);
  2138. if (ucontrol->value.integer.value[0])
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2140. update);
  2141. else
  2142. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2143. update);
  2144. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2145. return 1;
  2146. }
  2147. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. ucontrol->value.integer.value[0] = lsm_port_index;
  2151. return 0;
  2152. }
  2153. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2154. struct snd_ctl_elem_value *ucontrol)
  2155. {
  2156. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2157. int mux = ucontrol->value.enumerated.item[0];
  2158. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2159. if (mux >= e->items) {
  2160. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2161. return -EINVAL;
  2162. }
  2163. pr_debug("%s: LSM enable %ld\n", __func__,
  2164. ucontrol->value.integer.value[0]);
  2165. switch (ucontrol->value.integer.value[0]) {
  2166. case 1:
  2167. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2168. break;
  2169. case 2:
  2170. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2171. break;
  2172. case 3:
  2173. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2174. break;
  2175. case 4:
  2176. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2177. break;
  2178. case 5:
  2179. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2180. break;
  2181. case 6:
  2182. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2183. break;
  2184. case 7:
  2185. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2186. break;
  2187. case 8:
  2188. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2189. break;
  2190. case 9:
  2191. lsm_port = ADM_LSM_PORT_ID;
  2192. break;
  2193. case 10:
  2194. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2195. break;
  2196. default:
  2197. pr_err("Default lsm port");
  2198. break;
  2199. }
  2200. set_lsm_port(lsm_port);
  2201. lsm_port_index = ucontrol->value.integer.value[0];
  2202. return 0;
  2203. }
  2204. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2205. struct snd_ctl_elem_value *ucontrol)
  2206. {
  2207. int i;
  2208. u16 port_id;
  2209. enum afe_mad_type mad_type;
  2210. pr_debug("%s: enter\n", __func__);
  2211. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2212. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2213. strlen(lsm_port_text[i])))
  2214. break;
  2215. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2216. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2217. return -EINVAL;
  2218. }
  2219. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2220. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2221. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2222. strlen(lsm_port_text[7])))
  2223. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2224. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2225. strlen(lsm_port_text[8])))
  2226. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2227. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2228. strlen(lsm_port_text[10])))
  2229. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2230. mad_type = afe_port_get_mad_type(port_id);
  2231. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2232. mad_type);
  2233. switch (mad_type) {
  2234. case MAD_HW_NONE:
  2235. ucontrol->value.integer.value[0] = MADNONE;
  2236. break;
  2237. case MAD_HW_AUDIO:
  2238. ucontrol->value.integer.value[0] = MADAUDIO;
  2239. break;
  2240. case MAD_HW_BEACON:
  2241. ucontrol->value.integer.value[0] = MADBEACON;
  2242. break;
  2243. case MAD_HW_ULTRASOUND:
  2244. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2245. break;
  2246. case MAD_SW_AUDIO:
  2247. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2248. break;
  2249. default:
  2250. WARN(1, "Unknown\n");
  2251. return -EINVAL;
  2252. }
  2253. return 0;
  2254. }
  2255. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2256. struct snd_ctl_elem_value *ucontrol)
  2257. {
  2258. int i;
  2259. u16 port_id;
  2260. enum afe_mad_type mad_type;
  2261. pr_debug("%s: enter\n", __func__);
  2262. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2263. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2264. strlen(lsm_port_text[i])))
  2265. break;
  2266. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2267. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2268. return -EINVAL;
  2269. }
  2270. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2271. switch (ucontrol->value.integer.value[0]) {
  2272. case MADNONE:
  2273. mad_type = MAD_HW_NONE;
  2274. break;
  2275. case MADAUDIO:
  2276. mad_type = MAD_HW_AUDIO;
  2277. break;
  2278. case MADBEACON:
  2279. mad_type = MAD_HW_BEACON;
  2280. break;
  2281. case MADULTRASOUND:
  2282. mad_type = MAD_HW_ULTRASOUND;
  2283. break;
  2284. case MADSWAUDIO:
  2285. mad_type = MAD_SW_AUDIO;
  2286. break;
  2287. default:
  2288. WARN(1, "Unknown\n");
  2289. return -EINVAL;
  2290. }
  2291. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2292. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2293. strlen(lsm_port_text[7])))
  2294. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2295. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2296. strlen(lsm_port_text[8])))
  2297. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2298. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2299. strlen(lsm_port_text[10])))
  2300. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2301. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2302. mad_type);
  2303. return afe_port_set_mad_type(port_id, mad_type);
  2304. }
  2305. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2306. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2307. adm_override_chs_text);
  2308. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2309. {
  2310. int backend_id;
  2311. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2312. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2313. } else {
  2314. pr_err("%s: unsupported backend id: %s",
  2315. __func__, kcontrol->id.name);
  2316. return -EINVAL;
  2317. }
  2318. return backend_id;
  2319. }
  2320. static int msm_routing_adm_channel_config_get(
  2321. struct snd_kcontrol *kcontrol,
  2322. struct snd_ctl_elem_value *ucontrol)
  2323. {
  2324. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2325. if (backend_id >= 0) {
  2326. mutex_lock(&routing_lock);
  2327. ucontrol->value.integer.value[0] =
  2328. msm_bedais[backend_id].adm_override_ch;
  2329. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2330. ucontrol->value.integer.value[0], backend_id);
  2331. mutex_unlock(&routing_lock);
  2332. }
  2333. return 0;
  2334. }
  2335. static int msm_routing_adm_channel_config_put(
  2336. struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2340. if (backend_id >= 0) {
  2341. mutex_lock(&routing_lock);
  2342. msm_bedais[backend_id].adm_override_ch =
  2343. ucontrol->value.integer.value[0];
  2344. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2345. __func__, backend_id,
  2346. msm_bedais[backend_id].adm_override_ch);
  2347. mutex_unlock(&routing_lock);
  2348. }
  2349. return 0;
  2350. }
  2351. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2352. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2353. msm_routing_adm_channel_config_get,
  2354. msm_routing_adm_channel_config_put),
  2355. };
  2356. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. mutex_lock(&routing_lock);
  2360. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2361. mutex_unlock(&routing_lock);
  2362. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2363. ucontrol->value.integer.value[0]);
  2364. return 0;
  2365. };
  2366. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2367. struct snd_ctl_elem_value *ucontrol)
  2368. {
  2369. struct aanc_data aanc_info;
  2370. mutex_lock(&routing_lock);
  2371. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2372. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2373. ucontrol->value.integer.value[0]);
  2374. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2375. if (ucontrol->value.integer.value[0] == 0) {
  2376. aanc_info.aanc_active = false;
  2377. aanc_info.aanc_tx_port = 0;
  2378. aanc_info.aanc_rx_port = 0;
  2379. } else {
  2380. aanc_info.aanc_active = true;
  2381. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2382. aanc_info.aanc_tx_port =
  2383. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2384. }
  2385. afe_set_aanc_info(&aanc_info);
  2386. mutex_unlock(&routing_lock);
  2387. return 0;
  2388. };
  2389. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. int idx = 0, shift = 0;
  2393. struct soc_mixer_control *mc =
  2394. (struct soc_mixer_control *)kcontrol->private_value;
  2395. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2396. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2397. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2398. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2399. return -EINVAL;
  2400. }
  2401. if (test_bit(shift,
  2402. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2403. ucontrol->value.integer.value[0] = 1;
  2404. else
  2405. ucontrol->value.integer.value[0] = 0;
  2406. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2407. ucontrol->value.integer.value[0]);
  2408. return 0;
  2409. }
  2410. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. int idx = 0, shift = 0;
  2414. struct soc_mixer_control *mc =
  2415. (struct soc_mixer_control *)kcontrol->private_value;
  2416. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2417. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2418. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2419. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2420. return -EINVAL;
  2421. }
  2422. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2423. __func__, mc->reg, mc->shift,
  2424. ucontrol->value.integer.value[0], idx, shift);
  2425. if (ucontrol->value.integer.value[0]) {
  2426. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2427. msm_bedais[mc->shift].port_id);
  2428. set_bit(shift,
  2429. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2430. } else {
  2431. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2432. msm_bedais[mc->shift].port_id);
  2433. clear_bit(shift,
  2434. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2435. }
  2436. return 1;
  2437. }
  2438. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2439. struct snd_ctl_elem_value *ucontrol)
  2440. {
  2441. u16 fe_id = 0;
  2442. fe_id = ((struct soc_mixer_control *)
  2443. kcontrol->private_value)->shift;
  2444. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2445. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2446. return -EINVAL;
  2447. }
  2448. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2449. return 0;
  2450. }
  2451. static int msm_pcm_put_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. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2462. return 1;
  2463. }
  2464. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. u16 fe_id = 0;
  2468. fe_id = ((struct soc_multi_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. ucontrol->value.integer.value[0] =
  2475. channel_mixer[fe_id].output_channel;
  2476. return 0;
  2477. }
  2478. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2479. struct snd_ctl_elem_value *ucontrol)
  2480. {
  2481. u16 fe_id = 0;
  2482. fe_id = ((struct soc_multi_mixer_control *)
  2483. kcontrol->private_value)->shift;
  2484. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2485. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2486. return -EINVAL;
  2487. }
  2488. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2489. fe_id,
  2490. (unsigned int)(ucontrol->value.integer.value[0]));
  2491. channel_mixer[fe_id].output_channel =
  2492. (unsigned int)(ucontrol->value.integer.value[0]);
  2493. return 1;
  2494. }
  2495. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2496. /* If new backend is added, need update this array */
  2497. static const char *const be_name[] = {
  2498. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2499. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2500. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2501. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2502. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2503. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2504. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2505. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2506. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2507. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2508. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2509. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2510. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2511. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2512. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2513. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2514. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2515. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2516. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2517. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2518. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2519. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2520. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2521. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2522. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2523. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2524. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2525. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2526. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2527. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2528. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2529. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2530. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2531. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2532. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2533. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2534. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2535. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2536. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2537. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2538. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2539. };
  2540. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2541. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2542. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2543. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2544. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2545. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2546. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2547. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2548. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2549. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2550. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2551. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2552. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2553. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2554. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2555. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2556. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2557. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2558. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2559. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2560. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2561. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2562. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2563. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2564. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2565. unsigned int channels,
  2566. unsigned int items, const char *const names[])
  2567. {
  2568. if (uinfo->value.enumerated.item >= items)
  2569. uinfo->value.enumerated.item = items - 1;
  2570. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2571. sizeof(uinfo->value.enumerated.name),
  2572. "ALSA: too long item name '%s'\n",
  2573. names[uinfo->value.enumerated.item]);
  2574. strlcpy(uinfo->value.enumerated.name,
  2575. names[uinfo->value.enumerated.item],
  2576. sizeof(uinfo->value.enumerated.name));
  2577. return 0;
  2578. }
  2579. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_info *uinfo)
  2581. {
  2582. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2583. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2584. uinfo->count = 1;
  2585. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2586. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2587. return 0;
  2588. }
  2589. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2590. struct snd_ctl_elem_value *ucontrol)
  2591. {
  2592. u16 fe_id = 0;
  2593. fe_id = ((struct soc_enum *)
  2594. kcontrol->private_value)->shift_l;
  2595. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2596. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2597. return -EINVAL;
  2598. }
  2599. pr_debug("%s: FE %d %s\n", __func__,
  2600. fe_id,
  2601. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2602. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2603. return 0;
  2604. }
  2605. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2606. struct snd_ctl_elem_value *ucontrol)
  2607. {
  2608. u16 fe_id = 0;
  2609. fe_id = ((struct soc_enum *)
  2610. kcontrol->private_value)->shift_l;
  2611. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2612. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2613. return -EINVAL;
  2614. }
  2615. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2616. pr_debug("%s: %s FE %d\n", __func__,
  2617. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2618. fe_id);
  2619. return 0;
  2620. }
  2621. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_info *uinfo)
  2623. {
  2624. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2625. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2626. uinfo->count = 1;
  2627. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2628. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2629. return 0;
  2630. }
  2631. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2632. struct snd_ctl_elem_value *ucontrol)
  2633. {
  2634. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2635. u16 fe_id = 0, in_ch = 0;
  2636. fe_id = e->shift_l;
  2637. in_ch = e->shift_r;
  2638. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2639. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2640. return -EINVAL;
  2641. }
  2642. if (in_ch >= ADM_MAX_CHANNELS) {
  2643. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2644. return -EINVAL;
  2645. }
  2646. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2647. return 1;
  2648. }
  2649. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2650. struct snd_ctl_elem_value *ucontrol)
  2651. {
  2652. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2653. u16 fe_id = 0, in_ch = 0;
  2654. fe_id = e->shift_l;
  2655. in_ch = e->shift_r;
  2656. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2657. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2658. return -EINVAL;
  2659. }
  2660. if (in_ch >= ADM_MAX_CHANNELS) {
  2661. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2662. return -EINVAL;
  2663. }
  2664. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2665. return 1;
  2666. }
  2667. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2668. struct snd_ctl_elem_info *uinfo)
  2669. {
  2670. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2671. uinfo->count = ADM_MAX_CHANNELS;
  2672. uinfo->value.integer.min = 0;
  2673. uinfo->value.integer.max = WEIGHT_0_DB;
  2674. return 0;
  2675. }
  2676. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. u16 fe_id = 0, out_ch = 0;
  2680. int i, weight;
  2681. fe_id = ((struct soc_multi_mixer_control *)
  2682. kcontrol->private_value)->shift;
  2683. out_ch = ((struct soc_multi_mixer_control *)
  2684. kcontrol->private_value)->rshift;
  2685. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2686. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2687. return -EINVAL;
  2688. }
  2689. if (out_ch >= ADM_MAX_CHANNELS) {
  2690. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2691. return -EINVAL;
  2692. }
  2693. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2694. __func__, fe_id,
  2695. ucontrol->value.integer.value[0],
  2696. ucontrol->value.integer.value[1],
  2697. ucontrol->value.integer.value[2],
  2698. ucontrol->value.integer.value[3],
  2699. ucontrol->value.integer.value[4],
  2700. ucontrol->value.integer.value[5],
  2701. ucontrol->value.integer.value[6],
  2702. ucontrol->value.integer.value[7]);
  2703. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2704. weight = ucontrol->value.integer.value[i];
  2705. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2706. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2707. __func__, fe_id, out_ch, i,
  2708. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2709. }
  2710. return 0;
  2711. }
  2712. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2713. struct snd_ctl_elem_value *ucontrol)
  2714. {
  2715. u16 fe_id = 0, out_ch = 0;
  2716. int i;
  2717. fe_id = ((struct soc_multi_mixer_control *)
  2718. kcontrol->private_value)->shift;
  2719. out_ch = ((struct soc_multi_mixer_control *)
  2720. kcontrol->private_value)->rshift;
  2721. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2722. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2723. return -EINVAL;
  2724. }
  2725. if (out_ch >= ADM_MAX_CHANNELS) {
  2726. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2727. return -EINVAL;
  2728. }
  2729. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2730. ucontrol->value.integer.value[i] =
  2731. channel_mixer[fe_id].channel_weight[out_ch][i];
  2732. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2733. __func__, fe_id,
  2734. ucontrol->value.integer.value[0],
  2735. ucontrol->value.integer.value[1],
  2736. ucontrol->value.integer.value[2],
  2737. ucontrol->value.integer.value[3],
  2738. ucontrol->value.integer.value[4],
  2739. ucontrol->value.integer.value[5],
  2740. ucontrol->value.integer.value[6],
  2741. ucontrol->value.integer.value[7]);
  2742. return 0;
  2743. }
  2744. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2745. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2746. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2747. msm_pcm_get_channel_rule_index,
  2748. msm_pcm_put_channel_rule_index),
  2749. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2750. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2751. msm_pcm_get_channel_rule_index,
  2752. msm_pcm_put_channel_rule_index),
  2753. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2754. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2755. msm_pcm_get_channel_rule_index,
  2756. msm_pcm_put_channel_rule_index),
  2757. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2758. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2759. msm_pcm_get_channel_rule_index,
  2760. msm_pcm_put_channel_rule_index),
  2761. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2762. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2763. msm_pcm_get_channel_rule_index,
  2764. msm_pcm_put_channel_rule_index),
  2765. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2766. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2767. msm_pcm_get_channel_rule_index,
  2768. msm_pcm_put_channel_rule_index),
  2769. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2770. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2771. msm_pcm_get_out_chs,
  2772. msm_pcm_put_out_chs),
  2773. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2774. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2775. msm_pcm_get_out_chs,
  2776. msm_pcm_put_out_chs),
  2777. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2778. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2779. msm_pcm_get_out_chs,
  2780. msm_pcm_put_out_chs),
  2781. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2782. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2783. msm_pcm_get_out_chs,
  2784. msm_pcm_put_out_chs),
  2785. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2786. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2787. msm_pcm_get_out_chs,
  2788. msm_pcm_put_out_chs),
  2789. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2790. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2791. msm_pcm_get_out_chs,
  2792. msm_pcm_put_out_chs),
  2793. {
  2794. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2795. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2796. .name = "MultiMedia1 Channel Mixer",
  2797. .info = msm_pcm_channel_mixer_info,
  2798. .get = msm_pcm_channel_mixer_get,
  2799. .put = msm_pcm_channel_mixer_put,
  2800. .private_value = (unsigned long)&(mm1_channel_mux)
  2801. },
  2802. {
  2803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2804. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2805. .name = "MultiMedia2 Channel Mixer",
  2806. .info = msm_pcm_channel_mixer_info,
  2807. .get = msm_pcm_channel_mixer_get,
  2808. .put = msm_pcm_channel_mixer_put,
  2809. .private_value = (unsigned long)&(mm2_channel_mux)
  2810. },
  2811. {
  2812. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2813. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2814. .name = "MultiMedia3 Channel Mixer",
  2815. .info = msm_pcm_channel_mixer_info,
  2816. .get = msm_pcm_channel_mixer_get,
  2817. .put = msm_pcm_channel_mixer_put,
  2818. .private_value = (unsigned long)&(mm3_channel_mux)
  2819. },
  2820. {
  2821. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2822. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2823. .name = "MultiMedia4 Channel Mixer",
  2824. .info = msm_pcm_channel_mixer_info,
  2825. .get = msm_pcm_channel_mixer_get,
  2826. .put = msm_pcm_channel_mixer_put,
  2827. .private_value = (unsigned long)&(mm4_channel_mux)
  2828. },
  2829. {
  2830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2831. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2832. .name = "MultiMedia1 Output Channel1",
  2833. .info = msm_pcm_channel_weight_info,
  2834. .get = msm_pcm_channel_weight_get,
  2835. .put = msm_pcm_channel_weight_put,
  2836. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2837. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2838. },
  2839. {
  2840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2841. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2842. .name = "MultiMedia1 Output Channel2",
  2843. .info = msm_pcm_channel_weight_info,
  2844. .get = msm_pcm_channel_weight_get,
  2845. .put = msm_pcm_channel_weight_put,
  2846. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2847. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2848. },
  2849. {
  2850. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2851. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2852. .name = "MultiMedia1 Output Channel3",
  2853. .info = msm_pcm_channel_weight_info,
  2854. .get = msm_pcm_channel_weight_get,
  2855. .put = msm_pcm_channel_weight_put,
  2856. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2857. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2858. },
  2859. {
  2860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2861. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2862. .name = "MultiMedia1 Output Channel4",
  2863. .info = msm_pcm_channel_weight_info,
  2864. .get = msm_pcm_channel_weight_get,
  2865. .put = msm_pcm_channel_weight_put,
  2866. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2867. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2868. },
  2869. {
  2870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2871. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2872. .name = "MultiMedia1 Output Channel5",
  2873. .info = msm_pcm_channel_weight_info,
  2874. .get = msm_pcm_channel_weight_get,
  2875. .put = msm_pcm_channel_weight_put,
  2876. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2877. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2878. },
  2879. {
  2880. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2881. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2882. .name = "MultiMedia1 Output Channel6",
  2883. .info = msm_pcm_channel_weight_info,
  2884. .get = msm_pcm_channel_weight_get,
  2885. .put = msm_pcm_channel_weight_put,
  2886. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2887. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2888. },
  2889. {
  2890. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2892. .name = "MultiMedia1 Output Channel7",
  2893. .info = msm_pcm_channel_weight_info,
  2894. .get = msm_pcm_channel_weight_get,
  2895. .put = msm_pcm_channel_weight_put,
  2896. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2897. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2898. },
  2899. {
  2900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2901. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2902. .name = "MultiMedia1 Output Channel8",
  2903. .info = msm_pcm_channel_weight_info,
  2904. .get = msm_pcm_channel_weight_get,
  2905. .put = msm_pcm_channel_weight_put,
  2906. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2907. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2908. },
  2909. {
  2910. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2911. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2912. .name = "MultiMedia2 Output Channel1",
  2913. .info = msm_pcm_channel_weight_info,
  2914. .get = msm_pcm_channel_weight_get,
  2915. .put = msm_pcm_channel_weight_put,
  2916. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2917. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2918. },
  2919. {
  2920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2922. .name = "MultiMedia2 Output Channel2",
  2923. .info = msm_pcm_channel_weight_info,
  2924. .get = msm_pcm_channel_weight_get,
  2925. .put = msm_pcm_channel_weight_put,
  2926. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2927. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2928. },
  2929. {
  2930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2931. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2932. .name = "MultiMedia2 Output Channel3",
  2933. .info = msm_pcm_channel_weight_info,
  2934. .get = msm_pcm_channel_weight_get,
  2935. .put = msm_pcm_channel_weight_put,
  2936. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2937. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2938. },
  2939. {
  2940. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2941. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2942. .name = "MultiMedia3 Output Channel1",
  2943. .info = msm_pcm_channel_weight_info,
  2944. .get = msm_pcm_channel_weight_get,
  2945. .put = msm_pcm_channel_weight_put,
  2946. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2947. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2948. },
  2949. {
  2950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2952. .name = "MultiMedia3 Output Channel2",
  2953. .info = msm_pcm_channel_weight_info,
  2954. .get = msm_pcm_channel_weight_get,
  2955. .put = msm_pcm_channel_weight_put,
  2956. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2957. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2958. },
  2959. {
  2960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2961. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2962. .name = "MultiMedia1 Channel1",
  2963. .info = msm_pcm_channel_input_be_info,
  2964. .get = msm_pcm_channel_input_be_get,
  2965. .put = msm_pcm_channel_input_be_put,
  2966. .private_value = (unsigned long)&(mm1_ch1_enum)
  2967. },
  2968. {
  2969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2971. .name = "MultiMedia1 Channel2",
  2972. .info = msm_pcm_channel_input_be_info,
  2973. .get = msm_pcm_channel_input_be_get,
  2974. .put = msm_pcm_channel_input_be_put,
  2975. .private_value = (unsigned long)&(mm1_ch2_enum)
  2976. },
  2977. {
  2978. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2979. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2980. .name = "MultiMedia1 Channel3",
  2981. .info = msm_pcm_channel_input_be_info,
  2982. .get = msm_pcm_channel_input_be_get,
  2983. .put = msm_pcm_channel_input_be_put,
  2984. .private_value = (unsigned long)&(mm1_ch3_enum)
  2985. },
  2986. {
  2987. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2988. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2989. .name = "MultiMedia1 Channel4",
  2990. .info = msm_pcm_channel_input_be_info,
  2991. .get = msm_pcm_channel_input_be_get,
  2992. .put = msm_pcm_channel_input_be_put,
  2993. .private_value = (unsigned long)&(mm1_ch4_enum)
  2994. },
  2995. {
  2996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2998. .name = "MultiMedia1 Channel5",
  2999. .info = msm_pcm_channel_input_be_info,
  3000. .get = msm_pcm_channel_input_be_get,
  3001. .put = msm_pcm_channel_input_be_put,
  3002. .private_value = (unsigned long)&(mm1_ch5_enum)
  3003. },
  3004. {
  3005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3007. .name = "MultiMedia1 Channel6",
  3008. .info = msm_pcm_channel_input_be_info,
  3009. .get = msm_pcm_channel_input_be_get,
  3010. .put = msm_pcm_channel_input_be_put,
  3011. .private_value = (unsigned long)&(mm1_ch6_enum)
  3012. },
  3013. {
  3014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3015. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3016. .name = "MultiMedia1 Channel7",
  3017. .info = msm_pcm_channel_input_be_info,
  3018. .get = msm_pcm_channel_input_be_get,
  3019. .put = msm_pcm_channel_input_be_put,
  3020. .private_value = (unsigned long)&(mm1_ch7_enum)
  3021. },
  3022. {
  3023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3024. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3025. .name = "MultiMedia1 Channel8",
  3026. .info = msm_pcm_channel_input_be_info,
  3027. .get = msm_pcm_channel_input_be_get,
  3028. .put = msm_pcm_channel_input_be_put,
  3029. .private_value = (unsigned long)&(mm1_ch8_enum)
  3030. },
  3031. };
  3032. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3033. struct snd_ctl_elem_value *ucontrol)
  3034. {
  3035. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3036. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3037. ucontrol->value.integer.value[0]);
  3038. return 0;
  3039. }
  3040. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3041. struct snd_ctl_elem_value *ucontrol)
  3042. {
  3043. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3044. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3045. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3046. return 0;
  3047. }
  3048. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3049. "Four", "Five", "Six", "Seven", "Eight"};
  3050. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3051. struct snd_ctl_elem_value *ucontrol)
  3052. {
  3053. switch (msm_ec_ref_bit_format) {
  3054. case SNDRV_PCM_FORMAT_S24_LE:
  3055. ucontrol->value.integer.value[0] = 2;
  3056. break;
  3057. case SNDRV_PCM_FORMAT_S16_LE:
  3058. ucontrol->value.integer.value[0] = 1;
  3059. break;
  3060. default:
  3061. ucontrol->value.integer.value[0] = 0;
  3062. break;
  3063. }
  3064. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3065. __func__, ucontrol->value.integer.value[0]);
  3066. return 0;
  3067. }
  3068. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3069. struct snd_ctl_elem_value *ucontrol)
  3070. {
  3071. u16 bit_width = 0;
  3072. switch (ucontrol->value.integer.value[0]) {
  3073. case 2:
  3074. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3075. break;
  3076. case 1:
  3077. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3078. break;
  3079. default:
  3080. msm_ec_ref_bit_format = 0;
  3081. break;
  3082. }
  3083. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3084. bit_width = 16;
  3085. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3086. bit_width = 24;
  3087. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3088. __func__, msm_ec_ref_bit_format);
  3089. adm_ec_ref_rx_bit_width(bit_width);
  3090. return 0;
  3091. }
  3092. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3093. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3094. struct snd_ctl_elem_value *ucontrol)
  3095. {
  3096. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3097. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3098. __func__, ucontrol->value.integer.value[0]);
  3099. return 0;
  3100. }
  3101. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3102. struct snd_ctl_elem_value *ucontrol)
  3103. {
  3104. switch (ucontrol->value.integer.value[0]) {
  3105. case 0:
  3106. msm_ec_ref_sampling_rate = 0;
  3107. break;
  3108. case 1:
  3109. msm_ec_ref_sampling_rate = 8000;
  3110. break;
  3111. case 2:
  3112. msm_ec_ref_sampling_rate = 16000;
  3113. break;
  3114. case 3:
  3115. msm_ec_ref_sampling_rate = 32000;
  3116. break;
  3117. case 4:
  3118. msm_ec_ref_sampling_rate = 44100;
  3119. break;
  3120. case 5:
  3121. msm_ec_ref_sampling_rate = 48000;
  3122. break;
  3123. case 6:
  3124. msm_ec_ref_sampling_rate = 96000;
  3125. break;
  3126. case 7:
  3127. msm_ec_ref_sampling_rate = 192000;
  3128. break;
  3129. case 8:
  3130. msm_ec_ref_sampling_rate = 384000;
  3131. break;
  3132. default:
  3133. msm_ec_ref_sampling_rate = 48000;
  3134. break;
  3135. }
  3136. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3137. __func__, msm_ec_ref_sampling_rate);
  3138. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3139. return 0;
  3140. }
  3141. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3142. "32000", "44100", "48000", "96000", "192000", "384000"};
  3143. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3144. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3145. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3146. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3147. };
  3148. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3149. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3150. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3151. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3152. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3153. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3154. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3155. };
  3156. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3157. struct snd_ctl_elem_value *ucontrol)
  3158. {
  3159. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3160. mutex_lock(&routing_lock);
  3161. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3162. mutex_unlock(&routing_lock);
  3163. return 0;
  3164. }
  3165. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3166. struct snd_ctl_elem_value *ucontrol)
  3167. {
  3168. int ec_ref_port_id;
  3169. struct snd_soc_dapm_widget *widget =
  3170. snd_soc_dapm_kcontrol_widget(kcontrol);
  3171. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3172. struct snd_soc_dapm_update *update = NULL;
  3173. mutex_lock(&routing_lock);
  3174. switch (ucontrol->value.integer.value[0]) {
  3175. case 0:
  3176. msm_route_ec_ref_rx = 0;
  3177. ec_ref_port_id = AFE_PORT_INVALID;
  3178. break;
  3179. case 1:
  3180. msm_route_ec_ref_rx = 1;
  3181. ec_ref_port_id = SLIMBUS_0_RX;
  3182. break;
  3183. case 2:
  3184. msm_route_ec_ref_rx = 2;
  3185. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3186. break;
  3187. case 3:
  3188. msm_route_ec_ref_rx = 3;
  3189. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3190. break;
  3191. case 4:
  3192. msm_route_ec_ref_rx = 4;
  3193. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3194. break;
  3195. case 5:
  3196. msm_route_ec_ref_rx = 5;
  3197. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3198. break;
  3199. case 6:
  3200. msm_route_ec_ref_rx = 6;
  3201. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3202. break;
  3203. case 7:
  3204. msm_route_ec_ref_rx = 7;
  3205. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3206. break;
  3207. case 9:
  3208. msm_route_ec_ref_rx = 9;
  3209. ec_ref_port_id = SLIMBUS_5_RX;
  3210. break;
  3211. case 10:
  3212. msm_route_ec_ref_rx = 10;
  3213. ec_ref_port_id = SLIMBUS_1_TX;
  3214. break;
  3215. case 11:
  3216. msm_route_ec_ref_rx = 11;
  3217. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3218. break;
  3219. case 12:
  3220. msm_route_ec_ref_rx = 12;
  3221. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3222. break;
  3223. case 13:
  3224. msm_route_ec_ref_rx = 13;
  3225. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3226. break;
  3227. case 14:
  3228. msm_route_ec_ref_rx = 14;
  3229. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3230. break;
  3231. case 15:
  3232. msm_route_ec_ref_rx = 15;
  3233. ec_ref_port_id = SLIMBUS_6_RX;
  3234. break;
  3235. case 16:
  3236. msm_route_ec_ref_rx = 16;
  3237. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3238. break;
  3239. case 17:
  3240. msm_route_ec_ref_rx = 17;
  3241. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3242. break;
  3243. case 18:
  3244. msm_route_ec_ref_rx = 18;
  3245. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3246. break;
  3247. case 19:
  3248. msm_route_ec_ref_rx = 19;
  3249. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3250. break;
  3251. case 20:
  3252. msm_route_ec_ref_rx = 20;
  3253. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3254. break;
  3255. case 21:
  3256. msm_route_ec_ref_rx = 21;
  3257. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3258. break;
  3259. case 22:
  3260. msm_route_ec_ref_rx = 22;
  3261. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3262. break;
  3263. default:
  3264. msm_route_ec_ref_rx = 0; /* NONE */
  3265. pr_err("%s EC ref rx %ld not valid\n",
  3266. __func__, ucontrol->value.integer.value[0]);
  3267. ec_ref_port_id = AFE_PORT_INVALID;
  3268. break;
  3269. }
  3270. adm_ec_ref_rx_id(ec_ref_port_id);
  3271. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3272. __func__, msm_route_ec_ref_rx);
  3273. mutex_unlock(&routing_lock);
  3274. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3275. msm_route_ec_ref_rx, e, update);
  3276. return 0;
  3277. }
  3278. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3279. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3280. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3281. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3282. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3283. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3284. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX"};
  3285. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3286. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3287. };
  3288. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3289. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3290. msm_route_ec_ref_rx_enum[0],
  3291. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3292. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3293. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3294. msm_route_ec_ref_rx_enum[0],
  3295. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3296. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3297. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3298. msm_route_ec_ref_rx_enum[0],
  3299. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3300. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3301. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3302. msm_route_ec_ref_rx_enum[0],
  3303. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3304. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3305. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3306. msm_route_ec_ref_rx_enum[0],
  3307. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3308. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3309. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3310. msm_route_ec_ref_rx_enum[0],
  3311. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3312. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3313. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3314. msm_route_ec_ref_rx_enum[0],
  3315. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3316. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3317. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3318. msm_route_ec_ref_rx_enum[0],
  3319. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3320. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3321. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3322. msm_route_ec_ref_rx_enum[0],
  3323. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3324. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3325. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3326. msm_route_ec_ref_rx_enum[0],
  3327. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3328. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3329. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3330. msm_route_ec_ref_rx_enum[0],
  3331. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3332. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3333. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3334. msm_route_ec_ref_rx_enum[0],
  3335. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3336. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3337. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3338. msm_route_ec_ref_rx_enum[0],
  3339. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3340. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3341. struct snd_ctl_elem_value *ucontrol)
  3342. {
  3343. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3344. mutex_lock(&routing_lock);
  3345. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3346. mutex_unlock(&routing_lock);
  3347. return 0;
  3348. }
  3349. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3350. struct snd_ctl_elem_value *ucontrol)
  3351. {
  3352. struct snd_soc_dapm_widget *widget =
  3353. snd_soc_dapm_kcontrol_widget(kcontrol);
  3354. int mux = ucontrol->value.enumerated.item[0];
  3355. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3356. int ret = 1;
  3357. bool state = true;
  3358. uint16_t ext_ec_ref_port_id;
  3359. struct snd_soc_dapm_update *update = NULL;
  3360. if (mux >= e->items) {
  3361. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3362. return -EINVAL;
  3363. }
  3364. mutex_lock(&routing_lock);
  3365. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3366. switch (msm_route_ext_ec_ref) {
  3367. case EXT_EC_REF_PRI_MI2S_TX:
  3368. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3369. break;
  3370. case EXT_EC_REF_SEC_MI2S_TX:
  3371. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3372. break;
  3373. case EXT_EC_REF_TERT_MI2S_TX:
  3374. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3375. break;
  3376. case EXT_EC_REF_QUAT_MI2S_TX:
  3377. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3378. break;
  3379. case EXT_EC_REF_QUIN_MI2S_TX:
  3380. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3381. break;
  3382. case EXT_EC_REF_SLIM_1_TX:
  3383. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3384. break;
  3385. case EXT_EC_REF_NONE:
  3386. default:
  3387. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3388. state = false;
  3389. break;
  3390. }
  3391. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3392. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3393. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3394. mutex_unlock(&routing_lock);
  3395. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3396. update);
  3397. } else {
  3398. ret = -EINVAL;
  3399. mutex_unlock(&routing_lock);
  3400. }
  3401. return ret;
  3402. }
  3403. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3404. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3405. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3406. "SLIM_1_TX"};
  3407. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3408. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3409. };
  3410. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3411. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3412. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3413. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3414. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3416. msm_routing_put_audio_mixer),
  3417. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3419. msm_routing_put_audio_mixer),
  3420. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3422. msm_routing_put_audio_mixer),
  3423. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3425. msm_routing_put_audio_mixer),
  3426. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3428. msm_routing_put_audio_mixer),
  3429. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3431. msm_routing_put_audio_mixer),
  3432. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3433. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3434. msm_routing_put_audio_mixer),
  3435. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3437. msm_routing_put_audio_mixer),
  3438. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3440. msm_routing_put_audio_mixer),
  3441. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3443. msm_routing_put_audio_mixer),
  3444. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3446. msm_routing_put_audio_mixer),
  3447. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3449. msm_routing_put_audio_mixer),
  3450. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3452. msm_routing_put_audio_mixer),
  3453. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3455. msm_routing_put_audio_mixer),
  3456. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3458. msm_routing_put_audio_mixer),
  3459. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3461. msm_routing_put_audio_mixer),
  3462. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3463. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3464. msm_routing_put_audio_mixer),
  3465. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3467. msm_routing_put_audio_mixer),
  3468. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3469. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3470. msm_routing_put_audio_mixer),
  3471. };
  3472. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3473. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3475. msm_routing_put_audio_mixer),
  3476. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3478. msm_routing_put_audio_mixer),
  3479. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3481. msm_routing_put_audio_mixer),
  3482. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3484. msm_routing_put_audio_mixer),
  3485. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3487. msm_routing_put_audio_mixer),
  3488. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3490. msm_routing_put_audio_mixer),
  3491. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3492. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3493. msm_routing_put_audio_mixer),
  3494. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3496. msm_routing_put_audio_mixer),
  3497. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3499. msm_routing_put_audio_mixer),
  3500. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3501. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3502. msm_routing_put_audio_mixer),
  3503. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3504. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3505. msm_routing_put_audio_mixer),
  3506. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3507. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3508. msm_routing_put_audio_mixer),
  3509. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3510. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3511. msm_routing_put_audio_mixer),
  3512. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3514. msm_routing_put_audio_mixer),
  3515. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3517. msm_routing_put_audio_mixer),
  3518. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3520. msm_routing_put_audio_mixer),
  3521. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3522. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3523. msm_routing_put_audio_mixer),
  3524. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3525. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3526. msm_routing_put_audio_mixer),
  3527. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3529. msm_routing_put_audio_mixer),
  3530. };
  3531. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3532. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3534. msm_routing_put_audio_mixer),
  3535. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3537. msm_routing_put_audio_mixer),
  3538. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3540. msm_routing_put_audio_mixer),
  3541. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3543. msm_routing_put_audio_mixer),
  3544. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3546. msm_routing_put_audio_mixer),
  3547. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3549. msm_routing_put_audio_mixer),
  3550. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3552. msm_routing_put_audio_mixer),
  3553. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3555. msm_routing_put_audio_mixer),
  3556. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3558. msm_routing_put_audio_mixer),
  3559. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3560. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3561. msm_routing_put_audio_mixer),
  3562. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3564. msm_routing_put_audio_mixer),
  3565. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3566. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3567. msm_routing_put_audio_mixer),
  3568. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3569. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3570. msm_routing_put_audio_mixer),
  3571. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3572. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3573. msm_routing_put_audio_mixer),
  3574. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3576. msm_routing_put_audio_mixer),
  3577. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3578. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3579. msm_routing_put_audio_mixer),
  3580. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3581. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3582. msm_routing_put_audio_mixer),
  3583. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3584. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3585. msm_routing_put_audio_mixer),
  3586. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3587. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3588. msm_routing_put_audio_mixer),
  3589. };
  3590. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3591. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3592. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3593. msm_routing_put_audio_mixer),
  3594. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3596. msm_routing_put_audio_mixer),
  3597. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3599. msm_routing_put_audio_mixer),
  3600. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3602. msm_routing_put_audio_mixer),
  3603. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3604. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3605. msm_routing_put_audio_mixer),
  3606. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3608. msm_routing_put_audio_mixer),
  3609. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3611. msm_routing_put_audio_mixer),
  3612. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3614. msm_routing_put_audio_mixer),
  3615. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3616. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3617. msm_routing_put_audio_mixer),
  3618. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3620. msm_routing_put_audio_mixer),
  3621. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3626. msm_routing_put_audio_mixer),
  3627. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3629. msm_routing_put_audio_mixer),
  3630. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3632. msm_routing_put_audio_mixer),
  3633. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3638. msm_routing_put_audio_mixer),
  3639. };
  3640. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3641. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3646. msm_routing_put_audio_mixer),
  3647. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3649. msm_routing_put_audio_mixer),
  3650. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3652. msm_routing_put_audio_mixer),
  3653. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3658. msm_routing_put_audio_mixer),
  3659. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3661. msm_routing_put_audio_mixer),
  3662. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3664. msm_routing_put_audio_mixer),
  3665. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3670. msm_routing_put_audio_mixer),
  3671. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3672. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3673. msm_routing_put_audio_mixer),
  3674. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3676. msm_routing_put_audio_mixer),
  3677. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3682. msm_routing_put_audio_mixer),
  3683. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3685. msm_routing_put_audio_mixer),
  3686. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3688. msm_routing_put_audio_mixer),
  3689. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3694. msm_routing_put_audio_mixer),
  3695. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. };
  3699. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3700. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3702. msm_routing_put_audio_mixer),
  3703. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3711. msm_routing_put_audio_mixer),
  3712. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3714. msm_routing_put_audio_mixer),
  3715. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3720. msm_routing_put_audio_mixer),
  3721. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3723. msm_routing_put_audio_mixer),
  3724. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3732. msm_routing_put_audio_mixer),
  3733. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3734. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3735. msm_routing_put_audio_mixer),
  3736. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3744. msm_routing_put_audio_mixer),
  3745. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3747. msm_routing_put_audio_mixer),
  3748. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. };
  3758. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3759. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3764. msm_routing_put_audio_mixer),
  3765. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3776. msm_routing_put_audio_mixer),
  3777. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3778. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3779. msm_routing_put_audio_mixer),
  3780. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3796. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3797. msm_routing_put_audio_mixer),
  3798. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3799. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3800. msm_routing_put_audio_mixer),
  3801. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3809. msm_routing_put_audio_mixer),
  3810. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3811. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3812. msm_routing_put_audio_mixer),
  3813. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. };
  3817. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3818. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3826. msm_routing_put_audio_mixer),
  3827. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3829. msm_routing_put_audio_mixer),
  3830. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3838. msm_routing_put_audio_mixer),
  3839. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3840. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3841. msm_routing_put_audio_mixer),
  3842. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3849. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3850. msm_routing_put_audio_mixer),
  3851. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3862. msm_routing_put_audio_mixer),
  3863. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3873. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3874. msm_routing_put_audio_mixer),
  3875. };
  3876. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3877. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3879. msm_routing_put_audio_mixer),
  3880. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3881. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3882. msm_routing_put_audio_mixer),
  3883. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3890. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3891. msm_routing_put_audio_mixer),
  3892. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3894. msm_routing_put_audio_mixer),
  3895. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3902. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3903. msm_routing_put_audio_mixer),
  3904. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3915. msm_routing_put_audio_mixer),
  3916. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3924. msm_routing_put_audio_mixer),
  3925. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. };
  3935. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3936. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3944. msm_routing_put_audio_mixer),
  3945. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3953. msm_routing_put_audio_mixer),
  3954. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3964. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3965. msm_routing_put_audio_mixer),
  3966. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3977. msm_routing_put_audio_mixer),
  3978. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. };
  3988. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  3989. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. };
  3993. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  3994. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4014. msm_routing_put_audio_mixer),
  4015. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4025. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4026. msm_routing_put_audio_mixer),
  4027. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4037. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4038. msm_routing_put_audio_mixer),
  4039. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4046. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4047. msm_routing_put_audio_mixer),
  4048. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. };
  4052. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4053. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4081. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4082. msm_routing_put_audio_mixer),
  4083. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4100. msm_routing_put_audio_mixer),
  4101. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. };
  4111. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4112. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4120. msm_routing_put_audio_mixer),
  4121. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4128. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4129. msm_routing_put_audio_mixer),
  4130. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. };
  4161. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4162. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4170. msm_routing_put_audio_mixer),
  4171. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4181. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4182. msm_routing_put_audio_mixer),
  4183. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4205. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4206. msm_routing_put_audio_mixer),
  4207. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. };
  4211. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4212. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4255. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4256. msm_routing_put_audio_mixer),
  4257. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4267. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4268. msm_routing_put_audio_mixer),
  4269. };
  4270. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4271. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4288. msm_routing_put_audio_mixer),
  4289. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4297. msm_routing_put_audio_mixer),
  4298. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. };
  4320. /* incall music delivery mixer */
  4321. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4322. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. };
  4335. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4336. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. };
  4349. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4350. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. };
  4363. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4364. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4366. msm_routing_put_audio_mixer),
  4367. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4386. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4387. msm_routing_put_audio_mixer),
  4388. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. };
  4413. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4414. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4440. msm_routing_put_audio_mixer),
  4441. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4452. msm_routing_put_audio_mixer),
  4453. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. };
  4463. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4464. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4472. msm_routing_put_audio_mixer),
  4473. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4484. msm_routing_put_audio_mixer),
  4485. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4507. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4508. msm_routing_put_audio_mixer),
  4509. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. };
  4513. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4514. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. };
  4572. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4573. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4590. msm_routing_put_audio_mixer),
  4591. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4602. msm_routing_put_audio_mixer),
  4603. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. };
  4622. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4623. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4640. msm_routing_put_audio_mixer),
  4641. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4675. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4676. msm_routing_put_audio_mixer),
  4677. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. };
  4681. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4682. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4684. msm_routing_put_audio_mixer),
  4685. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. };
  4740. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4741. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4775. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4776. msm_routing_put_audio_mixer),
  4777. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4787. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4788. msm_routing_put_audio_mixer),
  4789. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. };
  4799. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4800. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. };
  4858. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4859. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4870. msm_routing_put_audio_mixer),
  4871. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. };
  4908. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4909. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4931. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4932. msm_routing_put_audio_mixer),
  4933. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4943. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4944. msm_routing_put_audio_mixer),
  4945. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. };
  4958. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4959. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4993. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4994. msm_routing_put_audio_mixer),
  4995. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. };
  5008. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5009. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. };
  5058. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5059. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. };
  5108. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5109. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. };
  5158. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5159. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5176. msm_routing_put_audio_mixer),
  5177. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5197. msm_routing_put_audio_mixer),
  5198. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5199. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5200. msm_routing_put_audio_mixer),
  5201. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. };
  5208. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5209. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. };
  5258. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5259. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. };
  5308. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5309. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5332. msm_routing_put_audio_mixer),
  5333. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. };
  5358. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5359. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. };
  5408. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5409. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. };
  5458. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5459. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. };
  5508. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5509. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. };
  5558. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5559. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. };
  5608. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5609. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. };
  5658. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5659. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. };
  5708. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5709. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. };
  5758. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5759. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. };
  5808. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5809. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. };
  5861. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5862. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. };
  5911. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5912. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. };
  5964. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5965. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. };
  6017. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6018. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. };
  6070. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6071. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. };
  6123. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6124. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. };
  6173. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6174. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. };
  6226. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6227. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. };
  6279. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6280. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. };
  6332. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6333. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. };
  6469. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6470. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. };
  6573. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6574. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. };
  6677. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6678. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. };
  6778. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6779. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. };
  6897. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6898. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. };
  7001. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7002. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. };
  7108. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7109. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. };
  7215. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7216. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. };
  7277. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7278. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. };
  7357. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7358. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. };
  7380. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7381. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. };
  7406. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7407. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. };
  7429. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7430. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. };
  7506. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7507. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7508. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7509. msm_routing_put_voice_mixer),
  7510. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7511. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7512. msm_routing_put_voice_mixer),
  7513. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7514. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7515. msm_routing_put_voice_mixer),
  7516. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7517. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7518. msm_routing_put_voice_mixer),
  7519. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7521. msm_routing_put_voice_mixer),
  7522. };
  7523. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7524. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7525. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7526. msm_routing_put_voice_mixer),
  7527. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7528. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7529. msm_routing_put_voice_mixer),
  7530. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7531. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7532. msm_routing_put_voice_mixer),
  7533. };
  7534. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7535. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7536. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7537. msm_routing_put_voice_mixer),
  7538. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7539. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7540. msm_routing_put_voice_mixer),
  7541. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7542. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7543. msm_routing_put_voice_mixer),
  7544. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7545. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7546. msm_routing_put_voice_mixer),
  7547. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7548. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7549. msm_routing_put_voice_mixer),
  7550. };
  7551. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7552. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7553. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7554. msm_routing_put_voice_mixer),
  7555. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7556. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7557. msm_routing_put_voice_stub_mixer),
  7558. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7559. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7560. msm_routing_put_voice_stub_mixer),
  7561. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7562. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7563. msm_routing_put_voice_stub_mixer),
  7564. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7565. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7566. msm_routing_put_voice_mixer),
  7567. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7568. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7569. msm_routing_put_voice_mixer),
  7570. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7572. msm_routing_put_voice_mixer),
  7573. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7574. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7575. msm_routing_put_voice_mixer),
  7576. };
  7577. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7578. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7580. msm_routing_put_voice_mixer),
  7581. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7583. msm_routing_put_voice_stub_mixer),
  7584. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7585. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7586. msm_routing_put_voice_stub_mixer),
  7587. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7588. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7589. msm_routing_put_voice_stub_mixer),
  7590. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7591. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7592. msm_routing_put_voice_mixer),
  7593. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7594. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7595. msm_routing_put_voice_mixer),
  7596. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7598. msm_routing_put_voice_mixer),
  7599. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7600. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7601. msm_routing_put_voice_mixer),
  7602. };
  7603. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7604. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7605. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7606. msm_routing_put_voice_mixer),
  7607. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_USB_RX,
  7608. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7609. msm_routing_put_voice_stub_mixer),
  7610. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_USB_RX,
  7611. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7612. msm_routing_put_voice_stub_mixer),
  7613. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_USB_RX,
  7614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7615. msm_routing_put_voice_stub_mixer),
  7616. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7617. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7618. msm_routing_put_voice_mixer),
  7619. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7620. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7621. msm_routing_put_voice_mixer),
  7622. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7623. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7624. msm_routing_put_voice_mixer),
  7625. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7626. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7627. msm_routing_put_voice_mixer),
  7628. };
  7629. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7630. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7631. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7632. msm_routing_put_voice_mixer),
  7633. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7634. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7635. msm_routing_put_voice_stub_mixer),
  7636. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7637. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7638. msm_routing_put_voice_stub_mixer),
  7639. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7641. msm_routing_put_voice_mixer),
  7642. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7643. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7644. msm_routing_put_voice_mixer),
  7645. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7647. msm_routing_put_voice_mixer),
  7648. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7649. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7650. msm_routing_put_voice_mixer),
  7651. };
  7652. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7653. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_MI2S_RX,
  7657. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7658. msm_routing_put_voice_stub_mixer),
  7659. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7660. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7661. msm_routing_put_voice_mixer),
  7662. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7663. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7664. msm_routing_put_voice_mixer),
  7665. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7666. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7667. msm_routing_put_voice_mixer),
  7668. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7669. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7670. msm_routing_put_voice_mixer),
  7671. };
  7672. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7673. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7675. msm_routing_put_voice_mixer),
  7676. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7677. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7678. msm_routing_put_voice_stub_mixer),
  7679. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7680. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7681. msm_routing_put_voice_stub_mixer),
  7682. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7683. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7684. msm_routing_put_voice_mixer),
  7685. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7686. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7687. msm_routing_put_voice_mixer),
  7688. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7689. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7690. msm_routing_put_voice_mixer),
  7691. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7692. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7693. msm_routing_put_voice_mixer),
  7694. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7695. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7696. msm_routing_put_voice_mixer),
  7697. };
  7698. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7699. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7700. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7701. msm_routing_put_voice_mixer),
  7702. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7703. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7704. msm_routing_put_voice_mixer),
  7705. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7706. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7707. msm_routing_put_voice_mixer),
  7708. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7709. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7710. msm_routing_put_voice_mixer),
  7711. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7712. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7713. msm_routing_put_voice_mixer),
  7714. };
  7715. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7716. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7718. msm_routing_put_voice_mixer),
  7719. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7720. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7721. msm_routing_put_voice_mixer),
  7722. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7723. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7724. msm_routing_put_voice_mixer),
  7725. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7726. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7727. msm_routing_put_voice_mixer),
  7728. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7729. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7730. msm_routing_put_voice_mixer),
  7731. };
  7732. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7733. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7735. msm_routing_put_voice_mixer),
  7736. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7737. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7738. msm_routing_put_voice_stub_mixer),
  7739. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7740. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7741. msm_routing_put_voice_stub_mixer),
  7742. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7743. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7744. msm_routing_put_voice_mixer),
  7745. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7746. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7747. msm_routing_put_voice_mixer),
  7748. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7749. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7750. msm_routing_put_voice_mixer),
  7751. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7752. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7753. msm_routing_put_voice_mixer),
  7754. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7755. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7756. msm_routing_put_voice_mixer),
  7757. };
  7758. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7759. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7760. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7761. msm_routing_put_voice_mixer),
  7762. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7763. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7764. msm_routing_put_voice_stub_mixer),
  7765. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7766. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7767. msm_routing_put_voice_stub_mixer),
  7768. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7769. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7770. msm_routing_put_voice_mixer),
  7771. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7772. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7773. msm_routing_put_voice_mixer),
  7774. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7775. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7776. msm_routing_put_voice_mixer),
  7777. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7778. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7779. msm_routing_put_voice_mixer),
  7780. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7781. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7782. msm_routing_put_voice_mixer),
  7783. };
  7784. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7785. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7786. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7787. msm_routing_put_voice_mixer),
  7788. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7789. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7790. msm_routing_put_voice_stub_mixer),
  7791. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7792. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7793. msm_routing_put_voice_stub_mixer),
  7794. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7796. msm_routing_put_voice_mixer),
  7797. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7798. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7799. msm_routing_put_voice_mixer),
  7800. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7801. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7802. msm_routing_put_voice_mixer),
  7803. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7804. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7805. msm_routing_put_voice_mixer),
  7806. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7807. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7808. msm_routing_put_voice_mixer),
  7809. };
  7810. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7811. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7812. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7813. msm_routing_put_voice_mixer),
  7814. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7815. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7816. msm_routing_put_voice_stub_mixer),
  7817. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7818. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7819. msm_routing_put_voice_stub_mixer),
  7820. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7821. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7822. msm_routing_put_voice_stub_mixer),
  7823. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7824. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7825. msm_routing_put_voice_mixer),
  7826. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7827. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7828. msm_routing_put_voice_mixer),
  7829. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7830. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7831. msm_routing_put_voice_mixer),
  7832. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7833. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7834. msm_routing_put_voice_mixer),
  7835. };
  7836. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7837. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7838. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7839. msm_routing_put_voice_mixer),
  7840. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7841. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7842. msm_routing_put_voice_stub_mixer),
  7843. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7844. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7845. msm_routing_put_voice_stub_mixer),
  7846. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7847. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7848. msm_routing_put_voice_stub_mixer),
  7849. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7850. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7851. msm_routing_put_voice_mixer),
  7852. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7854. msm_routing_put_voice_mixer),
  7855. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7856. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7857. msm_routing_put_voice_mixer),
  7858. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7859. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7860. msm_routing_put_voice_mixer),
  7861. };
  7862. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7863. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7865. msm_routing_put_voice_mixer),
  7866. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7867. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7868. msm_routing_put_voice_stub_mixer),
  7869. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7870. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7871. msm_routing_put_voice_mixer),
  7872. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7874. msm_routing_put_voice_mixer),
  7875. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7876. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7877. msm_routing_put_voice_mixer),
  7878. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7879. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7880. msm_routing_put_voice_mixer),
  7881. };
  7882. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7883. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7885. msm_routing_put_voice_mixer),
  7886. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7887. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7888. msm_routing_put_voice_stub_mixer),
  7889. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7890. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7891. msm_routing_put_voice_mixer),
  7892. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7894. msm_routing_put_voice_mixer),
  7895. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7896. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7897. msm_routing_put_voice_mixer),
  7898. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7899. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7900. msm_routing_put_voice_mixer),
  7901. };
  7902. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7903. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7904. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7905. msm_routing_put_voice_mixer),
  7906. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7907. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7908. msm_routing_put_voice_stub_mixer),
  7909. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7910. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7911. msm_routing_put_voice_mixer),
  7912. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7913. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7914. msm_routing_put_voice_mixer),
  7915. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7916. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7917. msm_routing_put_voice_mixer),
  7918. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7919. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7920. msm_routing_put_voice_mixer),
  7921. };
  7922. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7923. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7924. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7925. msm_routing_put_voice_mixer),
  7926. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7927. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7928. msm_routing_put_voice_stub_mixer),
  7929. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7930. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7931. msm_routing_put_voice_mixer),
  7932. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7933. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7934. msm_routing_put_voice_mixer),
  7935. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7936. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7937. msm_routing_put_voice_mixer),
  7938. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7939. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7940. msm_routing_put_voice_mixer),
  7941. };
  7942. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7943. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7944. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7945. msm_routing_put_voice_mixer),
  7946. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_HDMI_RX,
  7947. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7948. msm_routing_put_voice_stub_mixer),
  7949. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_HDMI_RX,
  7950. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7951. msm_routing_put_voice_stub_mixer),
  7952. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_HDMI_RX,
  7953. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7954. msm_routing_put_voice_stub_mixer),
  7955. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7956. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7957. msm_routing_put_voice_mixer),
  7958. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7959. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7960. msm_routing_put_voice_mixer),
  7961. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7962. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7963. msm_routing_put_voice_mixer),
  7964. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7965. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7966. msm_routing_put_voice_mixer),
  7967. };
  7968. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7969. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7970. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7971. msm_routing_put_voice_mixer),
  7972. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7974. msm_routing_put_voice_stub_mixer),
  7975. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7976. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7977. msm_routing_put_voice_stub_mixer),
  7978. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7979. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7980. msm_routing_put_voice_stub_mixer),
  7981. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7983. msm_routing_put_voice_mixer),
  7984. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7986. msm_routing_put_voice_mixer),
  7987. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7988. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7989. msm_routing_put_voice_mixer),
  7990. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7991. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7992. msm_routing_put_voice_mixer),
  7993. };
  7994. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7995. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7996. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7997. msm_routing_put_voice_mixer),
  7998. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7999. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8000. msm_routing_put_voice_stub_mixer),
  8001. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8002. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8003. msm_routing_put_voice_stub_mixer),
  8004. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8005. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8006. msm_routing_put_voice_stub_mixer),
  8007. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8008. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8009. msm_routing_put_voice_mixer),
  8010. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8011. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8012. msm_routing_put_voice_mixer),
  8013. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8014. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8015. msm_routing_put_voice_mixer),
  8016. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8017. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8018. msm_routing_put_voice_mixer),
  8019. };
  8020. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  8021. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8022. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8023. msm_routing_put_voice_mixer),
  8024. };
  8025. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  8026. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8027. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8028. msm_routing_put_voice_stub_mixer),
  8029. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8030. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8031. msm_routing_put_voice_stub_mixer),
  8032. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8033. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8034. msm_routing_put_voice_stub_mixer),
  8035. };
  8036. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  8037. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8038. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8039. msm_routing_put_voice_stub_mixer),
  8040. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8041. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8042. msm_routing_put_voice_stub_mixer),
  8043. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8044. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8045. msm_routing_put_voice_stub_mixer),
  8046. };
  8047. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  8048. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8049. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8050. msm_routing_put_voice_stub_mixer),
  8051. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8052. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8053. msm_routing_put_voice_stub_mixer),
  8054. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8055. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8056. msm_routing_put_voice_stub_mixer),
  8057. };
  8058. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  8059. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  8060. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8061. msm_routing_put_voice_mixer),
  8062. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  8063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8064. msm_routing_put_voice_mixer),
  8065. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  8066. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8067. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8068. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  8069. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8070. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8071. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  8072. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8073. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8074. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  8075. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8076. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8077. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  8078. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8079. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8080. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  8081. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8082. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8083. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  8084. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8085. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8086. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  8087. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8088. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8089. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  8090. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8091. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8092. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  8093. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8094. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8095. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  8096. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8097. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8098. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  8099. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8100. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8101. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  8102. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8103. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8104. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8105. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8106. msm_routing_put_voice_mixer),
  8107. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8108. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8109. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8110. };
  8111. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8112. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8113. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8114. msm_routing_put_voice_mixer),
  8115. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8116. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8117. msm_routing_put_voice_mixer),
  8118. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8119. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8120. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8121. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8122. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8123. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8124. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8125. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8126. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8127. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8128. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8129. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8130. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8131. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8132. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8133. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8134. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8135. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8136. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8137. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8138. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8139. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8140. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8141. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8142. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8143. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8144. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8145. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8146. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8147. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8148. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8149. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8150. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8151. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8152. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8153. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8154. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8155. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8156. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8157. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8158. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8159. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8160. };
  8161. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8162. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8163. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8164. msm_routing_put_voice_mixer),
  8165. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8166. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8167. msm_routing_put_voice_mixer),
  8168. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8169. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8170. msm_routing_put_voice_mixer),
  8171. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8172. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8173. msm_routing_put_voice_mixer),
  8174. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8175. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8176. msm_routing_put_voice_mixer),
  8177. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8178. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8179. msm_routing_put_voice_mixer),
  8180. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8181. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8182. msm_routing_put_voice_mixer),
  8183. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8185. msm_routing_put_voice_mixer),
  8186. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8187. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8188. msm_routing_put_voice_mixer),
  8189. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8190. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8191. msm_routing_put_voice_mixer),
  8192. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8193. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8194. msm_routing_put_voice_mixer),
  8195. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8196. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8197. msm_routing_put_voice_mixer),
  8198. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8199. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8200. msm_routing_put_voice_mixer),
  8201. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8202. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8203. msm_routing_put_voice_mixer),
  8204. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8206. msm_routing_put_voice_mixer),
  8207. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8208. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8209. msm_routing_put_voice_mixer),
  8210. };
  8211. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8212. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8213. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8214. msm_routing_put_voice_stub_mixer),
  8215. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8216. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8217. msm_routing_put_voice_stub_mixer),
  8218. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8219. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8220. msm_routing_put_voice_stub_mixer),
  8221. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8222. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8223. msm_routing_put_voice_stub_mixer),
  8224. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8225. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8226. msm_routing_put_voice_stub_mixer),
  8227. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8228. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8229. msm_routing_put_voice_stub_mixer),
  8230. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8231. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8232. msm_routing_put_voice_stub_mixer),
  8233. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8234. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8235. msm_routing_put_voice_stub_mixer),
  8236. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8237. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8238. msm_routing_put_voice_stub_mixer),
  8239. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8240. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8241. msm_routing_put_voice_stub_mixer),
  8242. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8243. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8244. msm_routing_put_voice_stub_mixer),
  8245. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8246. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8247. msm_routing_put_voice_stub_mixer),
  8248. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8249. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8250. msm_routing_put_voice_stub_mixer),
  8251. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8252. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8253. msm_routing_put_voice_stub_mixer),
  8254. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8255. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8256. msm_routing_put_voice_stub_mixer),
  8257. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8258. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8259. msm_routing_put_voice_stub_mixer),
  8260. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8261. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8262. msm_routing_put_voice_stub_mixer),
  8263. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8264. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8265. msm_routing_put_voice_stub_mixer),
  8266. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8267. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8268. msm_routing_put_voice_stub_mixer),
  8269. };
  8270. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8271. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8273. msm_routing_put_voice_stub_mixer),
  8274. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8275. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8276. msm_routing_put_voice_stub_mixer),
  8277. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8278. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8279. msm_routing_put_voice_stub_mixer),
  8280. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8281. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8282. msm_routing_put_voice_stub_mixer),
  8283. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8284. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8285. msm_routing_put_voice_stub_mixer),
  8286. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8287. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8288. msm_routing_put_voice_stub_mixer),
  8289. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8290. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8291. msm_routing_put_voice_stub_mixer),
  8292. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8293. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8294. msm_routing_put_voice_stub_mixer),
  8295. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8296. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8297. msm_routing_put_voice_stub_mixer),
  8298. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8299. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8300. msm_routing_put_voice_stub_mixer),
  8301. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8302. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8303. msm_routing_put_voice_stub_mixer),
  8304. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8305. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8306. msm_routing_put_voice_stub_mixer),
  8307. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8308. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8309. msm_routing_put_voice_stub_mixer),
  8310. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8311. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8312. msm_routing_put_voice_stub_mixer),
  8313. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8314. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8315. msm_routing_put_voice_stub_mixer),
  8316. };
  8317. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8318. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8319. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8320. msm_routing_put_voice_stub_mixer),
  8321. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8322. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8323. msm_routing_put_voice_stub_mixer),
  8324. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8325. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8326. msm_routing_put_voice_stub_mixer),
  8327. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8328. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8329. msm_routing_put_voice_stub_mixer),
  8330. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8331. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8332. msm_routing_put_voice_stub_mixer),
  8333. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8334. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8335. msm_routing_put_voice_stub_mixer),
  8336. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8337. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8338. msm_routing_put_voice_stub_mixer),
  8339. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8340. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8341. msm_routing_put_voice_stub_mixer),
  8342. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8343. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8344. msm_routing_put_voice_stub_mixer),
  8345. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8346. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8347. msm_routing_put_voice_stub_mixer),
  8348. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8349. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8350. msm_routing_put_voice_stub_mixer),
  8351. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8352. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8353. msm_routing_put_voice_stub_mixer),
  8354. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8355. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8356. msm_routing_put_voice_stub_mixer),
  8357. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8358. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8359. msm_routing_put_voice_stub_mixer),
  8360. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8361. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8362. msm_routing_put_voice_stub_mixer),
  8363. };
  8364. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8365. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8366. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8367. msm_routing_put_voice_mixer),
  8368. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8370. msm_routing_put_voice_mixer),
  8371. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8372. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8373. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8374. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8375. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8376. msm_routing_put_voice_mixer),
  8377. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8378. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8379. msm_routing_put_voice_mixer),
  8380. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8381. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8382. msm_routing_put_voice_mixer),
  8383. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8384. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8385. msm_routing_put_voice_mixer),
  8386. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8387. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8388. msm_routing_put_voice_mixer),
  8389. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8390. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8391. msm_routing_put_voice_mixer),
  8392. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8393. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8394. msm_routing_put_voice_mixer),
  8395. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8396. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8397. msm_routing_put_voice_mixer),
  8398. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8399. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8400. msm_routing_put_voice_mixer),
  8401. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8402. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8403. msm_routing_put_voice_mixer),
  8404. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8405. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8406. msm_routing_put_voice_mixer),
  8407. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8408. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8409. msm_routing_put_voice_mixer),
  8410. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8412. msm_routing_put_voice_mixer),
  8413. };
  8414. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8415. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8416. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8417. msm_routing_put_port_mixer),
  8418. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8419. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8420. msm_routing_put_port_mixer),
  8421. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8422. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8423. msm_routing_put_port_mixer),
  8424. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8425. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8426. msm_routing_put_port_mixer),
  8427. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8428. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8429. msm_routing_put_port_mixer),
  8430. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8431. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8432. msm_routing_put_port_mixer),
  8433. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8434. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8435. msm_routing_put_port_mixer),
  8436. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8437. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8438. msm_routing_put_port_mixer),
  8439. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8440. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8441. msm_routing_put_port_mixer),
  8442. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8443. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8444. msm_routing_put_port_mixer),
  8445. };
  8446. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8447. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8448. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8449. msm_routing_put_port_mixer),
  8450. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8451. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8452. msm_routing_put_port_mixer),
  8453. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8455. msm_routing_put_port_mixer),
  8456. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8457. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8458. msm_routing_put_port_mixer),
  8459. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8460. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8461. msm_routing_put_port_mixer),
  8462. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8463. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8464. msm_routing_put_port_mixer),
  8465. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8466. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8467. msm_routing_put_port_mixer),
  8468. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8469. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8470. msm_routing_put_port_mixer),
  8471. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8472. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8473. msm_routing_put_port_mixer),
  8474. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8475. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8476. msm_routing_put_port_mixer),
  8477. };
  8478. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8479. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8480. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8481. msm_routing_put_port_mixer),
  8482. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8483. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8484. msm_routing_put_port_mixer),
  8485. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8486. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8487. msm_routing_put_port_mixer),
  8488. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8489. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8490. msm_routing_put_port_mixer),
  8491. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8492. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8493. msm_routing_put_port_mixer),
  8494. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8495. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8496. msm_routing_put_port_mixer),
  8497. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8498. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8499. msm_routing_put_port_mixer),
  8500. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8501. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8502. msm_routing_put_port_mixer),
  8503. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8504. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8505. msm_routing_put_port_mixer),
  8506. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8507. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8508. msm_routing_put_port_mixer),
  8509. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8510. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8511. msm_routing_put_port_mixer),
  8512. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8513. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8514. msm_routing_put_port_mixer),
  8515. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8517. msm_routing_put_port_mixer),
  8518. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8520. msm_routing_put_port_mixer),
  8521. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8523. msm_routing_put_port_mixer),
  8524. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8525. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8526. msm_routing_put_port_mixer),
  8527. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8528. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8529. msm_routing_put_port_mixer),
  8530. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8531. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8532. msm_routing_put_port_mixer),
  8533. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8535. msm_routing_put_port_mixer),
  8536. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8537. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8538. msm_routing_put_port_mixer),
  8539. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8540. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8541. msm_routing_put_port_mixer),
  8542. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8543. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8544. msm_routing_put_port_mixer),
  8545. };
  8546. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8547. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8548. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8549. msm_routing_put_port_mixer),
  8550. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8552. msm_routing_put_port_mixer),
  8553. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8554. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8555. msm_routing_put_port_mixer),
  8556. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8557. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8558. msm_routing_put_port_mixer),
  8559. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8560. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8561. msm_routing_put_port_mixer),
  8562. };
  8563. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8564. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8565. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8566. msm_routing_put_port_mixer),
  8567. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8568. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8569. msm_routing_put_port_mixer),
  8570. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8571. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8572. msm_routing_put_port_mixer),
  8573. };
  8574. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8575. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8576. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8577. msm_routing_put_port_mixer),
  8578. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8579. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8580. msm_routing_put_port_mixer),
  8581. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8582. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8583. msm_routing_put_port_mixer),
  8584. };
  8585. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8586. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8587. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8588. msm_routing_put_port_mixer),
  8589. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8590. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8591. msm_routing_put_port_mixer),
  8592. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8593. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8594. msm_routing_put_port_mixer),
  8595. };
  8596. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8597. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8598. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8599. msm_routing_put_port_mixer),
  8600. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8601. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8602. msm_routing_put_port_mixer),
  8603. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8604. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8605. msm_routing_put_port_mixer),
  8606. };
  8607. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8608. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8609. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8610. msm_routing_put_port_mixer),
  8611. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8612. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8613. msm_routing_put_port_mixer),
  8614. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8615. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8616. msm_routing_put_port_mixer),
  8617. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8618. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8619. msm_routing_put_port_mixer),
  8620. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8621. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8622. msm_routing_put_port_mixer),
  8623. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8624. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8625. msm_routing_put_port_mixer),
  8626. };
  8627. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8628. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8629. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8630. msm_routing_put_port_mixer),
  8631. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8632. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8633. msm_routing_put_port_mixer),
  8634. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8635. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8636. msm_routing_put_port_mixer),
  8637. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8638. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8639. msm_routing_put_port_mixer),
  8640. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8641. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8642. msm_routing_put_port_mixer),
  8643. };
  8644. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8645. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8646. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8647. msm_routing_put_port_mixer),
  8648. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8649. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8650. msm_routing_put_port_mixer),
  8651. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8652. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8653. msm_routing_put_port_mixer),
  8654. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8655. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8656. msm_routing_put_port_mixer),
  8657. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8658. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8659. msm_routing_put_port_mixer),
  8660. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8661. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8662. msm_routing_put_port_mixer),
  8663. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8665. msm_routing_put_port_mixer),
  8666. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8667. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8668. msm_routing_put_port_mixer),
  8669. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8671. msm_routing_put_port_mixer),
  8672. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8673. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8674. msm_routing_put_port_mixer),
  8675. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8676. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8677. msm_routing_put_port_mixer),
  8678. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8679. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8680. msm_routing_put_port_mixer),
  8681. };
  8682. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8683. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8684. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8685. msm_routing_put_port_mixer),
  8686. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8687. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. };
  8690. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8691. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8692. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8693. msm_routing_put_port_mixer),
  8694. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8695. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8696. msm_routing_put_port_mixer),
  8697. };
  8698. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8699. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8700. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8701. msm_routing_put_port_mixer),
  8702. };
  8703. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8704. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8705. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8706. msm_routing_put_port_mixer),
  8707. };
  8708. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8709. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8710. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8711. msm_routing_put_port_mixer),
  8712. };
  8713. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8714. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8715. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8716. msm_routing_put_port_mixer),
  8717. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8718. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8719. msm_routing_put_port_mixer),
  8720. };
  8721. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8722. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8723. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8724. msm_routing_put_port_mixer),
  8725. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8726. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8727. msm_routing_put_port_mixer),
  8728. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8730. msm_routing_put_port_mixer),
  8731. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8732. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8733. msm_routing_put_port_mixer),
  8734. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8735. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8736. msm_routing_put_port_mixer),
  8737. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8738. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8739. msm_routing_put_port_mixer),
  8740. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8741. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8742. msm_routing_put_port_mixer),
  8743. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8744. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8745. msm_routing_put_port_mixer),
  8746. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8747. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8748. msm_routing_put_port_mixer),
  8749. };
  8750. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8751. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8752. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8753. msm_routing_put_port_mixer),
  8754. };
  8755. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8756. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8757. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8760. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8761. msm_routing_put_port_mixer),
  8762. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8763. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8764. msm_routing_put_port_mixer),
  8765. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8766. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8767. msm_routing_put_port_mixer),
  8768. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8769. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8770. msm_routing_put_port_mixer),
  8771. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8772. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8773. msm_routing_put_port_mixer),
  8774. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8775. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8776. msm_routing_put_port_mixer),
  8777. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8778. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8779. msm_routing_put_port_mixer),
  8780. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8781. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8782. msm_routing_put_port_mixer),
  8783. };
  8784. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8785. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8786. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8787. msm_routing_put_port_mixer),
  8788. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8789. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8790. msm_routing_put_port_mixer),
  8791. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8792. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8793. msm_routing_put_port_mixer),
  8794. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8796. msm_routing_put_port_mixer),
  8797. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8798. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8799. msm_routing_put_port_mixer),
  8800. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8801. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8802. msm_routing_put_port_mixer),
  8803. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8804. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8805. msm_routing_put_port_mixer),
  8806. };
  8807. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8808. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8809. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8810. msm_routing_get_port_mixer,
  8811. msm_routing_put_port_mixer),
  8812. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8813. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8814. msm_routing_get_port_mixer,
  8815. msm_routing_put_port_mixer),
  8816. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8817. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8818. msm_routing_get_port_mixer,
  8819. msm_routing_put_port_mixer),
  8820. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8821. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8822. msm_routing_get_port_mixer,
  8823. msm_routing_put_port_mixer),
  8824. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8825. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8826. msm_routing_get_port_mixer,
  8827. msm_routing_put_port_mixer),
  8828. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8829. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8830. msm_routing_get_port_mixer,
  8831. msm_routing_put_port_mixer),
  8832. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8833. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8834. msm_routing_get_port_mixer,
  8835. msm_routing_put_port_mixer),
  8836. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8837. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8838. msm_routing_get_port_mixer,
  8839. msm_routing_put_port_mixer),
  8840. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8841. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8842. msm_routing_get_port_mixer,
  8843. msm_routing_put_port_mixer),
  8844. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8845. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8846. msm_routing_get_port_mixer,
  8847. msm_routing_put_port_mixer),
  8848. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8849. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8850. msm_routing_get_port_mixer,
  8851. msm_routing_put_port_mixer),
  8852. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8853. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8854. msm_routing_get_port_mixer,
  8855. msm_routing_put_port_mixer),
  8856. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8857. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8858. msm_routing_get_port_mixer,
  8859. msm_routing_put_port_mixer),
  8860. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8861. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8862. msm_routing_get_port_mixer,
  8863. msm_routing_put_port_mixer),
  8864. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8865. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8866. msm_routing_get_port_mixer,
  8867. msm_routing_put_port_mixer),
  8868. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8869. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8870. msm_routing_get_port_mixer,
  8871. msm_routing_put_port_mixer),
  8872. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8873. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8874. msm_routing_get_port_mixer,
  8875. msm_routing_put_port_mixer),
  8876. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8877. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8878. msm_routing_get_port_mixer,
  8879. msm_routing_put_port_mixer),
  8880. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8881. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8882. msm_routing_get_port_mixer,
  8883. msm_routing_put_port_mixer),
  8884. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8885. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8886. msm_routing_get_port_mixer,
  8887. msm_routing_put_port_mixer),
  8888. };
  8889. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8890. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8891. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8892. msm_routing_get_port_mixer,
  8893. msm_routing_put_port_mixer),
  8894. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8895. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8896. msm_routing_get_port_mixer,
  8897. msm_routing_put_port_mixer),
  8898. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8899. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8900. msm_routing_get_port_mixer,
  8901. msm_routing_put_port_mixer),
  8902. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8903. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8904. msm_routing_get_port_mixer,
  8905. msm_routing_put_port_mixer),
  8906. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8907. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8908. msm_routing_get_port_mixer,
  8909. msm_routing_put_port_mixer),
  8910. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8911. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8912. msm_routing_get_port_mixer,
  8913. msm_routing_put_port_mixer),
  8914. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8915. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8916. msm_routing_get_port_mixer,
  8917. msm_routing_put_port_mixer),
  8918. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8919. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8920. msm_routing_get_port_mixer,
  8921. msm_routing_put_port_mixer),
  8922. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8923. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8924. msm_routing_get_port_mixer,
  8925. msm_routing_put_port_mixer),
  8926. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8927. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8928. msm_routing_get_port_mixer,
  8929. msm_routing_put_port_mixer),
  8930. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8931. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8932. msm_routing_get_port_mixer,
  8933. msm_routing_put_port_mixer),
  8934. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8935. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8936. msm_routing_get_port_mixer,
  8937. msm_routing_put_port_mixer),
  8938. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8939. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8940. msm_routing_get_port_mixer,
  8941. msm_routing_put_port_mixer),
  8942. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8943. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8944. msm_routing_get_port_mixer,
  8945. msm_routing_put_port_mixer),
  8946. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8947. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8948. msm_routing_get_port_mixer,
  8949. msm_routing_put_port_mixer),
  8950. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8951. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8952. msm_routing_get_port_mixer,
  8953. msm_routing_put_port_mixer),
  8954. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8955. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8956. msm_routing_get_port_mixer,
  8957. msm_routing_put_port_mixer),
  8958. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8959. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8960. msm_routing_get_port_mixer,
  8961. msm_routing_put_port_mixer),
  8962. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8963. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8964. msm_routing_get_port_mixer,
  8965. msm_routing_put_port_mixer),
  8966. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8967. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8968. msm_routing_get_port_mixer,
  8969. msm_routing_put_port_mixer),
  8970. };
  8971. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8972. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8973. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8974. msm_routing_get_port_mixer,
  8975. msm_routing_put_port_mixer),
  8976. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8977. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8978. msm_routing_get_port_mixer,
  8979. msm_routing_put_port_mixer),
  8980. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8982. msm_routing_get_port_mixer,
  8983. msm_routing_put_port_mixer),
  8984. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8986. msm_routing_get_port_mixer,
  8987. msm_routing_put_port_mixer),
  8988. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8990. msm_routing_get_port_mixer,
  8991. msm_routing_put_port_mixer),
  8992. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8993. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8994. msm_routing_get_port_mixer,
  8995. msm_routing_put_port_mixer),
  8996. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8997. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8998. msm_routing_get_port_mixer,
  8999. msm_routing_put_port_mixer),
  9000. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9001. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9002. msm_routing_get_port_mixer,
  9003. msm_routing_put_port_mixer),
  9004. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9005. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9006. msm_routing_get_port_mixer,
  9007. msm_routing_put_port_mixer),
  9008. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9009. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9010. msm_routing_get_port_mixer,
  9011. msm_routing_put_port_mixer),
  9012. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9013. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9014. msm_routing_get_port_mixer,
  9015. msm_routing_put_port_mixer),
  9016. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9017. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9018. msm_routing_get_port_mixer,
  9019. msm_routing_put_port_mixer),
  9020. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9021. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9022. msm_routing_get_port_mixer,
  9023. msm_routing_put_port_mixer),
  9024. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9025. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9026. msm_routing_get_port_mixer,
  9027. msm_routing_put_port_mixer),
  9028. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9029. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9030. msm_routing_get_port_mixer,
  9031. msm_routing_put_port_mixer),
  9032. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9033. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9034. msm_routing_get_port_mixer,
  9035. msm_routing_put_port_mixer),
  9036. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9037. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9038. msm_routing_get_port_mixer,
  9039. msm_routing_put_port_mixer),
  9040. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9041. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9042. msm_routing_get_port_mixer,
  9043. msm_routing_put_port_mixer),
  9044. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9045. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9046. msm_routing_get_port_mixer,
  9047. msm_routing_put_port_mixer),
  9048. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9049. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9050. msm_routing_get_port_mixer,
  9051. msm_routing_put_port_mixer),
  9052. };
  9053. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  9054. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9055. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9056. msm_routing_get_port_mixer,
  9057. msm_routing_put_port_mixer),
  9058. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9059. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9060. msm_routing_get_port_mixer,
  9061. msm_routing_put_port_mixer),
  9062. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9063. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9064. msm_routing_get_port_mixer,
  9065. msm_routing_put_port_mixer),
  9066. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9067. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9068. msm_routing_get_port_mixer,
  9069. msm_routing_put_port_mixer),
  9070. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9071. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9072. msm_routing_get_port_mixer,
  9073. msm_routing_put_port_mixer),
  9074. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9075. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9076. msm_routing_get_port_mixer,
  9077. msm_routing_put_port_mixer),
  9078. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9079. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9080. msm_routing_get_port_mixer,
  9081. msm_routing_put_port_mixer),
  9082. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9083. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9084. msm_routing_get_port_mixer,
  9085. msm_routing_put_port_mixer),
  9086. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9087. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9088. msm_routing_get_port_mixer,
  9089. msm_routing_put_port_mixer),
  9090. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9091. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9092. msm_routing_get_port_mixer,
  9093. msm_routing_put_port_mixer),
  9094. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9095. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9096. msm_routing_get_port_mixer,
  9097. msm_routing_put_port_mixer),
  9098. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9099. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9100. msm_routing_get_port_mixer,
  9101. msm_routing_put_port_mixer),
  9102. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9103. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9104. msm_routing_get_port_mixer,
  9105. msm_routing_put_port_mixer),
  9106. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9107. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9108. msm_routing_get_port_mixer,
  9109. msm_routing_put_port_mixer),
  9110. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9111. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9112. msm_routing_get_port_mixer,
  9113. msm_routing_put_port_mixer),
  9114. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9115. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9116. msm_routing_get_port_mixer,
  9117. msm_routing_put_port_mixer),
  9118. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9119. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9120. msm_routing_get_port_mixer,
  9121. msm_routing_put_port_mixer),
  9122. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9123. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9124. msm_routing_get_port_mixer,
  9125. msm_routing_put_port_mixer),
  9126. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9127. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9128. msm_routing_get_port_mixer,
  9129. msm_routing_put_port_mixer),
  9130. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9131. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9132. msm_routing_get_port_mixer,
  9133. msm_routing_put_port_mixer),
  9134. };
  9135. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9136. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9137. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9138. msm_routing_get_port_mixer,
  9139. msm_routing_put_port_mixer),
  9140. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9141. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9142. msm_routing_get_port_mixer,
  9143. msm_routing_put_port_mixer),
  9144. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9145. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9146. msm_routing_get_port_mixer,
  9147. msm_routing_put_port_mixer),
  9148. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9149. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9150. msm_routing_get_port_mixer,
  9151. msm_routing_put_port_mixer),
  9152. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9154. msm_routing_get_port_mixer,
  9155. msm_routing_put_port_mixer),
  9156. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9157. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9158. msm_routing_get_port_mixer,
  9159. msm_routing_put_port_mixer),
  9160. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9161. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9162. msm_routing_get_port_mixer,
  9163. msm_routing_put_port_mixer),
  9164. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9165. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9166. msm_routing_get_port_mixer,
  9167. msm_routing_put_port_mixer),
  9168. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9169. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9170. msm_routing_get_port_mixer,
  9171. msm_routing_put_port_mixer),
  9172. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9173. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9174. msm_routing_get_port_mixer,
  9175. msm_routing_put_port_mixer),
  9176. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9177. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9178. msm_routing_get_port_mixer,
  9179. msm_routing_put_port_mixer),
  9180. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9181. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9182. msm_routing_get_port_mixer,
  9183. msm_routing_put_port_mixer),
  9184. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9185. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9186. msm_routing_get_port_mixer,
  9187. msm_routing_put_port_mixer),
  9188. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9189. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9190. msm_routing_get_port_mixer,
  9191. msm_routing_put_port_mixer),
  9192. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9193. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9194. msm_routing_get_port_mixer,
  9195. msm_routing_put_port_mixer),
  9196. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9197. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9198. msm_routing_get_port_mixer,
  9199. msm_routing_put_port_mixer),
  9200. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9201. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9202. msm_routing_get_port_mixer,
  9203. msm_routing_put_port_mixer),
  9204. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9205. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9206. msm_routing_get_port_mixer,
  9207. msm_routing_put_port_mixer),
  9208. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9209. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9210. msm_routing_get_port_mixer,
  9211. msm_routing_put_port_mixer),
  9212. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9213. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9214. msm_routing_get_port_mixer,
  9215. msm_routing_put_port_mixer),
  9216. };
  9217. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9218. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9219. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9220. msm_routing_get_port_mixer,
  9221. msm_routing_put_port_mixer),
  9222. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9223. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9224. msm_routing_get_port_mixer,
  9225. msm_routing_put_port_mixer),
  9226. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9227. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9228. msm_routing_get_port_mixer,
  9229. msm_routing_put_port_mixer),
  9230. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9231. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9232. msm_routing_get_port_mixer,
  9233. msm_routing_put_port_mixer),
  9234. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9236. msm_routing_get_port_mixer,
  9237. msm_routing_put_port_mixer),
  9238. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9240. msm_routing_get_port_mixer,
  9241. msm_routing_put_port_mixer),
  9242. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9243. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9244. msm_routing_get_port_mixer,
  9245. msm_routing_put_port_mixer),
  9246. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9247. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9248. msm_routing_get_port_mixer,
  9249. msm_routing_put_port_mixer),
  9250. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9251. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9252. msm_routing_get_port_mixer,
  9253. msm_routing_put_port_mixer),
  9254. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9255. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9256. msm_routing_get_port_mixer,
  9257. msm_routing_put_port_mixer),
  9258. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9259. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9260. msm_routing_get_port_mixer,
  9261. msm_routing_put_port_mixer),
  9262. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9263. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9264. msm_routing_get_port_mixer,
  9265. msm_routing_put_port_mixer),
  9266. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9267. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9268. msm_routing_get_port_mixer,
  9269. msm_routing_put_port_mixer),
  9270. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9271. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9272. msm_routing_get_port_mixer,
  9273. msm_routing_put_port_mixer),
  9274. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9275. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9276. msm_routing_get_port_mixer,
  9277. msm_routing_put_port_mixer),
  9278. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9279. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9280. msm_routing_get_port_mixer,
  9281. msm_routing_put_port_mixer),
  9282. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9283. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9284. msm_routing_get_port_mixer,
  9285. msm_routing_put_port_mixer),
  9286. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9287. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9288. msm_routing_get_port_mixer,
  9289. msm_routing_put_port_mixer),
  9290. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9291. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9292. msm_routing_get_port_mixer,
  9293. msm_routing_put_port_mixer),
  9294. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9295. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9296. msm_routing_get_port_mixer,
  9297. msm_routing_put_port_mixer),
  9298. };
  9299. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9300. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9301. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9302. msm_routing_get_port_mixer,
  9303. msm_routing_put_port_mixer),
  9304. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9305. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9306. msm_routing_get_port_mixer,
  9307. msm_routing_put_port_mixer),
  9308. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9309. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9310. msm_routing_get_port_mixer,
  9311. msm_routing_put_port_mixer),
  9312. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9313. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9314. msm_routing_get_port_mixer,
  9315. msm_routing_put_port_mixer),
  9316. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9317. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9318. msm_routing_get_port_mixer,
  9319. msm_routing_put_port_mixer),
  9320. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9321. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9322. msm_routing_get_port_mixer,
  9323. msm_routing_put_port_mixer),
  9324. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9325. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9326. msm_routing_get_port_mixer,
  9327. msm_routing_put_port_mixer),
  9328. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9329. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9330. msm_routing_get_port_mixer,
  9331. msm_routing_put_port_mixer),
  9332. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9333. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9334. msm_routing_get_port_mixer,
  9335. msm_routing_put_port_mixer),
  9336. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9337. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9338. msm_routing_get_port_mixer,
  9339. msm_routing_put_port_mixer),
  9340. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9341. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9342. msm_routing_get_port_mixer,
  9343. msm_routing_put_port_mixer),
  9344. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9345. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9346. msm_routing_get_port_mixer,
  9347. msm_routing_put_port_mixer),
  9348. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9349. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9350. msm_routing_get_port_mixer,
  9351. msm_routing_put_port_mixer),
  9352. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9353. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9354. msm_routing_get_port_mixer,
  9355. msm_routing_put_port_mixer),
  9356. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9357. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9358. msm_routing_get_port_mixer,
  9359. msm_routing_put_port_mixer),
  9360. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9361. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9362. msm_routing_get_port_mixer,
  9363. msm_routing_put_port_mixer),
  9364. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9365. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9366. msm_routing_get_port_mixer,
  9367. msm_routing_put_port_mixer),
  9368. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9369. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9370. msm_routing_get_port_mixer,
  9371. msm_routing_put_port_mixer),
  9372. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9373. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9374. msm_routing_get_port_mixer,
  9375. msm_routing_put_port_mixer),
  9376. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9377. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9378. msm_routing_get_port_mixer,
  9379. msm_routing_put_port_mixer),
  9380. };
  9381. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9382. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9384. msm_routing_get_port_mixer,
  9385. msm_routing_put_port_mixer),
  9386. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9387. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9388. msm_routing_get_port_mixer,
  9389. msm_routing_put_port_mixer),
  9390. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9392. msm_routing_get_port_mixer,
  9393. msm_routing_put_port_mixer),
  9394. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9395. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9396. msm_routing_get_port_mixer,
  9397. msm_routing_put_port_mixer),
  9398. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9399. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9400. msm_routing_get_port_mixer,
  9401. msm_routing_put_port_mixer),
  9402. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9403. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9404. msm_routing_get_port_mixer,
  9405. msm_routing_put_port_mixer),
  9406. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9407. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9408. msm_routing_get_port_mixer,
  9409. msm_routing_put_port_mixer),
  9410. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9411. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9412. msm_routing_get_port_mixer,
  9413. msm_routing_put_port_mixer),
  9414. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9415. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9416. msm_routing_get_port_mixer,
  9417. msm_routing_put_port_mixer),
  9418. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9419. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9420. msm_routing_get_port_mixer,
  9421. msm_routing_put_port_mixer),
  9422. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9423. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9424. msm_routing_get_port_mixer,
  9425. msm_routing_put_port_mixer),
  9426. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9427. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9428. msm_routing_get_port_mixer,
  9429. msm_routing_put_port_mixer),
  9430. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9431. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9432. msm_routing_get_port_mixer,
  9433. msm_routing_put_port_mixer),
  9434. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9435. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9436. msm_routing_get_port_mixer,
  9437. msm_routing_put_port_mixer),
  9438. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9439. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9440. msm_routing_get_port_mixer,
  9441. msm_routing_put_port_mixer),
  9442. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9443. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9444. msm_routing_get_port_mixer,
  9445. msm_routing_put_port_mixer),
  9446. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9447. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9448. msm_routing_get_port_mixer,
  9449. msm_routing_put_port_mixer),
  9450. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9451. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9452. msm_routing_get_port_mixer,
  9453. msm_routing_put_port_mixer),
  9454. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9455. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9456. msm_routing_get_port_mixer,
  9457. msm_routing_put_port_mixer),
  9458. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9459. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9460. msm_routing_get_port_mixer,
  9461. msm_routing_put_port_mixer),
  9462. };
  9463. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9464. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9465. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9466. msm_routing_get_port_mixer,
  9467. msm_routing_put_port_mixer),
  9468. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9469. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9470. msm_routing_get_port_mixer,
  9471. msm_routing_put_port_mixer),
  9472. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9473. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9474. msm_routing_get_port_mixer,
  9475. msm_routing_put_port_mixer),
  9476. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9477. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9478. msm_routing_get_port_mixer,
  9479. msm_routing_put_port_mixer),
  9480. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9481. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9482. msm_routing_get_port_mixer,
  9483. msm_routing_put_port_mixer),
  9484. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9485. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9486. msm_routing_get_port_mixer,
  9487. msm_routing_put_port_mixer),
  9488. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9490. msm_routing_get_port_mixer,
  9491. msm_routing_put_port_mixer),
  9492. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9494. msm_routing_get_port_mixer,
  9495. msm_routing_put_port_mixer),
  9496. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9497. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9498. msm_routing_get_port_mixer,
  9499. msm_routing_put_port_mixer),
  9500. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9501. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9502. msm_routing_get_port_mixer,
  9503. msm_routing_put_port_mixer),
  9504. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9505. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9506. msm_routing_get_port_mixer,
  9507. msm_routing_put_port_mixer),
  9508. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9509. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9510. msm_routing_get_port_mixer,
  9511. msm_routing_put_port_mixer),
  9512. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9513. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9514. msm_routing_get_port_mixer,
  9515. msm_routing_put_port_mixer),
  9516. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9517. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9518. msm_routing_get_port_mixer,
  9519. msm_routing_put_port_mixer),
  9520. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9521. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9522. msm_routing_get_port_mixer,
  9523. msm_routing_put_port_mixer),
  9524. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9525. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9526. msm_routing_get_port_mixer,
  9527. msm_routing_put_port_mixer),
  9528. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9529. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9530. msm_routing_get_port_mixer,
  9531. msm_routing_put_port_mixer),
  9532. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9533. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9534. msm_routing_get_port_mixer,
  9535. msm_routing_put_port_mixer),
  9536. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9537. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9538. msm_routing_get_port_mixer,
  9539. msm_routing_put_port_mixer),
  9540. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9541. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9542. msm_routing_get_port_mixer,
  9543. msm_routing_put_port_mixer),
  9544. };
  9545. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9546. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9547. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9548. msm_routing_get_port_mixer,
  9549. msm_routing_put_port_mixer),
  9550. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9551. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9552. msm_routing_get_port_mixer,
  9553. msm_routing_put_port_mixer),
  9554. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9555. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9556. msm_routing_get_port_mixer,
  9557. msm_routing_put_port_mixer),
  9558. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9559. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9560. msm_routing_get_port_mixer,
  9561. msm_routing_put_port_mixer),
  9562. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9563. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9564. msm_routing_get_port_mixer,
  9565. msm_routing_put_port_mixer),
  9566. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9567. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9568. msm_routing_get_port_mixer,
  9569. msm_routing_put_port_mixer),
  9570. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9571. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9572. msm_routing_get_port_mixer,
  9573. msm_routing_put_port_mixer),
  9574. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9575. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9576. msm_routing_get_port_mixer,
  9577. msm_routing_put_port_mixer),
  9578. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9579. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9580. msm_routing_get_port_mixer,
  9581. msm_routing_put_port_mixer),
  9582. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9583. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9584. msm_routing_get_port_mixer,
  9585. msm_routing_put_port_mixer),
  9586. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9587. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9588. msm_routing_get_port_mixer,
  9589. msm_routing_put_port_mixer),
  9590. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9591. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9592. msm_routing_get_port_mixer,
  9593. msm_routing_put_port_mixer),
  9594. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9595. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9596. msm_routing_get_port_mixer,
  9597. msm_routing_put_port_mixer),
  9598. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9599. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9600. msm_routing_get_port_mixer,
  9601. msm_routing_put_port_mixer),
  9602. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9603. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9604. msm_routing_get_port_mixer,
  9605. msm_routing_put_port_mixer),
  9606. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9607. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9608. msm_routing_get_port_mixer,
  9609. msm_routing_put_port_mixer),
  9610. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9611. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9612. msm_routing_get_port_mixer,
  9613. msm_routing_put_port_mixer),
  9614. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9615. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9616. msm_routing_get_port_mixer,
  9617. msm_routing_put_port_mixer),
  9618. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9619. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9620. msm_routing_get_port_mixer,
  9621. msm_routing_put_port_mixer),
  9622. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9623. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9624. msm_routing_get_port_mixer,
  9625. msm_routing_put_port_mixer),
  9626. };
  9627. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9628. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9629. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9630. msm_routing_get_port_mixer,
  9631. msm_routing_put_port_mixer),
  9632. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9633. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9634. msm_routing_get_port_mixer,
  9635. msm_routing_put_port_mixer),
  9636. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9637. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9638. msm_routing_get_port_mixer,
  9639. msm_routing_put_port_mixer),
  9640. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9641. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9642. msm_routing_get_port_mixer,
  9643. msm_routing_put_port_mixer),
  9644. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9645. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9646. msm_routing_get_port_mixer,
  9647. msm_routing_put_port_mixer),
  9648. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9649. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9650. msm_routing_get_port_mixer,
  9651. msm_routing_put_port_mixer),
  9652. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9653. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9654. msm_routing_get_port_mixer,
  9655. msm_routing_put_port_mixer),
  9656. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9658. msm_routing_get_port_mixer,
  9659. msm_routing_put_port_mixer),
  9660. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9661. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9662. msm_routing_get_port_mixer,
  9663. msm_routing_put_port_mixer),
  9664. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9665. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9666. msm_routing_get_port_mixer,
  9667. msm_routing_put_port_mixer),
  9668. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9669. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9670. msm_routing_get_port_mixer,
  9671. msm_routing_put_port_mixer),
  9672. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9673. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9674. msm_routing_get_port_mixer,
  9675. msm_routing_put_port_mixer),
  9676. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9677. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9678. msm_routing_get_port_mixer,
  9679. msm_routing_put_port_mixer),
  9680. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9681. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9682. msm_routing_get_port_mixer,
  9683. msm_routing_put_port_mixer),
  9684. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9685. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9686. msm_routing_get_port_mixer,
  9687. msm_routing_put_port_mixer),
  9688. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9689. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9690. msm_routing_get_port_mixer,
  9691. msm_routing_put_port_mixer),
  9692. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9693. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9694. msm_routing_get_port_mixer,
  9695. msm_routing_put_port_mixer),
  9696. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9697. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9698. msm_routing_get_port_mixer,
  9699. msm_routing_put_port_mixer),
  9700. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9701. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9702. msm_routing_get_port_mixer,
  9703. msm_routing_put_port_mixer),
  9704. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9705. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9706. msm_routing_get_port_mixer,
  9707. msm_routing_put_port_mixer),
  9708. };
  9709. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9710. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9711. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9712. msm_routing_get_port_mixer,
  9713. msm_routing_put_port_mixer),
  9714. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9715. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9716. msm_routing_get_port_mixer,
  9717. msm_routing_put_port_mixer),
  9718. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9719. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9720. msm_routing_get_port_mixer,
  9721. msm_routing_put_port_mixer),
  9722. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9723. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9724. msm_routing_get_port_mixer,
  9725. msm_routing_put_port_mixer),
  9726. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9727. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9728. msm_routing_get_port_mixer,
  9729. msm_routing_put_port_mixer),
  9730. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9731. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9732. msm_routing_get_port_mixer,
  9733. msm_routing_put_port_mixer),
  9734. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9735. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9736. msm_routing_get_port_mixer,
  9737. msm_routing_put_port_mixer),
  9738. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9739. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9740. msm_routing_get_port_mixer,
  9741. msm_routing_put_port_mixer),
  9742. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9743. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9744. msm_routing_get_port_mixer,
  9745. msm_routing_put_port_mixer),
  9746. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9747. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9748. msm_routing_get_port_mixer,
  9749. msm_routing_put_port_mixer),
  9750. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9751. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9752. msm_routing_get_port_mixer,
  9753. msm_routing_put_port_mixer),
  9754. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9755. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9756. msm_routing_get_port_mixer,
  9757. msm_routing_put_port_mixer),
  9758. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9759. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9760. msm_routing_get_port_mixer,
  9761. msm_routing_put_port_mixer),
  9762. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9763. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9764. msm_routing_get_port_mixer,
  9765. msm_routing_put_port_mixer),
  9766. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9767. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9768. msm_routing_get_port_mixer,
  9769. msm_routing_put_port_mixer),
  9770. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9771. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9772. msm_routing_get_port_mixer,
  9773. msm_routing_put_port_mixer),
  9774. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9775. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9776. msm_routing_get_port_mixer,
  9777. msm_routing_put_port_mixer),
  9778. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9779. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9780. msm_routing_get_port_mixer,
  9781. msm_routing_put_port_mixer),
  9782. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9783. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9784. msm_routing_get_port_mixer,
  9785. msm_routing_put_port_mixer),
  9786. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9787. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9788. msm_routing_get_port_mixer,
  9789. msm_routing_put_port_mixer),
  9790. };
  9791. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9792. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9793. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9794. msm_routing_get_port_mixer,
  9795. msm_routing_put_port_mixer),
  9796. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9797. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9798. msm_routing_get_port_mixer,
  9799. msm_routing_put_port_mixer),
  9800. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9801. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9802. msm_routing_get_port_mixer,
  9803. msm_routing_put_port_mixer),
  9804. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9805. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9806. msm_routing_get_port_mixer,
  9807. msm_routing_put_port_mixer),
  9808. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9809. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9810. msm_routing_get_port_mixer,
  9811. msm_routing_put_port_mixer),
  9812. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9813. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9814. msm_routing_get_port_mixer,
  9815. msm_routing_put_port_mixer),
  9816. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9817. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9818. msm_routing_get_port_mixer,
  9819. msm_routing_put_port_mixer),
  9820. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9821. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9822. msm_routing_get_port_mixer,
  9823. msm_routing_put_port_mixer),
  9824. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9825. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9826. msm_routing_get_port_mixer,
  9827. msm_routing_put_port_mixer),
  9828. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9829. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9830. msm_routing_get_port_mixer,
  9831. msm_routing_put_port_mixer),
  9832. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9833. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9834. msm_routing_get_port_mixer,
  9835. msm_routing_put_port_mixer),
  9836. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9837. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9838. msm_routing_get_port_mixer,
  9839. msm_routing_put_port_mixer),
  9840. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9841. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9842. msm_routing_get_port_mixer,
  9843. msm_routing_put_port_mixer),
  9844. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9845. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9846. msm_routing_get_port_mixer,
  9847. msm_routing_put_port_mixer),
  9848. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9849. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9850. msm_routing_get_port_mixer,
  9851. msm_routing_put_port_mixer),
  9852. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9853. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9854. msm_routing_get_port_mixer,
  9855. msm_routing_put_port_mixer),
  9856. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9857. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9858. msm_routing_get_port_mixer,
  9859. msm_routing_put_port_mixer),
  9860. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9861. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9862. msm_routing_get_port_mixer,
  9863. msm_routing_put_port_mixer),
  9864. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9865. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9866. msm_routing_get_port_mixer,
  9867. msm_routing_put_port_mixer),
  9868. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9869. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9870. msm_routing_get_port_mixer,
  9871. msm_routing_put_port_mixer),
  9872. };
  9873. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9874. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9875. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9876. msm_routing_get_port_mixer,
  9877. msm_routing_put_port_mixer),
  9878. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9879. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9880. msm_routing_get_port_mixer,
  9881. msm_routing_put_port_mixer),
  9882. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9883. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9884. msm_routing_get_port_mixer,
  9885. msm_routing_put_port_mixer),
  9886. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9887. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9888. msm_routing_get_port_mixer,
  9889. msm_routing_put_port_mixer),
  9890. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9891. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9892. msm_routing_get_port_mixer,
  9893. msm_routing_put_port_mixer),
  9894. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9895. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9896. msm_routing_get_port_mixer,
  9897. msm_routing_put_port_mixer),
  9898. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9899. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9900. msm_routing_get_port_mixer,
  9901. msm_routing_put_port_mixer),
  9902. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9903. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9904. msm_routing_get_port_mixer,
  9905. msm_routing_put_port_mixer),
  9906. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9907. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9908. msm_routing_get_port_mixer,
  9909. msm_routing_put_port_mixer),
  9910. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9911. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9912. msm_routing_get_port_mixer,
  9913. msm_routing_put_port_mixer),
  9914. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9915. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9916. msm_routing_get_port_mixer,
  9917. msm_routing_put_port_mixer),
  9918. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9919. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9920. msm_routing_get_port_mixer,
  9921. msm_routing_put_port_mixer),
  9922. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9923. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9924. msm_routing_get_port_mixer,
  9925. msm_routing_put_port_mixer),
  9926. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9927. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9928. msm_routing_get_port_mixer,
  9929. msm_routing_put_port_mixer),
  9930. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9931. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9932. msm_routing_get_port_mixer,
  9933. msm_routing_put_port_mixer),
  9934. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9935. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9936. msm_routing_get_port_mixer,
  9937. msm_routing_put_port_mixer),
  9938. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9939. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9940. msm_routing_get_port_mixer,
  9941. msm_routing_put_port_mixer),
  9942. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9943. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9944. msm_routing_get_port_mixer,
  9945. msm_routing_put_port_mixer),
  9946. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9947. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9948. msm_routing_get_port_mixer,
  9949. msm_routing_put_port_mixer),
  9950. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9951. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9952. msm_routing_get_port_mixer,
  9953. msm_routing_put_port_mixer),
  9954. };
  9955. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9956. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9957. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9958. msm_routing_get_port_mixer,
  9959. msm_routing_put_port_mixer),
  9960. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9961. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9962. msm_routing_get_port_mixer,
  9963. msm_routing_put_port_mixer),
  9964. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9965. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9966. msm_routing_get_port_mixer,
  9967. msm_routing_put_port_mixer),
  9968. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9969. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9970. msm_routing_get_port_mixer,
  9971. msm_routing_put_port_mixer),
  9972. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9973. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9974. msm_routing_get_port_mixer,
  9975. msm_routing_put_port_mixer),
  9976. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9977. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9978. msm_routing_get_port_mixer,
  9979. msm_routing_put_port_mixer),
  9980. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9981. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9982. msm_routing_get_port_mixer,
  9983. msm_routing_put_port_mixer),
  9984. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9985. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9986. msm_routing_get_port_mixer,
  9987. msm_routing_put_port_mixer),
  9988. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9989. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9990. msm_routing_get_port_mixer,
  9991. msm_routing_put_port_mixer),
  9992. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9993. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9994. msm_routing_get_port_mixer,
  9995. msm_routing_put_port_mixer),
  9996. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9997. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9998. msm_routing_get_port_mixer,
  9999. msm_routing_put_port_mixer),
  10000. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10001. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10002. msm_routing_get_port_mixer,
  10003. msm_routing_put_port_mixer),
  10004. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10005. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10006. msm_routing_get_port_mixer,
  10007. msm_routing_put_port_mixer),
  10008. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10009. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10010. msm_routing_get_port_mixer,
  10011. msm_routing_put_port_mixer),
  10012. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10013. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10014. msm_routing_get_port_mixer,
  10015. msm_routing_put_port_mixer),
  10016. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10017. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10018. msm_routing_get_port_mixer,
  10019. msm_routing_put_port_mixer),
  10020. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10021. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10022. msm_routing_get_port_mixer,
  10023. msm_routing_put_port_mixer),
  10024. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10025. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10026. msm_routing_get_port_mixer,
  10027. msm_routing_put_port_mixer),
  10028. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10029. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10030. msm_routing_get_port_mixer,
  10031. msm_routing_put_port_mixer),
  10032. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10033. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10034. msm_routing_get_port_mixer,
  10035. msm_routing_put_port_mixer),
  10036. };
  10037. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  10038. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10039. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10040. msm_routing_get_port_mixer,
  10041. msm_routing_put_port_mixer),
  10042. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10043. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10044. msm_routing_get_port_mixer,
  10045. msm_routing_put_port_mixer),
  10046. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10047. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10048. msm_routing_get_port_mixer,
  10049. msm_routing_put_port_mixer),
  10050. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10051. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10052. msm_routing_get_port_mixer,
  10053. msm_routing_put_port_mixer),
  10054. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10055. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10056. msm_routing_get_port_mixer,
  10057. msm_routing_put_port_mixer),
  10058. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10059. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10060. msm_routing_get_port_mixer,
  10061. msm_routing_put_port_mixer),
  10062. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10063. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10064. msm_routing_get_port_mixer,
  10065. msm_routing_put_port_mixer),
  10066. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10067. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10068. msm_routing_get_port_mixer,
  10069. msm_routing_put_port_mixer),
  10070. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10071. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10072. msm_routing_get_port_mixer,
  10073. msm_routing_put_port_mixer),
  10074. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10075. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10076. msm_routing_get_port_mixer,
  10077. msm_routing_put_port_mixer),
  10078. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10079. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10080. msm_routing_get_port_mixer,
  10081. msm_routing_put_port_mixer),
  10082. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10083. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10084. msm_routing_get_port_mixer,
  10085. msm_routing_put_port_mixer),
  10086. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10087. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10088. msm_routing_get_port_mixer,
  10089. msm_routing_put_port_mixer),
  10090. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10091. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10092. msm_routing_get_port_mixer,
  10093. msm_routing_put_port_mixer),
  10094. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10095. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10096. msm_routing_get_port_mixer,
  10097. msm_routing_put_port_mixer),
  10098. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10099. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10100. msm_routing_get_port_mixer,
  10101. msm_routing_put_port_mixer),
  10102. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10103. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10104. msm_routing_get_port_mixer,
  10105. msm_routing_put_port_mixer),
  10106. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10107. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10108. msm_routing_get_port_mixer,
  10109. msm_routing_put_port_mixer),
  10110. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10111. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10112. msm_routing_get_port_mixer,
  10113. msm_routing_put_port_mixer),
  10114. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10115. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10116. msm_routing_get_port_mixer,
  10117. msm_routing_put_port_mixer),
  10118. };
  10119. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10120. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10121. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10122. msm_routing_get_port_mixer,
  10123. msm_routing_put_port_mixer),
  10124. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10125. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10126. msm_routing_get_port_mixer,
  10127. msm_routing_put_port_mixer),
  10128. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10129. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10130. msm_routing_get_port_mixer,
  10131. msm_routing_put_port_mixer),
  10132. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10133. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10134. msm_routing_get_port_mixer,
  10135. msm_routing_put_port_mixer),
  10136. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10137. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10138. msm_routing_get_port_mixer,
  10139. msm_routing_put_port_mixer),
  10140. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10141. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10142. msm_routing_get_port_mixer,
  10143. msm_routing_put_port_mixer),
  10144. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10145. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10146. msm_routing_get_port_mixer,
  10147. msm_routing_put_port_mixer),
  10148. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10149. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10150. msm_routing_get_port_mixer,
  10151. msm_routing_put_port_mixer),
  10152. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10153. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10154. msm_routing_get_port_mixer,
  10155. msm_routing_put_port_mixer),
  10156. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10157. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10158. msm_routing_get_port_mixer,
  10159. msm_routing_put_port_mixer),
  10160. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10161. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10162. msm_routing_get_port_mixer,
  10163. msm_routing_put_port_mixer),
  10164. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10165. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10166. msm_routing_get_port_mixer,
  10167. msm_routing_put_port_mixer),
  10168. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10170. msm_routing_get_port_mixer,
  10171. msm_routing_put_port_mixer),
  10172. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10173. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10174. msm_routing_get_port_mixer,
  10175. msm_routing_put_port_mixer),
  10176. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10177. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10178. msm_routing_get_port_mixer,
  10179. msm_routing_put_port_mixer),
  10180. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10181. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10182. msm_routing_get_port_mixer,
  10183. msm_routing_put_port_mixer),
  10184. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10185. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10186. msm_routing_get_port_mixer,
  10187. msm_routing_put_port_mixer),
  10188. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10189. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10190. msm_routing_get_port_mixer,
  10191. msm_routing_put_port_mixer),
  10192. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10193. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10194. msm_routing_get_port_mixer,
  10195. msm_routing_put_port_mixer),
  10196. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10197. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10198. msm_routing_get_port_mixer,
  10199. msm_routing_put_port_mixer),
  10200. };
  10201. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10202. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10203. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10204. msm_routing_get_port_mixer,
  10205. msm_routing_put_port_mixer),
  10206. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10207. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10208. msm_routing_get_port_mixer,
  10209. msm_routing_put_port_mixer),
  10210. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10211. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10212. msm_routing_get_port_mixer,
  10213. msm_routing_put_port_mixer),
  10214. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10216. msm_routing_get_port_mixer,
  10217. msm_routing_put_port_mixer),
  10218. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10219. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10220. msm_routing_get_port_mixer,
  10221. msm_routing_put_port_mixer),
  10222. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10223. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10224. msm_routing_get_port_mixer,
  10225. msm_routing_put_port_mixer),
  10226. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10227. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10228. msm_routing_get_port_mixer,
  10229. msm_routing_put_port_mixer),
  10230. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10231. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10232. msm_routing_get_port_mixer,
  10233. msm_routing_put_port_mixer),
  10234. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10235. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10236. msm_routing_get_port_mixer,
  10237. msm_routing_put_port_mixer),
  10238. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10239. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10240. msm_routing_get_port_mixer,
  10241. msm_routing_put_port_mixer),
  10242. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10243. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10244. msm_routing_get_port_mixer,
  10245. msm_routing_put_port_mixer),
  10246. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10247. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10248. msm_routing_get_port_mixer,
  10249. msm_routing_put_port_mixer),
  10250. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10251. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10252. msm_routing_get_port_mixer,
  10253. msm_routing_put_port_mixer),
  10254. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10255. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10256. msm_routing_get_port_mixer,
  10257. msm_routing_put_port_mixer),
  10258. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10259. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10260. msm_routing_get_port_mixer,
  10261. msm_routing_put_port_mixer),
  10262. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10263. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10264. msm_routing_get_port_mixer,
  10265. msm_routing_put_port_mixer),
  10266. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10267. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10268. msm_routing_get_port_mixer,
  10269. msm_routing_put_port_mixer),
  10270. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10271. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10272. msm_routing_get_port_mixer,
  10273. msm_routing_put_port_mixer),
  10274. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10275. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10276. msm_routing_get_port_mixer,
  10277. msm_routing_put_port_mixer),
  10278. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10280. msm_routing_get_port_mixer,
  10281. msm_routing_put_port_mixer),
  10282. };
  10283. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10284. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10285. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10286. msm_routing_get_port_mixer,
  10287. msm_routing_put_port_mixer),
  10288. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10289. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10290. msm_routing_get_port_mixer,
  10291. msm_routing_put_port_mixer),
  10292. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10293. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10294. msm_routing_get_port_mixer,
  10295. msm_routing_put_port_mixer),
  10296. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10297. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10298. msm_routing_get_port_mixer,
  10299. msm_routing_put_port_mixer),
  10300. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10301. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10302. msm_routing_get_port_mixer,
  10303. msm_routing_put_port_mixer),
  10304. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10305. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10306. msm_routing_get_port_mixer,
  10307. msm_routing_put_port_mixer),
  10308. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10309. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10310. msm_routing_get_port_mixer,
  10311. msm_routing_put_port_mixer),
  10312. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10313. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10314. msm_routing_get_port_mixer,
  10315. msm_routing_put_port_mixer),
  10316. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10317. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10318. msm_routing_get_port_mixer,
  10319. msm_routing_put_port_mixer),
  10320. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10321. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10322. msm_routing_get_port_mixer,
  10323. msm_routing_put_port_mixer),
  10324. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10325. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10326. msm_routing_get_port_mixer,
  10327. msm_routing_put_port_mixer),
  10328. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10329. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10330. msm_routing_get_port_mixer,
  10331. msm_routing_put_port_mixer),
  10332. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10333. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10334. msm_routing_get_port_mixer,
  10335. msm_routing_put_port_mixer),
  10336. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10337. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10338. msm_routing_get_port_mixer,
  10339. msm_routing_put_port_mixer),
  10340. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10341. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10342. msm_routing_get_port_mixer,
  10343. msm_routing_put_port_mixer),
  10344. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10345. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10346. msm_routing_get_port_mixer,
  10347. msm_routing_put_port_mixer),
  10348. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10349. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10350. msm_routing_get_port_mixer,
  10351. msm_routing_put_port_mixer),
  10352. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10353. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10354. msm_routing_get_port_mixer,
  10355. msm_routing_put_port_mixer),
  10356. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10357. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10358. msm_routing_get_port_mixer,
  10359. msm_routing_put_port_mixer),
  10360. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10361. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10362. msm_routing_get_port_mixer,
  10363. msm_routing_put_port_mixer),
  10364. };
  10365. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10366. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10367. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10368. msm_routing_get_port_mixer,
  10369. msm_routing_put_port_mixer),
  10370. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10372. msm_routing_get_port_mixer,
  10373. msm_routing_put_port_mixer),
  10374. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10375. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10376. msm_routing_get_port_mixer,
  10377. msm_routing_put_port_mixer),
  10378. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10379. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10380. msm_routing_get_port_mixer,
  10381. msm_routing_put_port_mixer),
  10382. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10383. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10384. msm_routing_get_port_mixer,
  10385. msm_routing_put_port_mixer),
  10386. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10387. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10388. msm_routing_get_port_mixer,
  10389. msm_routing_put_port_mixer),
  10390. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10391. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10392. msm_routing_get_port_mixer,
  10393. msm_routing_put_port_mixer),
  10394. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10395. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10396. msm_routing_get_port_mixer,
  10397. msm_routing_put_port_mixer),
  10398. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10399. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10400. msm_routing_get_port_mixer,
  10401. msm_routing_put_port_mixer),
  10402. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10403. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10404. msm_routing_get_port_mixer,
  10405. msm_routing_put_port_mixer),
  10406. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10407. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10408. msm_routing_get_port_mixer,
  10409. msm_routing_put_port_mixer),
  10410. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10411. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10412. msm_routing_get_port_mixer,
  10413. msm_routing_put_port_mixer),
  10414. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10415. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10416. msm_routing_get_port_mixer,
  10417. msm_routing_put_port_mixer),
  10418. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10420. msm_routing_get_port_mixer,
  10421. msm_routing_put_port_mixer),
  10422. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10423. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10424. msm_routing_get_port_mixer,
  10425. msm_routing_put_port_mixer),
  10426. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10427. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10428. msm_routing_get_port_mixer,
  10429. msm_routing_put_port_mixer),
  10430. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10431. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10432. msm_routing_get_port_mixer,
  10433. msm_routing_put_port_mixer),
  10434. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10435. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10436. msm_routing_get_port_mixer,
  10437. msm_routing_put_port_mixer),
  10438. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10439. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10440. msm_routing_get_port_mixer,
  10441. msm_routing_put_port_mixer),
  10442. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10443. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10444. msm_routing_get_port_mixer,
  10445. msm_routing_put_port_mixer),
  10446. };
  10447. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10448. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10449. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10450. msm_routing_put_port_mixer),
  10451. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10452. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10453. msm_routing_put_port_mixer),
  10454. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10455. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10456. msm_routing_put_port_mixer),
  10457. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10459. msm_routing_put_port_mixer),
  10460. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10461. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10462. msm_routing_put_port_mixer),
  10463. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10465. msm_routing_put_port_mixer),
  10466. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10467. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10468. msm_routing_put_port_mixer),
  10469. };
  10470. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10471. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10472. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10473. msm_routing_put_port_mixer),
  10474. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10476. msm_routing_put_port_mixer),
  10477. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10478. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10479. msm_routing_put_port_mixer),
  10480. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10481. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10482. msm_routing_put_port_mixer),
  10483. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10484. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10485. msm_routing_put_port_mixer),
  10486. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10487. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10488. msm_routing_put_port_mixer),
  10489. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10490. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10491. msm_routing_put_port_mixer),
  10492. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10493. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10494. msm_routing_put_port_mixer),
  10495. };
  10496. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10497. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10498. MSM_FRONTEND_DAI_LSM1, 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_LSM1, 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_LSM1, 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_LSM1, 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_LSM1, 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_LSM1, 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_LSM1, 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_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10520. msm_routing_put_listen_mixer),
  10521. };
  10522. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10523. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10524. MSM_FRONTEND_DAI_LSM2, 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_LSM2, 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_LSM2, 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_LSM2, 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_LSM2, 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_LSM2, 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_LSM2, 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_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10546. msm_routing_put_listen_mixer),
  10547. };
  10548. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10549. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10550. MSM_FRONTEND_DAI_LSM3, 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_LSM3, 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_LSM3, 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_LSM3, 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_LSM3, 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_LSM3, 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_LSM3, 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_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10572. msm_routing_put_listen_mixer),
  10573. };
  10574. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10575. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10576. MSM_FRONTEND_DAI_LSM4, 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_LSM4, 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_LSM4, 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_LSM4, 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_LSM4, 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_LSM4, 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_LSM4, 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_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10598. msm_routing_put_listen_mixer),
  10599. };
  10600. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10601. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10602. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10603. msm_routing_put_listen_mixer),
  10604. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10605. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10606. msm_routing_put_listen_mixer),
  10607. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10608. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10609. msm_routing_put_listen_mixer),
  10610. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10611. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10612. msm_routing_put_listen_mixer),
  10613. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10614. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10615. msm_routing_put_listen_mixer),
  10616. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10617. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10618. msm_routing_put_listen_mixer),
  10619. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10620. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10621. msm_routing_put_listen_mixer),
  10622. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10623. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10624. msm_routing_put_listen_mixer),
  10625. };
  10626. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10627. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10628. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10629. msm_routing_put_listen_mixer),
  10630. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10631. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10632. msm_routing_put_listen_mixer),
  10633. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10634. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10635. msm_routing_put_listen_mixer),
  10636. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10637. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10638. msm_routing_put_listen_mixer),
  10639. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10640. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10641. msm_routing_put_listen_mixer),
  10642. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10643. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10644. msm_routing_put_listen_mixer),
  10645. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10646. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10647. msm_routing_put_listen_mixer),
  10648. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10649. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10650. msm_routing_put_listen_mixer),
  10651. };
  10652. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10653. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10654. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10655. msm_routing_put_listen_mixer),
  10656. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10657. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10658. msm_routing_put_listen_mixer),
  10659. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10660. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10661. msm_routing_put_listen_mixer),
  10662. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10663. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10664. msm_routing_put_listen_mixer),
  10665. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10666. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10667. msm_routing_put_listen_mixer),
  10668. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10669. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10670. msm_routing_put_listen_mixer),
  10671. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10672. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10673. msm_routing_put_listen_mixer),
  10674. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10675. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10676. msm_routing_put_listen_mixer),
  10677. };
  10678. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10679. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10680. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10681. msm_routing_put_listen_mixer),
  10682. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10683. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10684. msm_routing_put_listen_mixer),
  10685. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10686. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10687. msm_routing_put_listen_mixer),
  10688. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10689. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10690. msm_routing_put_listen_mixer),
  10691. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10692. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10693. msm_routing_put_listen_mixer),
  10694. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10695. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10696. msm_routing_put_listen_mixer),
  10697. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10698. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10699. msm_routing_put_listen_mixer),
  10700. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10701. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10702. msm_routing_put_listen_mixer),
  10703. };
  10704. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10705. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10706. 0, 1, 0, msm_routing_get_switch_mixer,
  10707. msm_routing_put_switch_mixer);
  10708. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10709. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10710. 0, 1, 0, msm_routing_get_switch_mixer,
  10711. msm_routing_put_switch_mixer);
  10712. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10713. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10714. 0, 1, 0, msm_routing_get_switch_mixer,
  10715. msm_routing_put_switch_mixer);
  10716. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10717. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10718. 0, 1, 0, msm_routing_get_switch_mixer,
  10719. msm_routing_put_switch_mixer);
  10720. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10721. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10722. 0, 1, 0, msm_routing_get_switch_mixer,
  10723. msm_routing_put_switch_mixer);
  10724. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10725. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10726. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10727. msm_routing_put_fm_pcmrx_switch_mixer);
  10728. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10729. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10730. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10731. msm_routing_put_int0_mi2s_switch_mixer);
  10732. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10733. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10734. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10735. msm_routing_put_int4_mi2s_switch_mixer);
  10736. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10737. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10738. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10739. msm_routing_put_pri_mi2s_switch_mixer);
  10740. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10741. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10742. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10743. msm_routing_put_sec_mi2s_switch_mixer);
  10744. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10745. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10746. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10747. msm_routing_put_tert_mi2s_switch_mixer);
  10748. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10749. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10750. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10751. msm_routing_put_quat_mi2s_switch_mixer);
  10752. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10753. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10754. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10755. msm_routing_put_quin_mi2s_switch_mixer);
  10756. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10757. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10758. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10759. msm_routing_put_hfp_switch_mixer);
  10760. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10761. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10762. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10763. msm_routing_put_hfp_switch_mixer);
  10764. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10765. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10766. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10767. msm_routing_put_hfp_switch_mixer);
  10768. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10769. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10770. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10771. msm_routing_put_hfp_switch_mixer);
  10772. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10773. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10774. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10775. msm_routing_put_usb_switch_mixer);
  10776. static const struct soc_enum lsm_port_enum =
  10777. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10778. static const char * const lsm_func_text[] = {
  10779. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10780. };
  10781. static const struct soc_enum lsm_func_enum =
  10782. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10783. static const struct snd_kcontrol_new lsm_controls[] = {
  10784. /* kcontrol of lsm_function */
  10785. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10786. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10787. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10788. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10789. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10790. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10791. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10792. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10793. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10794. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10795. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10796. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10797. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10798. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10799. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10800. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10801. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10802. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10803. /* kcontrol of lsm_port */
  10804. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10805. msm_routing_lsm_port_get,
  10806. msm_routing_lsm_port_put),
  10807. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10808. msm_routing_lsm_port_get,
  10809. msm_routing_lsm_port_put),
  10810. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10811. msm_routing_lsm_port_get,
  10812. msm_routing_lsm_port_put),
  10813. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10814. msm_routing_lsm_port_get,
  10815. msm_routing_lsm_port_put),
  10816. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10817. msm_routing_lsm_port_get,
  10818. msm_routing_lsm_port_put),
  10819. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10820. msm_routing_lsm_port_get,
  10821. msm_routing_lsm_port_put),
  10822. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10823. msm_routing_lsm_port_get,
  10824. msm_routing_lsm_port_put),
  10825. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10826. msm_routing_lsm_port_get,
  10827. msm_routing_lsm_port_put),
  10828. };
  10829. static const char * const aanc_slim_0_rx_text[] = {
  10830. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10831. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10832. };
  10833. static const struct soc_enum aanc_slim_0_rx_enum =
  10834. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10835. aanc_slim_0_rx_text);
  10836. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10837. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10838. msm_routing_slim_0_rx_aanc_mux_get,
  10839. msm_routing_slim_0_rx_aanc_mux_put)
  10840. };
  10841. static int msm_routing_get_stereo_to_custom_stereo_control(
  10842. struct snd_kcontrol *kcontrol,
  10843. struct snd_ctl_elem_value *ucontrol)
  10844. {
  10845. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10846. return 0;
  10847. }
  10848. static int msm_routing_put_stereo_to_custom_stereo_control(
  10849. struct snd_kcontrol *kcontrol,
  10850. struct snd_ctl_elem_value *ucontrol)
  10851. {
  10852. int flag = 0, i = 0, rc = 0, idx = 0;
  10853. int be_index = 0, port_id, topo_id;
  10854. unsigned int session_id = 0;
  10855. uint16_t op_FL_ip_FL_weight = 0;
  10856. uint16_t op_FL_ip_FR_weight = 0;
  10857. uint16_t op_FR_ip_FL_weight = 0;
  10858. uint16_t op_FR_ip_FR_weight = 0;
  10859. flag = ucontrol->value.integer.value[0];
  10860. pr_debug("%s E flag %d\n", __func__, flag);
  10861. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10862. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10863. __func__, is_custom_stereo_on, flag);
  10864. return 0;
  10865. }
  10866. is_custom_stereo_on = flag ? true : false;
  10867. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10868. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10869. port_id = msm_bedais[be_index].port_id;
  10870. if (!msm_bedais[be_index].active)
  10871. continue;
  10872. if ((port_id != SLIMBUS_0_RX) &&
  10873. (port_id != RT_PROXY_PORT_001_RX) &&
  10874. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10875. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10876. continue;
  10877. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10878. MSM_FRONTEND_DAI_MM_SIZE) {
  10879. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10880. LEGACY_PCM_MODE)
  10881. goto skip_send_custom_stereo;
  10882. session_id =
  10883. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10884. if (is_custom_stereo_on) {
  10885. op_FL_ip_FL_weight =
  10886. Q14_GAIN_ZERO_POINT_FIVE;
  10887. op_FL_ip_FR_weight =
  10888. Q14_GAIN_ZERO_POINT_FIVE;
  10889. op_FR_ip_FL_weight =
  10890. Q14_GAIN_ZERO_POINT_FIVE;
  10891. op_FR_ip_FR_weight =
  10892. Q14_GAIN_ZERO_POINT_FIVE;
  10893. } else {
  10894. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10895. op_FL_ip_FR_weight = 0;
  10896. op_FR_ip_FL_weight = 0;
  10897. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10898. }
  10899. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10900. unsigned long copp =
  10901. session_copp_map[i]
  10902. [SESSION_TYPE_RX][be_index];
  10903. if (!test_bit(idx, &copp))
  10904. goto skip_send_custom_stereo;
  10905. topo_id = adm_get_topology_for_port_copp_idx(
  10906. msm_bedais[be_index].port_id, idx);
  10907. if (topo_id < 0)
  10908. pr_debug("%s:Err:custom stereo topo %d",
  10909. __func__, topo_id);
  10910. pr_debug("idx %d\n", idx);
  10911. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10912. rc = msm_ds2_dap_set_custom_stereo_onoff
  10913. (msm_bedais[be_index].port_id,
  10914. idx, is_custom_stereo_on);
  10915. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10916. rc = dolby_dap_set_custom_stereo_onoff(
  10917. msm_bedais[be_index].port_id,
  10918. idx, is_custom_stereo_on);
  10919. else
  10920. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10921. (msm_bedais[be_index].port_id,
  10922. idx, session_id,
  10923. op_FL_ip_FL_weight,
  10924. op_FL_ip_FR_weight,
  10925. op_FR_ip_FL_weight,
  10926. op_FR_ip_FR_weight);
  10927. if (rc < 0)
  10928. skip_send_custom_stereo:
  10929. pr_err("%s: err setting custom stereo\n",
  10930. __func__);
  10931. }
  10932. }
  10933. }
  10934. return 0;
  10935. }
  10936. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10937. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10938. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10939. msm_routing_put_stereo_to_custom_stereo_control),
  10940. };
  10941. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10942. struct snd_ctl_elem_value *ucontrol)
  10943. {
  10944. return 0;
  10945. }
  10946. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10947. struct snd_ctl_elem_value *ucontrol)
  10948. {
  10949. int i = 0, j;
  10950. int num_app_types = ucontrol->value.integer.value[i++];
  10951. pr_debug("%s\n", __func__);
  10952. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10953. sizeof(struct msm_pcm_routing_app_type_data));
  10954. if (num_app_types > MAX_APP_TYPES) {
  10955. pr_err("%s: number of app types exceed the max supported\n",
  10956. __func__);
  10957. return -EINVAL;
  10958. }
  10959. for (j = 0; j < num_app_types; j++) {
  10960. app_type_cfg[j].app_type =
  10961. ucontrol->value.integer.value[i++];
  10962. app_type_cfg[j].sample_rate =
  10963. ucontrol->value.integer.value[i++];
  10964. app_type_cfg[j].bit_width =
  10965. ucontrol->value.integer.value[i++];
  10966. }
  10967. return 0;
  10968. }
  10969. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10970. struct snd_ctl_elem_value *ucontrol)
  10971. {
  10972. int j, fe_id, be_id, port_type;
  10973. int ret = 0;
  10974. unsigned long copp;
  10975. struct msm_pcm_routing_bdai_data *bedai;
  10976. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10977. SESSION_TYPE_RX;
  10978. int app_type = ucontrol->value.integer.value[1];
  10979. int gain = (ucontrol->value.integer.value[2] +
  10980. ucontrol->value.integer.value[3])/2;
  10981. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10982. MSM_AFE_PORT_TYPE_TX;
  10983. mutex_lock(&routing_lock);
  10984. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10985. if (is_be_dai_extproc(be_id))
  10986. continue;
  10987. bedai = &msm_bedais[be_id];
  10988. if (afe_get_port_type(bedai->port_id) != port_type)
  10989. continue;
  10990. if (!bedai->active)
  10991. continue;
  10992. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10993. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10994. continue;
  10995. if (app_type !=
  10996. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10997. continue;
  10998. copp = session_copp_map[fe_id][dir][be_id];
  10999. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  11000. if (!test_bit(j, &copp))
  11001. continue;
  11002. ret |= adm_set_volume(bedai->port_id, j, gain);
  11003. }
  11004. }
  11005. }
  11006. mutex_unlock(&routing_lock);
  11007. return ret ? -EINVAL : 0;
  11008. }
  11009. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  11010. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  11011. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  11012. msm_routing_put_app_type_cfg_control),
  11013. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  11014. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  11015. };
  11016. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  11017. struct snd_ctl_elem_value *ucontrol)
  11018. {
  11019. int copp_idx, fe_id, be_id, port_type;
  11020. int ret = 0;
  11021. unsigned long copp;
  11022. struct msm_pcm_routing_bdai_data *bedai;
  11023. char *param_data = NULL;
  11024. uint32_t *update_param_data = NULL;
  11025. uint32_t param_size = sizeof(uint32_t) +
  11026. sizeof(struct adm_param_data_v5);
  11027. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11028. SESSION_TYPE_RX;
  11029. int app_type = ucontrol->value.integer.value[1];
  11030. int module_id = ucontrol->value.integer.value[2];
  11031. int instance_id = ucontrol->value.integer.value[3];
  11032. int param_id = ucontrol->value.integer.value[4];
  11033. int param_value = ucontrol->value.integer.value[5];
  11034. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11035. MSM_AFE_PORT_TYPE_TX;
  11036. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  11037. __func__, app_type, module_id,
  11038. instance_id, param_id, param_value);
  11039. param_data = kzalloc(param_size, GFP_KERNEL);
  11040. if (!param_data)
  11041. return -ENOMEM;
  11042. update_param_data = (uint32_t *)param_data;
  11043. *update_param_data++ = module_id;
  11044. *update_param_data++ = param_id;
  11045. *update_param_data++ = sizeof(uint32_t);
  11046. *update_param_data++ = param_value;
  11047. mutex_lock(&routing_lock);
  11048. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11049. if (is_be_dai_extproc(be_id))
  11050. continue;
  11051. bedai = &msm_bedais[be_id];
  11052. if (afe_get_port_type(bedai->port_id) != port_type)
  11053. continue;
  11054. if (!bedai->active)
  11055. continue;
  11056. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11057. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11058. continue;
  11059. if (app_type !=
  11060. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11061. continue;
  11062. copp = session_copp_map[fe_id][dir][be_id];
  11063. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  11064. copp_idx++) {
  11065. if (!test_bit(copp_idx, &copp))
  11066. continue;
  11067. ret = adm_send_params_v5(bedai->port_id,
  11068. copp_idx,
  11069. param_data,
  11070. param_size);
  11071. if (ret) {
  11072. pr_err("%s: Setting param failed with err=%d\n",
  11073. __func__, ret);
  11074. ret = -EINVAL;
  11075. goto done;
  11076. }
  11077. }
  11078. }
  11079. }
  11080. done:
  11081. mutex_unlock(&routing_lock);
  11082. kfree(param_data);
  11083. return ret;
  11084. }
  11085. static const struct snd_kcontrol_new module_cfg_controls[] = {
  11086. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  11087. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  11088. };
  11089. static int msm_routing_get_lsm_app_type_cfg_control(
  11090. struct snd_kcontrol *kcontrol,
  11091. struct snd_ctl_elem_value *ucontrol)
  11092. {
  11093. return 0;
  11094. }
  11095. static int msm_routing_put_lsm_app_type_cfg_control(
  11096. struct snd_kcontrol *kcontrol,
  11097. struct snd_ctl_elem_value *ucontrol)
  11098. {
  11099. int i = 0, j;
  11100. int num_app_types = ucontrol->value.integer.value[i++];
  11101. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  11102. sizeof(struct msm_pcm_routing_app_type_data));
  11103. if (num_app_types > MAX_APP_TYPES) {
  11104. pr_err("%s: number of app types exceed the max supported\n",
  11105. __func__);
  11106. return -EINVAL;
  11107. }
  11108. for (j = 0; j < num_app_types; j++) {
  11109. lsm_app_type_cfg[j].app_type =
  11110. ucontrol->value.integer.value[i++];
  11111. lsm_app_type_cfg[j].sample_rate =
  11112. ucontrol->value.integer.value[i++];
  11113. lsm_app_type_cfg[j].bit_width =
  11114. ucontrol->value.integer.value[i++];
  11115. }
  11116. return 0;
  11117. }
  11118. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11119. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11120. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11121. msm_routing_put_lsm_app_type_cfg_control),
  11122. };
  11123. static int msm_routing_get_use_ds1_or_ds2_control(
  11124. struct snd_kcontrol *kcontrol,
  11125. struct snd_ctl_elem_value *ucontrol)
  11126. {
  11127. ucontrol->value.integer.value[0] = is_ds2_on;
  11128. return 0;
  11129. }
  11130. static int msm_routing_put_use_ds1_or_ds2_control(
  11131. struct snd_kcontrol *kcontrol,
  11132. struct snd_ctl_elem_value *ucontrol)
  11133. {
  11134. is_ds2_on = ucontrol->value.integer.value[0];
  11135. return 0;
  11136. }
  11137. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11138. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11139. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11140. msm_routing_put_use_ds1_or_ds2_control),
  11141. };
  11142. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11143. struct snd_ctl_elem_value *ucontrol) {
  11144. int rc = 0;
  11145. int be_idx = 0;
  11146. char *param_value;
  11147. int *update_param_value;
  11148. uint32_t param_length = sizeof(uint32_t);
  11149. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11150. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11151. if (!param_value)
  11152. return -ENOMEM;
  11153. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11154. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11155. break;
  11156. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11157. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11158. RMS_MODULEID_APPI_PASSTHRU,
  11159. RMS_PARAM_FIRST_SAMPLE,
  11160. param_length + param_payload_len,
  11161. param_value);
  11162. if (rc) {
  11163. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11164. kfree(param_value);
  11165. return -EINVAL;
  11166. }
  11167. update_param_value = (int *)param_value;
  11168. ucontrol->value.integer.value[0] = update_param_value[0];
  11169. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11170. __func__, update_param_value[0]);
  11171. }
  11172. kfree(param_value);
  11173. return 0;
  11174. }
  11175. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11176. struct snd_ctl_elem_value *ucontrol)
  11177. {
  11178. voc_session_id = ucontrol->value.integer.value[0];
  11179. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11180. return 0;
  11181. }
  11182. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11183. struct snd_ctl_elem_value *ucontrol)
  11184. {
  11185. ucontrol->value.integer.value[0] = voc_session_id;
  11186. return 0;
  11187. }
  11188. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11189. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11190. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11191. msm_voc_session_id_put),
  11192. };
  11193. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11194. struct snd_ctl_elem_info *uinfo)
  11195. {
  11196. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11197. uinfo->count = sizeof(struct sound_focus_param);
  11198. return 0;
  11199. }
  11200. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11201. struct snd_ctl_elem_value *ucontrol)
  11202. {
  11203. int ret = 0;
  11204. struct sound_focus_param soundFocusData;
  11205. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11206. sizeof(struct sound_focus_param));
  11207. ret = voc_set_sound_focus(soundFocusData);
  11208. if (ret) {
  11209. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11210. __func__, ret);
  11211. ret = -EINVAL;
  11212. }
  11213. return ret;
  11214. }
  11215. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11216. struct snd_ctl_elem_value *ucontrol)
  11217. {
  11218. int ret = 0;
  11219. struct sound_focus_param soundFocusData;
  11220. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11221. ret = voc_get_sound_focus(&soundFocusData);
  11222. if (ret) {
  11223. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11224. __func__, ret);
  11225. ret = -EINVAL;
  11226. goto done;
  11227. }
  11228. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11229. sizeof(struct sound_focus_param));
  11230. done:
  11231. return ret;
  11232. }
  11233. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11234. struct snd_ctl_elem_info *uinfo)
  11235. {
  11236. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11237. uinfo->count = sizeof(struct source_tracking_param);
  11238. return 0;
  11239. }
  11240. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11241. struct snd_ctl_elem_value *ucontrol)
  11242. {
  11243. int ret = 0;
  11244. struct source_tracking_param sourceTrackingData;
  11245. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11246. ret = voc_get_source_tracking(&sourceTrackingData);
  11247. if (ret) {
  11248. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11249. __func__, ret);
  11250. ret = -EINVAL;
  11251. goto done;
  11252. }
  11253. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11254. sizeof(struct source_tracking_param));
  11255. done:
  11256. return ret;
  11257. }
  11258. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11259. int *copp_idx)
  11260. {
  11261. int i, idx, be_idx;
  11262. int ret = 0;
  11263. unsigned long copp;
  11264. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11265. ret = q6audio_validate_port(port_id);
  11266. if (ret < 0) {
  11267. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11268. __func__, port_id, ret);
  11269. ret = -EINVAL;
  11270. goto done;
  11271. }
  11272. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11273. if (msm_bedais[be_idx].port_id == port_id)
  11274. break;
  11275. }
  11276. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11277. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11278. ret = -EINVAL;
  11279. goto done;
  11280. }
  11281. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11282. MSM_FRONTEND_DAI_MM_SIZE) {
  11283. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11284. copp = session_copp_map[i]
  11285. [session_type][be_idx];
  11286. if (test_bit(idx, &copp))
  11287. break;
  11288. }
  11289. if (idx >= MAX_COPPS_PER_PORT)
  11290. continue;
  11291. else
  11292. break;
  11293. }
  11294. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11295. pr_err("%s: Invalid FE, exiting\n", __func__);
  11296. ret = -EINVAL;
  11297. goto done;
  11298. }
  11299. *copp_idx = idx;
  11300. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11301. done:
  11302. return ret;
  11303. }
  11304. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11305. const char *prefix, int *port_id)
  11306. {
  11307. int ret = 0;
  11308. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11309. /*
  11310. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11311. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11312. * and compare the string with the backend name to derive the port id.
  11313. */
  11314. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11315. "SLIMBUS_0")) {
  11316. *port_id = SLIMBUS_0_TX;
  11317. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11318. "TERT_MI2S")) {
  11319. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11320. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11321. "INT3_MI2S")) {
  11322. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11323. } else {
  11324. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11325. __func__, kcontrol->id.name);
  11326. ret = -EINVAL;
  11327. goto done;
  11328. }
  11329. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11330. __func__, kcontrol->id.name, *port_id);
  11331. done:
  11332. return ret;
  11333. }
  11334. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11335. struct snd_ctl_elem_value *ucontrol)
  11336. {
  11337. int ret = 0;
  11338. struct sound_focus_param soundFocusData;
  11339. int port_id, copp_idx;
  11340. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11341. "Sound Focus Audio Tx ", &port_id);
  11342. if (ret != 0) {
  11343. pr_err("%s: Error in deriving port id, err=%d\n",
  11344. __func__, ret);
  11345. ret = -EINVAL;
  11346. goto done;
  11347. }
  11348. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11349. &copp_idx);
  11350. if (ret) {
  11351. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11352. __func__, port_id);
  11353. ret = -EINVAL;
  11354. goto done;
  11355. }
  11356. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11357. sizeof(struct sound_focus_param));
  11358. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11359. if (ret) {
  11360. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11361. __func__, ret);
  11362. ret = -EINVAL;
  11363. goto done;
  11364. }
  11365. done:
  11366. return ret;
  11367. }
  11368. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11369. struct snd_ctl_elem_value *ucontrol)
  11370. {
  11371. int ret = 0;
  11372. struct sound_focus_param soundFocusData;
  11373. int port_id, copp_idx;
  11374. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11375. "Sound Focus Audio Tx ", &port_id);
  11376. if (ret) {
  11377. pr_err("%s: Error in deriving port id, err=%d\n",
  11378. __func__, ret);
  11379. ret = -EINVAL;
  11380. goto done;
  11381. }
  11382. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11383. &copp_idx);
  11384. if (ret) {
  11385. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11386. __func__, port_id);
  11387. ret = -EINVAL;
  11388. goto done;
  11389. }
  11390. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11391. if (ret) {
  11392. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11393. __func__, ret);
  11394. ret = -EINVAL;
  11395. goto done;
  11396. }
  11397. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11398. sizeof(struct sound_focus_param));
  11399. done:
  11400. return ret;
  11401. }
  11402. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11403. struct snd_ctl_elem_value *ucontrol)
  11404. {
  11405. int ret = 0;
  11406. struct source_tracking_param sourceTrackingData;
  11407. int port_id, copp_idx;
  11408. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11409. "Source Tracking Audio Tx ", &port_id);
  11410. if (ret) {
  11411. pr_err("%s: Error in deriving port id, err=%d\n",
  11412. __func__, ret);
  11413. ret = -EINVAL;
  11414. goto done;
  11415. }
  11416. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11417. &copp_idx);
  11418. if (ret) {
  11419. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11420. __func__, port_id);
  11421. ret = -EINVAL;
  11422. goto done;
  11423. }
  11424. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11425. if (ret) {
  11426. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11427. __func__, ret);
  11428. ret = -EINVAL;
  11429. goto done;
  11430. }
  11431. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11432. sizeof(struct source_tracking_param));
  11433. done:
  11434. return ret;
  11435. }
  11436. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11437. {
  11438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11440. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11441. .info = msm_sound_focus_info,
  11442. .get = msm_voice_sound_focus_get,
  11443. .put = msm_voice_sound_focus_put,
  11444. },
  11445. {
  11446. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11447. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11448. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11449. .info = msm_source_tracking_info,
  11450. .get = msm_voice_source_tracking_get,
  11451. },
  11452. {
  11453. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11454. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11455. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11456. .info = msm_sound_focus_info,
  11457. .get = msm_audio_sound_focus_get,
  11458. .put = msm_audio_sound_focus_put,
  11459. },
  11460. {
  11461. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11462. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11463. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11464. .info = msm_source_tracking_info,
  11465. .get = msm_audio_source_tracking_get,
  11466. },
  11467. {
  11468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11470. .name = "Sound Focus Voice Tx TERT_MI2S",
  11471. .info = msm_sound_focus_info,
  11472. .get = msm_voice_sound_focus_get,
  11473. .put = msm_voice_sound_focus_put,
  11474. },
  11475. {
  11476. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11477. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11478. .name = "Source Tracking Voice Tx TERT_MI2S",
  11479. .info = msm_source_tracking_info,
  11480. .get = msm_voice_source_tracking_get,
  11481. },
  11482. {
  11483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11485. .name = "Sound Focus Audio Tx TERT_MI2S",
  11486. .info = msm_sound_focus_info,
  11487. .get = msm_audio_sound_focus_get,
  11488. .put = msm_audio_sound_focus_put,
  11489. },
  11490. {
  11491. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11492. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11493. .name = "Source Tracking Audio Tx TERT_MI2S",
  11494. .info = msm_source_tracking_info,
  11495. .get = msm_audio_source_tracking_get,
  11496. },
  11497. {
  11498. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11499. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11500. .name = "Sound Focus Voice Tx INT3_MI2S",
  11501. .info = msm_sound_focus_info,
  11502. .get = msm_voice_sound_focus_get,
  11503. .put = msm_voice_sound_focus_put,
  11504. },
  11505. {
  11506. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11507. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11508. .name = "Source Tracking Voice Tx INT3_MI2S",
  11509. .info = msm_source_tracking_info,
  11510. .get = msm_voice_source_tracking_get,
  11511. },
  11512. {
  11513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11515. .name = "Sound Focus Audio Tx INT3_MI2S",
  11516. .info = msm_sound_focus_info,
  11517. .get = msm_audio_sound_focus_get,
  11518. .put = msm_audio_sound_focus_put,
  11519. },
  11520. {
  11521. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11523. .name = "Source Tracking Audio Tx INT3_MI2S",
  11524. .info = msm_source_tracking_info,
  11525. .get = msm_audio_source_tracking_get,
  11526. },
  11527. };
  11528. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11529. struct snd_ctl_elem_value *ucontrol)
  11530. {
  11531. int ret = 0;
  11532. int item;
  11533. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11534. pr_debug("%s item is %d\n", __func__,
  11535. ucontrol->value.enumerated.item[0]);
  11536. mutex_lock(&routing_lock);
  11537. item = ucontrol->value.enumerated.item[0];
  11538. if (item < e->items) {
  11539. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11540. __func__, e->shift_l, e->values[item]);
  11541. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11542. e->values[item] < MSM_BACKEND_DAI_MAX)
  11543. /* Enable feedback TX path */
  11544. ret = afe_spk_prot_feed_back_cfg(
  11545. msm_bedais[e->values[item]].port_id,
  11546. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11547. else {
  11548. pr_debug("%s values are out of range item %d\n",
  11549. __func__, e->values[item]);
  11550. /* Disable feedback TX path */
  11551. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11552. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11553. else
  11554. ret = -EINVAL;
  11555. }
  11556. } else {
  11557. pr_err("%s item value is out of range item\n", __func__);
  11558. ret = -EINVAL;
  11559. }
  11560. mutex_unlock(&routing_lock);
  11561. return ret;
  11562. }
  11563. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11564. struct snd_ctl_elem_value *ucontrol)
  11565. {
  11566. int ret = 0;
  11567. int item;
  11568. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11569. pr_debug("%s item is %d\n", __func__,
  11570. ucontrol->value.enumerated.item[0]);
  11571. mutex_lock(&routing_lock);
  11572. item = ucontrol->value.enumerated.item[0];
  11573. if (item < e->items) {
  11574. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11575. __func__, e->shift_l, e->values[item]);
  11576. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11577. e->values[item] < MSM_BACKEND_DAI_MAX)
  11578. /* Enable feedback TX path */
  11579. ret = afe_spk_prot_feed_back_cfg(
  11580. msm_bedais[e->values[item]].port_id,
  11581. msm_bedais[e->shift_l].port_id,
  11582. 1, 1, 1);
  11583. else {
  11584. pr_debug("%s values are out of range item %d\n",
  11585. __func__, e->values[item]);
  11586. /* Disable feedback TX path */
  11587. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11588. ret = afe_spk_prot_feed_back_cfg(0,
  11589. 0, 0, 0, 0);
  11590. else
  11591. ret = -EINVAL;
  11592. }
  11593. } else {
  11594. pr_err("%s item value is out of range item\n", __func__);
  11595. ret = -EINVAL;
  11596. }
  11597. mutex_unlock(&routing_lock);
  11598. return ret;
  11599. }
  11600. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11601. struct snd_ctl_elem_value *ucontrol)
  11602. {
  11603. pr_debug("%s\n", __func__);
  11604. return 0;
  11605. }
  11606. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11607. struct snd_ctl_elem_value *ucontrol)
  11608. {
  11609. pr_debug("%s\n", __func__);
  11610. ucontrol->value.enumerated.item[0] = 0;
  11611. return 0;
  11612. }
  11613. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11614. "ZERO", "SLIM4_TX"
  11615. };
  11616. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11617. "ZERO", "SLIM4_TX"
  11618. };
  11619. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11620. "ZERO", "SENARY_TX"
  11621. };
  11622. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11623. "ZERO", "INT5_MI2S_TX"
  11624. };
  11625. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11626. "ZERO", "INT5_MI2S_TX"
  11627. };
  11628. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11629. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11630. };
  11631. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11632. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11633. };
  11634. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11635. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11636. };
  11637. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11638. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11639. };
  11640. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11641. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11642. };
  11643. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11644. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11645. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11646. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11647. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11648. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11649. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11650. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11651. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11652. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11653. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11654. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11655. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11656. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11657. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11658. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11659. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11660. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11661. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11662. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11663. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11664. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11665. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11666. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11667. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11668. spkr_prot_put_vi_lch_port);
  11669. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11670. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11671. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11672. spkr_prot_put_vi_rch_port);
  11673. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11674. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11675. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11676. spkr_prot_put_vi_lch_port);
  11677. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11678. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11679. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11680. spkr_prot_put_vi_lch_port);
  11681. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11682. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11683. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11684. spkr_prot_put_vi_rch_port);
  11685. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11686. /* Frontend AIF */
  11687. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11688. * Stream name must contains substring of front-end dai name
  11689. */
  11690. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11691. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11692. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11693. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11694. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11695. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11696. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11697. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11698. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11699. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11700. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11701. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11702. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11703. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11704. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11705. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11706. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11707. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11708. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11709. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11710. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11711. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11712. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11713. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11714. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11715. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11716. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11717. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11718. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11719. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11720. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11721. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11722. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11723. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11724. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11725. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11726. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11727. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11728. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11729. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11730. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11731. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11732. 0, 0, 0, 0),
  11733. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11734. 0, 0, 0, 0),
  11735. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11736. 0, 0, 0, 0),
  11737. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11738. 0, 0, 0, 0),
  11739. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11740. 0, 0, 0, 0),
  11741. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11742. 0, 0, 0, 0),
  11743. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11744. 0, 0, 0, 0),
  11745. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11746. 0, 0, 0, 0),
  11747. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11748. 0, 0, 0, 0),
  11749. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11750. 0, 0, 0, 0),
  11751. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11752. 0, 0, 0, 0),
  11753. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11754. 0, 0, 0, 0),
  11755. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11756. 0, 0, 0, 0),
  11757. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11758. 0, 0, 0, 0),
  11759. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11760. 0, 0, 0, 0),
  11761. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11762. 0, 0, 0, 0),
  11763. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11764. 0, 0, 0, 0),
  11765. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11766. 0, 0, 0, 0),
  11767. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11768. 0, 0, 0, 0),
  11769. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11770. 0, 0, 0, 0),
  11771. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11772. 0, 0, 0, 0),
  11773. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11775. 0, 0, 0, 0),
  11776. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11777. "INT0 MI2S_RX Hostless Playback",
  11778. 0, 0, 0, 0),
  11779. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11780. "INT4 MI2S_RX Hostless Playback",
  11781. 0, 0, 0, 0),
  11782. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11783. "Primary MI2S_RX Hostless Playback",
  11784. 0, 0, 0, 0),
  11785. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11786. "Secondary MI2S_RX Hostless Playback",
  11787. 0, 0, 0, 0),
  11788. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11789. "Tertiary MI2S_RX Hostless Playback",
  11790. 0, 0, 0, 0),
  11791. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11792. "Quaternary MI2S_RX Hostless Playback",
  11793. 0, 0, 0, 0),
  11794. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11795. "Quinary MI2S_RX Hostless Playback",
  11796. 0, 0, 0, 0),
  11797. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11798. 0, 0, 0, 0),
  11799. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11800. 0, 0, 0, 0),
  11801. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11802. 0, 0, 0, 0),
  11803. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11804. "INT3 MI2S_TX Hostless Capture",
  11805. 0, 0, 0, 0),
  11806. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11807. "Tertiary MI2S_TX Hostless Capture",
  11808. 0, 0, 0, 0),
  11809. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11810. "Secondary MI2S_TX Hostless Capture",
  11811. 0, 0, 0, 0),
  11812. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11813. "Primary MI2S_TX Hostless Capture",
  11814. 0, 0, 0, 0),
  11815. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11816. 0, 0, 0, 0),
  11817. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11818. 0, 0, 0, 0),
  11819. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11820. "Quaternary MI2S_TX Hostless Capture",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11823. "Quinary MI2S_TX Hostless Capture",
  11824. 0, 0, 0, 0),
  11825. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11826. "Primary TDM0 Hostless Playback",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11829. "Primary TDM0 Hostless Capture",
  11830. 0, 0, 0, 0),
  11831. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11832. "Primary TDM1 Hostless Playback",
  11833. 0, 0, 0, 0),
  11834. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11835. "Primary TDM1 Hostless Capture",
  11836. 0, 0, 0, 0),
  11837. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11838. "Primary TDM2 Hostless Playback",
  11839. 0, 0, 0, 0),
  11840. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11841. "Primary TDM2 Hostless Capture",
  11842. 0, 0, 0, 0),
  11843. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11844. "Primary TDM3 Hostless Playback",
  11845. 0, 0, 0, 0),
  11846. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11847. "Primary TDM3 Hostless Capture",
  11848. 0, 0, 0, 0),
  11849. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11850. "Primary TDM4 Hostless Playback",
  11851. 0, 0, 0, 0),
  11852. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11853. "Primary TDM4 Hostless Capture",
  11854. 0, 0, 0, 0),
  11855. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11856. "Primary TDM5 Hostless Playback",
  11857. 0, 0, 0, 0),
  11858. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11859. "Primary TDM5 Hostless Capture",
  11860. 0, 0, 0, 0),
  11861. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11862. "Primary TDM6 Hostless Playback",
  11863. 0, 0, 0, 0),
  11864. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11865. "Primary TDM6 Hostless Capture",
  11866. 0, 0, 0, 0),
  11867. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11868. "Primary TDM7 Hostless Playback",
  11869. 0, 0, 0, 0),
  11870. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11871. "Primary TDM7 Hostless Capture",
  11872. 0, 0, 0, 0),
  11873. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11874. "Secondary TDM0 Hostless Playback",
  11875. 0, 0, 0, 0),
  11876. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11877. "Secondary TDM0 Hostless Capture",
  11878. 0, 0, 0, 0),
  11879. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11880. "Secondary TDM1 Hostless Playback",
  11881. 0, 0, 0, 0),
  11882. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11883. "Secondary TDM1 Hostless Capture",
  11884. 0, 0, 0, 0),
  11885. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11886. "Secondary TDM2 Hostless Playback",
  11887. 0, 0, 0, 0),
  11888. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11889. "Secondary TDM2 Hostless Capture",
  11890. 0, 0, 0, 0),
  11891. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11892. "Secondary TDM3 Hostless Playback",
  11893. 0, 0, 0, 0),
  11894. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11895. "Secondary TDM3 Hostless Capture",
  11896. 0, 0, 0, 0),
  11897. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11898. "Secondary TDM4 Hostless Playback",
  11899. 0, 0, 0, 0),
  11900. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11901. "Secondary TDM4 Hostless Capture",
  11902. 0, 0, 0, 0),
  11903. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11904. "Secondary TDM5 Hostless Playback",
  11905. 0, 0, 0, 0),
  11906. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11907. "Secondary TDM5 Hostless Capture",
  11908. 0, 0, 0, 0),
  11909. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11910. "Secondary TDM6 Hostless Playback",
  11911. 0, 0, 0, 0),
  11912. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11913. "Secondary TDM6 Hostless Capture",
  11914. 0, 0, 0, 0),
  11915. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11916. "Secondary TDM7 Hostless Playback",
  11917. 0, 0, 0, 0),
  11918. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11919. "Secondary TDM7 Hostless Capture",
  11920. 0, 0, 0, 0),
  11921. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11922. "Tertiary TDM0 Hostless Playback",
  11923. 0, 0, 0, 0),
  11924. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11925. "Tertiary TDM0 Hostless Capture",
  11926. 0, 0, 0, 0),
  11927. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11928. "Tertiary TDM1 Hostless Playback",
  11929. 0, 0, 0, 0),
  11930. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11931. "Tertiary TDM1 Hostless Capture",
  11932. 0, 0, 0, 0),
  11933. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11934. "Tertiary TDM2 Hostless Playback",
  11935. 0, 0, 0, 0),
  11936. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11937. "Tertiary TDM2 Hostless Capture",
  11938. 0, 0, 0, 0),
  11939. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11940. "Tertiary TDM3 Hostless Playback",
  11941. 0, 0, 0, 0),
  11942. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11943. "Tertiary TDM3 Hostless Capture",
  11944. 0, 0, 0, 0),
  11945. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11946. "Tertiary TDM4 Hostless Playback",
  11947. 0, 0, 0, 0),
  11948. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11949. "Tertiary TDM4 Hostless Capture",
  11950. 0, 0, 0, 0),
  11951. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11952. "Tertiary TDM5 Hostless Playback",
  11953. 0, 0, 0, 0),
  11954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11955. "Tertiary TDM5 Hostless Capture",
  11956. 0, 0, 0, 0),
  11957. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11958. "Tertiary TDM6 Hostless Playback",
  11959. 0, 0, 0, 0),
  11960. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11961. "Tertiary TDM6 Hostless Capture",
  11962. 0, 0, 0, 0),
  11963. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11964. "Tertiary TDM7 Hostless Playback",
  11965. 0, 0, 0, 0),
  11966. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11967. "Tertiary TDM7 Hostless Capture",
  11968. 0, 0, 0, 0),
  11969. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11970. "Quaternary TDM0 Hostless Playback",
  11971. 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11973. "Quaternary TDM0 Hostless Capture",
  11974. 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11976. "Quaternary TDM1 Hostless Playback",
  11977. 0, 0, 0, 0),
  11978. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11979. "Quaternary TDM1 Hostless Capture",
  11980. 0, 0, 0, 0),
  11981. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11982. "Quaternary TDM2 Hostless Playback",
  11983. 0, 0, 0, 0),
  11984. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11985. "Quaternary TDM2 Hostless Capture",
  11986. 0, 0, 0, 0),
  11987. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11988. "Quaternary TDM3 Hostless Playback",
  11989. 0, 0, 0, 0),
  11990. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11991. "Quaternary TDM3 Hostless Capture",
  11992. 0, 0, 0, 0),
  11993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11994. "Quaternary TDM4 Hostless Playback",
  11995. 0, 0, 0, 0),
  11996. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11997. "Quaternary TDM4 Hostless Capture",
  11998. 0, 0, 0, 0),
  11999. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  12000. "Quaternary TDM5 Hostless Playback",
  12001. 0, 0, 0, 0),
  12002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  12003. "Quaternary TDM5 Hostless Capture",
  12004. 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  12006. "Quaternary TDM6 Hostless Playback",
  12007. 0, 0, 0, 0),
  12008. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  12009. "Quaternary TDM6 Hostless Capture",
  12010. 0, 0, 0, 0),
  12011. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  12012. "Quaternary TDM7 Hostless Playback",
  12013. 0, 0, 0, 0),
  12014. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  12015. "Quaternary TDM7 Hostless Capture",
  12016. 0, 0, 0, 0),
  12017. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  12018. "Quinary TDM0 Hostless Playback",
  12019. 0, 0, 0, 0),
  12020. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  12021. "Quinary TDM0 Hostless Capture",
  12022. 0, 0, 0, 0),
  12023. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  12024. "Quinary TDM1 Hostless Playback",
  12025. 0, 0, 0, 0),
  12026. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  12027. "Quinary TDM1 Hostless Capture",
  12028. 0, 0, 0, 0),
  12029. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  12030. "Quinary TDM2 Hostless Playback",
  12031. 0, 0, 0, 0),
  12032. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  12033. "Quinary TDM2 Hostless Capture",
  12034. 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  12036. "Quinary TDM3 Hostless Playback",
  12037. 0, 0, 0, 0),
  12038. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  12039. "Quinary TDM3 Hostless Capture",
  12040. 0, 0, 0, 0),
  12041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  12042. "Quinary TDM4 Hostless Playback",
  12043. 0, 0, 0, 0),
  12044. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  12045. "Quinary TDM4 Hostless Capture",
  12046. 0, 0, 0, 0),
  12047. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  12048. "Quinary TDM5 Hostless Playback",
  12049. 0, 0, 0, 0),
  12050. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  12051. "Quinary TDM5 Hostless Capture",
  12052. 0, 0, 0, 0),
  12053. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  12054. "Quinary TDM6 Hostless Playback",
  12055. 0, 0, 0, 0),
  12056. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  12057. "Quinary TDM6 Hostless Capture",
  12058. 0, 0, 0, 0),
  12059. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  12060. "Quinary TDM7 Hostless Playback",
  12061. 0, 0, 0, 0),
  12062. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  12063. "Quinary TDM7 Hostless Capture",
  12064. 0, 0, 0, 0),
  12065. /* LSM */
  12066. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  12067. 0, 0, 0, 0),
  12068. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  12069. 0, 0, 0, 0),
  12070. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  12071. 0, 0, 0, 0),
  12072. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  12073. 0, 0, 0, 0),
  12074. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  12075. 0, 0, 0, 0),
  12076. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  12077. 0, 0, 0, 0),
  12078. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  12079. 0, 0, 0, 0),
  12080. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  12081. 0, 0, 0, 0),
  12082. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  12084. /* Backend AIF */
  12085. /* Stream name equals to backend dai link stream name */
  12086. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  12087. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  12090. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  12091. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  12092. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  12093. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  12094. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  12095. 0, 0, 0, 0),
  12096. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  12097. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  12098. 0, 0, 0, 0),
  12099. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  12100. 0, 0, 0, 0),
  12101. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  12102. 0, 0, 0, 0),
  12103. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  12104. "Secondary MI2S Playback SD1",
  12105. 0, 0, 0, 0),
  12106. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12107. 0, 0, 0, 0),
  12108. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12109. 0, 0, 0, 0),
  12110. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12111. 0, 0, 0, 0),
  12112. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12113. 0, 0, 0, 0),
  12114. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12115. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12116. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12117. 0, 0, 0, 0),
  12118. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12119. 0, 0, 0, 0),
  12120. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12121. 0, 0, 0, 0),
  12122. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12123. 0, 0, 0, 0),
  12124. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12125. 0, 0, 0, 0),
  12126. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12127. 0, 0, 0, 0),
  12128. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12129. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12130. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12131. 0, 0, 0, 0),
  12132. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12133. 0, 0, 0, 0),
  12134. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12135. 0, 0, 0, 0),
  12136. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12137. 0, 0, 0, 0),
  12138. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12139. 0, 0, 0, 0),
  12140. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12141. 0, 0, 0, 0),
  12142. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12143. 0, 0, 0, 0),
  12144. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12145. 0, 0, 0, 0),
  12146. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12147. 0, 0, 0, 0),
  12148. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12149. 0, 0, 0, 0),
  12150. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12151. 0, 0, 0, 0),
  12152. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12153. 0, 0, 0, 0),
  12154. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12155. 0, 0, 0, 0),
  12156. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12157. 0, 0, 0, 0),
  12158. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12159. 0, 0, 0, 0),
  12160. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12161. 0, 0, 0, 0),
  12162. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12163. 0, 0, 0, 0),
  12164. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12165. 0, 0, 0, 0),
  12166. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12167. 0, 0, 0, 0),
  12168. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12169. 0, 0, 0, 0),
  12170. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12171. 0, 0, 0, 0),
  12172. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12173. 0, 0, 0, 0),
  12174. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12175. 0, 0, 0, 0),
  12176. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12177. 0, 0, 0, 0),
  12178. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12179. 0, 0, 0, 0),
  12180. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12181. 0, 0, 0, 0),
  12182. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12183. 0, 0, 0, 0),
  12184. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12185. 0, 0, 0, 0),
  12186. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12187. 0, 0, 0, 0),
  12188. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12189. 0, 0, 0, 0),
  12190. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12191. 0, 0, 0, 0),
  12192. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12193. 0, 0, 0, 0),
  12194. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12195. 0, 0, 0, 0),
  12196. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12197. 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12199. 0, 0, 0, 0),
  12200. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12201. 0, 0, 0, 0),
  12202. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12203. 0, 0, 0, 0),
  12204. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12205. 0, 0, 0, 0),
  12206. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12207. 0, 0, 0, 0),
  12208. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12209. 0, 0, 0, 0),
  12210. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12211. 0, 0, 0, 0),
  12212. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12213. 0, 0, 0, 0),
  12214. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12215. 0, 0, 0, 0),
  12216. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12217. 0, 0, 0, 0),
  12218. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12219. 0, 0, 0, 0),
  12220. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12221. 0, 0, 0, 0),
  12222. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12223. 0, 0, 0, 0),
  12224. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12225. 0, 0, 0, 0),
  12226. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12227. 0, 0, 0, 0),
  12228. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12229. 0, 0, 0, 0),
  12230. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12231. 0, 0, 0, 0),
  12232. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12233. 0, 0, 0, 0),
  12234. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12235. 0, 0, 0, 0),
  12236. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12237. 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12239. 0, 0, 0, 0),
  12240. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12241. 0, 0, 0, 0),
  12242. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12243. 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12245. 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12247. 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12249. 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12251. 0, 0, 0, 0),
  12252. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12253. 0, 0, 0, 0),
  12254. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12255. 0, 0, 0, 0),
  12256. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12257. 0, 0, 0, 0),
  12258. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12259. 0, 0, 0, 0),
  12260. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12261. 0, 0, 0, 0),
  12262. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12263. 0, 0, 0, 0),
  12264. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12265. 0, 0, 0, 0),
  12266. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12267. 0, 0, 0, 0),
  12268. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12269. 0, 0, 0, 0),
  12270. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12271. 0, 0, 0, 0),
  12272. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12273. 0, 0, 0, 0),
  12274. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12275. 0, 0, 0, 0),
  12276. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12277. 0, 0, 0, 0),
  12278. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12279. 0, 0, 0, 0),
  12280. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12281. 0, 0, 0, 0),
  12282. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12283. 0, 0, 0, 0),
  12284. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12285. 0, 0, 0, 0),
  12286. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12287. 0, 0, 0, 0),
  12288. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12289. 0, 0, 0, 0),
  12290. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12291. 0, 0, 0, 0),
  12292. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12293. 0, 0, 0, 0),
  12294. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12295. 0, 0, 0, 0),
  12296. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12297. 0, 0, 0, 0),
  12298. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12299. 0, 0, 0, 0),
  12300. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12301. 0, 0, 0, 0),
  12302. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12303. 0, 0, 0, 0),
  12304. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12305. 0, 0, 0, 0),
  12306. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12307. 0, 0, 0, 0),
  12308. /* incall */
  12309. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12310. 0, 0, 0, 0),
  12311. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12312. 0, 0, 0, 0),
  12313. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12314. 0, 0, 0, 0),
  12315. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12316. 0, 0, 0, 0),
  12317. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12318. 0, 0, 0, 0),
  12319. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12320. 0, 0, 0, 0),
  12321. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12322. 0, 0, 0, 0),
  12323. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12324. 0, 0, 0, 0),
  12325. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12326. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12327. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12328. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12329. 0, 0, 0, 0),
  12330. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12331. 0, 0, 0, 0),
  12332. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12333. 0, 0, 0, 0),
  12334. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12335. 0, 0, 0, 0),
  12336. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12337. 0, 0, 0, 0),
  12338. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12339. 0, 0, 0, 0),
  12340. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12341. 0, 0, 0, 0),
  12342. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12343. 0, 0, 0, 0),
  12344. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12345. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12346. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12347. 0, 0, 0, 0),
  12348. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12349. 0, 0, 0, 0),
  12350. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12351. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12352. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12353. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12354. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12355. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12356. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12357. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12358. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12359. /* In- call recording */
  12360. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12361. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12362. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12363. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12364. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12365. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12366. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12367. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12368. /* Switch Definitions */
  12369. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12370. &slim_fm_switch_mixer_controls),
  12371. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12372. &slim1_fm_switch_mixer_controls),
  12373. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12374. &slim3_fm_switch_mixer_controls),
  12375. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12376. &slim4_fm_switch_mixer_controls),
  12377. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12378. &slim6_fm_switch_mixer_controls),
  12379. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12380. &pcm_rx_switch_mixer_controls),
  12381. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12382. &int0_mi2s_rx_switch_mixer_controls),
  12383. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12384. &int4_mi2s_rx_switch_mixer_controls),
  12385. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12386. &pri_mi2s_rx_switch_mixer_controls),
  12387. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12388. &sec_mi2s_rx_switch_mixer_controls),
  12389. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12390. &tert_mi2s_rx_switch_mixer_controls),
  12391. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12392. &quat_mi2s_rx_switch_mixer_controls),
  12393. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12394. &quin_mi2s_rx_switch_mixer_controls),
  12395. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12396. &hfp_pri_aux_switch_mixer_controls),
  12397. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12398. &hfp_aux_switch_mixer_controls),
  12399. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12400. &hfp_int_switch_mixer_controls),
  12401. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12402. &hfp_slim7_switch_mixer_controls),
  12403. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12404. &usb_switch_mixer_controls),
  12405. /* Mixer definitions */
  12406. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12407. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12408. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12409. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12410. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12411. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12412. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12413. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12414. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12415. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12416. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12417. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12418. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12419. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12420. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12421. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12422. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12423. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12424. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12425. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12426. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12427. quaternary_mi2s_rx_mixer_controls,
  12428. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12429. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12430. tertiary_mi2s_rx_mixer_controls,
  12431. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12432. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12433. secondary_mi2s_rx_mixer_controls,
  12434. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12435. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12436. secondary_mi2s_rx2_mixer_controls,
  12437. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12438. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12439. primary_mi2s_rx_mixer_controls,
  12440. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12441. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12442. int0_mi2s_rx_mixer_controls,
  12443. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12444. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12445. int4_mi2s_rx_mixer_controls,
  12446. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12447. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12448. quinary_mi2s_rx_mixer_controls,
  12449. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12450. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12451. pri_tdm_rx_0_mixer_controls,
  12452. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12453. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12454. pri_tdm_rx_1_mixer_controls,
  12455. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12456. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12457. pri_tdm_rx_2_mixer_controls,
  12458. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12459. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12460. pri_tdm_rx_3_mixer_controls,
  12461. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12462. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12463. pri_tdm_tx_0_mixer_controls,
  12464. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12465. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12466. sec_tdm_rx_0_mixer_controls,
  12467. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12468. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12469. sec_tdm_rx_1_mixer_controls,
  12470. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12471. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12472. sec_tdm_rx_2_mixer_controls,
  12473. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12474. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12475. sec_tdm_rx_3_mixer_controls,
  12476. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12477. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12478. sec_tdm_tx_0_mixer_controls,
  12479. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12480. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12481. tert_tdm_rx_0_mixer_controls,
  12482. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12483. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12484. tert_tdm_tx_0_mixer_controls,
  12485. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12486. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12487. tert_tdm_rx_1_mixer_controls,
  12488. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12489. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12490. tert_tdm_rx_2_mixer_controls,
  12491. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12492. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12493. tert_tdm_rx_3_mixer_controls,
  12494. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12495. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12496. tert_tdm_rx_4_mixer_controls,
  12497. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12498. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12499. quat_tdm_rx_0_mixer_controls,
  12500. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12501. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12502. quat_tdm_tx_0_mixer_controls,
  12503. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12504. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12505. quat_tdm_rx_1_mixer_controls,
  12506. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12507. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12508. quat_tdm_rx_2_mixer_controls,
  12509. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12510. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12511. quat_tdm_rx_3_mixer_controls,
  12512. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12513. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12514. quin_tdm_rx_0_mixer_controls,
  12515. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12516. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12517. quin_tdm_tx_0_mixer_controls,
  12518. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12519. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12520. quin_tdm_rx_1_mixer_controls,
  12521. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12522. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12523. quin_tdm_rx_2_mixer_controls,
  12524. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12525. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12526. quin_tdm_rx_3_mixer_controls,
  12527. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12528. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12529. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12530. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12531. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12532. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12533. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12534. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12535. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12536. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12537. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12538. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12539. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12540. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12541. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12542. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12543. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12544. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12545. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12546. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12547. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12548. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12549. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12550. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12551. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12552. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12553. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12554. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12555. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12556. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12557. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12558. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12559. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12560. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12561. tert_auxpcm_rx_mixer_controls,
  12562. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12563. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12564. quat_auxpcm_rx_mixer_controls,
  12565. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12566. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12567. quin_auxpcm_rx_mixer_controls,
  12568. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12569. /* incall */
  12570. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12571. incall_music_delivery_mixer_controls,
  12572. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12573. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12574. incall_music2_delivery_mixer_controls,
  12575. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12576. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12577. slimbus_4_rx_mixer_controls,
  12578. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12579. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12580. slimbus_6_rx_mixer_controls,
  12581. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12582. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12583. usb_audio_rx_mixer_controls,
  12584. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12585. /* Voice Mixer */
  12586. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12587. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12588. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12589. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12590. SND_SOC_NOPM, 0, 0,
  12591. sec_i2s_rx_voice_mixer_controls,
  12592. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12593. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12594. SND_SOC_NOPM, 0, 0,
  12595. sec_mi2s_rx_voice_mixer_controls,
  12596. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12597. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12598. SND_SOC_NOPM, 0, 0,
  12599. slimbus_rx_voice_mixer_controls,
  12600. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12601. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12602. SND_SOC_NOPM, 0, 0,
  12603. bt_sco_rx_voice_mixer_controls,
  12604. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12605. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12606. SND_SOC_NOPM, 0, 0,
  12607. afe_pcm_rx_voice_mixer_controls,
  12608. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12609. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12610. SND_SOC_NOPM, 0, 0,
  12611. aux_pcm_rx_voice_mixer_controls,
  12612. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12613. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12614. SND_SOC_NOPM, 0, 0,
  12615. sec_aux_pcm_rx_voice_mixer_controls,
  12616. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12617. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12618. SND_SOC_NOPM, 0, 0,
  12619. tert_aux_pcm_rx_voice_mixer_controls,
  12620. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12621. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12622. SND_SOC_NOPM, 0, 0,
  12623. quat_aux_pcm_rx_voice_mixer_controls,
  12624. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12625. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12626. SND_SOC_NOPM, 0, 0,
  12627. quin_aux_pcm_rx_voice_mixer_controls,
  12628. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12629. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12630. SND_SOC_NOPM, 0, 0,
  12631. hdmi_rx_voice_mixer_controls,
  12632. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12633. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12634. SND_SOC_NOPM, 0, 0,
  12635. mi2s_rx_voice_mixer_controls,
  12636. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12637. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12638. SND_SOC_NOPM, 0, 0,
  12639. pri_mi2s_rx_voice_mixer_controls,
  12640. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12641. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12642. SND_SOC_NOPM, 0, 0,
  12643. int0_mi2s_rx_voice_mixer_controls,
  12644. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12645. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12646. SND_SOC_NOPM, 0, 0,
  12647. int4_mi2s_rx_voice_mixer_controls,
  12648. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12649. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12650. SND_SOC_NOPM, 0, 0,
  12651. tert_mi2s_rx_voice_mixer_controls,
  12652. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12653. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12654. SND_SOC_NOPM, 0, 0,
  12655. quat_mi2s_rx_voice_mixer_controls,
  12656. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12657. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12658. SND_SOC_NOPM, 0, 0,
  12659. quin_mi2s_rx_voice_mixer_controls,
  12660. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12661. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12662. SND_SOC_NOPM, 0, 0,
  12663. quat_tdm_rx_2_voice_mixer_controls,
  12664. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12665. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12666. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12667. ARRAY_SIZE(tx_voip_mixer_controls)),
  12668. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12669. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12670. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12671. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12672. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12673. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12674. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12675. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12676. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12677. int_bt_a2dp_rx_mixer_controls,
  12678. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12679. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12680. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12681. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12682. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12683. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12684. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12685. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12686. tx_voice2_stub_mixer_controls,
  12687. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12688. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12689. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12690. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12691. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12692. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12693. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12694. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12695. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12696. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12697. SND_SOC_NOPM, 0, 0,
  12698. slimbus_6_rx_voice_mixer_controls,
  12699. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12700. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12701. slimbus_7_rx_voice_mixer_controls,
  12702. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12703. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12704. slimbus_8_rx_voice_mixer_controls,
  12705. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12706. /* port mixer */
  12707. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12708. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12709. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12710. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12711. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12712. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12713. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12714. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12715. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12716. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12717. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12718. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12719. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12720. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12721. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12722. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12723. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12724. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12725. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12726. sbus_1_rx_port_mixer_controls,
  12727. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12728. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12729. bt_sco_rx_port_mixer_controls,
  12730. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12731. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12732. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12733. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12734. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12735. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12736. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12737. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12738. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12739. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12740. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12741. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12742. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12743. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12744. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12745. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12746. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12747. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12748. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12749. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12750. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12751. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12752. primary_mi2s_rx_port_mixer_controls,
  12753. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12754. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12755. sec_mi2s_rx_port_mixer_controls,
  12756. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12757. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12758. tert_mi2s_rx_port_mixer_controls,
  12759. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12760. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12761. quat_mi2s_rx_port_mixer_controls,
  12762. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12763. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12764. quin_mi2s_rx_port_mixer_controls,
  12765. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12766. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12767. pri_tdm_rx_0_port_mixer_controls,
  12768. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12769. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12770. pri_tdm_rx_1_port_mixer_controls,
  12771. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12772. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12773. pri_tdm_rx_2_port_mixer_controls,
  12774. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12775. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12776. pri_tdm_rx_3_port_mixer_controls,
  12777. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12778. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12779. sec_tdm_rx_0_port_mixer_controls,
  12780. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12781. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12782. sec_tdm_rx_1_port_mixer_controls,
  12783. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12784. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12785. sec_tdm_rx_2_port_mixer_controls,
  12786. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12787. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12788. sec_tdm_rx_3_port_mixer_controls,
  12789. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12790. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12791. tert_tdm_rx_0_port_mixer_controls,
  12792. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12793. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12794. tert_tdm_rx_1_port_mixer_controls,
  12795. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12796. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12797. tert_tdm_rx_2_port_mixer_controls,
  12798. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12799. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12800. tert_tdm_rx_3_port_mixer_controls,
  12801. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12802. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12803. quat_tdm_rx_0_port_mixer_controls,
  12804. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12805. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12806. quat_tdm_rx_1_port_mixer_controls,
  12807. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12808. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12809. quat_tdm_rx_2_port_mixer_controls,
  12810. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12811. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12812. quat_tdm_rx_3_port_mixer_controls,
  12813. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12814. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12815. quin_tdm_rx_0_port_mixer_controls,
  12816. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12817. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12818. quin_tdm_rx_1_port_mixer_controls,
  12819. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12820. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12821. quin_tdm_rx_2_port_mixer_controls,
  12822. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12823. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12824. quin_tdm_rx_3_port_mixer_controls,
  12825. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12826. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12827. int0_mi2s_rx_port_mixer_controls,
  12828. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12829. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12830. int4_mi2s_rx_port_mixer_controls,
  12831. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12832. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12833. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12834. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12835. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12836. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12837. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12838. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12839. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12840. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12841. /* lsm mixer definitions */
  12842. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12843. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12844. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12845. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12846. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12847. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12848. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12849. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12850. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12851. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12852. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12853. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12854. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12855. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12856. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12857. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12858. /* Virtual Pins to force backends ON atm */
  12859. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12860. SND_SOC_DAPM_INPUT("BE_IN"),
  12861. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12862. &slim0_rx_vi_fb_lch_mux),
  12863. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12864. &slim0_rx_vi_fb_rch_mux),
  12865. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12866. &mi2s_rx_vi_fb_mux),
  12867. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12868. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12869. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12870. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12871. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12872. &voc_ext_ec_mux),
  12873. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12874. &ext_ec_ref_mux_ul1),
  12875. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12876. &ext_ec_ref_mux_ul2),
  12877. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12878. &ext_ec_ref_mux_ul3),
  12879. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12880. &ext_ec_ref_mux_ul4),
  12881. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12882. &ext_ec_ref_mux_ul5),
  12883. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12884. &ext_ec_ref_mux_ul6),
  12885. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12886. &ext_ec_ref_mux_ul8),
  12887. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12888. &ext_ec_ref_mux_ul9),
  12889. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12890. &ext_ec_ref_mux_ul10),
  12891. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12892. &ext_ec_ref_mux_ul16),
  12893. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12894. &ext_ec_ref_mux_ul17),
  12895. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12896. &ext_ec_ref_mux_ul18),
  12897. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12898. &ext_ec_ref_mux_ul19),
  12899. };
  12900. static const struct snd_soc_dapm_route intercon[] = {
  12901. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12902. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12903. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12904. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12905. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12906. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12907. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12908. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12909. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12910. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12911. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12912. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12913. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12914. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12915. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12916. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12917. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12918. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12919. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12920. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12921. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12922. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12923. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12924. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12925. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12926. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12927. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12928. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12929. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12930. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12931. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12932. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12933. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12934. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12935. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12936. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12937. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12938. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12939. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12940. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12941. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12942. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12943. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12944. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12945. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12946. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12947. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12948. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12949. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12950. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12951. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12952. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12953. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12954. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12955. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12956. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12957. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12958. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12959. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12960. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12961. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12962. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12963. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12964. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12965. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12966. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12967. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12968. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12969. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12970. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12971. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12972. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12973. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12974. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12975. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12976. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12977. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12978. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12979. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12980. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12981. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12982. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12983. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12984. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12985. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12986. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12987. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12988. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12989. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12990. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12991. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12992. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12993. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12994. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12995. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12996. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12997. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12998. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12999. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  13000. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  13001. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  13002. {"HDMI", NULL, "HDMI Mixer"},
  13003. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  13004. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  13005. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  13006. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  13007. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  13008. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  13009. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  13010. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  13011. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  13012. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  13013. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  13014. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  13015. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  13016. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  13017. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  13018. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  13019. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  13020. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13021. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13022. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13023. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13024. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13025. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13026. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13027. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13028. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13029. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13030. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13031. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13032. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13033. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13034. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13035. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13036. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  13037. /* incall */
  13038. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  13039. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  13040. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  13041. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  13042. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  13043. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13044. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13045. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13046. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13047. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  13048. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13049. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13050. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13051. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13052. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  13053. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13054. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13055. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13056. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13057. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13058. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13059. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13060. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13061. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13062. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13063. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13064. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13065. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13066. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13067. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13068. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13069. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  13070. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13071. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13072. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13073. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13074. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13075. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13076. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13077. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13078. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13079. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13080. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13081. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13082. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13083. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13084. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13085. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13086. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  13087. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13088. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13089. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13090. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13091. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13092. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13093. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13094. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13095. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13096. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13097. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13098. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13099. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13100. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13101. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13102. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13103. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13104. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13105. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13106. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13107. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13108. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13109. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13110. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13111. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13112. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13113. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13114. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13115. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13116. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13117. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13118. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13119. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13120. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13121. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13122. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13123. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13124. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13125. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13126. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13127. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13128. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13129. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13130. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13131. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13132. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13133. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13134. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13135. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13136. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13137. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13138. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13139. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13140. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13141. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13142. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13143. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13144. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13145. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13146. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13147. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13148. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13149. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13150. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13151. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13152. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13153. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13154. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13155. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13156. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13157. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13158. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13159. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13160. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13161. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13162. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13163. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13164. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13165. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13166. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13167. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13168. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13169. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13170. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13171. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13172. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13173. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13174. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13175. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13176. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13177. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13178. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13179. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13180. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13181. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13182. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13183. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13184. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13185. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13186. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13187. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13188. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13189. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13190. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13191. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13192. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13193. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13194. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13195. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13196. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13197. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13198. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13199. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13200. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13201. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13202. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13203. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13204. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13205. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13206. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13207. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13208. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13209. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13210. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13211. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13212. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13213. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13214. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13215. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13216. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13217. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13218. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13219. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13220. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13221. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13222. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13223. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13224. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13225. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13226. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13227. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13228. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13229. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13230. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13231. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13232. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13233. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13234. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13235. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13236. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13237. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13238. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13239. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13240. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13241. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13242. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13243. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13244. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13245. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13246. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13247. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13248. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13249. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13250. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13251. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13252. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13253. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13254. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13255. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13256. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13257. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13258. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13259. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13260. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13261. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13262. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13263. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13264. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13265. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13266. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13267. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13268. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13269. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13270. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13271. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13272. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13273. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13274. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13275. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13276. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13277. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13278. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13279. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13280. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13281. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13282. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13283. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13284. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13285. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13286. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13287. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13288. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13289. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13290. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13291. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13292. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13293. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13294. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13295. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13296. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13297. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13298. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13299. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13300. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13301. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13302. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13303. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13304. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13305. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13306. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13307. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13308. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13309. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13310. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13311. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13312. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13313. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13314. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13315. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13316. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13317. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13318. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13319. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13320. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13321. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13322. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13323. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13324. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13325. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13326. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13327. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13328. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13329. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13330. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13331. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13332. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13333. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13334. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13335. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13336. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13337. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13338. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13339. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13340. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13341. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13342. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13343. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13344. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13345. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13346. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13347. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13348. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13349. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13350. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13351. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13352. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13353. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13354. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13355. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13356. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13357. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13358. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13359. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13360. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13361. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13362. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13363. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13364. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13365. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13366. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13367. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13368. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13369. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13370. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13371. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13372. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13373. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13374. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13375. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13376. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13377. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13378. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13379. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13380. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13381. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13382. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13383. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13384. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13385. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13386. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13387. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13388. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13389. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13390. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13391. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13392. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13393. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13394. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13395. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13396. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13397. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13398. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13399. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13400. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13401. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13402. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13403. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13404. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13405. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13406. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13407. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13408. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13409. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13410. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13411. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13412. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13413. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13414. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13415. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13416. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13417. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13418. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13419. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13420. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13421. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13422. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13423. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13424. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13425. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13426. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13427. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13428. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13429. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13430. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13431. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13432. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13433. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13434. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13435. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13436. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13437. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13438. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13439. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13440. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13441. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13442. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13443. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13444. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13445. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13446. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13447. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13448. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13449. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13450. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13451. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13452. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13453. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13454. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13455. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13456. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13457. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13458. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13459. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13460. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13461. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13462. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13463. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13464. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13465. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13466. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13467. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13468. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13469. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13470. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13471. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13472. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13473. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13474. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13475. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13476. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13477. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13478. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13479. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13480. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13481. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13482. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13483. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13484. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13485. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13486. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13487. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13488. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13489. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13490. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13491. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13492. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13493. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13494. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13495. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13496. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13497. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13498. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13499. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13500. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13501. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13502. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13503. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13504. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13505. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13506. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13507. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13508. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13509. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13510. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13511. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13512. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13513. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13514. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13515. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13516. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13517. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13518. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13519. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13520. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13521. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13522. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13523. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13524. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13525. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13526. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13527. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13528. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13529. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13530. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13531. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13532. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13533. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13534. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13535. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13536. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13537. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13538. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13539. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13540. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13541. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13542. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13543. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13544. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13545. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13546. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13547. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13548. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13549. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13550. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13551. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13552. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13553. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13554. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13555. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13556. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13557. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13558. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13559. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13560. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13561. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13562. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13563. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13564. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13565. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13566. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13567. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13568. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13569. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13570. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13571. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13572. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13573. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13574. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13575. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13576. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13577. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13578. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13579. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13580. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13581. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13582. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13583. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13584. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13585. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13586. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13587. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13588. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13589. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13590. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13591. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13592. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13593. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13596. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13597. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13598. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13599. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13600. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13601. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13602. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13603. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13604. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13605. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13606. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13607. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13608. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13609. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13610. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13611. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13618. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13619. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13620. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13621. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13622. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13623. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13624. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13625. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13626. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13627. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13628. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13629. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13637. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13638. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13639. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13640. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13641. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13642. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13643. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13644. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13645. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13646. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13647. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13654. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13655. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13656. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13657. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13658. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13659. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13660. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13662. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13663. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13664. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13673. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13674. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13675. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13676. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13677. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13682. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13683. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13684. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13685. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13686. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13692. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13693. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13694. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13695. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13700. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13701. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13702. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13703. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13704. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13705. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13706. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13707. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13708. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13709. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13711. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13712. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13713. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13718. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13719. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13720. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13721. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13722. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13723. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13724. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13725. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13726. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13727. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13728. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13729. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13730. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13731. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13732. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13733. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13734. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13735. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13736. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13737. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13738. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13739. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13740. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13741. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13742. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13743. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13744. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13745. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13746. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13747. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13748. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13749. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13750. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13751. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13752. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13753. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13754. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13755. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13756. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13757. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13758. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13759. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13760. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13761. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13762. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13763. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13764. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13765. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13766. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13767. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13768. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13769. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13770. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13771. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13772. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13773. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13774. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13775. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13776. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13777. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13778. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13779. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13780. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13781. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13782. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13783. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13784. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13785. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13786. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13787. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13788. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13789. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13790. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13791. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13792. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13793. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13794. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13795. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13796. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13797. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13798. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13799. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13800. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13801. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13802. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13803. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13804. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13805. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13806. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13807. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13808. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13809. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13810. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13811. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13812. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13813. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13814. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13815. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13816. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13817. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13818. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13819. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13820. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13821. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13822. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13823. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13824. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13825. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13826. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13827. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13828. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13829. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13830. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13831. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13832. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13833. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13834. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13835. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13836. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13837. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13838. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13839. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13840. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13841. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13842. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13843. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13844. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13845. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13846. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13847. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13848. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13849. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13850. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13851. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13852. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13853. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13854. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13855. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13856. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13857. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13858. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13859. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13860. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13861. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13862. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13863. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13864. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13865. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13866. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13867. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13868. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13869. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13870. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13871. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13872. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13873. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13874. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13875. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13876. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13877. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13878. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13879. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13880. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13881. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13882. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13883. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13884. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13885. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13886. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13887. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13888. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13889. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13890. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13891. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13892. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13893. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13894. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13895. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13896. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13897. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13898. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13899. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13900. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13901. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13902. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13903. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13904. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13905. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13906. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13907. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13908. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13909. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13910. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13911. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13912. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13913. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13914. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13915. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13916. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13917. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13918. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13919. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13920. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13921. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13922. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13923. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13924. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13925. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13926. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13927. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13928. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13929. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13930. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13931. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13932. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13933. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13934. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13935. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13936. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13937. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13938. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13939. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13940. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13941. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13942. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13943. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13944. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13945. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13946. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13947. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13948. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13949. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13950. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13951. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13952. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13953. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13954. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13955. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13956. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13957. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13958. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13959. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13960. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13961. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13962. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13963. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13964. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13965. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13966. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13967. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13968. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13969. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13970. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13971. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13972. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13973. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13974. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13975. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13976. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13977. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13978. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13979. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13980. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13981. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13982. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13983. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13984. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13985. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13986. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13987. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13988. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13989. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13990. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13991. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13992. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13993. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13994. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13995. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13996. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13997. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13998. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13999. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14000. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14001. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14002. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14003. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14004. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14005. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14006. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14007. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14008. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14009. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14010. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14011. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14012. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14013. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  14014. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14015. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14016. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14017. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14018. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14019. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14020. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14021. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14022. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14023. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14024. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14025. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14026. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14027. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14028. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14029. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14030. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14031. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  14032. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14033. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14034. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14035. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14036. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14037. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14038. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14039. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14040. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14041. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14042. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14043. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14044. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14045. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14046. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14047. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14048. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  14049. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14050. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14051. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14052. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14053. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14054. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14055. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14056. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14057. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14058. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14059. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14060. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14061. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14062. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14063. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14064. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14065. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  14066. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14067. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14068. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14069. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14070. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14071. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14072. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14073. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14074. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14075. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14076. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14077. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14078. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14079. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14080. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14081. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14082. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14083. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14084. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14085. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14086. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14087. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14088. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14089. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14090. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14091. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14092. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14093. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14094. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14095. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14096. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14097. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14098. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14099. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14100. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14101. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14102. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14103. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14104. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14105. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14106. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14107. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14108. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14109. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14110. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14111. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14112. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14113. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14114. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14115. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14116. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14117. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14118. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14119. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14120. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14121. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14122. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14123. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14124. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14125. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14126. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14127. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14128. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14129. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14130. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14131. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14132. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14133. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14134. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14135. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14136. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14137. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14138. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14139. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14140. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14141. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14142. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14143. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14144. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14145. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14146. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14147. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14148. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14149. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14150. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14151. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14152. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14153. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14154. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14155. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14156. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14157. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14158. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14159. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14160. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14161. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14162. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14163. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14164. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14165. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14166. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14167. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14168. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14169. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14170. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14171. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14172. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14173. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14174. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14175. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14176. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14177. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14178. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14179. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14180. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14181. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14182. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14183. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14184. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14185. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14186. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14187. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14188. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14189. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14190. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14191. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14192. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14193. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14194. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14195. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14196. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14197. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14198. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14199. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14200. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14201. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14202. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14203. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14204. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14205. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14206. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14207. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14208. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14209. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14210. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14211. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14212. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14213. {"SLIM_0_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14214. {"SLIM_0_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14215. {"SLIM_0_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14216. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14217. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14218. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14219. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14220. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14221. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14222. {"SLIM_6_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14223. {"SLIM_6_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14224. {"SLIM_6_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14225. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14226. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14227. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14228. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14229. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14230. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14231. {"USB_AUDIO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14232. {"USB_AUDIO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14233. {"USB_AUDIO_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14234. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14235. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14236. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14237. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14238. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14239. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14240. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14241. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14242. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14243. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14244. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14245. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14246. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14247. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14248. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14249. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14250. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14251. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14252. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14253. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14254. {"AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14255. {"AUX_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14256. {"AUX_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14257. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14258. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14259. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14260. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14261. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14262. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14263. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14264. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14265. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14266. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14267. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14268. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14269. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14270. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14271. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14272. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14273. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14274. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14275. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14276. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14277. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14278. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14279. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14280. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14281. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14282. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14283. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14284. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14285. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14286. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14287. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14288. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14289. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14290. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14291. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14292. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14293. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14294. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14295. {"HDMI", NULL, "HDMI_DL_HL"},
  14296. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14297. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14298. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14299. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14300. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14301. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14302. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14303. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14304. {"PRI_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14305. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14306. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14307. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14308. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14309. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14310. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14311. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14312. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14313. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14314. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14315. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14316. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14317. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14318. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14319. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14320. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14321. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14322. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14323. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14324. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14325. {"TERT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14326. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14327. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14328. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14329. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14330. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14331. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14332. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14333. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14334. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14335. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14336. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14337. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14338. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14339. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14340. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14341. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14342. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14343. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14344. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14345. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14346. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14347. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14348. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14349. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14350. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14351. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14352. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14353. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14354. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14355. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14356. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14357. {"CS-VOICE_UL1", NULL, "VOC_EXT_EC MUX"},
  14358. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14359. {"VoLTE_UL", NULL, "VOC_EXT_EC MUX"},
  14360. {"VOICE2_UL", NULL, "VOC_EXT_EC MUX"},
  14361. {"VoWLAN_UL", NULL, "VOC_EXT_EC MUX"},
  14362. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14363. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14364. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14365. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14366. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14367. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14368. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14369. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14370. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14371. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14372. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14373. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14374. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14375. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14376. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14377. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14378. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14379. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14380. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14381. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14382. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14383. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14384. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14385. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14386. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14387. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14388. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14389. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14390. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14391. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14392. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14393. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14394. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14395. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14396. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14397. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14398. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14399. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14400. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14401. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14402. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14403. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14404. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14405. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14406. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14407. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14408. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14409. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14410. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14411. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14412. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14413. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14414. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14415. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14416. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14417. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14418. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14419. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14420. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14421. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14422. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14423. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14424. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14425. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14426. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14427. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14428. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14429. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14430. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14431. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14432. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14433. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14434. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14435. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14436. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14437. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14438. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14439. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14440. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14441. {"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
  14442. {"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
  14443. {"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
  14444. {"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
  14445. {"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
  14446. {"Voice_Tx Mixer", "SLIM_7_TX_Voice", "SLIMBUS_7_TX"},
  14447. {"Voice_Tx Mixer", "SLIM_8_TX_Voice", "SLIMBUS_8_TX"},
  14448. {"Voice_Tx Mixer", "USB_AUDIO_TX_Voice", "USB_AUDIO_TX"},
  14449. {"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
  14450. {"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
  14451. {"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
  14452. {"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
  14453. {"Voice_Tx Mixer", "TERT_AUX_PCM_TX_Voice", "TERT_AUX_PCM_TX"},
  14454. {"Voice_Tx Mixer", "QUAT_AUX_PCM_TX_Voice", "QUAT_AUX_PCM_TX"},
  14455. {"Voice_Tx Mixer", "QUIN_AUX_PCM_TX_Voice", "QUIN_AUX_PCM_TX"},
  14456. {"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
  14457. {"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
  14458. {"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
  14459. {"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
  14460. {"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
  14461. {"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
  14462. {"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
  14463. {"Voice2_Tx Mixer", "SLIM_7_TX_Voice2", "SLIMBUS_7_TX"},
  14464. {"Voice2_Tx Mixer", "SLIM_8_TX_Voice2", "SLIMBUS_8_TX"},
  14465. {"Voice2_Tx Mixer", "USB_AUDIO_TX_Voice2", "USB_AUDIO_TX"},
  14466. {"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
  14467. {"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
  14468. {"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
  14469. {"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
  14470. {"Voice2_Tx Mixer", "TERT_AUX_PCM_TX_Voice2", "TERT_AUX_PCM_TX"},
  14471. {"Voice2_Tx Mixer", "QUAT_AUX_PCM_TX_Voice2", "QUAT_AUX_PCM_TX"},
  14472. {"Voice2_Tx Mixer", "QUIN_AUX_PCM_TX_Voice2", "QUIN_AUX_PCM_TX"},
  14473. {"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
  14474. {"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
  14475. {"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
  14476. {"VoLTE_Tx Mixer", "SLIM_7_TX_VoLTE", "SLIMBUS_7_TX"},
  14477. {"VoLTE_Tx Mixer", "SLIM_8_TX_VoLTE", "SLIMBUS_8_TX"},
  14478. {"VoLTE_Tx Mixer", "USB_AUDIO_TX_VoLTE", "USB_AUDIO_TX"},
  14479. {"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
  14480. {"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
  14481. {"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
  14482. {"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
  14483. {"VoLTE_Tx Mixer", "TERT_AUX_PCM_TX_VoLTE", "TERT_AUX_PCM_TX"},
  14484. {"VoLTE_Tx Mixer", "QUAT_AUX_PCM_TX_VoLTE", "QUAT_AUX_PCM_TX"},
  14485. {"VoLTE_Tx Mixer", "QUIN_AUX_PCM_TX_VoLTE", "QUIN_AUX_PCM_TX"},
  14486. {"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
  14487. {"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
  14488. {"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
  14489. {"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
  14490. {"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
  14491. {"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
  14492. {"VoWLAN_Tx Mixer", "SLIM_7_TX_VoWLAN", "SLIMBUS_7_TX"},
  14493. {"VoWLAN_Tx Mixer", "SLIM_8_TX_VoWLAN", "SLIMBUS_8_TX"},
  14494. {"VoWLAN_Tx Mixer", "USB_AUDIO_TX_VoWLAN", "USB_AUDIO_TX"},
  14495. {"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
  14496. {"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
  14497. {"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
  14498. {"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
  14499. {"VoWLAN_Tx Mixer", "TERT_AUX_PCM_TX_VoWLAN", "TERT_AUX_PCM_TX"},
  14500. {"VoWLAN_Tx Mixer", "QUAT_AUX_PCM_TX_VoWLAN", "QUAT_AUX_PCM_TX"},
  14501. {"VoWLAN_Tx Mixer", "QUIN_AUX_PCM_TX_VoWLAN", "QUIN_AUX_PCM_TX"},
  14502. {"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
  14503. {"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
  14504. {"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
  14505. {"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
  14506. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14507. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14508. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14509. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14510. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14511. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14512. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14513. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14514. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14515. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14516. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14517. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14518. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14519. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14520. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14521. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14522. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14523. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14524. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14525. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14526. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14527. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14528. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14529. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14530. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14531. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14532. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14533. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14534. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14535. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14536. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14537. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14538. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14539. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14540. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14541. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14542. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14543. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14544. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14545. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14546. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14547. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14548. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14549. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14550. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14551. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14552. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14553. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14554. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14555. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14556. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14557. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14558. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14559. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14560. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14561. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14562. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14563. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14564. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14565. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14566. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14567. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14568. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14569. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14570. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14571. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14572. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14573. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14574. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14575. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14576. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14577. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14578. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14579. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14580. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14581. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14582. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14583. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14584. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14585. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14586. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14587. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14588. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14589. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14590. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14591. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14592. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14593. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14594. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14595. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14596. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14597. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14598. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14599. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14600. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14601. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14602. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14603. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14604. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14605. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14606. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14607. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14608. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14609. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14610. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14611. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14612. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14613. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14614. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14615. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14616. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14617. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14618. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14619. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14620. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14621. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14622. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14623. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14624. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14625. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14626. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14627. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14628. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14629. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14630. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14631. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14632. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14633. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14634. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14635. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14636. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14637. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14638. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14639. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14640. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14641. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14642. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14643. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14644. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14645. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14646. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14647. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14648. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14649. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14650. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14651. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14652. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14653. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14654. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14655. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14656. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14657. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14658. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14659. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14660. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14661. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14662. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14663. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14664. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14665. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14666. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14667. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14668. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14669. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14670. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14671. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14672. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14673. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14674. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14675. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14676. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14677. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14678. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14679. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14680. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14681. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14682. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14683. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14684. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14685. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14686. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14687. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14688. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14689. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14690. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14691. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14692. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14693. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14694. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14695. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14696. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14697. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14698. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14699. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14700. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14701. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14702. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14703. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14704. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14705. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14706. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14707. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14708. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14709. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14710. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14711. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14712. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14713. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14714. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14715. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14716. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14717. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14718. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14719. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14720. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14721. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14722. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14723. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14724. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14725. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14726. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14727. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14728. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14729. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14730. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14731. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14732. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14733. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14734. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14735. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14736. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14737. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14738. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14739. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14740. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14741. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14742. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14743. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14744. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14745. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14746. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14747. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14748. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14749. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14750. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14751. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14752. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14753. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14754. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14755. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14756. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14757. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14758. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14759. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14760. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14761. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14762. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14763. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14764. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14765. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14766. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14767. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14768. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14769. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14770. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14771. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14772. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14773. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14774. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14775. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14776. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14777. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14778. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14779. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14780. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14781. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14782. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14783. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14784. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14785. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14786. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14787. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14788. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14789. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14790. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14791. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14792. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14793. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14794. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14795. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14796. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14797. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14798. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14799. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14800. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14801. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14802. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14803. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14804. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14805. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14806. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14807. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14808. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14809. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14810. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14811. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14812. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14813. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14814. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14815. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14816. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14817. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14818. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14819. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14820. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14821. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14822. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14823. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14824. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14825. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14826. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14827. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14828. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14829. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14830. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14831. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14832. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14833. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14834. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14835. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14836. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14837. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14838. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14839. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14840. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14841. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14842. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14843. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14844. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14845. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14846. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14847. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14848. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14849. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14850. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14851. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14852. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14853. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14854. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14855. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14856. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14857. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14858. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14859. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14860. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14861. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14862. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14863. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14864. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14865. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14866. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14867. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14868. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14869. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14870. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14871. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14872. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14873. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14874. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14875. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14876. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14877. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14878. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14879. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14880. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14881. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14882. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14883. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14884. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14885. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14886. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14887. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14888. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14889. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14890. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14891. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14892. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14893. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14894. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14895. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14896. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14897. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14898. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14899. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14900. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14901. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14902. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14903. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14904. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14905. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14906. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14907. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14908. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14909. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14910. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14911. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14912. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14913. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14914. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14915. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14916. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14917. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14918. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14919. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14920. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14921. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14922. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14923. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14924. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14925. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14926. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14927. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14928. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14929. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14930. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14931. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14932. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14933. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14934. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14935. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14936. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14937. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14938. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14939. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14940. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14941. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14942. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14943. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14944. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14945. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14946. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14947. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14948. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14949. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14950. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14951. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14952. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14953. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14954. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14955. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14956. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14957. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14958. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14959. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14960. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14961. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14962. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14963. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14964. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14965. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14966. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14967. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14968. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14969. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14970. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14971. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14972. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14973. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14974. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14975. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14976. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14977. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14978. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14979. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14980. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14981. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14982. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14983. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14984. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14985. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14986. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14987. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14988. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14989. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14990. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14991. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14992. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14993. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14994. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14995. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14996. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14997. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14998. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14999. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15000. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15001. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15002. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15003. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15004. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15005. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15006. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15007. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15008. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15009. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15010. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15011. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  15012. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15013. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15014. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15015. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15016. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15017. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15018. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15019. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15020. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15021. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15022. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15023. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15024. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15025. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15026. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15027. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15028. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15029. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15030. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15031. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15032. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  15033. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15034. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15035. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15036. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15037. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15038. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15039. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15040. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15041. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15042. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15043. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15044. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15045. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15046. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15047. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15048. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15049. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15050. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15051. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15052. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15053. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  15054. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15055. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15056. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15057. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15058. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15059. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15060. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15061. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15062. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15063. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15064. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15065. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15066. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15067. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15068. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15069. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15070. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15071. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15072. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15073. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15074. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  15075. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15076. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15077. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15078. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15079. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15080. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15081. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15082. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15083. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15084. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15085. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15086. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15087. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15088. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15089. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15090. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15091. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15092. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15093. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15094. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15095. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  15096. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15097. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15098. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15099. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15100. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15101. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15102. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15103. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15104. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15105. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15106. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15107. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15108. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15109. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15110. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15111. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15112. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15113. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15114. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15115. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15116. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  15117. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15118. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15119. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15120. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15121. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15122. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15123. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15124. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15125. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15126. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15127. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15128. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15129. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15130. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15131. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15132. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15133. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15134. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15135. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15136. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15137. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  15138. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15139. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15140. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15141. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15142. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15143. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15144. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15145. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15146. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15147. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15148. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15149. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15150. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15151. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15152. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15153. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15154. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15155. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15156. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15157. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15158. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  15159. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15160. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15161. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15162. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15163. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15164. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15165. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15166. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15167. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15168. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15169. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  15170. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15171. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15172. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15173. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15174. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15175. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15176. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15177. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15178. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15179. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15180. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15181. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15182. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15183. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15184. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15185. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15186. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15187. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15188. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15189. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15190. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15191. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15192. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15193. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15194. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15195. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15196. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15197. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15198. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15199. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15200. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15201. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15202. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15203. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15204. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15205. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15206. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15207. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15208. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15209. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15210. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15211. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15212. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15213. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15214. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15215. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15216. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15217. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15218. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15219. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15220. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15221. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15222. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15223. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15224. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15225. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15226. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15227. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15228. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15229. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15230. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15231. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15232. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15233. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15234. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15235. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15236. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15237. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15238. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15239. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15240. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15241. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15242. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15243. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15244. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15245. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15246. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15247. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15248. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15249. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15250. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15251. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15252. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15253. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15254. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15255. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15256. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15257. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15258. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15259. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15260. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15261. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15262. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15263. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15264. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15265. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15266. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15267. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15268. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15269. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15270. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15271. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15272. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15273. {"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15274. {"STUB_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15275. {"STUB_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15276. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15277. {"SLIMBUS_1_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15278. {"SLIMBUS_1_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15279. {"SLIMBUS_1_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15280. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15281. {"AFE_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15282. {"AFE_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15283. {"AFE_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15284. {"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15285. {"SLIMBUS_3_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15286. {"SLIMBUS_3_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15287. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15288. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15289. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15290. {"SLIM_7_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15291. {"SLIM_7_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15292. {"SLIM_7_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15293. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15294. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15295. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15296. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15297. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15298. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15299. {"SLIM_8_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15300. {"SLIM_8_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15301. {"SLIM_8_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15302. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15303. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15304. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15305. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15306. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15307. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15308. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15309. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15310. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15311. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15312. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15313. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15314. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15315. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15316. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15317. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15318. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15319. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15320. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15321. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15322. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15323. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15324. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15325. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15326. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15327. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15328. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15329. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15330. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15331. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15332. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15333. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15334. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15335. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15336. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15337. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15338. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15339. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15340. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15341. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15342. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15343. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15344. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15345. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15346. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15347. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15348. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15349. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15350. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15351. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15352. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15353. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15354. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15355. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15356. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15357. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15358. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15359. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15360. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15361. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15362. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15363. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15364. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15365. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15366. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15367. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15368. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15369. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15370. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15371. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15372. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15373. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15374. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15375. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15376. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15377. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15378. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15379. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15380. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15381. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15382. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15383. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15384. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15385. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15386. /* Backend Enablement */
  15387. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15388. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15389. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15390. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15391. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15392. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15393. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15394. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15395. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15396. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15397. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15398. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15399. {"BE_OUT", NULL, "HDMI"},
  15400. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15401. {"BE_OUT", NULL, "SPDIF_RX"},
  15402. {"BE_OUT", NULL, "MI2S_RX"},
  15403. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15404. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15405. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15406. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15407. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15408. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15409. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15410. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15411. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15412. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15413. {"BE_OUT", NULL, "INT_FM_RX"},
  15414. {"BE_OUT", NULL, "PCM_RX"},
  15415. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15416. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15417. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15418. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15419. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15420. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15421. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15422. {"BE_OUT", NULL, "INT_FM_RX"},
  15423. {"BE_OUT", NULL, "PCM_RX"},
  15424. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15425. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15426. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15427. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15428. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15429. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15430. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15431. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15432. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15433. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15434. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15435. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15436. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15437. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15438. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15439. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15440. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15441. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15442. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15443. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15444. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15445. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15446. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15447. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15448. {"PRI_I2S_TX", NULL, "BE_IN"},
  15449. {"MI2S_TX", NULL, "BE_IN"},
  15450. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15451. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15452. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15453. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15454. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15455. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15456. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15457. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15458. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15459. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15460. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15461. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15462. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15463. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15464. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15465. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15466. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15467. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15468. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15469. {"INT_FM_TX", NULL, "BE_IN"},
  15470. {"PCM_TX", NULL, "BE_IN"},
  15471. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15472. {"BE_OUT", NULL, "STUB_RX"},
  15473. {"STUB_TX", NULL, "BE_IN"},
  15474. {"STUB_1_TX", NULL, "BE_IN"},
  15475. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15476. {"AUX_PCM_TX", NULL, "BE_IN"},
  15477. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15478. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15479. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15480. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15481. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15482. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15483. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15484. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15485. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15486. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15487. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15488. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15489. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15490. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15491. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15492. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15493. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15494. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15495. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15496. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15497. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15498. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15499. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15500. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15501. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15502. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15503. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15504. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15505. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15506. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15507. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15508. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15509. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15510. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15511. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15512. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15513. };
  15514. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15515. struct snd_pcm_hw_params *params)
  15516. {
  15517. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15518. unsigned int be_id = rtd->dai_link->id;
  15519. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15520. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15521. return -EINVAL;
  15522. }
  15523. mutex_lock(&routing_lock);
  15524. msm_bedais[be_id].sample_rate = params_rate(params);
  15525. msm_bedais[be_id].channel = params_channels(params);
  15526. msm_bedais[be_id].format = params_format(params);
  15527. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15528. __func__, msm_bedais[be_id].sample_rate,
  15529. msm_bedais[be_id].format, be_id);
  15530. mutex_unlock(&routing_lock);
  15531. return 0;
  15532. }
  15533. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15534. {
  15535. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15536. unsigned int be_id = rtd->dai_link->id;
  15537. int i, session_type, path_type, topology;
  15538. struct msm_pcm_routing_bdai_data *bedai;
  15539. struct msm_pcm_routing_fdai_data *fdai;
  15540. pr_debug("%s: substream->pcm->id:%s\n",
  15541. __func__, substream->pcm->id);
  15542. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15543. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15544. return -EINVAL;
  15545. }
  15546. bedai = &msm_bedais[be_id];
  15547. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15548. 0 : 1);
  15549. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15550. path_type = ADM_PATH_PLAYBACK;
  15551. else
  15552. path_type = ADM_PATH_LIVE_REC;
  15553. mutex_lock(&routing_lock);
  15554. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15555. if (!is_mm_lsm_fe_id(i))
  15556. continue;
  15557. fdai = &fe_dai_map[i][session_type];
  15558. if (fdai->strm_id != INVALID_SESSION) {
  15559. int idx;
  15560. int port_id;
  15561. unsigned long copp =
  15562. session_copp_map[i][session_type][be_id];
  15563. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15564. if (test_bit(idx, &copp))
  15565. break;
  15566. fdai->be_srate = bedai->sample_rate;
  15567. port_id = bedai->port_id;
  15568. topology = adm_get_topology_for_port_copp_idx(port_id,
  15569. idx);
  15570. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15571. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15572. __func__, copp, i, session_type, be_id,
  15573. topology);
  15574. clear_bit(idx,
  15575. &session_copp_map[i][session_type][be_id]);
  15576. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15577. (bedai->passthr_mode[i] == LEGACY_PCM))
  15578. msm_pcm_routing_deinit_pp(bedai->port_id,
  15579. topology);
  15580. }
  15581. }
  15582. bedai->active = 0;
  15583. bedai->sample_rate = 0;
  15584. bedai->channel = 0;
  15585. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15586. if (bedai->passthr_mode[i] != LISTEN)
  15587. bedai->passthr_mode[i] = LEGACY_PCM;
  15588. }
  15589. mutex_unlock(&routing_lock);
  15590. return 0;
  15591. }
  15592. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15593. {
  15594. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15595. unsigned int be_id = rtd->dai_link->id;
  15596. int i, path_type, topology;
  15597. int session_type = INVALID_SESSION;
  15598. struct msm_pcm_routing_bdai_data *bedai;
  15599. u32 channels, sample_rate;
  15600. uint16_t bits_per_sample = 16, voc_path_type;
  15601. struct msm_pcm_routing_fdai_data *fdai;
  15602. u32 session_id;
  15603. struct media_format_info voc_be_media_format;
  15604. bool is_lsm;
  15605. pr_debug("%s: substream->pcm->id:%s\n",
  15606. __func__, substream->pcm->id);
  15607. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15608. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15609. return -EINVAL;
  15610. }
  15611. bedai = &msm_bedais[be_id];
  15612. mutex_lock(&routing_lock);
  15613. if (bedai->active == 1)
  15614. goto done; /* Ignore prepare if back-end already active */
  15615. /* AFE port is not active at this point. However, still
  15616. * go ahead setting active flag under the notion that
  15617. * QDSP6 is able to handle ADM starting before AFE port
  15618. * is started.
  15619. */
  15620. bedai->active = 1;
  15621. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15622. if (!(is_mm_lsm_fe_id(i) &&
  15623. route_check_fe_id_adm_support(i)))
  15624. continue;
  15625. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15626. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15627. path_type = ADM_PATH_COMPRESSED_RX;
  15628. else
  15629. path_type = ADM_PATH_PLAYBACK;
  15630. session_type = SESSION_TYPE_RX;
  15631. } else {
  15632. path_type = ADM_PATH_LIVE_REC;
  15633. session_type = SESSION_TYPE_TX;
  15634. }
  15635. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15636. (i <= MSM_FRONTEND_DAI_LSM8);
  15637. fdai = &fe_dai_map[i][session_type];
  15638. if (fdai->strm_id != INVALID_SESSION) {
  15639. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15640. if (session_type == SESSION_TYPE_TX &&
  15641. fdai->be_srate &&
  15642. (fdai->be_srate != bedai->sample_rate)) {
  15643. pr_debug("%s: flush strm %d diff BE rates\n",
  15644. __func__,
  15645. fdai->strm_id);
  15646. if (fdai->event_info.event_func)
  15647. fdai->event_info.event_func(
  15648. MSM_PCM_RT_EVT_BUF_RECFG,
  15649. fdai->event_info.priv_data);
  15650. fdai->be_srate = 0; /* might not need it */
  15651. }
  15652. bits_per_sample = msm_routing_get_bit_width(
  15653. bedai->format);
  15654. app_type =
  15655. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15656. if (app_type && is_lsm) {
  15657. app_type_idx =
  15658. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15659. sample_rate =
  15660. fe_dai_app_type_cfg[i][session_type][be_id]
  15661. .sample_rate;
  15662. bits_per_sample =
  15663. lsm_app_type_cfg[app_type_idx].bit_width;
  15664. } else if (app_type) {
  15665. app_type_idx =
  15666. msm_pcm_routing_get_app_type_idx(app_type);
  15667. sample_rate =
  15668. fe_dai_app_type_cfg[i][session_type]
  15669. [be_id].sample_rate;
  15670. bits_per_sample =
  15671. app_type_cfg[app_type_idx].bit_width;
  15672. } else
  15673. sample_rate = bedai->sample_rate;
  15674. /*
  15675. * check if ADM needs to be configured with different
  15676. * channel mapping than backend
  15677. */
  15678. if (!bedai->adm_override_ch)
  15679. channels = bedai->channel;
  15680. else
  15681. channels = bedai->adm_override_ch;
  15682. acdb_dev_id =
  15683. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15684. topology = msm_routing_get_adm_topology(i, session_type,
  15685. be_id);
  15686. copp_idx = adm_open(bedai->port_id, path_type,
  15687. sample_rate, channels, topology,
  15688. fdai->perf_mode, bits_per_sample,
  15689. app_type, acdb_dev_id);
  15690. if ((copp_idx < 0) ||
  15691. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15692. pr_err("%s: adm open failed\n", __func__);
  15693. mutex_unlock(&routing_lock);
  15694. return -EINVAL;
  15695. }
  15696. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15697. __func__, i, session_type, be_id);
  15698. set_bit(copp_idx,
  15699. &session_copp_map[i][session_type][be_id]);
  15700. if (msm_is_resample_needed(
  15701. sample_rate,
  15702. bedai->sample_rate))
  15703. adm_copp_mfc_cfg(
  15704. bedai->port_id, copp_idx,
  15705. bedai->sample_rate);
  15706. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15707. fdai->perf_mode,
  15708. bedai->passthr_mode[i]);
  15709. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15710. (bedai->passthr_mode[i] == LEGACY_PCM))
  15711. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15712. topology, channels);
  15713. }
  15714. }
  15715. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15716. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15717. if (session_id) {
  15718. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15719. session_id);
  15720. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15721. voc_path_type = RX_PATH;
  15722. else
  15723. voc_path_type = TX_PATH;
  15724. voc_set_route_flag(session_id, voc_path_type, 1);
  15725. memset(&voc_be_media_format, 0,
  15726. sizeof(struct media_format_info));
  15727. voc_be_media_format.port_id = bedai->port_id;
  15728. voc_be_media_format.num_channels = bedai->channel;
  15729. voc_be_media_format.sample_rate = bedai->sample_rate;
  15730. voc_be_media_format.bits_per_sample = bedai->format;
  15731. /* Defaulting this to 1 for voice call usecases */
  15732. voc_be_media_format.channel_mapping[0] = 1;
  15733. voc_set_device_config(session_id, voc_path_type,
  15734. &voc_be_media_format);
  15735. if (voc_get_route_flag(session_id, RX_PATH) &&
  15736. voc_get_route_flag(session_id, TX_PATH))
  15737. voc_enable_device(session_id);
  15738. }
  15739. }
  15740. /* Check if backend is an external ec ref port and set as needed */
  15741. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15742. memset(&voc_be_media_format, 0,
  15743. sizeof(struct media_format_info));
  15744. /* Get format info for ec ref port from msm_bedais[] */
  15745. voc_be_media_format.port_id = bedai->port_id;
  15746. voc_be_media_format.num_channels = bedai->channel;
  15747. voc_be_media_format.bits_per_sample = bedai->format;
  15748. voc_be_media_format.sample_rate = bedai->sample_rate;
  15749. /* Defaulting this to 1 for voice call usecases */
  15750. voc_be_media_format.channel_mapping[0] = 1;
  15751. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15752. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15753. __func__, voc_be_media_format.port_id,
  15754. voc_be_media_format.num_channels,
  15755. voc_be_media_format.bits_per_sample,
  15756. voc_be_media_format.sample_rate);
  15757. }
  15758. done:
  15759. mutex_unlock(&routing_lock);
  15760. return 0;
  15761. }
  15762. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15763. int fe_id)
  15764. {
  15765. int index, topo_id, be_idx;
  15766. unsigned long pp_config = 0;
  15767. bool mute_on;
  15768. int latency;
  15769. bool compr_passthr_mode = true;
  15770. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15771. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15772. pr_err("%s: Device pp params on invalid port %d\n",
  15773. __func__, port_id);
  15774. return -EINVAL;
  15775. }
  15776. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15777. if (port_id == msm_bedais[be_idx].port_id)
  15778. break;
  15779. }
  15780. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15781. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15782. return -EINVAL;
  15783. }
  15784. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15785. if (msm_bedais_pp_params[index].port_id == port_id)
  15786. break;
  15787. }
  15788. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15789. pr_err("%s: Invalid backend pp params index %d\n",
  15790. __func__, index);
  15791. return -EINVAL;
  15792. }
  15793. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15794. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15795. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15796. __func__, topo_id);
  15797. return -EINVAL;
  15798. }
  15799. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15800. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15801. compr_passthr_mode = false;
  15802. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15803. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15804. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15805. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15806. mute_on = msm_bedais_pp_params[index].mute_on;
  15807. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15808. adm_send_compressed_device_mute(port_id,
  15809. copp_idx,
  15810. mute_on);
  15811. }
  15812. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15813. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15814. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15815. &pp_config);
  15816. latency = msm_bedais_pp_params[index].latency;
  15817. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15818. adm_send_compressed_device_latency(port_id,
  15819. copp_idx,
  15820. latency);
  15821. }
  15822. return 0;
  15823. }
  15824. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15825. struct snd_ctl_elem_value *ucontrol)
  15826. {
  15827. int pp_id = ucontrol->value.integer.value[0];
  15828. int port_id = 0;
  15829. int index, be_idx, i, topo_id, idx;
  15830. bool mute;
  15831. int latency;
  15832. bool compr_passthr_mode = true;
  15833. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15834. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15835. port_id = msm_bedais[be_idx].port_id;
  15836. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15837. break;
  15838. }
  15839. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15840. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15841. return -EINVAL;
  15842. }
  15843. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15844. if (msm_bedais_pp_params[index].port_id == port_id)
  15845. break;
  15846. }
  15847. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15848. pr_err("%s: Invalid pp params backend index %d\n",
  15849. __func__, index);
  15850. return -EINVAL;
  15851. }
  15852. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15853. MSM_FRONTEND_DAI_MM_SIZE) {
  15854. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15855. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15856. compr_passthr_mode = false;
  15857. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15858. unsigned long copp =
  15859. session_copp_map[i]
  15860. [SESSION_TYPE_RX][be_idx];
  15861. if (!test_bit(idx, &copp))
  15862. continue;
  15863. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15864. idx);
  15865. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15866. continue;
  15867. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15868. __func__, port_id, copp, msm_bedais[be_idx].active,
  15869. msm_bedais[be_idx].passthr_mode[i]);
  15870. switch (pp_id) {
  15871. case ADM_PP_PARAM_MUTE_ID:
  15872. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15873. mute = ucontrol->value.integer.value[1] ? true : false;
  15874. msm_bedais_pp_params[index].mute_on = mute;
  15875. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15876. &msm_bedais_pp_params[index].pp_params_config);
  15877. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15878. adm_send_compressed_device_mute(port_id,
  15879. idx, mute);
  15880. break;
  15881. case ADM_PP_PARAM_LATENCY_ID:
  15882. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15883. msm_bedais_pp_params[index].latency =
  15884. ucontrol->value.integer.value[1];
  15885. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15886. &msm_bedais_pp_params[index].pp_params_config);
  15887. latency = msm_bedais_pp_params[index].latency =
  15888. ucontrol->value.integer.value[1];
  15889. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15890. adm_send_compressed_device_latency(port_id,
  15891. idx, latency);
  15892. break;
  15893. default:
  15894. pr_info("%s, device pp param %d not supported\n",
  15895. __func__, pp_id);
  15896. break;
  15897. }
  15898. }
  15899. }
  15900. return 0;
  15901. }
  15902. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15903. struct snd_ctl_elem_value *ucontrol)
  15904. {
  15905. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15906. return 0;
  15907. }
  15908. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15909. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15910. 0, 3, msm_routing_get_device_pp_params_mixer,
  15911. msm_routing_put_device_pp_params_mixer),
  15912. };
  15913. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15914. struct snd_ctl_elem_value *ucontrol)
  15915. {
  15916. ucontrol->value.integer.value[0] =
  15917. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15918. pr_debug("%s: status %ld\n", __func__,
  15919. ucontrol->value.integer.value[0]);
  15920. return 0;
  15921. }
  15922. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15923. struct snd_ctl_elem_value *ucontrol)
  15924. {
  15925. int32_t status = 0;
  15926. status = core_set_license(ucontrol->value.integer.value[0],
  15927. APTX_CLASSIC_DEC_LICENSE_ID);
  15928. pr_debug("%s: status %d\n", __func__, status);
  15929. return status;
  15930. }
  15931. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15932. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15933. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15934. msm_aptx_dec_license_control_put),
  15935. };
  15936. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15937. struct snd_ctl_elem_info *uinfo)
  15938. {
  15939. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15940. uinfo->count = sizeof(be_dai_name_table);
  15941. return 0;
  15942. }
  15943. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15944. unsigned int __user *bytes,
  15945. unsigned int size)
  15946. {
  15947. int i;
  15948. int ret;
  15949. if (size < sizeof(be_dai_name_table)) {
  15950. pr_err("%s: invalid size %d requested, returning\n",
  15951. __func__, size);
  15952. ret = -EINVAL;
  15953. goto done;
  15954. }
  15955. /*
  15956. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15957. * needed when adding new backends
  15958. */
  15959. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15960. be_dai_name_table[i].be_id = i;
  15961. strlcpy(be_dai_name_table[i].be_name,
  15962. msm_bedais[i].name,
  15963. LPASS_BE_NAME_MAX_LENGTH);
  15964. }
  15965. ret = copy_to_user(bytes, &be_dai_name_table,
  15966. sizeof(be_dai_name_table));
  15967. if (ret) {
  15968. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15969. ret = -EFAULT;
  15970. }
  15971. done:
  15972. return ret;
  15973. }
  15974. static const struct snd_kcontrol_new
  15975. msm_routing_be_dai_name_table_mixer_controls[] = {
  15976. {
  15977. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15978. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15979. .info = msm_routing_be_dai_name_table_info,
  15980. .name = "Backend DAI Name Table",
  15981. .tlv.c = snd_soc_bytes_tlv_callback,
  15982. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15983. .max = sizeof(be_dai_name_table),
  15984. .get = msm_routing_be_dai_name_table_tlv_get,
  15985. }
  15986. },
  15987. };
  15988. static int msm_routing_stereo_channel_reverse_control_get(
  15989. struct snd_kcontrol *kcontrol,
  15990. struct snd_ctl_elem_value *ucontrol)
  15991. {
  15992. ucontrol->value.integer.value[0] = swap_ch;
  15993. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15994. ucontrol->value.integer.value[0]);
  15995. return 0;
  15996. }
  15997. static int msm_routing_stereo_channel_reverse_control_put(
  15998. struct snd_kcontrol *kcontrol,
  15999. struct snd_ctl_elem_value *ucontrol)
  16000. {
  16001. int i, idx, be_index, port_id;
  16002. int ret = 0;
  16003. unsigned long copp;
  16004. pr_debug("%s Swap channel value:%ld\n", __func__,
  16005. ucontrol->value.integer.value[0]);
  16006. swap_ch = ucontrol->value.integer.value[0];
  16007. mutex_lock(&routing_lock);
  16008. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16009. port_id = msm_bedais[be_index].port_id;
  16010. if (!msm_bedais[be_index].active)
  16011. continue;
  16012. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16013. MSM_FRONTEND_DAI_MM_SIZE) {
  16014. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  16015. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16016. if (!test_bit(idx, &copp))
  16017. continue;
  16018. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  16019. __func__, port_id, idx);
  16020. ret = adm_swap_speaker_channels(
  16021. port_id, idx,
  16022. msm_bedais[be_index].sample_rate,
  16023. swap_ch);
  16024. if (ret) {
  16025. pr_err("%s:Swap_channel failed, err=%d\n",
  16026. __func__, ret);
  16027. goto done;
  16028. }
  16029. }
  16030. }
  16031. }
  16032. done:
  16033. mutex_unlock(&routing_lock);
  16034. return ret;
  16035. }
  16036. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  16037. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  16038. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  16039. msm_routing_stereo_channel_reverse_control_put),
  16040. };
  16041. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  16042. .hw_params = msm_pcm_routing_hw_params,
  16043. .close = msm_pcm_routing_close,
  16044. .prepare = msm_pcm_routing_prepare,
  16045. };
  16046. /* Not used but frame seems to require it */
  16047. static int msm_routing_probe(struct snd_soc_platform *platform)
  16048. {
  16049. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  16050. ARRAY_SIZE(msm_qdsp6_widgets));
  16051. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  16052. ARRAY_SIZE(intercon));
  16053. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  16054. snd_soc_add_platform_controls(platform, lsm_controls,
  16055. ARRAY_SIZE(lsm_controls));
  16056. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  16057. ARRAY_SIZE(aanc_slim_0_rx_mux));
  16058. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  16059. ARRAY_SIZE(msm_voc_session_controls));
  16060. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  16061. ARRAY_SIZE(app_type_cfg_controls));
  16062. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  16063. ARRAY_SIZE(lsm_app_type_cfg_controls));
  16064. snd_soc_add_platform_controls(platform, module_cfg_controls,
  16065. ARRAY_SIZE(module_cfg_controls));
  16066. snd_soc_add_platform_controls(platform,
  16067. stereo_to_custom_stereo_controls,
  16068. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  16069. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  16070. ARRAY_SIZE(ec_ref_param_controls));
  16071. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  16072. ARRAY_SIZE(channel_mixer_controls));
  16073. msm_qti_pp_add_controls(platform);
  16074. msm_dts_srs_tm_add_controls(platform);
  16075. msm_dolby_dap_add_controls(platform);
  16076. snd_soc_add_platform_controls(platform,
  16077. use_ds1_or_ds2_controls,
  16078. ARRAY_SIZE(use_ds1_or_ds2_controls));
  16079. snd_soc_add_platform_controls(platform,
  16080. device_pp_params_mixer_controls,
  16081. ARRAY_SIZE(device_pp_params_mixer_controls));
  16082. snd_soc_add_platform_controls(platform,
  16083. msm_routing_be_dai_name_table_mixer_controls,
  16084. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  16085. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  16086. ARRAY_SIZE(msm_source_tracking_controls));
  16087. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  16088. ARRAY_SIZE(adm_channel_config_controls));
  16089. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  16090. ARRAY_SIZE(aptx_dec_license_controls));
  16091. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  16092. ARRAY_SIZE(stereo_channel_reverse_control));
  16093. return 0;
  16094. }
  16095. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  16096. {
  16097. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  16098. }
  16099. void msm_routing_pcm_free(struct snd_pcm *pcm)
  16100. {
  16101. msm_pcm_routing_hwdep_free(pcm);
  16102. }
  16103. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  16104. .ops = &msm_routing_pcm_ops,
  16105. .probe = msm_routing_probe,
  16106. .pcm_new = msm_routing_pcm_new,
  16107. .pcm_free = msm_routing_pcm_free,
  16108. };
  16109. static int msm_routing_pcm_probe(struct platform_device *pdev)
  16110. {
  16111. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  16112. return snd_soc_register_platform(&pdev->dev,
  16113. &msm_soc_routing_platform);
  16114. }
  16115. static int msm_routing_pcm_remove(struct platform_device *pdev)
  16116. {
  16117. snd_soc_unregister_platform(&pdev->dev);
  16118. return 0;
  16119. }
  16120. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  16121. {.compatible = "qcom,msm-pcm-routing"},
  16122. {}
  16123. };
  16124. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  16125. static struct platform_driver msm_routing_pcm_driver = {
  16126. .driver = {
  16127. .name = "msm-pcm-routing",
  16128. .owner = THIS_MODULE,
  16129. .of_match_table = msm_pcm_routing_dt_match,
  16130. },
  16131. .probe = msm_routing_pcm_probe,
  16132. .remove = msm_routing_pcm_remove,
  16133. };
  16134. int msm_routing_check_backend_enabled(int fedai_id)
  16135. {
  16136. int i;
  16137. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  16138. /* bad ID assigned in machine driver */
  16139. pr_err("%s: bad MM ID\n", __func__);
  16140. return 0;
  16141. }
  16142. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16143. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  16144. return msm_bedais[i].active;
  16145. }
  16146. return 0;
  16147. }
  16148. static int msm_routing_set_cal(int32_t cal_type,
  16149. size_t data_size, void *data)
  16150. {
  16151. int ret = 0;
  16152. pr_debug("%s\n", __func__);
  16153. ret = cal_utils_set_cal(data_size, data, cal_data, 0, NULL);
  16154. if (ret < 0) {
  16155. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  16156. __func__, ret, cal_type);
  16157. ret = -EINVAL;
  16158. goto done;
  16159. }
  16160. done:
  16161. return ret;
  16162. }
  16163. static void msm_routing_delete_cal_data(void)
  16164. {
  16165. pr_debug("%s\n", __func__);
  16166. cal_utils_destroy_cal_types(1, &cal_data);
  16167. }
  16168. static int msm_routing_init_cal_data(void)
  16169. {
  16170. int ret = 0;
  16171. struct cal_type_info cal_type_info = {
  16172. {ADM_TOPOLOGY_CAL_TYPE,
  16173. {NULL, NULL, NULL,
  16174. msm_routing_set_cal, NULL, NULL} },
  16175. {NULL, NULL, cal_utils_match_buf_num}
  16176. };
  16177. pr_debug("%s\n", __func__);
  16178. ret = cal_utils_create_cal_types(1, &cal_data,
  16179. &cal_type_info);
  16180. if (ret < 0) {
  16181. pr_err("%s: could not create cal type!\n",
  16182. __func__);
  16183. ret = -EINVAL;
  16184. goto err;
  16185. }
  16186. return ret;
  16187. err:
  16188. msm_routing_delete_cal_data();
  16189. return ret;
  16190. }
  16191. int __init msm_soc_routing_platform_init(void)
  16192. {
  16193. mutex_init(&routing_lock);
  16194. if (msm_routing_init_cal_data())
  16195. pr_err("%s: could not init cal data!\n", __func__);
  16196. afe_set_routing_callback(
  16197. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16198. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16199. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16200. return platform_driver_register(&msm_routing_pcm_driver);
  16201. }
  16202. void msm_soc_routing_platform_exit(void)
  16203. {
  16204. msm_routing_delete_cal_data();
  16205. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16206. mutex_destroy(&routing_lock);
  16207. platform_driver_unregister(&msm_routing_pcm_driver);
  16208. }
  16209. MODULE_DESCRIPTION("MSM routing platform driver");
  16210. MODULE_LICENSE("GPL v2");