msm-pcm-routing-v2.c 724 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* MULTIMEDIA28 */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* MULTIMEDIA29 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* VOIP */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* AFE_RX */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* AFE_TX */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* VOICE_STUB */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* DTMF_RX */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* QCHAT */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* VOLTE_STUB */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* LSM1 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM2 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM3 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM4 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM5 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM6 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* LSM7 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* LSM8 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* VOICE2_STUB */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. /* VOICEMMODE1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  675. /* VOICEMMODE2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  678. };
  679. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  680. [MSM_BACKEND_DAI_MAX];
  681. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  682. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  683. static struct msm_pcm_stream_app_type_cfg
  684. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  685. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  686. /* The caller of this should aqcuire routing lock */
  687. void msm_pcm_routing_get_bedai_info(int be_idx,
  688. struct msm_pcm_routing_bdai_data *be_dai)
  689. {
  690. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  691. memcpy(be_dai, &msm_bedais[be_idx],
  692. sizeof(struct msm_pcm_routing_bdai_data));
  693. }
  694. /* The caller of this should aqcuire routing lock */
  695. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  696. struct msm_pcm_routing_fdai_data *fe_dai)
  697. {
  698. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  699. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  700. sizeof(struct msm_pcm_routing_fdai_data));
  701. }
  702. void msm_pcm_routing_acquire_lock(void)
  703. {
  704. mutex_lock(&routing_lock);
  705. }
  706. void msm_pcm_routing_release_lock(void)
  707. {
  708. mutex_unlock(&routing_lock);
  709. }
  710. static int msm_pcm_routing_get_app_type_idx(int app_type)
  711. {
  712. int idx;
  713. pr_debug("%s: app_type: %d\n", __func__, app_type);
  714. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  715. if (app_type_cfg[idx].app_type == app_type)
  716. return idx;
  717. }
  718. pr_info("%s: App type not available, fallback to default\n", __func__);
  719. return 0;
  720. }
  721. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  722. {
  723. int idx;
  724. pr_debug("%s: app_type: %d\n", __func__, app_type);
  725. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  726. if (lsm_app_type_cfg[idx].app_type == app_type)
  727. return idx;
  728. }
  729. pr_debug("%s: App type not available, fallback to default\n", __func__);
  730. return 0;
  731. }
  732. static bool is_mm_lsm_fe_id(int fe_id)
  733. {
  734. bool rc = true;
  735. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  736. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  737. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  738. rc = false;
  739. }
  740. return rc;
  741. }
  742. int msm_pcm_routing_reg_stream_app_type_cfg(
  743. int fedai_id, int session_type, int be_id,
  744. struct msm_pcm_stream_app_type_cfg *cfg_data)
  745. {
  746. int ret = 0;
  747. if (cfg_data == NULL) {
  748. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  749. ret = -EINVAL;
  750. goto done;
  751. }
  752. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  753. __func__, fedai_id, session_type, be_id,
  754. cfg_data->app_type, cfg_data->acdb_dev_id,
  755. cfg_data->sample_rate);
  756. if (!is_mm_lsm_fe_id(fedai_id)) {
  757. pr_err("%s: Invalid machine driver ID %d\n",
  758. __func__, fedai_id);
  759. ret = -EINVAL;
  760. goto done;
  761. }
  762. if (session_type != SESSION_TYPE_RX &&
  763. session_type != SESSION_TYPE_TX) {
  764. pr_err("%s: Invalid session type %d\n",
  765. __func__, session_type);
  766. ret = -EINVAL;
  767. goto done;
  768. }
  769. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  770. pr_err("%s: Received out of bounds be_id %d\n",
  771. __func__, be_id);
  772. ret = -EINVAL;
  773. goto done;
  774. }
  775. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  776. /*
  777. * Store the BE ID of the configuration information set as the latest so
  778. * the get mixer control knows what to return.
  779. */
  780. last_be_id_configured[fedai_id][session_type] = be_id;
  781. done:
  782. return ret;
  783. }
  784. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  785. /**
  786. * msm_pcm_routing_get_stream_app_type_cfg
  787. *
  788. * Receives fedai_id, session_type, be_id, and populates app_type,
  789. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  790. * -EINVAL and does not alter passed values.
  791. *
  792. * fedai_id - Passed value, front end ID for which app type config is wanted
  793. * session_type - Passed value, session type for which app type config
  794. * is wanted
  795. * be_id - Returned value, back end device id the app type config data is for
  796. * cfg_data - Returned value, configuration data used by app type config
  797. */
  798. int msm_pcm_routing_get_stream_app_type_cfg(
  799. int fedai_id, int session_type, int *bedai_id,
  800. struct msm_pcm_stream_app_type_cfg *cfg_data)
  801. {
  802. int be_id;
  803. int ret = 0;
  804. if (bedai_id == NULL) {
  805. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  806. ret = -EINVAL;
  807. goto done;
  808. } else if (cfg_data == NULL) {
  809. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  810. ret = -EINVAL;
  811. goto done;
  812. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  813. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  814. ret = -EINVAL;
  815. goto done;
  816. } else if (session_type != SESSION_TYPE_RX &&
  817. session_type != SESSION_TYPE_TX) {
  818. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  819. ret = -EINVAL;
  820. goto done;
  821. }
  822. be_id = last_be_id_configured[fedai_id][session_type];
  823. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  824. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  825. ret = -EINVAL;
  826. goto done;
  827. }
  828. *bedai_id = be_id;
  829. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  830. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  831. __func__, fedai_id, session_type, *bedai_id,
  832. cfg_data->app_type, cfg_data->acdb_dev_id,
  833. cfg_data->sample_rate);
  834. done:
  835. return ret;
  836. }
  837. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  838. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  839. int cal_index)
  840. {
  841. struct list_head *ptr, *next;
  842. struct cal_block_data *cal_block = NULL;
  843. pr_debug("%s\n", __func__);
  844. list_for_each_safe(ptr, next,
  845. &cal_data[cal_index]->cal_blocks) {
  846. cal_block = list_entry(ptr,
  847. struct cal_block_data, list);
  848. if (((struct audio_cal_info_adm_top *)cal_block
  849. ->cal_info)->path == path) {
  850. return cal_block;
  851. }
  852. }
  853. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  854. return NULL;
  855. }
  856. static struct cal_block_data *msm_routing_find_topology(int path,
  857. int app_type,
  858. int acdb_id,
  859. int cal_index)
  860. {
  861. struct list_head *ptr, *next;
  862. struct cal_block_data *cal_block = NULL;
  863. struct audio_cal_info_adm_top *cal_info;
  864. pr_debug("%s\n", __func__);
  865. list_for_each_safe(ptr, next,
  866. &cal_data[cal_index]->cal_blocks) {
  867. cal_block = list_entry(ptr,
  868. struct cal_block_data, list);
  869. cal_info = (struct audio_cal_info_adm_top *)
  870. cal_block->cal_info;
  871. if ((cal_info->path == path) &&
  872. (cal_info->app_type == app_type) &&
  873. (cal_info->acdb_id == acdb_id)) {
  874. return cal_block;
  875. }
  876. }
  877. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  878. __func__, path, app_type, acdb_id);
  879. return msm_routing_find_topology_by_path(cal_index, path);
  880. }
  881. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  882. int be_id)
  883. {
  884. int topology = NULL_COPP_TOPOLOGY;
  885. struct cal_block_data *cal_block = NULL;
  886. int app_type = 0, acdb_dev_id = 0;
  887. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  888. __func__, fedai_id, session_type, be_id);
  889. if (cal_data == NULL)
  890. goto done;
  891. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  892. acdb_dev_id =
  893. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  894. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  895. cal_block = msm_routing_find_topology(session_type, app_type,
  896. acdb_dev_id,
  897. ADM_TOPOLOGY_CAL_TYPE_IDX);
  898. if (cal_block != NULL)
  899. topology = ((struct audio_cal_info_adm_top *)
  900. cal_block->cal_info)->topology;
  901. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  902. if (cal_block == NULL) {
  903. pr_debug("%s: Check for LSM topology\n", __func__);
  904. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  905. cal_block = msm_routing_find_topology(session_type, app_type,
  906. acdb_dev_id,
  907. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  908. if (cal_block != NULL)
  909. topology = ((struct audio_cal_info_adm_top *)
  910. cal_block->cal_info)->topology;
  911. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  912. }
  913. done:
  914. pr_debug("%s: Using topology %d\n", __func__, topology);
  915. return topology;
  916. }
  917. static uint8_t is_be_dai_extproc(int be_dai)
  918. {
  919. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  920. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  921. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  922. return 1;
  923. else
  924. return 0;
  925. }
  926. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  927. int path_type, int perf_mode,
  928. uint32_t passthr_mode)
  929. {
  930. int i, port_type, j, num_copps = 0;
  931. struct route_payload payload;
  932. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  933. path_type == ADM_PATH_COMPRESSED_RX) ?
  934. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  935. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  936. if (!is_be_dai_extproc(i) &&
  937. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  938. (msm_bedais[i].active) &&
  939. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  940. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  941. unsigned long copp =
  942. session_copp_map[fedai_id][sess_type][i];
  943. if (test_bit(j, &copp)) {
  944. payload.port_id[num_copps] =
  945. msm_bedais[i].port_id;
  946. payload.copp_idx[num_copps] = j;
  947. payload.app_type[num_copps] =
  948. fe_dai_app_type_cfg
  949. [fedai_id][sess_type][i]
  950. .app_type;
  951. payload.acdb_dev_id[num_copps] =
  952. fe_dai_app_type_cfg
  953. [fedai_id][sess_type][i]
  954. .acdb_dev_id;
  955. payload.sample_rate[num_copps] =
  956. fe_dai_app_type_cfg
  957. [fedai_id][sess_type][i]
  958. .sample_rate;
  959. num_copps++;
  960. }
  961. }
  962. }
  963. }
  964. if (num_copps) {
  965. payload.num_copps = num_copps;
  966. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  967. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  968. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  969. }
  970. }
  971. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  972. int stream_type)
  973. {
  974. int i, session_type, path_type, port_type;
  975. u32 mode = 0;
  976. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  977. /* bad ID assigned in machine driver */
  978. pr_err("%s: bad MM ID\n", __func__);
  979. return;
  980. }
  981. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  982. session_type = SESSION_TYPE_RX;
  983. path_type = ADM_PATH_PLAYBACK;
  984. port_type = MSM_AFE_PORT_TYPE_RX;
  985. } else {
  986. session_type = SESSION_TYPE_TX;
  987. path_type = ADM_PATH_LIVE_REC;
  988. port_type = MSM_AFE_PORT_TYPE_TX;
  989. }
  990. mutex_lock(&routing_lock);
  991. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  992. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  993. if (!is_be_dai_extproc(i) &&
  994. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  995. (msm_bedais[i].active) &&
  996. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  997. mode = afe_get_port_type(msm_bedais[i].port_id);
  998. adm_connect_afe_port(mode, dspst_id,
  999. msm_bedais[i].port_id);
  1000. break;
  1001. }
  1002. }
  1003. mutex_unlock(&routing_lock);
  1004. }
  1005. static bool route_check_fe_id_adm_support(int fe_id)
  1006. {
  1007. bool rc = true;
  1008. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1009. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1010. /* fe id is listen while port is set to afe */
  1011. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1012. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1013. __func__, fe_id, lsm_port_index);
  1014. rc = false;
  1015. }
  1016. }
  1017. return rc;
  1018. }
  1019. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1020. int dspst_id, int stream_type,
  1021. uint32_t passthr_mode)
  1022. {
  1023. int i, j, session_type, path_type, port_type, topology;
  1024. int num_copps = 0;
  1025. struct route_payload payload;
  1026. u32 channels, sample_rate;
  1027. u16 bit_width = 16;
  1028. bool is_lsm;
  1029. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1030. __func__, fe_id, perf_mode, dspst_id,
  1031. stream_type, passthr_mode);
  1032. if (!is_mm_lsm_fe_id(fe_id)) {
  1033. /* bad ID assigned in machine driver */
  1034. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1035. return -EINVAL;
  1036. }
  1037. if (!route_check_fe_id_adm_support(fe_id)) {
  1038. /* ignore adm open if not supported for fe_id */
  1039. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1040. return 0;
  1041. }
  1042. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1043. session_type = SESSION_TYPE_RX;
  1044. if (passthr_mode != LEGACY_PCM)
  1045. path_type = ADM_PATH_COMPRESSED_RX;
  1046. else
  1047. path_type = ADM_PATH_PLAYBACK;
  1048. port_type = MSM_AFE_PORT_TYPE_RX;
  1049. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1050. session_type = SESSION_TYPE_TX;
  1051. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1052. path_type = ADM_PATH_COMPRESSED_TX;
  1053. else
  1054. path_type = ADM_PATH_LIVE_REC;
  1055. port_type = MSM_AFE_PORT_TYPE_TX;
  1056. } else {
  1057. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1058. return -EINVAL;
  1059. }
  1060. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1061. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1062. mutex_lock(&routing_lock);
  1063. payload.num_copps = 0; /* only RX needs to use payload */
  1064. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1065. /* re-enable EQ if active */
  1066. msm_qti_pp_send_eq_values(fe_id);
  1067. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1068. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1069. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1070. if (!is_be_dai_extproc(i) &&
  1071. (afe_get_port_type(msm_bedais[i].port_id) ==
  1072. port_type) &&
  1073. (msm_bedais[i].active) &&
  1074. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1075. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1076. /*
  1077. * check if ADM needs to be configured with different
  1078. * channel mapping than backend
  1079. */
  1080. if (!msm_bedais[i].adm_override_ch)
  1081. channels = msm_bedais[i].channel;
  1082. else
  1083. channels = msm_bedais[i].adm_override_ch;
  1084. bit_width = msm_routing_get_bit_width(
  1085. msm_bedais[i].format);
  1086. app_type =
  1087. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1088. if (app_type && is_lsm) {
  1089. app_type_idx =
  1090. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1091. sample_rate =
  1092. fe_dai_app_type_cfg[fe_id][session_type][i]
  1093. .sample_rate;
  1094. bit_width =
  1095. lsm_app_type_cfg[app_type_idx].bit_width;
  1096. } else if (app_type) {
  1097. app_type_idx =
  1098. msm_pcm_routing_get_app_type_idx(
  1099. app_type);
  1100. sample_rate =
  1101. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1102. bit_width =
  1103. app_type_cfg[app_type_idx].bit_width;
  1104. } else {
  1105. sample_rate = msm_bedais[i].sample_rate;
  1106. }
  1107. acdb_dev_id =
  1108. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1109. topology = msm_routing_get_adm_topology(fe_id,
  1110. session_type,
  1111. i);
  1112. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1113. || (passthr_mode ==
  1114. COMPRESSED_PASSTHROUGH_GEN))
  1115. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1116. pr_debug("%s: Before adm open topology %d\n", __func__,
  1117. topology);
  1118. copp_idx =
  1119. adm_open(msm_bedais[i].port_id,
  1120. path_type, sample_rate, channels,
  1121. topology, perf_mode, bit_width,
  1122. app_type, acdb_dev_id);
  1123. if ((copp_idx < 0) ||
  1124. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1125. pr_err("%s:adm open failed coppid:%d\n",
  1126. __func__, copp_idx);
  1127. mutex_unlock(&routing_lock);
  1128. return -EINVAL;
  1129. }
  1130. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1131. __func__, fe_id, session_type, i);
  1132. set_bit(copp_idx,
  1133. &session_copp_map[fe_id][session_type][i]);
  1134. if (msm_is_resample_needed(
  1135. sample_rate,
  1136. msm_bedais[i].sample_rate))
  1137. adm_copp_mfc_cfg(
  1138. msm_bedais[i].port_id, copp_idx,
  1139. msm_bedais[i].sample_rate);
  1140. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1141. unsigned long copp =
  1142. session_copp_map[fe_id][session_type][i];
  1143. if (test_bit(j, &copp)) {
  1144. payload.port_id[num_copps] =
  1145. msm_bedais[i].port_id;
  1146. payload.copp_idx[num_copps] = j;
  1147. payload.app_type[num_copps] =
  1148. fe_dai_app_type_cfg
  1149. [fe_id][session_type][i]
  1150. .app_type;
  1151. payload.acdb_dev_id[num_copps] =
  1152. fe_dai_app_type_cfg
  1153. [fe_id][session_type][i]
  1154. .acdb_dev_id;
  1155. payload.sample_rate[num_copps] =
  1156. fe_dai_app_type_cfg
  1157. [fe_id][session_type][i]
  1158. .sample_rate;
  1159. num_copps++;
  1160. }
  1161. }
  1162. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1163. && passthr_mode !=
  1164. COMPRESSED_PASSTHROUGH_GEN) {
  1165. msm_routing_send_device_pp_params(
  1166. msm_bedais[i].port_id,
  1167. copp_idx, fe_id);
  1168. }
  1169. }
  1170. }
  1171. if (num_copps) {
  1172. payload.num_copps = num_copps;
  1173. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1174. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1175. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1176. }
  1177. mutex_unlock(&routing_lock);
  1178. return 0;
  1179. }
  1180. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1181. {
  1182. u32 session_id;
  1183. switch (val) {
  1184. case MSM_FRONTEND_DAI_QCHAT:
  1185. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1186. break;
  1187. case MSM_FRONTEND_DAI_VOIP:
  1188. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1189. break;
  1190. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1191. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1192. break;
  1193. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1194. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1195. break;
  1196. default:
  1197. session_id = 0;
  1198. }
  1199. pr_debug("%s session_id 0x%x", __func__, session_id);
  1200. return session_id;
  1201. }
  1202. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1203. int dspst_id, int stream_type)
  1204. {
  1205. int copp_idx = 0;
  1206. int sess_type = 0;
  1207. int i = 0, j = 0, be_id;
  1208. int ret = 0;
  1209. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1210. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1211. return 0;
  1212. }
  1213. if (!(channel_mixer[fe_id].enable)) {
  1214. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1215. __func__, fe_id);
  1216. return 0;
  1217. }
  1218. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1219. sess_type = SESSION_TYPE_RX;
  1220. else
  1221. sess_type = SESSION_TYPE_TX;
  1222. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1223. ++i) {
  1224. be_id = channel_input[fe_id][i] - 1;
  1225. channel_mixer[fe_id].input_channels[i] =
  1226. msm_bedais[be_id].channel;
  1227. if ((msm_bedais[be_id].active) &&
  1228. test_bit(fe_id,
  1229. &msm_bedais[be_id].fe_sessions[0])) {
  1230. unsigned long copp =
  1231. session_copp_map[fe_id][sess_type][be_id];
  1232. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1233. if (test_bit(j, &copp)) {
  1234. copp_idx = j;
  1235. break;
  1236. }
  1237. }
  1238. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1239. __func__,
  1240. fe_id, be_id, msm_bedais[be_id].channel,
  1241. copp_idx);
  1242. ret = adm_programable_channel_mixer(
  1243. msm_bedais[be_id].port_id,
  1244. copp_idx, dspst_id, sess_type,
  1245. channel_mixer + fe_id, i);
  1246. }
  1247. }
  1248. return ret;
  1249. }
  1250. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1251. int dspst_id, int stream_type)
  1252. {
  1253. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1254. struct route_payload payload;
  1255. u32 channels, sample_rate;
  1256. uint16_t bits_per_sample = 16;
  1257. uint32_t passthr_mode = LEGACY_PCM;
  1258. int ret = 0;
  1259. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1260. /* bad ID assigned in machine driver */
  1261. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1262. return -EINVAL;
  1263. }
  1264. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1265. session_type = SESSION_TYPE_RX;
  1266. path_type = ADM_PATH_PLAYBACK;
  1267. port_type = MSM_AFE_PORT_TYPE_RX;
  1268. } else {
  1269. session_type = SESSION_TYPE_TX;
  1270. path_type = ADM_PATH_LIVE_REC;
  1271. port_type = MSM_AFE_PORT_TYPE_TX;
  1272. }
  1273. mutex_lock(&routing_lock);
  1274. payload.num_copps = 0; /* only RX needs to use payload */
  1275. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1276. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1277. /* re-enable EQ if active */
  1278. msm_qti_pp_send_eq_values(fedai_id);
  1279. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1280. if (!is_be_dai_extproc(i) &&
  1281. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1282. (msm_bedais[i].active) &&
  1283. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1284. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1285. /*
  1286. * check if ADM needs to be configured with different
  1287. * channel mapping than backend
  1288. */
  1289. if (!msm_bedais[i].adm_override_ch)
  1290. channels = msm_bedais[i].channel;
  1291. else
  1292. channels = msm_bedais[i].adm_override_ch;
  1293. msm_bedais[i].passthr_mode[fedai_id] =
  1294. LEGACY_PCM;
  1295. bits_per_sample = msm_routing_get_bit_width(
  1296. msm_bedais[i].format);
  1297. app_type =
  1298. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1299. if (app_type) {
  1300. app_type_idx =
  1301. msm_pcm_routing_get_app_type_idx(app_type);
  1302. sample_rate =
  1303. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1304. .sample_rate;
  1305. bits_per_sample =
  1306. app_type_cfg[app_type_idx].bit_width;
  1307. } else
  1308. sample_rate = msm_bedais[i].sample_rate;
  1309. acdb_dev_id =
  1310. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1311. .acdb_dev_id;
  1312. topology = msm_routing_get_adm_topology(fedai_id,
  1313. session_type,
  1314. i);
  1315. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1316. sample_rate, channels, topology,
  1317. perf_mode, bits_per_sample,
  1318. app_type, acdb_dev_id);
  1319. if ((copp_idx < 0) ||
  1320. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1321. pr_err("%s: adm open failed copp_idx:%d\n",
  1322. __func__, copp_idx);
  1323. mutex_unlock(&routing_lock);
  1324. return -EINVAL;
  1325. }
  1326. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1327. __func__, fedai_id, session_type, i);
  1328. set_bit(copp_idx,
  1329. &session_copp_map[fedai_id][session_type][i]);
  1330. if (msm_is_resample_needed(
  1331. sample_rate,
  1332. msm_bedais[i].sample_rate))
  1333. adm_copp_mfc_cfg(
  1334. msm_bedais[i].port_id, copp_idx,
  1335. msm_bedais[i].sample_rate);
  1336. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1337. unsigned long copp =
  1338. session_copp_map[fedai_id][session_type][i];
  1339. if (test_bit(j, &copp)) {
  1340. payload.port_id[num_copps] =
  1341. msm_bedais[i].port_id;
  1342. payload.copp_idx[num_copps] = j;
  1343. payload.app_type[num_copps] =
  1344. fe_dai_app_type_cfg
  1345. [fedai_id][session_type]
  1346. [i].app_type;
  1347. payload.acdb_dev_id[num_copps] =
  1348. fe_dai_app_type_cfg
  1349. [fedai_id][session_type]
  1350. [i].acdb_dev_id;
  1351. payload.sample_rate[num_copps] =
  1352. fe_dai_app_type_cfg
  1353. [fedai_id][session_type]
  1354. [i].sample_rate;
  1355. num_copps++;
  1356. }
  1357. }
  1358. if ((perf_mode == LEGACY_PCM_MODE) &&
  1359. (msm_bedais[i].passthr_mode[fedai_id] ==
  1360. LEGACY_PCM))
  1361. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1362. copp_idx, topology,
  1363. channels);
  1364. }
  1365. }
  1366. if (num_copps) {
  1367. payload.num_copps = num_copps;
  1368. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1369. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1370. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1371. }
  1372. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1373. dspst_id, stream_type);
  1374. mutex_unlock(&routing_lock);
  1375. return ret;
  1376. }
  1377. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1378. int dspst_id, int stream_type,
  1379. struct msm_pcm_routing_evt event_info)
  1380. {
  1381. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1382. stream_type)) {
  1383. pr_err("%s: failed to reg phy stream\n", __func__);
  1384. return -EINVAL;
  1385. }
  1386. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1387. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1388. else
  1389. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1390. return 0;
  1391. }
  1392. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1393. {
  1394. int i, port_type, session_type, path_type, topology;
  1395. struct msm_pcm_routing_fdai_data *fdai;
  1396. if (!is_mm_lsm_fe_id(fedai_id)) {
  1397. /* bad ID assigned in machine driver */
  1398. pr_err("%s: bad MM ID\n", __func__);
  1399. return;
  1400. }
  1401. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1402. port_type = MSM_AFE_PORT_TYPE_RX;
  1403. session_type = SESSION_TYPE_RX;
  1404. path_type = ADM_PATH_PLAYBACK;
  1405. } else {
  1406. port_type = MSM_AFE_PORT_TYPE_TX;
  1407. session_type = SESSION_TYPE_TX;
  1408. path_type = ADM_PATH_LIVE_REC;
  1409. }
  1410. mutex_lock(&routing_lock);
  1411. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1412. if (!is_be_dai_extproc(i) &&
  1413. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1414. (msm_bedais[i].active) &&
  1415. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1416. int idx;
  1417. unsigned long copp =
  1418. session_copp_map[fedai_id][session_type][i];
  1419. fdai = &fe_dai_map[fedai_id][session_type];
  1420. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1421. if (test_bit(idx, &copp))
  1422. break;
  1423. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1424. pr_debug("%s: copp idx is invalid, exiting\n",
  1425. __func__);
  1426. continue;
  1427. }
  1428. topology = adm_get_topology_for_port_copp_idx(
  1429. msm_bedais[i].port_id, idx);
  1430. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1431. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1432. __func__, copp, fedai_id, session_type, i);
  1433. clear_bit(idx,
  1434. &session_copp_map[fedai_id][session_type][i]);
  1435. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1436. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1437. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1438. (msm_bedais[i].passthr_mode[fedai_id] ==
  1439. LEGACY_PCM))
  1440. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1441. topology);
  1442. }
  1443. }
  1444. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1445. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1446. mutex_unlock(&routing_lock);
  1447. }
  1448. /* Check if FE/BE route is set */
  1449. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1450. {
  1451. bool rc = false;
  1452. if (!is_mm_lsm_fe_id(fe_id)) {
  1453. /* recheck FE ID in the mixer control defined in this file */
  1454. pr_err("%s: bad MM ID\n", __func__);
  1455. return rc;
  1456. }
  1457. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1458. rc = true;
  1459. return rc;
  1460. }
  1461. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1462. {
  1463. int session_type, path_type, topology;
  1464. u32 channels, sample_rate;
  1465. uint16_t bits_per_sample = 16;
  1466. struct msm_pcm_routing_fdai_data *fdai;
  1467. uint32_t passthr_mode;
  1468. bool is_lsm;
  1469. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1470. if (!is_mm_lsm_fe_id(val)) {
  1471. /* recheck FE ID in the mixer control defined in this file */
  1472. pr_err("%s: bad MM ID\n", __func__);
  1473. return;
  1474. }
  1475. if (!route_check_fe_id_adm_support(val)) {
  1476. /* ignore adm open if not supported for fe_id */
  1477. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1478. return;
  1479. }
  1480. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1481. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1482. MSM_AFE_PORT_TYPE_RX) {
  1483. session_type = SESSION_TYPE_RX;
  1484. if (passthr_mode != LEGACY_PCM)
  1485. path_type = ADM_PATH_COMPRESSED_RX;
  1486. else
  1487. path_type = ADM_PATH_PLAYBACK;
  1488. } else {
  1489. session_type = SESSION_TYPE_TX;
  1490. if (passthr_mode != LEGACY_PCM)
  1491. path_type = ADM_PATH_COMPRESSED_TX;
  1492. else
  1493. path_type = ADM_PATH_LIVE_REC;
  1494. }
  1495. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1496. (val <= MSM_FRONTEND_DAI_LSM8);
  1497. mutex_lock(&routing_lock);
  1498. if (set) {
  1499. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1500. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1501. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1502. voc_start_playback(set, msm_bedais[reg].port_id);
  1503. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1504. fdai = &fe_dai_map[val][session_type];
  1505. if (msm_bedais[reg].active && fdai->strm_id !=
  1506. INVALID_SESSION) {
  1507. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1508. /*
  1509. * check if ADM needs to be configured with different
  1510. * channel mapping than backend
  1511. */
  1512. if (!msm_bedais[reg].adm_override_ch)
  1513. channels = msm_bedais[reg].channel;
  1514. else
  1515. channels = msm_bedais[reg].adm_override_ch;
  1516. if (session_type == SESSION_TYPE_TX &&
  1517. fdai->be_srate &&
  1518. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1519. pr_debug("%s: flush strm %d diff BE rates\n",
  1520. __func__, fdai->strm_id);
  1521. if (fdai->event_info.event_func)
  1522. fdai->event_info.event_func(
  1523. MSM_PCM_RT_EVT_BUF_RECFG,
  1524. fdai->event_info.priv_data);
  1525. fdai->be_srate = 0; /* might not need it */
  1526. }
  1527. bits_per_sample = msm_routing_get_bit_width(
  1528. msm_bedais[reg].format);
  1529. app_type =
  1530. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1531. if (app_type && is_lsm) {
  1532. app_type_idx =
  1533. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1534. sample_rate =
  1535. fe_dai_app_type_cfg[val][session_type][reg]
  1536. .sample_rate;
  1537. bits_per_sample =
  1538. lsm_app_type_cfg[app_type_idx].bit_width;
  1539. } else if (app_type) {
  1540. app_type_idx =
  1541. msm_pcm_routing_get_app_type_idx(app_type);
  1542. sample_rate =
  1543. fe_dai_app_type_cfg[val][session_type][reg]
  1544. .sample_rate;
  1545. bits_per_sample =
  1546. app_type_cfg[app_type_idx].bit_width;
  1547. } else
  1548. sample_rate = msm_bedais[reg].sample_rate;
  1549. topology = msm_routing_get_adm_topology(val,
  1550. session_type,
  1551. reg);
  1552. acdb_dev_id =
  1553. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1554. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1555. sample_rate, channels, topology,
  1556. fdai->perf_mode, bits_per_sample,
  1557. app_type, acdb_dev_id);
  1558. if ((copp_idx < 0) ||
  1559. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1560. pr_err("%s: adm open failed\n", __func__);
  1561. mutex_unlock(&routing_lock);
  1562. return;
  1563. }
  1564. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1565. __func__, val, session_type, reg);
  1566. set_bit(copp_idx,
  1567. &session_copp_map[val][session_type][reg]);
  1568. if (msm_is_resample_needed(
  1569. sample_rate,
  1570. msm_bedais[reg].sample_rate))
  1571. adm_copp_mfc_cfg(
  1572. msm_bedais[reg].port_id, copp_idx,
  1573. msm_bedais[reg].sample_rate);
  1574. if (session_type == SESSION_TYPE_RX &&
  1575. fdai->event_info.event_func)
  1576. fdai->event_info.event_func(
  1577. MSM_PCM_RT_EVT_DEVSWITCH,
  1578. fdai->event_info.priv_data);
  1579. msm_pcm_routing_build_matrix(val, session_type,
  1580. path_type,
  1581. fdai->perf_mode,
  1582. passthr_mode);
  1583. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1584. (passthr_mode == LEGACY_PCM))
  1585. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1586. copp_idx, topology,
  1587. channels);
  1588. }
  1589. } else {
  1590. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1591. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1592. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1593. voc_start_playback(set, msm_bedais[reg].port_id);
  1594. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1595. fdai = &fe_dai_map[val][session_type];
  1596. if (msm_bedais[reg].active && fdai->strm_id !=
  1597. INVALID_SESSION) {
  1598. int idx;
  1599. int port_id;
  1600. unsigned long copp =
  1601. session_copp_map[val][session_type][reg];
  1602. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1603. if (test_bit(idx, &copp))
  1604. break;
  1605. port_id = msm_bedais[reg].port_id;
  1606. topology = adm_get_topology_for_port_copp_idx(port_id,
  1607. idx);
  1608. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1609. idx);
  1610. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1611. __func__, copp, val, session_type, reg,
  1612. topology);
  1613. clear_bit(idx,
  1614. &session_copp_map[val][session_type][reg]);
  1615. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1616. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1617. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1618. (passthr_mode == LEGACY_PCM))
  1619. msm_pcm_routing_deinit_pp(
  1620. msm_bedais[reg].port_id,
  1621. topology);
  1622. msm_pcm_routing_build_matrix(val, session_type,
  1623. path_type,
  1624. fdai->perf_mode,
  1625. passthr_mode);
  1626. }
  1627. }
  1628. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1629. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1630. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1631. mutex_unlock(&routing_lock);
  1632. }
  1633. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1634. struct snd_ctl_elem_value *ucontrol)
  1635. {
  1636. struct soc_mixer_control *mc =
  1637. (struct soc_mixer_control *)kcontrol->private_value;
  1638. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1639. ucontrol->value.integer.value[0] = 1;
  1640. else
  1641. ucontrol->value.integer.value[0] = 0;
  1642. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1643. ucontrol->value.integer.value[0]);
  1644. return 0;
  1645. }
  1646. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1647. struct snd_ctl_elem_value *ucontrol)
  1648. {
  1649. struct snd_soc_dapm_widget *widget =
  1650. snd_soc_dapm_kcontrol_widget(kcontrol);
  1651. struct soc_mixer_control *mc =
  1652. (struct soc_mixer_control *)kcontrol->private_value;
  1653. struct snd_soc_dapm_update *update = NULL;
  1654. if (ucontrol->value.integer.value[0] &&
  1655. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1656. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1657. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1658. update);
  1659. } else if (!ucontrol->value.integer.value[0] &&
  1660. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1661. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1662. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1663. update);
  1664. }
  1665. return 1;
  1666. }
  1667. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1668. struct snd_ctl_elem_value *ucontrol)
  1669. {
  1670. struct soc_mixer_control *mc =
  1671. (struct soc_mixer_control *)kcontrol->private_value;
  1672. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1673. ucontrol->value.integer.value[0] = 1;
  1674. else
  1675. ucontrol->value.integer.value[0] = 0;
  1676. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1677. ucontrol->value.integer.value[0]);
  1678. return 0;
  1679. }
  1680. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1681. struct snd_ctl_elem_value *ucontrol)
  1682. {
  1683. struct snd_soc_dapm_widget *widget =
  1684. snd_soc_dapm_kcontrol_widget(kcontrol);
  1685. struct soc_mixer_control *mc =
  1686. (struct soc_mixer_control *)kcontrol->private_value;
  1687. struct snd_soc_dapm_update *update = NULL;
  1688. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1689. ucontrol->value.integer.value[0]);
  1690. if (ucontrol->value.integer.value[0]) {
  1691. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1692. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1693. snd_soc_dapm_mixer_update_power(widget->dapm,
  1694. kcontrol, 1, update);
  1695. } else if (!ucontrol->value.integer.value[0]) {
  1696. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1697. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1698. snd_soc_dapm_mixer_update_power(widget->dapm,
  1699. kcontrol, 0, update);
  1700. }
  1701. return 1;
  1702. }
  1703. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1704. {
  1705. u32 session_id = 0;
  1706. u16 path_type;
  1707. struct media_format_info voc_be_media_format;
  1708. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1709. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1710. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1711. __func__, val, session_id);
  1712. mutex_lock(&routing_lock);
  1713. if (set)
  1714. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1715. else
  1716. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1717. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1718. afe_get_port_type(msm_bedais[reg].port_id) ==
  1719. MSM_AFE_PORT_TYPE_RX) {
  1720. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1721. __func__, set, msm_bedais[reg].port_id);
  1722. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1723. }
  1724. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1725. MSM_AFE_PORT_TYPE_RX)
  1726. path_type = RX_PATH;
  1727. else
  1728. path_type = TX_PATH;
  1729. if (set) {
  1730. if (msm_bedais[reg].active) {
  1731. voc_set_route_flag(session_id, path_type, 1);
  1732. memset(&voc_be_media_format, 0,
  1733. sizeof(struct media_format_info));
  1734. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1735. voc_be_media_format.num_channels =
  1736. msm_bedais[reg].channel;
  1737. voc_be_media_format.sample_rate =
  1738. msm_bedais[reg].sample_rate;
  1739. voc_be_media_format.bits_per_sample =
  1740. msm_bedais[reg].format;
  1741. /* Defaulting this to 1 for voice call usecases */
  1742. voc_be_media_format.channel_mapping[0] = 1;
  1743. voc_set_device_config(session_id, path_type,
  1744. &voc_be_media_format);
  1745. if (voc_get_route_flag(session_id, TX_PATH) &&
  1746. voc_get_route_flag(session_id, RX_PATH))
  1747. voc_enable_device(session_id);
  1748. } else {
  1749. pr_debug("%s BE is not active\n", __func__);
  1750. }
  1751. } else {
  1752. voc_set_route_flag(session_id, path_type, 0);
  1753. voc_disable_device(session_id);
  1754. }
  1755. mutex_unlock(&routing_lock);
  1756. }
  1757. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1758. struct snd_ctl_elem_value *ucontrol)
  1759. {
  1760. struct soc_mixer_control *mc =
  1761. (struct soc_mixer_control *)kcontrol->private_value;
  1762. mutex_lock(&routing_lock);
  1763. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1764. ucontrol->value.integer.value[0] = 1;
  1765. else
  1766. ucontrol->value.integer.value[0] = 0;
  1767. mutex_unlock(&routing_lock);
  1768. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1769. ucontrol->value.integer.value[0]);
  1770. return 0;
  1771. }
  1772. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1773. struct snd_ctl_elem_value *ucontrol)
  1774. {
  1775. struct snd_soc_dapm_widget *widget =
  1776. snd_soc_dapm_kcontrol_widget(kcontrol);
  1777. struct soc_mixer_control *mc =
  1778. (struct soc_mixer_control *)kcontrol->private_value;
  1779. struct snd_soc_dapm_update *update = NULL;
  1780. if (ucontrol->value.integer.value[0]) {
  1781. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1782. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1783. update);
  1784. } else {
  1785. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1786. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1787. update);
  1788. }
  1789. return 1;
  1790. }
  1791. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1792. struct snd_ctl_elem_value *ucontrol)
  1793. {
  1794. struct soc_mixer_control *mc =
  1795. (struct soc_mixer_control *)kcontrol->private_value;
  1796. mutex_lock(&routing_lock);
  1797. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1798. ucontrol->value.integer.value[0] = 1;
  1799. else
  1800. ucontrol->value.integer.value[0] = 0;
  1801. mutex_unlock(&routing_lock);
  1802. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1803. ucontrol->value.integer.value[0]);
  1804. return 0;
  1805. }
  1806. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1807. struct snd_ctl_elem_value *ucontrol)
  1808. {
  1809. struct snd_soc_dapm_widget *widget =
  1810. snd_soc_dapm_kcontrol_widget(kcontrol);
  1811. struct soc_mixer_control *mc =
  1812. (struct soc_mixer_control *)kcontrol->private_value;
  1813. struct snd_soc_dapm_update *update = NULL;
  1814. if (ucontrol->value.integer.value[0]) {
  1815. mutex_lock(&routing_lock);
  1816. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1817. mutex_unlock(&routing_lock);
  1818. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1819. update);
  1820. } else {
  1821. mutex_lock(&routing_lock);
  1822. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1823. mutex_unlock(&routing_lock);
  1824. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1825. update);
  1826. }
  1827. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1828. ucontrol->value.integer.value[0]);
  1829. return 1;
  1830. }
  1831. /*
  1832. * Return the mapping between port ID and backend ID to enable the AFE callback
  1833. * to determine the acdb_dev_id from the port id
  1834. */
  1835. int msm_pcm_get_be_id_from_port_id(int port_id)
  1836. {
  1837. int i;
  1838. int be_id = -EINVAL;
  1839. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1840. if (msm_bedais[i].port_id == port_id) {
  1841. be_id = i;
  1842. break;
  1843. }
  1844. }
  1845. return be_id;
  1846. }
  1847. /*
  1848. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1849. * correct AFE calibration information by comparing the header information.
  1850. */
  1851. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1852. {
  1853. int acdb_id = -EINVAL;
  1854. int i = 0;
  1855. int session;
  1856. int port_type = afe_get_port_type(port_id);
  1857. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1858. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1859. __func__, port_id, be_id, port_type);
  1860. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1861. session = SESSION_TYPE_TX;
  1862. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1863. session = SESSION_TYPE_RX;
  1864. } else {
  1865. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1866. acdb_id = -EINVAL;
  1867. goto exit;
  1868. }
  1869. if (be_id < 0) {
  1870. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1871. goto exit;
  1872. }
  1873. mutex_lock(&routing_lock);
  1874. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1875. MSM_FRONTEND_DAI_MAX);
  1876. if (i < MSM_FRONTEND_DAI_MAX)
  1877. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1878. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1879. __func__, i, session, be_id, acdb_id);
  1880. mutex_unlock(&routing_lock);
  1881. exit:
  1882. return acdb_id;
  1883. }
  1884. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1885. struct snd_ctl_elem_value *ucontrol)
  1886. {
  1887. ucontrol->value.integer.value[0] = fm_switch_enable;
  1888. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1889. ucontrol->value.integer.value[0]);
  1890. return 0;
  1891. }
  1892. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1893. struct snd_ctl_elem_value *ucontrol)
  1894. {
  1895. struct snd_soc_dapm_widget *widget =
  1896. snd_soc_dapm_kcontrol_widget(kcontrol);
  1897. struct snd_soc_dapm_update *update = NULL;
  1898. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1899. ucontrol->value.integer.value[0]);
  1900. if (ucontrol->value.integer.value[0])
  1901. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1902. update);
  1903. else
  1904. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1905. update);
  1906. fm_switch_enable = ucontrol->value.integer.value[0];
  1907. return 1;
  1908. }
  1909. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1910. struct snd_ctl_elem_value *ucontrol)
  1911. {
  1912. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1913. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1914. ucontrol->value.integer.value[0]);
  1915. return 0;
  1916. }
  1917. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1918. struct snd_ctl_elem_value *ucontrol)
  1919. {
  1920. struct snd_soc_dapm_widget *widget =
  1921. snd_soc_dapm_kcontrol_widget(kcontrol);
  1922. struct snd_soc_dapm_update *update = NULL;
  1923. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1924. ucontrol->value.integer.value[0]);
  1925. if (ucontrol->value.integer.value[0])
  1926. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1927. 1, update);
  1928. else
  1929. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1930. 0, update);
  1931. hfp_switch_enable = ucontrol->value.integer.value[0];
  1932. return 1;
  1933. }
  1934. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1935. struct snd_ctl_elem_value *ucontrol)
  1936. {
  1937. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1938. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1939. ucontrol->value.integer.value[0]);
  1940. return 0;
  1941. }
  1942. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1943. struct snd_ctl_elem_value *ucontrol)
  1944. {
  1945. struct snd_soc_dapm_widget *widget =
  1946. snd_soc_dapm_kcontrol_widget(kcontrol);
  1947. struct snd_soc_dapm_update *update = NULL;
  1948. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1949. ucontrol->value.integer.value[0]);
  1950. if (ucontrol->value.integer.value[0])
  1951. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1952. update);
  1953. else
  1954. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1955. update);
  1956. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1957. return 1;
  1958. }
  1959. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1960. struct snd_ctl_elem_value *ucontrol)
  1961. {
  1962. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1963. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1964. ucontrol->value.integer.value[0]);
  1965. return 0;
  1966. }
  1967. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1968. struct snd_ctl_elem_value *ucontrol)
  1969. {
  1970. struct snd_soc_dapm_widget *widget =
  1971. snd_soc_dapm_kcontrol_widget(kcontrol);
  1972. struct snd_soc_dapm_update *update = NULL;
  1973. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1974. ucontrol->value.integer.value[0]);
  1975. if (ucontrol->value.integer.value[0])
  1976. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1977. update);
  1978. else
  1979. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1980. update);
  1981. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1982. return 1;
  1983. }
  1984. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1985. struct snd_ctl_elem_value *ucontrol)
  1986. {
  1987. ucontrol->value.integer.value[0] = usb_switch_enable;
  1988. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1989. ucontrol->value.integer.value[0]);
  1990. return 0;
  1991. }
  1992. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1993. struct snd_ctl_elem_value *ucontrol)
  1994. {
  1995. struct snd_soc_dapm_widget *widget =
  1996. snd_soc_dapm_kcontrol_widget(kcontrol);
  1997. struct snd_soc_dapm_update *update = NULL;
  1998. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1999. ucontrol->value.integer.value[0]);
  2000. if (ucontrol->value.integer.value[0])
  2001. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2002. 1, update);
  2003. else
  2004. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2005. 0, update);
  2006. usb_switch_enable = ucontrol->value.integer.value[0];
  2007. return 1;
  2008. }
  2009. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2010. struct snd_ctl_elem_value *ucontrol)
  2011. {
  2012. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2013. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2014. ucontrol->value.integer.value[0]);
  2015. return 0;
  2016. }
  2017. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2018. struct snd_ctl_elem_value *ucontrol)
  2019. {
  2020. struct snd_soc_dapm_widget *widget =
  2021. snd_soc_dapm_kcontrol_widget(kcontrol);
  2022. struct snd_soc_dapm_update *update = NULL;
  2023. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2024. ucontrol->value.integer.value[0]);
  2025. if (ucontrol->value.integer.value[0])
  2026. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2027. update);
  2028. else
  2029. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2030. update);
  2031. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2032. return 1;
  2033. }
  2034. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2035. struct snd_ctl_elem_value *ucontrol)
  2036. {
  2037. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2038. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2039. ucontrol->value.integer.value[0]);
  2040. return 0;
  2041. }
  2042. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2043. struct snd_ctl_elem_value *ucontrol)
  2044. {
  2045. struct snd_soc_dapm_widget *widget =
  2046. snd_soc_dapm_kcontrol_widget(kcontrol);
  2047. struct snd_soc_dapm_update *update = NULL;
  2048. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2049. ucontrol->value.integer.value[0]);
  2050. if (ucontrol->value.integer.value[0])
  2051. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2052. update);
  2053. else
  2054. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2055. update);
  2056. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2057. return 1;
  2058. }
  2059. static int msm_routing_get_tert_mi2s_switch_mixer(
  2060. struct snd_kcontrol *kcontrol,
  2061. struct snd_ctl_elem_value *ucontrol)
  2062. {
  2063. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2064. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2065. ucontrol->value.integer.value[0]);
  2066. return 0;
  2067. }
  2068. static int msm_routing_put_tert_mi2s_switch_mixer(
  2069. struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. struct snd_soc_dapm_widget *widget =
  2073. snd_soc_dapm_kcontrol_widget(kcontrol);
  2074. struct snd_soc_dapm_update *update = NULL;
  2075. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2076. ucontrol->value.integer.value[0]);
  2077. if (ucontrol->value.integer.value[0])
  2078. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2079. update);
  2080. else
  2081. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2082. update);
  2083. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2084. return 1;
  2085. }
  2086. static int msm_routing_get_quat_mi2s_switch_mixer(
  2087. struct snd_kcontrol *kcontrol,
  2088. struct snd_ctl_elem_value *ucontrol)
  2089. {
  2090. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2091. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2092. ucontrol->value.integer.value[0]);
  2093. return 0;
  2094. }
  2095. static int msm_routing_put_quat_mi2s_switch_mixer(
  2096. struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. struct snd_soc_dapm_widget *widget =
  2100. snd_soc_dapm_kcontrol_widget(kcontrol);
  2101. struct snd_soc_dapm_update *update = NULL;
  2102. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2103. ucontrol->value.integer.value[0]);
  2104. if (ucontrol->value.integer.value[0])
  2105. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2106. update);
  2107. else
  2108. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2109. update);
  2110. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2111. return 1;
  2112. }
  2113. static int msm_routing_get_quin_mi2s_switch_mixer(
  2114. struct snd_kcontrol *kcontrol,
  2115. struct snd_ctl_elem_value *ucontrol)
  2116. {
  2117. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2118. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2119. ucontrol->value.integer.value[0]);
  2120. return 0;
  2121. }
  2122. static int msm_routing_put_quin_mi2s_switch_mixer(
  2123. struct snd_kcontrol *kcontrol,
  2124. struct snd_ctl_elem_value *ucontrol)
  2125. {
  2126. struct snd_soc_dapm_widget *widget =
  2127. snd_soc_dapm_kcontrol_widget(kcontrol);
  2128. struct snd_soc_dapm_update *update = NULL;
  2129. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2130. ucontrol->value.integer.value[0]);
  2131. if (ucontrol->value.integer.value[0])
  2132. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2133. update);
  2134. else
  2135. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2136. update);
  2137. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2138. return 1;
  2139. }
  2140. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2141. struct snd_ctl_elem_value *ucontrol)
  2142. {
  2143. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2144. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. return 0;
  2147. }
  2148. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2149. struct snd_ctl_elem_value *ucontrol)
  2150. {
  2151. struct snd_soc_dapm_widget *widget =
  2152. snd_soc_dapm_kcontrol_widget(kcontrol);
  2153. struct snd_soc_dapm_update *update = NULL;
  2154. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2155. ucontrol->value.integer.value[0]);
  2156. if (ucontrol->value.integer.value[0])
  2157. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2158. update);
  2159. else
  2160. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2161. update);
  2162. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2163. return 1;
  2164. }
  2165. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. ucontrol->value.integer.value[0] = lsm_port_index;
  2169. return 0;
  2170. }
  2171. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2172. struct snd_ctl_elem_value *ucontrol)
  2173. {
  2174. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2175. int mux = ucontrol->value.enumerated.item[0];
  2176. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2177. if (mux >= e->items) {
  2178. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2179. return -EINVAL;
  2180. }
  2181. pr_debug("%s: LSM enable %ld\n", __func__,
  2182. ucontrol->value.integer.value[0]);
  2183. switch (ucontrol->value.integer.value[0]) {
  2184. case 1:
  2185. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2186. break;
  2187. case 2:
  2188. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2189. break;
  2190. case 3:
  2191. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2192. break;
  2193. case 4:
  2194. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2195. break;
  2196. case 5:
  2197. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2198. break;
  2199. case 6:
  2200. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2201. break;
  2202. case 7:
  2203. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2204. break;
  2205. case 8:
  2206. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2207. break;
  2208. case 9:
  2209. lsm_port = ADM_LSM_PORT_ID;
  2210. break;
  2211. case 10:
  2212. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2213. break;
  2214. default:
  2215. pr_err("Default lsm port");
  2216. break;
  2217. }
  2218. set_lsm_port(lsm_port);
  2219. lsm_port_index = ucontrol->value.integer.value[0];
  2220. return 0;
  2221. }
  2222. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2223. struct snd_ctl_elem_value *ucontrol)
  2224. {
  2225. int i;
  2226. u16 port_id;
  2227. enum afe_mad_type mad_type;
  2228. pr_debug("%s: enter\n", __func__);
  2229. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2230. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2231. strlen(lsm_port_text[i])))
  2232. break;
  2233. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2234. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2235. return -EINVAL;
  2236. }
  2237. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2238. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2239. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2240. strlen(lsm_port_text[7])))
  2241. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2242. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2243. strlen(lsm_port_text[8])))
  2244. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2245. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2246. strlen(lsm_port_text[10])))
  2247. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2248. mad_type = afe_port_get_mad_type(port_id);
  2249. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2250. mad_type);
  2251. switch (mad_type) {
  2252. case MAD_HW_NONE:
  2253. ucontrol->value.integer.value[0] = MADNONE;
  2254. break;
  2255. case MAD_HW_AUDIO:
  2256. ucontrol->value.integer.value[0] = MADAUDIO;
  2257. break;
  2258. case MAD_HW_BEACON:
  2259. ucontrol->value.integer.value[0] = MADBEACON;
  2260. break;
  2261. case MAD_HW_ULTRASOUND:
  2262. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2263. break;
  2264. case MAD_SW_AUDIO:
  2265. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2266. break;
  2267. default:
  2268. WARN(1, "Unknown\n");
  2269. return -EINVAL;
  2270. }
  2271. return 0;
  2272. }
  2273. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2274. struct snd_ctl_elem_value *ucontrol)
  2275. {
  2276. int i;
  2277. u16 port_id;
  2278. enum afe_mad_type mad_type;
  2279. pr_debug("%s: enter\n", __func__);
  2280. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2281. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2282. strlen(lsm_port_text[i])))
  2283. break;
  2284. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2285. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2286. return -EINVAL;
  2287. }
  2288. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2289. switch (ucontrol->value.integer.value[0]) {
  2290. case MADNONE:
  2291. mad_type = MAD_HW_NONE;
  2292. break;
  2293. case MADAUDIO:
  2294. mad_type = MAD_HW_AUDIO;
  2295. break;
  2296. case MADBEACON:
  2297. mad_type = MAD_HW_BEACON;
  2298. break;
  2299. case MADULTRASOUND:
  2300. mad_type = MAD_HW_ULTRASOUND;
  2301. break;
  2302. case MADSWAUDIO:
  2303. mad_type = MAD_SW_AUDIO;
  2304. break;
  2305. default:
  2306. WARN(1, "Unknown\n");
  2307. return -EINVAL;
  2308. }
  2309. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2310. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2311. strlen(lsm_port_text[7])))
  2312. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2313. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2314. strlen(lsm_port_text[8])))
  2315. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2316. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2317. strlen(lsm_port_text[10])))
  2318. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2319. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2320. mad_type);
  2321. return afe_port_set_mad_type(port_id, mad_type);
  2322. }
  2323. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2324. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2325. adm_override_chs_text);
  2326. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2327. {
  2328. int backend_id;
  2329. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2330. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2331. } else {
  2332. pr_err("%s: unsupported backend id: %s",
  2333. __func__, kcontrol->id.name);
  2334. return -EINVAL;
  2335. }
  2336. return backend_id;
  2337. }
  2338. static int msm_routing_adm_channel_config_get(
  2339. struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2343. if (backend_id >= 0) {
  2344. mutex_lock(&routing_lock);
  2345. ucontrol->value.integer.value[0] =
  2346. msm_bedais[backend_id].adm_override_ch;
  2347. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2348. ucontrol->value.integer.value[0], backend_id);
  2349. mutex_unlock(&routing_lock);
  2350. }
  2351. return 0;
  2352. }
  2353. static int msm_routing_adm_channel_config_put(
  2354. struct snd_kcontrol *kcontrol,
  2355. struct snd_ctl_elem_value *ucontrol)
  2356. {
  2357. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2358. if (backend_id >= 0) {
  2359. mutex_lock(&routing_lock);
  2360. msm_bedais[backend_id].adm_override_ch =
  2361. ucontrol->value.integer.value[0];
  2362. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2363. __func__, backend_id,
  2364. msm_bedais[backend_id].adm_override_ch);
  2365. mutex_unlock(&routing_lock);
  2366. }
  2367. return 0;
  2368. }
  2369. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2370. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2371. msm_routing_adm_channel_config_get,
  2372. msm_routing_adm_channel_config_put),
  2373. };
  2374. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. mutex_lock(&routing_lock);
  2378. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2379. mutex_unlock(&routing_lock);
  2380. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2381. ucontrol->value.integer.value[0]);
  2382. return 0;
  2383. };
  2384. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2385. struct snd_ctl_elem_value *ucontrol)
  2386. {
  2387. struct aanc_data aanc_info;
  2388. mutex_lock(&routing_lock);
  2389. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2390. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2391. ucontrol->value.integer.value[0]);
  2392. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2393. if (ucontrol->value.integer.value[0] == 0) {
  2394. aanc_info.aanc_active = false;
  2395. aanc_info.aanc_tx_port = 0;
  2396. aanc_info.aanc_rx_port = 0;
  2397. } else {
  2398. aanc_info.aanc_active = true;
  2399. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2400. aanc_info.aanc_tx_port =
  2401. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2402. }
  2403. afe_set_aanc_info(&aanc_info);
  2404. mutex_unlock(&routing_lock);
  2405. return 0;
  2406. };
  2407. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2408. struct snd_ctl_elem_value *ucontrol)
  2409. {
  2410. int idx = 0, shift = 0;
  2411. struct soc_mixer_control *mc =
  2412. (struct soc_mixer_control *)kcontrol->private_value;
  2413. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2414. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2415. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2416. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2417. return -EINVAL;
  2418. }
  2419. if (test_bit(shift,
  2420. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2421. ucontrol->value.integer.value[0] = 1;
  2422. else
  2423. ucontrol->value.integer.value[0] = 0;
  2424. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2425. ucontrol->value.integer.value[0]);
  2426. return 0;
  2427. }
  2428. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. int idx = 0, shift = 0;
  2432. struct soc_mixer_control *mc =
  2433. (struct soc_mixer_control *)kcontrol->private_value;
  2434. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2435. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2436. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2437. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2438. return -EINVAL;
  2439. }
  2440. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2441. __func__, mc->reg, mc->shift,
  2442. ucontrol->value.integer.value[0], idx, shift);
  2443. if (ucontrol->value.integer.value[0]) {
  2444. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2445. msm_bedais[mc->shift].port_id);
  2446. set_bit(shift,
  2447. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2448. } else {
  2449. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2450. msm_bedais[mc->shift].port_id);
  2451. clear_bit(shift,
  2452. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2453. }
  2454. return 1;
  2455. }
  2456. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. u16 fe_id = 0;
  2460. fe_id = ((struct soc_mixer_control *)
  2461. kcontrol->private_value)->shift;
  2462. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2463. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2464. return -EINVAL;
  2465. }
  2466. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2467. return 0;
  2468. }
  2469. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2470. struct snd_ctl_elem_value *ucontrol)
  2471. {
  2472. u16 fe_id = 0;
  2473. fe_id = ((struct soc_mixer_control *)
  2474. kcontrol->private_value)->shift;
  2475. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2476. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2477. return -EINVAL;
  2478. }
  2479. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2480. return 1;
  2481. }
  2482. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2483. struct snd_ctl_elem_value *ucontrol)
  2484. {
  2485. u16 fe_id = 0;
  2486. fe_id = ((struct soc_multi_mixer_control *)
  2487. kcontrol->private_value)->shift;
  2488. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2489. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2490. return -EINVAL;
  2491. }
  2492. ucontrol->value.integer.value[0] =
  2493. channel_mixer[fe_id].output_channel;
  2494. return 0;
  2495. }
  2496. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2497. struct snd_ctl_elem_value *ucontrol)
  2498. {
  2499. u16 fe_id = 0;
  2500. fe_id = ((struct soc_multi_mixer_control *)
  2501. kcontrol->private_value)->shift;
  2502. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2503. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2504. return -EINVAL;
  2505. }
  2506. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2507. fe_id,
  2508. (unsigned int)(ucontrol->value.integer.value[0]));
  2509. channel_mixer[fe_id].output_channel =
  2510. (unsigned int)(ucontrol->value.integer.value[0]);
  2511. return 1;
  2512. }
  2513. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2514. /* If new backend is added, need update this array */
  2515. static const char *const be_name[] = {
  2516. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2517. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2518. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2519. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2520. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2521. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2522. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2523. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2524. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2525. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2526. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2527. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2528. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2529. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2530. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2531. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2532. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2533. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2534. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2535. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2536. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2537. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2538. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2539. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2540. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2541. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2542. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2543. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2544. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2545. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2546. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2547. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2548. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2549. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2550. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2551. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2552. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2553. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2554. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2555. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2556. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2557. };
  2558. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2559. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2560. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2561. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2562. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2563. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2564. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2565. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2566. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2567. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2568. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2569. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2570. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2571. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2572. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2573. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2574. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2575. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2576. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2577. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2578. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2579. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2580. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2581. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2582. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2583. unsigned int channels,
  2584. unsigned int items, const char *const names[])
  2585. {
  2586. if (uinfo->value.enumerated.item >= items)
  2587. uinfo->value.enumerated.item = items - 1;
  2588. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2589. sizeof(uinfo->value.enumerated.name),
  2590. "ALSA: too long item name '%s'\n",
  2591. names[uinfo->value.enumerated.item]);
  2592. strlcpy(uinfo->value.enumerated.name,
  2593. names[uinfo->value.enumerated.item],
  2594. sizeof(uinfo->value.enumerated.name));
  2595. return 0;
  2596. }
  2597. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_info *uinfo)
  2599. {
  2600. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2601. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2602. uinfo->count = 1;
  2603. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2604. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2605. return 0;
  2606. }
  2607. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. u16 fe_id = 0;
  2611. fe_id = ((struct soc_enum *)
  2612. kcontrol->private_value)->shift_l;
  2613. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2614. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2615. return -EINVAL;
  2616. }
  2617. pr_debug("%s: FE %d %s\n", __func__,
  2618. fe_id,
  2619. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2620. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2621. return 0;
  2622. }
  2623. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2624. struct snd_ctl_elem_value *ucontrol)
  2625. {
  2626. u16 fe_id = 0;
  2627. fe_id = ((struct soc_enum *)
  2628. kcontrol->private_value)->shift_l;
  2629. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2630. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2631. return -EINVAL;
  2632. }
  2633. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2634. pr_debug("%s: %s FE %d\n", __func__,
  2635. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2636. fe_id);
  2637. return 0;
  2638. }
  2639. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_info *uinfo)
  2641. {
  2642. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2643. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2644. uinfo->count = 1;
  2645. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2646. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2647. return 0;
  2648. }
  2649. static int msm_pcm_channel_input_be_put(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. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2665. return 1;
  2666. }
  2667. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2668. struct snd_ctl_elem_value *ucontrol)
  2669. {
  2670. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2671. u16 fe_id = 0, in_ch = 0;
  2672. fe_id = e->shift_l;
  2673. in_ch = e->shift_r;
  2674. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2675. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2676. return -EINVAL;
  2677. }
  2678. if (in_ch >= ADM_MAX_CHANNELS) {
  2679. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2680. return -EINVAL;
  2681. }
  2682. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2683. return 1;
  2684. }
  2685. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2686. struct snd_ctl_elem_info *uinfo)
  2687. {
  2688. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2689. uinfo->count = ADM_MAX_CHANNELS;
  2690. uinfo->value.integer.min = 0;
  2691. uinfo->value.integer.max = WEIGHT_0_DB;
  2692. return 0;
  2693. }
  2694. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2695. struct snd_ctl_elem_value *ucontrol)
  2696. {
  2697. u16 fe_id = 0, out_ch = 0;
  2698. int i, weight;
  2699. fe_id = ((struct soc_multi_mixer_control *)
  2700. kcontrol->private_value)->shift;
  2701. out_ch = ((struct soc_multi_mixer_control *)
  2702. kcontrol->private_value)->rshift;
  2703. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2704. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2705. return -EINVAL;
  2706. }
  2707. if (out_ch >= ADM_MAX_CHANNELS) {
  2708. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2709. return -EINVAL;
  2710. }
  2711. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2712. __func__, fe_id,
  2713. ucontrol->value.integer.value[0],
  2714. ucontrol->value.integer.value[1],
  2715. ucontrol->value.integer.value[2],
  2716. ucontrol->value.integer.value[3],
  2717. ucontrol->value.integer.value[4],
  2718. ucontrol->value.integer.value[5],
  2719. ucontrol->value.integer.value[6],
  2720. ucontrol->value.integer.value[7]);
  2721. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2722. weight = ucontrol->value.integer.value[i];
  2723. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2724. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2725. __func__, fe_id, out_ch, i,
  2726. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2727. }
  2728. return 0;
  2729. }
  2730. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2731. struct snd_ctl_elem_value *ucontrol)
  2732. {
  2733. u16 fe_id = 0, out_ch = 0;
  2734. int i;
  2735. fe_id = ((struct soc_multi_mixer_control *)
  2736. kcontrol->private_value)->shift;
  2737. out_ch = ((struct soc_multi_mixer_control *)
  2738. kcontrol->private_value)->rshift;
  2739. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2740. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2741. return -EINVAL;
  2742. }
  2743. if (out_ch >= ADM_MAX_CHANNELS) {
  2744. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2745. return -EINVAL;
  2746. }
  2747. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2748. ucontrol->value.integer.value[i] =
  2749. channel_mixer[fe_id].channel_weight[out_ch][i];
  2750. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2751. __func__, fe_id,
  2752. ucontrol->value.integer.value[0],
  2753. ucontrol->value.integer.value[1],
  2754. ucontrol->value.integer.value[2],
  2755. ucontrol->value.integer.value[3],
  2756. ucontrol->value.integer.value[4],
  2757. ucontrol->value.integer.value[5],
  2758. ucontrol->value.integer.value[6],
  2759. ucontrol->value.integer.value[7]);
  2760. return 0;
  2761. }
  2762. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2763. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2764. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2765. msm_pcm_get_channel_rule_index,
  2766. msm_pcm_put_channel_rule_index),
  2767. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2768. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2769. msm_pcm_get_channel_rule_index,
  2770. msm_pcm_put_channel_rule_index),
  2771. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2772. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2773. msm_pcm_get_channel_rule_index,
  2774. msm_pcm_put_channel_rule_index),
  2775. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2776. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2777. msm_pcm_get_channel_rule_index,
  2778. msm_pcm_put_channel_rule_index),
  2779. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2780. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2781. msm_pcm_get_channel_rule_index,
  2782. msm_pcm_put_channel_rule_index),
  2783. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2784. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2785. msm_pcm_get_channel_rule_index,
  2786. msm_pcm_put_channel_rule_index),
  2787. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2788. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2789. msm_pcm_get_out_chs,
  2790. msm_pcm_put_out_chs),
  2791. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2792. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2793. msm_pcm_get_out_chs,
  2794. msm_pcm_put_out_chs),
  2795. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2796. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2797. msm_pcm_get_out_chs,
  2798. msm_pcm_put_out_chs),
  2799. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2800. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2801. msm_pcm_get_out_chs,
  2802. msm_pcm_put_out_chs),
  2803. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2804. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2805. msm_pcm_get_out_chs,
  2806. msm_pcm_put_out_chs),
  2807. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2808. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2809. msm_pcm_get_out_chs,
  2810. msm_pcm_put_out_chs),
  2811. {
  2812. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2813. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2814. .name = "MultiMedia1 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)&(mm1_channel_mux)
  2819. },
  2820. {
  2821. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2822. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2823. .name = "MultiMedia2 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)&(mm2_channel_mux)
  2828. },
  2829. {
  2830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2831. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2832. .name = "MultiMedia3 Channel Mixer",
  2833. .info = msm_pcm_channel_mixer_info,
  2834. .get = msm_pcm_channel_mixer_get,
  2835. .put = msm_pcm_channel_mixer_put,
  2836. .private_value = (unsigned long)&(mm3_channel_mux)
  2837. },
  2838. {
  2839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2841. .name = "MultiMedia4 Channel Mixer",
  2842. .info = msm_pcm_channel_mixer_info,
  2843. .get = msm_pcm_channel_mixer_get,
  2844. .put = msm_pcm_channel_mixer_put,
  2845. .private_value = (unsigned long)&(mm4_channel_mux)
  2846. },
  2847. {
  2848. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2849. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2850. .name = "MultiMedia1 Output Channel1",
  2851. .info = msm_pcm_channel_weight_info,
  2852. .get = msm_pcm_channel_weight_get,
  2853. .put = msm_pcm_channel_weight_put,
  2854. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2855. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2856. },
  2857. {
  2858. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2860. .name = "MultiMedia1 Output Channel2",
  2861. .info = msm_pcm_channel_weight_info,
  2862. .get = msm_pcm_channel_weight_get,
  2863. .put = msm_pcm_channel_weight_put,
  2864. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2865. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2866. },
  2867. {
  2868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2869. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2870. .name = "MultiMedia1 Output Channel3",
  2871. .info = msm_pcm_channel_weight_info,
  2872. .get = msm_pcm_channel_weight_get,
  2873. .put = msm_pcm_channel_weight_put,
  2874. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2875. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2876. },
  2877. {
  2878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2879. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2880. .name = "MultiMedia1 Output Channel4",
  2881. .info = msm_pcm_channel_weight_info,
  2882. .get = msm_pcm_channel_weight_get,
  2883. .put = msm_pcm_channel_weight_put,
  2884. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2885. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2886. },
  2887. {
  2888. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2889. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2890. .name = "MultiMedia1 Output Channel5",
  2891. .info = msm_pcm_channel_weight_info,
  2892. .get = msm_pcm_channel_weight_get,
  2893. .put = msm_pcm_channel_weight_put,
  2894. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2895. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2896. },
  2897. {
  2898. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2899. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2900. .name = "MultiMedia1 Output Channel6",
  2901. .info = msm_pcm_channel_weight_info,
  2902. .get = msm_pcm_channel_weight_get,
  2903. .put = msm_pcm_channel_weight_put,
  2904. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2905. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2906. },
  2907. {
  2908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2909. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2910. .name = "MultiMedia1 Output Channel7",
  2911. .info = msm_pcm_channel_weight_info,
  2912. .get = msm_pcm_channel_weight_get,
  2913. .put = msm_pcm_channel_weight_put,
  2914. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2915. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2916. },
  2917. {
  2918. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2919. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2920. .name = "MultiMedia1 Output Channel8",
  2921. .info = msm_pcm_channel_weight_info,
  2922. .get = msm_pcm_channel_weight_get,
  2923. .put = msm_pcm_channel_weight_put,
  2924. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2925. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2926. },
  2927. {
  2928. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2930. .name = "MultiMedia2 Output Channel1",
  2931. .info = msm_pcm_channel_weight_info,
  2932. .get = msm_pcm_channel_weight_get,
  2933. .put = msm_pcm_channel_weight_put,
  2934. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2935. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2936. },
  2937. {
  2938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2939. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2940. .name = "MultiMedia2 Output Channel2",
  2941. .info = msm_pcm_channel_weight_info,
  2942. .get = msm_pcm_channel_weight_get,
  2943. .put = msm_pcm_channel_weight_put,
  2944. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2945. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2946. },
  2947. {
  2948. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2949. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2950. .name = "MultiMedia2 Output Channel3",
  2951. .info = msm_pcm_channel_weight_info,
  2952. .get = msm_pcm_channel_weight_get,
  2953. .put = msm_pcm_channel_weight_put,
  2954. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2955. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2956. },
  2957. {
  2958. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2960. .name = "MultiMedia3 Output Channel1",
  2961. .info = msm_pcm_channel_weight_info,
  2962. .get = msm_pcm_channel_weight_get,
  2963. .put = msm_pcm_channel_weight_put,
  2964. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2965. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2966. },
  2967. {
  2968. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2969. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2970. .name = "MultiMedia3 Output Channel2",
  2971. .info = msm_pcm_channel_weight_info,
  2972. .get = msm_pcm_channel_weight_get,
  2973. .put = msm_pcm_channel_weight_put,
  2974. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2975. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2976. },
  2977. {
  2978. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2979. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2980. .name = "MultiMedia1 Channel1",
  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_ch1_enum)
  2985. },
  2986. {
  2987. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2988. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2989. .name = "MultiMedia1 Channel2",
  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_ch2_enum)
  2994. },
  2995. {
  2996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2998. .name = "MultiMedia1 Channel3",
  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_ch3_enum)
  3003. },
  3004. {
  3005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3007. .name = "MultiMedia1 Channel4",
  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_ch4_enum)
  3012. },
  3013. {
  3014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3015. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3016. .name = "MultiMedia1 Channel5",
  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_ch5_enum)
  3021. },
  3022. {
  3023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3024. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3025. .name = "MultiMedia1 Channel6",
  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_ch6_enum)
  3030. },
  3031. {
  3032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3034. .name = "MultiMedia1 Channel7",
  3035. .info = msm_pcm_channel_input_be_info,
  3036. .get = msm_pcm_channel_input_be_get,
  3037. .put = msm_pcm_channel_input_be_put,
  3038. .private_value = (unsigned long)&(mm1_ch7_enum)
  3039. },
  3040. {
  3041. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3042. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3043. .name = "MultiMedia1 Channel8",
  3044. .info = msm_pcm_channel_input_be_info,
  3045. .get = msm_pcm_channel_input_be_get,
  3046. .put = msm_pcm_channel_input_be_put,
  3047. .private_value = (unsigned long)&(mm1_ch8_enum)
  3048. },
  3049. };
  3050. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3051. struct snd_ctl_elem_value *ucontrol)
  3052. {
  3053. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3054. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3055. ucontrol->value.integer.value[0]);
  3056. return 0;
  3057. }
  3058. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3059. struct snd_ctl_elem_value *ucontrol)
  3060. {
  3061. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3062. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3063. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3064. return 0;
  3065. }
  3066. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3067. "Four", "Five", "Six", "Seven", "Eight"};
  3068. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3069. struct snd_ctl_elem_value *ucontrol)
  3070. {
  3071. switch (msm_ec_ref_bit_format) {
  3072. case SNDRV_PCM_FORMAT_S24_LE:
  3073. ucontrol->value.integer.value[0] = 2;
  3074. break;
  3075. case SNDRV_PCM_FORMAT_S16_LE:
  3076. ucontrol->value.integer.value[0] = 1;
  3077. break;
  3078. default:
  3079. ucontrol->value.integer.value[0] = 0;
  3080. break;
  3081. }
  3082. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3083. __func__, ucontrol->value.integer.value[0]);
  3084. return 0;
  3085. }
  3086. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3087. struct snd_ctl_elem_value *ucontrol)
  3088. {
  3089. u16 bit_width = 0;
  3090. switch (ucontrol->value.integer.value[0]) {
  3091. case 2:
  3092. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3093. break;
  3094. case 1:
  3095. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3096. break;
  3097. default:
  3098. msm_ec_ref_bit_format = 0;
  3099. break;
  3100. }
  3101. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3102. bit_width = 16;
  3103. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3104. bit_width = 24;
  3105. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3106. __func__, msm_ec_ref_bit_format);
  3107. adm_ec_ref_rx_bit_width(bit_width);
  3108. return 0;
  3109. }
  3110. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3111. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3112. struct snd_ctl_elem_value *ucontrol)
  3113. {
  3114. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3115. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3116. __func__, ucontrol->value.integer.value[0]);
  3117. return 0;
  3118. }
  3119. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3120. struct snd_ctl_elem_value *ucontrol)
  3121. {
  3122. switch (ucontrol->value.integer.value[0]) {
  3123. case 0:
  3124. msm_ec_ref_sampling_rate = 0;
  3125. break;
  3126. case 1:
  3127. msm_ec_ref_sampling_rate = 8000;
  3128. break;
  3129. case 2:
  3130. msm_ec_ref_sampling_rate = 16000;
  3131. break;
  3132. case 3:
  3133. msm_ec_ref_sampling_rate = 32000;
  3134. break;
  3135. case 4:
  3136. msm_ec_ref_sampling_rate = 44100;
  3137. break;
  3138. case 5:
  3139. msm_ec_ref_sampling_rate = 48000;
  3140. break;
  3141. case 6:
  3142. msm_ec_ref_sampling_rate = 96000;
  3143. break;
  3144. case 7:
  3145. msm_ec_ref_sampling_rate = 192000;
  3146. break;
  3147. case 8:
  3148. msm_ec_ref_sampling_rate = 384000;
  3149. break;
  3150. default:
  3151. msm_ec_ref_sampling_rate = 48000;
  3152. break;
  3153. }
  3154. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3155. __func__, msm_ec_ref_sampling_rate);
  3156. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3157. return 0;
  3158. }
  3159. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3160. "32000", "44100", "48000", "96000", "192000", "384000"};
  3161. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3162. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3163. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3164. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3165. };
  3166. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3167. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3168. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3169. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3170. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3171. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3172. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3173. };
  3174. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3175. struct snd_ctl_elem_value *ucontrol)
  3176. {
  3177. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3178. mutex_lock(&routing_lock);
  3179. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3180. mutex_unlock(&routing_lock);
  3181. return 0;
  3182. }
  3183. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3184. struct snd_ctl_elem_value *ucontrol)
  3185. {
  3186. int ec_ref_port_id;
  3187. struct snd_soc_dapm_widget *widget =
  3188. snd_soc_dapm_kcontrol_widget(kcontrol);
  3189. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3190. struct snd_soc_dapm_update *update = NULL;
  3191. mutex_lock(&routing_lock);
  3192. switch (ucontrol->value.integer.value[0]) {
  3193. case 0:
  3194. msm_route_ec_ref_rx = 0;
  3195. ec_ref_port_id = AFE_PORT_INVALID;
  3196. break;
  3197. case 1:
  3198. msm_route_ec_ref_rx = 1;
  3199. ec_ref_port_id = SLIMBUS_0_RX;
  3200. break;
  3201. case 2:
  3202. msm_route_ec_ref_rx = 2;
  3203. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3204. break;
  3205. case 3:
  3206. msm_route_ec_ref_rx = 3;
  3207. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3208. break;
  3209. case 4:
  3210. msm_route_ec_ref_rx = 4;
  3211. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3212. break;
  3213. case 5:
  3214. msm_route_ec_ref_rx = 5;
  3215. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3216. break;
  3217. case 6:
  3218. msm_route_ec_ref_rx = 6;
  3219. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3220. break;
  3221. case 7:
  3222. msm_route_ec_ref_rx = 7;
  3223. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3224. break;
  3225. case 9:
  3226. msm_route_ec_ref_rx = 9;
  3227. ec_ref_port_id = SLIMBUS_5_RX;
  3228. break;
  3229. case 10:
  3230. msm_route_ec_ref_rx = 10;
  3231. ec_ref_port_id = SLIMBUS_1_TX;
  3232. break;
  3233. case 11:
  3234. msm_route_ec_ref_rx = 11;
  3235. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3236. break;
  3237. case 12:
  3238. msm_route_ec_ref_rx = 12;
  3239. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3240. break;
  3241. case 13:
  3242. msm_route_ec_ref_rx = 13;
  3243. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3244. break;
  3245. case 14:
  3246. msm_route_ec_ref_rx = 14;
  3247. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3248. break;
  3249. case 15:
  3250. msm_route_ec_ref_rx = 15;
  3251. ec_ref_port_id = SLIMBUS_6_RX;
  3252. break;
  3253. case 16:
  3254. msm_route_ec_ref_rx = 16;
  3255. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3256. break;
  3257. case 17:
  3258. msm_route_ec_ref_rx = 17;
  3259. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3260. break;
  3261. case 18:
  3262. msm_route_ec_ref_rx = 18;
  3263. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3264. break;
  3265. case 19:
  3266. msm_route_ec_ref_rx = 19;
  3267. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3268. break;
  3269. case 20:
  3270. msm_route_ec_ref_rx = 20;
  3271. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3272. break;
  3273. case 21:
  3274. msm_route_ec_ref_rx = 21;
  3275. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3276. break;
  3277. case 22:
  3278. msm_route_ec_ref_rx = 22;
  3279. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3280. break;
  3281. case 23:
  3282. msm_route_ec_ref_rx = 23;
  3283. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3284. break;
  3285. default:
  3286. msm_route_ec_ref_rx = 0; /* NONE */
  3287. pr_err("%s EC ref rx %ld not valid\n",
  3288. __func__, ucontrol->value.integer.value[0]);
  3289. ec_ref_port_id = AFE_PORT_INVALID;
  3290. break;
  3291. }
  3292. adm_ec_ref_rx_id(ec_ref_port_id);
  3293. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3294. __func__, msm_route_ec_ref_rx);
  3295. mutex_unlock(&routing_lock);
  3296. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3297. msm_route_ec_ref_rx, e, update);
  3298. return 0;
  3299. }
  3300. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3301. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3302. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3303. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3304. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3305. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3306. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3307. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3308. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3309. };
  3310. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3311. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3312. msm_route_ec_ref_rx_enum[0],
  3313. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3314. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3315. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3316. msm_route_ec_ref_rx_enum[0],
  3317. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3318. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3319. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3320. msm_route_ec_ref_rx_enum[0],
  3321. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3322. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3323. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3324. msm_route_ec_ref_rx_enum[0],
  3325. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3326. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3327. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3328. msm_route_ec_ref_rx_enum[0],
  3329. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3330. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3331. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3332. msm_route_ec_ref_rx_enum[0],
  3333. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3334. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3335. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3336. msm_route_ec_ref_rx_enum[0],
  3337. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3338. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3339. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3340. msm_route_ec_ref_rx_enum[0],
  3341. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3342. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3343. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3344. msm_route_ec_ref_rx_enum[0],
  3345. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3346. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3347. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3348. msm_route_ec_ref_rx_enum[0],
  3349. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3350. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3351. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3352. msm_route_ec_ref_rx_enum[0],
  3353. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3354. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3355. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3356. msm_route_ec_ref_rx_enum[0],
  3357. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3358. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3359. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3360. msm_route_ec_ref_rx_enum[0],
  3361. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3362. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3363. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3364. msm_route_ec_ref_rx_enum[0],
  3365. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3366. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3367. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3368. msm_route_ec_ref_rx_enum[0],
  3369. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3370. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3371. struct snd_ctl_elem_value *ucontrol)
  3372. {
  3373. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3374. mutex_lock(&routing_lock);
  3375. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3376. mutex_unlock(&routing_lock);
  3377. return 0;
  3378. }
  3379. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3380. struct snd_ctl_elem_value *ucontrol)
  3381. {
  3382. struct snd_soc_dapm_widget *widget =
  3383. snd_soc_dapm_kcontrol_widget(kcontrol);
  3384. int mux = ucontrol->value.enumerated.item[0];
  3385. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3386. int ret = 1;
  3387. bool state = true;
  3388. uint16_t ext_ec_ref_port_id;
  3389. struct snd_soc_dapm_update *update = NULL;
  3390. if (mux >= e->items) {
  3391. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3392. return -EINVAL;
  3393. }
  3394. mutex_lock(&routing_lock);
  3395. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3396. switch (msm_route_ext_ec_ref) {
  3397. case EXT_EC_REF_PRI_MI2S_TX:
  3398. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3399. break;
  3400. case EXT_EC_REF_SEC_MI2S_TX:
  3401. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3402. break;
  3403. case EXT_EC_REF_TERT_MI2S_TX:
  3404. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3405. break;
  3406. case EXT_EC_REF_QUAT_MI2S_TX:
  3407. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3408. break;
  3409. case EXT_EC_REF_QUIN_MI2S_TX:
  3410. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3411. break;
  3412. case EXT_EC_REF_SLIM_1_TX:
  3413. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3414. break;
  3415. case EXT_EC_REF_NONE:
  3416. default:
  3417. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3418. state = false;
  3419. break;
  3420. }
  3421. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3422. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3423. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3424. mutex_unlock(&routing_lock);
  3425. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3426. update);
  3427. } else {
  3428. ret = -EINVAL;
  3429. mutex_unlock(&routing_lock);
  3430. }
  3431. return ret;
  3432. }
  3433. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3434. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3435. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3436. "SLIM_1_TX"};
  3437. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3438. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3439. };
  3440. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3441. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3442. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3443. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3444. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3446. msm_routing_put_audio_mixer),
  3447. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3449. msm_routing_put_audio_mixer),
  3450. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3452. msm_routing_put_audio_mixer),
  3453. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3455. msm_routing_put_audio_mixer),
  3456. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3458. msm_routing_put_audio_mixer),
  3459. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3461. msm_routing_put_audio_mixer),
  3462. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3463. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3464. msm_routing_put_audio_mixer),
  3465. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3467. msm_routing_put_audio_mixer),
  3468. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3470. msm_routing_put_audio_mixer),
  3471. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3473. msm_routing_put_audio_mixer),
  3474. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3476. msm_routing_put_audio_mixer),
  3477. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3479. msm_routing_put_audio_mixer),
  3480. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3481. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3482. msm_routing_put_audio_mixer),
  3483. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3485. msm_routing_put_audio_mixer),
  3486. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3488. msm_routing_put_audio_mixer),
  3489. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_PRI_I2S_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_PRI_I2S_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. };
  3508. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3509. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3511. msm_routing_put_audio_mixer),
  3512. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3514. msm_routing_put_audio_mixer),
  3515. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3517. msm_routing_put_audio_mixer),
  3518. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3520. msm_routing_put_audio_mixer),
  3521. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3523. msm_routing_put_audio_mixer),
  3524. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3526. msm_routing_put_audio_mixer),
  3527. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3528. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3529. msm_routing_put_audio_mixer),
  3530. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3532. msm_routing_put_audio_mixer),
  3533. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3535. msm_routing_put_audio_mixer),
  3536. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3538. msm_routing_put_audio_mixer),
  3539. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3540. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3541. msm_routing_put_audio_mixer),
  3542. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3543. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3544. msm_routing_put_audio_mixer),
  3545. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3546. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3547. msm_routing_put_audio_mixer),
  3548. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SEC_I2S_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SEC_I2S_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. };
  3573. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3574. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3576. msm_routing_put_audio_mixer),
  3577. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3579. msm_routing_put_audio_mixer),
  3580. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3582. msm_routing_put_audio_mixer),
  3583. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3585. msm_routing_put_audio_mixer),
  3586. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3588. msm_routing_put_audio_mixer),
  3589. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3590. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3591. msm_routing_put_audio_mixer),
  3592. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3593. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3594. msm_routing_put_audio_mixer),
  3595. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3596. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3597. msm_routing_put_audio_mixer),
  3598. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3600. msm_routing_put_audio_mixer),
  3601. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3602. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3603. msm_routing_put_audio_mixer),
  3604. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3605. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3606. msm_routing_put_audio_mixer),
  3607. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SPDIF_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SPDIF_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. };
  3638. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3639. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3641. msm_routing_put_audio_mixer),
  3642. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3644. msm_routing_put_audio_mixer),
  3645. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3650. msm_routing_put_audio_mixer),
  3651. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3653. msm_routing_put_audio_mixer),
  3654. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. };
  3688. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3689. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3694. msm_routing_put_audio_mixer),
  3695. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3700. msm_routing_put_audio_mixer),
  3701. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3703. msm_routing_put_audio_mixer),
  3704. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3706. msm_routing_put_audio_mixer),
  3707. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3714. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3715. msm_routing_put_audio_mixer),
  3716. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. };
  3753. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3754. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3759. msm_routing_put_audio_mixer),
  3760. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. };
  3818. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3819. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3820. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3821. msm_routing_put_audio_mixer),
  3822. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_MI2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. };
  3883. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3884. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3886. msm_routing_put_audio_mixer),
  3887. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. };
  3948. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3949. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. };
  4013. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4014. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4022. msm_routing_put_audio_mixer),
  4023. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4034. msm_routing_put_audio_mixer),
  4035. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4042. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4043. msm_routing_put_audio_mixer),
  4044. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. };
  4072. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4073. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. };
  4077. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4078. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. };
  4142. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4143. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4177. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4178. msm_routing_put_audio_mixer),
  4179. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4201. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4202. msm_routing_put_audio_mixer),
  4203. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. };
  4207. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4208. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. };
  4257. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4258. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4304. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4305. msm_routing_put_audio_mixer),
  4306. };
  4307. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4308. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_HDMI_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_HDMI_RX,
  4369. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4370. msm_routing_put_audio_mixer),
  4371. };
  4372. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4373. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4387. msm_routing_put_audio_mixer),
  4388. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. };
  4422. /* incall music delivery mixer */
  4423. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4424. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. };
  4437. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4438. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4440. msm_routing_put_audio_mixer),
  4441. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. };
  4451. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4452. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4459. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4460. msm_routing_put_audio_mixer),
  4461. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. };
  4465. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4466. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4480. msm_routing_put_audio_mixer),
  4481. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. };
  4515. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4516. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. };
  4565. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4566. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4598. msm_routing_put_audio_mixer),
  4599. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4609. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4610. msm_routing_put_audio_mixer),
  4611. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. };
  4615. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4616. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. };
  4680. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4681. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. };
  4730. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4731. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4772. msm_routing_put_audio_mixer),
  4773. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4783. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4784. msm_routing_put_audio_mixer),
  4785. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_INT_FM_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_INT_FM_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. };
  4795. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4796. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_AFE_PCM_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_AFE_PCM_RX,
  4857. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4858. msm_routing_put_audio_mixer),
  4859. };
  4860. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4861. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4878. msm_routing_put_audio_mixer),
  4879. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_AUXPCM_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_AUXPCM_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. };
  4925. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4926. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4928. msm_routing_put_audio_mixer),
  4929. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4940. msm_routing_put_audio_mixer),
  4941. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_SINGLE_EXT("MultiMedia28", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_SINGLE_EXT("MultiMedia29", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. };
  4990. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4991. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. };
  5040. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5041. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. };
  5090. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5091. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. };
  5140. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5141. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5175. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5176. msm_routing_put_audio_mixer),
  5177. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. };
  5190. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5191. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5193. msm_routing_put_audio_mixer),
  5194. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5196. msm_routing_put_audio_mixer),
  5197. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. };
  5240. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5241. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. };
  5290. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5291. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5331. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5332. msm_routing_put_audio_mixer),
  5333. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. };
  5340. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5341. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. };
  5390. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5391. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. };
  5440. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5441. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. };
  5490. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5491. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. };
  5540. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5541. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. };
  5590. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5591. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. };
  5640. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5641. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. };
  5690. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5691. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. };
  5740. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5741. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. };
  5790. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5791. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. };
  5840. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5841. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. };
  5890. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5891. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. };
  5940. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5941. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. };
  5993. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5994. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. };
  6043. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  6044. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. };
  6096. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  6097. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. };
  6149. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6150. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. };
  6202. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6203. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. };
  6255. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6256. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. };
  6305. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6306. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. };
  6358. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6359. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. };
  6411. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6412. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. };
  6464. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6465. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. };
  6601. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6602. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. };
  6705. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6706. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. };
  6809. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6810. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. };
  6910. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6911. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. };
  7029. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  7030. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. };
  7133. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7134. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. };
  7240. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7241. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. };
  7347. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7348. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. };
  7409. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7410. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. };
  7489. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7490. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. };
  7515. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7516. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. };
  7544. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7545. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7564. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7565. msm_routing_put_audio_mixer),
  7566. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. };
  7570. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7571. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7614. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7615. msm_routing_put_audio_mixer),
  7616. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7626. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7627. msm_routing_put_audio_mixer),
  7628. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7638. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7639. msm_routing_put_audio_mixer),
  7640. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. };
  7647. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  7648. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. };
  7673. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  7674. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7685. msm_routing_put_audio_mixer),
  7686. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7696. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7697. msm_routing_put_audio_mixer),
  7698. };
  7699. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7700. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7701. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7702. msm_routing_put_voice_mixer),
  7703. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7704. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7705. msm_routing_put_voice_mixer),
  7706. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7707. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7708. msm_routing_put_voice_mixer),
  7709. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7710. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7711. msm_routing_put_voice_mixer),
  7712. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7713. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7714. msm_routing_put_voice_mixer),
  7715. };
  7716. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7717. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7718. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7719. msm_routing_put_voice_mixer),
  7720. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7721. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7722. msm_routing_put_voice_mixer),
  7723. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7725. msm_routing_put_voice_mixer),
  7726. };
  7727. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7728. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7729. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7730. msm_routing_put_voice_mixer),
  7731. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7732. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7733. msm_routing_put_voice_mixer),
  7734. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7735. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7736. msm_routing_put_voice_mixer),
  7737. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7738. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7739. msm_routing_put_voice_mixer),
  7740. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7741. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7742. msm_routing_put_voice_mixer),
  7743. };
  7744. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7745. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7746. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7747. msm_routing_put_voice_mixer),
  7748. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7749. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7750. msm_routing_put_voice_mixer),
  7751. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7752. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7753. msm_routing_put_voice_mixer),
  7754. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7755. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7756. msm_routing_put_voice_mixer),
  7757. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7758. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7759. msm_routing_put_voice_mixer),
  7760. };
  7761. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7762. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7763. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7764. msm_routing_put_voice_mixer),
  7765. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7766. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7767. msm_routing_put_voice_mixer),
  7768. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7769. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7770. msm_routing_put_voice_mixer),
  7771. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7772. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7773. msm_routing_put_voice_mixer),
  7774. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7775. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7776. msm_routing_put_voice_mixer),
  7777. };
  7778. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7779. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7781. msm_routing_put_voice_mixer),
  7782. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7783. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7784. msm_routing_put_voice_mixer),
  7785. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7787. msm_routing_put_voice_mixer),
  7788. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7789. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7790. msm_routing_put_voice_mixer),
  7791. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7792. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7793. msm_routing_put_voice_mixer),
  7794. };
  7795. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  7796. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7797. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7798. msm_routing_put_voice_mixer),
  7799. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7800. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7801. msm_routing_put_voice_mixer),
  7802. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7803. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7804. msm_routing_put_voice_mixer),
  7805. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7806. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7807. msm_routing_put_voice_mixer),
  7808. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7809. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7810. msm_routing_put_voice_mixer),
  7811. };
  7812. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7813. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7814. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7815. msm_routing_put_voice_mixer),
  7816. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7817. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7818. msm_routing_put_voice_mixer),
  7819. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7820. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7821. msm_routing_put_voice_mixer),
  7822. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7823. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7824. msm_routing_put_voice_mixer),
  7825. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7826. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7827. msm_routing_put_voice_mixer),
  7828. };
  7829. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7830. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7832. msm_routing_put_voice_mixer),
  7833. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7834. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7835. msm_routing_put_voice_mixer),
  7836. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7837. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7838. msm_routing_put_voice_mixer),
  7839. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7840. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7841. msm_routing_put_voice_mixer),
  7842. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7843. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7844. msm_routing_put_voice_mixer),
  7845. };
  7846. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7847. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7849. msm_routing_put_voice_mixer),
  7850. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7851. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7852. msm_routing_put_voice_mixer),
  7853. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7855. msm_routing_put_voice_mixer),
  7856. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7857. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7858. msm_routing_put_voice_mixer),
  7859. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7860. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7861. msm_routing_put_voice_mixer),
  7862. };
  7863. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7864. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7865. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7866. msm_routing_put_voice_mixer),
  7867. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7868. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7869. msm_routing_put_voice_mixer),
  7870. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7871. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7872. msm_routing_put_voice_mixer),
  7873. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7874. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7875. msm_routing_put_voice_mixer),
  7876. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7877. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7878. msm_routing_put_voice_mixer),
  7879. };
  7880. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7881. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7882. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7883. msm_routing_put_voice_mixer),
  7884. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7885. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7886. msm_routing_put_voice_mixer),
  7887. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7888. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7889. msm_routing_put_voice_mixer),
  7890. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7891. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7892. msm_routing_put_voice_mixer),
  7893. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7894. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7895. msm_routing_put_voice_mixer),
  7896. };
  7897. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7898. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7899. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7900. msm_routing_put_voice_mixer),
  7901. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7902. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7903. msm_routing_put_voice_mixer),
  7904. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7906. msm_routing_put_voice_mixer),
  7907. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7908. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7909. msm_routing_put_voice_mixer),
  7910. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7911. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7912. msm_routing_put_voice_mixer),
  7913. };
  7914. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7915. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7916. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7917. msm_routing_put_voice_mixer),
  7918. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7920. msm_routing_put_voice_mixer),
  7921. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7922. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7923. msm_routing_put_voice_mixer),
  7924. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7925. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7926. msm_routing_put_voice_mixer),
  7927. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7929. msm_routing_put_voice_mixer),
  7930. };
  7931. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7932. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7933. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7934. msm_routing_put_voice_mixer),
  7935. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7936. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7937. msm_routing_put_voice_mixer),
  7938. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7939. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7940. msm_routing_put_voice_mixer),
  7941. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7942. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7943. msm_routing_put_voice_mixer),
  7944. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7945. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7946. msm_routing_put_voice_mixer),
  7947. };
  7948. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7949. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7950. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7951. msm_routing_put_voice_mixer),
  7952. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7953. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7954. msm_routing_put_voice_mixer),
  7955. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7956. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7957. msm_routing_put_voice_mixer),
  7958. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7959. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7960. msm_routing_put_voice_mixer),
  7961. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7962. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7963. msm_routing_put_voice_mixer),
  7964. };
  7965. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7966. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7967. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7968. msm_routing_put_voice_mixer),
  7969. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7970. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7971. msm_routing_put_voice_mixer),
  7972. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7973. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7974. msm_routing_put_voice_mixer),
  7975. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7976. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7977. msm_routing_put_voice_mixer),
  7978. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7980. msm_routing_put_voice_mixer),
  7981. };
  7982. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7983. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7985. msm_routing_put_voice_mixer),
  7986. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7987. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7988. msm_routing_put_voice_mixer),
  7989. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7990. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7991. msm_routing_put_voice_mixer),
  7992. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7993. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7994. msm_routing_put_voice_mixer),
  7995. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7996. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7997. msm_routing_put_voice_mixer),
  7998. };
  7999. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  8000. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8001. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8002. msm_routing_put_voice_mixer),
  8003. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8005. msm_routing_put_voice_mixer),
  8006. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8007. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8008. msm_routing_put_voice_mixer),
  8009. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8010. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8011. msm_routing_put_voice_mixer),
  8012. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8013. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8014. msm_routing_put_voice_mixer),
  8015. };
  8016. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  8017. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8018. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8019. msm_routing_put_voice_mixer),
  8020. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8021. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8022. msm_routing_put_voice_mixer),
  8023. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8024. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8025. msm_routing_put_voice_mixer),
  8026. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8027. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8028. msm_routing_put_voice_mixer),
  8029. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8030. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8031. msm_routing_put_voice_mixer),
  8032. };
  8033. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  8034. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8035. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8036. msm_routing_put_voice_mixer),
  8037. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8038. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8039. msm_routing_put_voice_mixer),
  8040. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8041. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8042. msm_routing_put_voice_mixer),
  8043. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8044. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8045. msm_routing_put_voice_mixer),
  8046. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8047. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8048. msm_routing_put_voice_mixer),
  8049. };
  8050. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  8051. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  8052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8053. msm_routing_put_voice_mixer),
  8054. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  8055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8056. msm_routing_put_voice_mixer),
  8057. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  8058. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8059. msm_routing_put_voice_mixer),
  8060. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  8061. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8062. msm_routing_put_voice_mixer),
  8063. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  8064. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8065. msm_routing_put_voice_mixer),
  8066. };
  8067. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  8068. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8070. msm_routing_put_voice_mixer),
  8071. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8072. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8073. msm_routing_put_voice_mixer),
  8074. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8076. msm_routing_put_voice_mixer),
  8077. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8078. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8079. msm_routing_put_voice_mixer),
  8080. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8081. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8082. msm_routing_put_voice_mixer),
  8083. };
  8084. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  8085. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8087. msm_routing_put_voice_mixer),
  8088. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8090. msm_routing_put_voice_mixer),
  8091. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8093. msm_routing_put_voice_mixer),
  8094. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8095. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8096. msm_routing_put_voice_mixer),
  8097. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8098. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8099. msm_routing_put_voice_mixer),
  8100. };
  8101. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  8102. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8103. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8104. msm_routing_put_voice_mixer),
  8105. };
  8106. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  8107. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_EXTPROC_RX,
  8108. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8109. msm_routing_put_voice_mixer),
  8110. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_EXTPROC_RX,
  8111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8112. msm_routing_put_voice_mixer),
  8113. };
  8114. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  8115. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8116. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8117. msm_routing_put_voice_mixer),
  8118. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8119. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8120. msm_routing_put_voice_mixer),
  8121. };
  8122. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  8123. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8124. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8125. msm_routing_put_voice_mixer),
  8126. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8127. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8128. msm_routing_put_voice_mixer),
  8129. };
  8130. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  8131. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  8132. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8133. msm_routing_put_voice_mixer),
  8134. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  8135. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8136. msm_routing_put_voice_mixer),
  8137. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  8138. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8139. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8140. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  8141. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8142. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8143. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  8144. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8145. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8146. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  8147. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8148. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8149. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  8150. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8151. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8152. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  8153. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8154. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8155. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  8156. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8157. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8158. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  8159. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8160. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8161. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  8162. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8163. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8164. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  8165. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8166. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8167. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  8168. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8169. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8170. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  8171. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8172. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8173. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  8174. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8175. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8176. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8177. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8178. msm_routing_put_voice_mixer),
  8179. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8180. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8181. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8182. };
  8183. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8184. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8185. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8186. msm_routing_put_voice_mixer),
  8187. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8188. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8189. msm_routing_put_voice_mixer),
  8190. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8191. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8192. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8193. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8194. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8195. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8196. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8197. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8198. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8199. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8200. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8201. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8202. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8203. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8204. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8205. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8206. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8207. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8208. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8209. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8210. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8211. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8212. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8213. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8214. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8215. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8216. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8217. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8218. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8219. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8220. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8221. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8222. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8223. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8224. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8225. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8226. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8227. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8228. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8229. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8230. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8231. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8232. };
  8233. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8234. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8235. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8236. msm_routing_put_voice_mixer),
  8237. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8238. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8239. msm_routing_put_voice_mixer),
  8240. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8241. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8242. msm_routing_put_voice_mixer),
  8243. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8244. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8245. msm_routing_put_voice_mixer),
  8246. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8247. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8248. msm_routing_put_voice_mixer),
  8249. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8251. msm_routing_put_voice_mixer),
  8252. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8253. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8254. msm_routing_put_voice_mixer),
  8255. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8257. msm_routing_put_voice_mixer),
  8258. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8259. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8260. msm_routing_put_voice_mixer),
  8261. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8263. msm_routing_put_voice_mixer),
  8264. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8265. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8266. msm_routing_put_voice_mixer),
  8267. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8269. msm_routing_put_voice_mixer),
  8270. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8271. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8272. msm_routing_put_voice_mixer),
  8273. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8275. msm_routing_put_voice_mixer),
  8276. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8278. msm_routing_put_voice_mixer),
  8279. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8280. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8281. msm_routing_put_voice_mixer),
  8282. };
  8283. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8284. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8285. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8286. msm_routing_put_voice_stub_mixer),
  8287. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8288. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8289. msm_routing_put_voice_stub_mixer),
  8290. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8291. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8292. msm_routing_put_voice_stub_mixer),
  8293. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8294. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8295. msm_routing_put_voice_stub_mixer),
  8296. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8297. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8298. msm_routing_put_voice_stub_mixer),
  8299. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8300. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8301. msm_routing_put_voice_stub_mixer),
  8302. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8303. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8304. msm_routing_put_voice_stub_mixer),
  8305. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8306. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8307. msm_routing_put_voice_stub_mixer),
  8308. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8309. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8310. msm_routing_put_voice_stub_mixer),
  8311. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8312. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8313. msm_routing_put_voice_stub_mixer),
  8314. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8315. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8316. msm_routing_put_voice_stub_mixer),
  8317. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8318. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8319. msm_routing_put_voice_stub_mixer),
  8320. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8321. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8322. msm_routing_put_voice_stub_mixer),
  8323. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8324. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8325. msm_routing_put_voice_stub_mixer),
  8326. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8327. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8328. msm_routing_put_voice_stub_mixer),
  8329. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8330. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8331. msm_routing_put_voice_stub_mixer),
  8332. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8333. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8334. msm_routing_put_voice_stub_mixer),
  8335. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8336. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8337. msm_routing_put_voice_stub_mixer),
  8338. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8339. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8340. msm_routing_put_voice_stub_mixer),
  8341. };
  8342. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8343. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8344. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8345. msm_routing_put_voice_stub_mixer),
  8346. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8347. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8348. msm_routing_put_voice_stub_mixer),
  8349. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8350. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8351. msm_routing_put_voice_stub_mixer),
  8352. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8353. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8354. msm_routing_put_voice_stub_mixer),
  8355. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8356. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8357. msm_routing_put_voice_stub_mixer),
  8358. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8359. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8360. msm_routing_put_voice_stub_mixer),
  8361. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8362. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8363. msm_routing_put_voice_stub_mixer),
  8364. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8365. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8366. msm_routing_put_voice_stub_mixer),
  8367. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8368. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8369. msm_routing_put_voice_stub_mixer),
  8370. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8371. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8372. msm_routing_put_voice_stub_mixer),
  8373. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8374. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8375. msm_routing_put_voice_stub_mixer),
  8376. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8377. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8378. msm_routing_put_voice_stub_mixer),
  8379. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8380. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8381. msm_routing_put_voice_stub_mixer),
  8382. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8383. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8384. msm_routing_put_voice_stub_mixer),
  8385. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8386. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8387. msm_routing_put_voice_stub_mixer),
  8388. };
  8389. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8390. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8391. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8392. msm_routing_put_voice_stub_mixer),
  8393. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8395. msm_routing_put_voice_stub_mixer),
  8396. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8397. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8398. msm_routing_put_voice_stub_mixer),
  8399. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8400. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8401. msm_routing_put_voice_stub_mixer),
  8402. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8403. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8404. msm_routing_put_voice_stub_mixer),
  8405. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8406. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8407. msm_routing_put_voice_stub_mixer),
  8408. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8409. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8410. msm_routing_put_voice_stub_mixer),
  8411. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8412. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8413. msm_routing_put_voice_stub_mixer),
  8414. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8415. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8416. msm_routing_put_voice_stub_mixer),
  8417. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8418. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8419. msm_routing_put_voice_stub_mixer),
  8420. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8421. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8422. msm_routing_put_voice_stub_mixer),
  8423. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8424. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8425. msm_routing_put_voice_stub_mixer),
  8426. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8427. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8428. msm_routing_put_voice_stub_mixer),
  8429. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8430. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8431. msm_routing_put_voice_stub_mixer),
  8432. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8433. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8434. msm_routing_put_voice_stub_mixer),
  8435. };
  8436. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8437. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8438. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8439. msm_routing_put_voice_mixer),
  8440. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8441. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8442. msm_routing_put_voice_mixer),
  8443. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8444. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8445. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8446. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8447. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8448. msm_routing_put_voice_mixer),
  8449. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8450. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8451. msm_routing_put_voice_mixer),
  8452. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8453. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8454. msm_routing_put_voice_mixer),
  8455. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8456. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8457. msm_routing_put_voice_mixer),
  8458. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8459. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8460. msm_routing_put_voice_mixer),
  8461. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8462. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8463. msm_routing_put_voice_mixer),
  8464. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8465. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8466. msm_routing_put_voice_mixer),
  8467. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8469. msm_routing_put_voice_mixer),
  8470. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8471. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8472. msm_routing_put_voice_mixer),
  8473. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8474. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8475. msm_routing_put_voice_mixer),
  8476. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8477. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8478. msm_routing_put_voice_mixer),
  8479. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8480. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8481. msm_routing_put_voice_mixer),
  8482. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8483. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8484. msm_routing_put_voice_mixer),
  8485. };
  8486. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8487. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8488. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8489. msm_routing_put_port_mixer),
  8490. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8491. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8492. msm_routing_put_port_mixer),
  8493. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8494. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8495. msm_routing_put_port_mixer),
  8496. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8497. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8498. msm_routing_put_port_mixer),
  8499. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8500. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8501. msm_routing_put_port_mixer),
  8502. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8503. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8504. msm_routing_put_port_mixer),
  8505. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8506. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8507. msm_routing_put_port_mixer),
  8508. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8509. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8510. msm_routing_put_port_mixer),
  8511. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8512. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8513. msm_routing_put_port_mixer),
  8514. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8515. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8516. msm_routing_put_port_mixer),
  8517. };
  8518. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8519. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8521. msm_routing_put_port_mixer),
  8522. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8523. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8524. msm_routing_put_port_mixer),
  8525. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8526. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8527. msm_routing_put_port_mixer),
  8528. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8529. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8530. msm_routing_put_port_mixer),
  8531. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8532. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8533. msm_routing_put_port_mixer),
  8534. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8535. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8536. msm_routing_put_port_mixer),
  8537. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8538. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8539. msm_routing_put_port_mixer),
  8540. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8541. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8542. msm_routing_put_port_mixer),
  8543. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8544. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8545. msm_routing_put_port_mixer),
  8546. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8547. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. };
  8550. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8551. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8552. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8553. msm_routing_put_port_mixer),
  8554. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8555. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8556. msm_routing_put_port_mixer),
  8557. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8558. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8559. msm_routing_put_port_mixer),
  8560. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8561. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8562. msm_routing_put_port_mixer),
  8563. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8564. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8565. msm_routing_put_port_mixer),
  8566. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8567. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8568. msm_routing_put_port_mixer),
  8569. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8570. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8571. msm_routing_put_port_mixer),
  8572. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8573. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8574. msm_routing_put_port_mixer),
  8575. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8576. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8577. msm_routing_put_port_mixer),
  8578. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8579. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8580. msm_routing_put_port_mixer),
  8581. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8582. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8583. msm_routing_put_port_mixer),
  8584. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8585. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8586. msm_routing_put_port_mixer),
  8587. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8588. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8589. msm_routing_put_port_mixer),
  8590. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8591. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8592. msm_routing_put_port_mixer),
  8593. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8594. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8595. msm_routing_put_port_mixer),
  8596. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8597. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8598. msm_routing_put_port_mixer),
  8599. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8600. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8601. msm_routing_put_port_mixer),
  8602. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8603. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8604. msm_routing_put_port_mixer),
  8605. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8606. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8607. msm_routing_put_port_mixer),
  8608. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8609. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8610. msm_routing_put_port_mixer),
  8611. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8612. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8613. msm_routing_put_port_mixer),
  8614. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8615. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8616. msm_routing_put_port_mixer),
  8617. };
  8618. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8619. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8620. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8621. msm_routing_put_port_mixer),
  8622. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8623. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8624. msm_routing_put_port_mixer),
  8625. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8626. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8627. msm_routing_put_port_mixer),
  8628. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8629. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8630. msm_routing_put_port_mixer),
  8631. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8632. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8633. msm_routing_put_port_mixer),
  8634. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8635. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8636. msm_routing_put_port_mixer),
  8637. };
  8638. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8639. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8641. msm_routing_put_port_mixer),
  8642. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8643. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8644. msm_routing_put_port_mixer),
  8645. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8646. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8647. msm_routing_put_port_mixer),
  8648. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8650. msm_routing_put_port_mixer),
  8651. };
  8652. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8653. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8654. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8655. msm_routing_put_port_mixer),
  8656. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8657. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8658. msm_routing_put_port_mixer),
  8659. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8660. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8661. msm_routing_put_port_mixer),
  8662. };
  8663. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8664. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8665. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8666. msm_routing_put_port_mixer),
  8667. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8668. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8669. msm_routing_put_port_mixer),
  8670. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8671. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8672. msm_routing_put_port_mixer),
  8673. };
  8674. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8675. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8676. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8677. msm_routing_put_port_mixer),
  8678. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8679. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8680. msm_routing_put_port_mixer),
  8681. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8682. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8683. msm_routing_put_port_mixer),
  8684. };
  8685. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8686. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8687. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8690. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8691. msm_routing_put_port_mixer),
  8692. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8693. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8694. msm_routing_put_port_mixer),
  8695. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8696. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8697. msm_routing_put_port_mixer),
  8698. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8699. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8700. msm_routing_put_port_mixer),
  8701. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8702. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8703. msm_routing_put_port_mixer),
  8704. };
  8705. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8706. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8707. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8708. msm_routing_put_port_mixer),
  8709. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8710. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8711. msm_routing_put_port_mixer),
  8712. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8713. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8714. msm_routing_put_port_mixer),
  8715. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8716. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8717. msm_routing_put_port_mixer),
  8718. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8719. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8720. msm_routing_put_port_mixer),
  8721. };
  8722. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8723. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8724. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8725. msm_routing_put_port_mixer),
  8726. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8727. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8728. msm_routing_put_port_mixer),
  8729. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8730. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8731. msm_routing_put_port_mixer),
  8732. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8733. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8734. msm_routing_put_port_mixer),
  8735. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8736. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8737. msm_routing_put_port_mixer),
  8738. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8739. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8740. msm_routing_put_port_mixer),
  8741. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8742. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8743. msm_routing_put_port_mixer),
  8744. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8745. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8748. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8749. msm_routing_put_port_mixer),
  8750. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8751. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8752. msm_routing_put_port_mixer),
  8753. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8754. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8755. msm_routing_put_port_mixer),
  8756. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8757. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. };
  8760. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8761. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8762. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8763. msm_routing_put_port_mixer),
  8764. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8765. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. };
  8768. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8769. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8770. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8771. msm_routing_put_port_mixer),
  8772. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8773. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8774. msm_routing_put_port_mixer),
  8775. };
  8776. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8777. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8778. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8779. msm_routing_put_port_mixer),
  8780. };
  8781. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8782. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8783. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8784. msm_routing_put_port_mixer),
  8785. };
  8786. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8787. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8788. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8789. msm_routing_put_port_mixer),
  8790. };
  8791. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8792. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8793. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8794. msm_routing_put_port_mixer),
  8795. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8796. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8797. msm_routing_put_port_mixer),
  8798. };
  8799. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8800. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_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("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8804. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8805. msm_routing_put_port_mixer),
  8806. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8807. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8808. msm_routing_put_port_mixer),
  8809. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8810. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8811. msm_routing_put_port_mixer),
  8812. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8813. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8814. msm_routing_put_port_mixer),
  8815. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8816. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8817. msm_routing_put_port_mixer),
  8818. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8819. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8820. msm_routing_put_port_mixer),
  8821. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8822. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8823. msm_routing_put_port_mixer),
  8824. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8825. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8826. msm_routing_put_port_mixer),
  8827. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8828. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8829. msm_routing_put_port_mixer),
  8830. };
  8831. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8832. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8833. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8834. msm_routing_put_port_mixer),
  8835. };
  8836. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8837. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8838. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8839. msm_routing_put_port_mixer),
  8840. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8842. msm_routing_put_port_mixer),
  8843. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8844. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8845. msm_routing_put_port_mixer),
  8846. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8847. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8850. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8851. msm_routing_put_port_mixer),
  8852. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8854. msm_routing_put_port_mixer),
  8855. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8856. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8857. msm_routing_put_port_mixer),
  8858. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8859. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8860. msm_routing_put_port_mixer),
  8861. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8862. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8863. msm_routing_put_port_mixer),
  8864. };
  8865. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8866. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8867. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8868. msm_routing_put_port_mixer),
  8869. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8870. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8871. msm_routing_put_port_mixer),
  8872. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8873. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8874. msm_routing_put_port_mixer),
  8875. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8877. msm_routing_put_port_mixer),
  8878. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8879. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8880. msm_routing_put_port_mixer),
  8881. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8882. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8883. msm_routing_put_port_mixer),
  8884. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8885. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8886. msm_routing_put_port_mixer),
  8887. };
  8888. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8889. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8890. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8891. msm_routing_get_port_mixer,
  8892. msm_routing_put_port_mixer),
  8893. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8894. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8895. msm_routing_get_port_mixer,
  8896. msm_routing_put_port_mixer),
  8897. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8899. msm_routing_get_port_mixer,
  8900. msm_routing_put_port_mixer),
  8901. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8902. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8903. msm_routing_get_port_mixer,
  8904. msm_routing_put_port_mixer),
  8905. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8906. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8907. msm_routing_get_port_mixer,
  8908. msm_routing_put_port_mixer),
  8909. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8910. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8911. msm_routing_get_port_mixer,
  8912. msm_routing_put_port_mixer),
  8913. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8914. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8915. msm_routing_get_port_mixer,
  8916. msm_routing_put_port_mixer),
  8917. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8918. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8919. msm_routing_get_port_mixer,
  8920. msm_routing_put_port_mixer),
  8921. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8922. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8923. msm_routing_get_port_mixer,
  8924. msm_routing_put_port_mixer),
  8925. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8926. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8927. msm_routing_get_port_mixer,
  8928. msm_routing_put_port_mixer),
  8929. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8930. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8931. msm_routing_get_port_mixer,
  8932. msm_routing_put_port_mixer),
  8933. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8934. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8935. msm_routing_get_port_mixer,
  8936. msm_routing_put_port_mixer),
  8937. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8938. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8939. msm_routing_get_port_mixer,
  8940. msm_routing_put_port_mixer),
  8941. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8942. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8943. msm_routing_get_port_mixer,
  8944. msm_routing_put_port_mixer),
  8945. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8946. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8947. msm_routing_get_port_mixer,
  8948. msm_routing_put_port_mixer),
  8949. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8950. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8951. msm_routing_get_port_mixer,
  8952. msm_routing_put_port_mixer),
  8953. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8954. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8955. msm_routing_get_port_mixer,
  8956. msm_routing_put_port_mixer),
  8957. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8958. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8959. msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8962. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8963. msm_routing_get_port_mixer,
  8964. msm_routing_put_port_mixer),
  8965. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8966. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8967. msm_routing_get_port_mixer,
  8968. msm_routing_put_port_mixer),
  8969. };
  8970. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8971. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8972. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8973. msm_routing_get_port_mixer,
  8974. msm_routing_put_port_mixer),
  8975. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8977. msm_routing_get_port_mixer,
  8978. msm_routing_put_port_mixer),
  8979. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8981. msm_routing_get_port_mixer,
  8982. msm_routing_put_port_mixer),
  8983. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8984. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8985. msm_routing_get_port_mixer,
  8986. msm_routing_put_port_mixer),
  8987. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8988. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8989. msm_routing_get_port_mixer,
  8990. msm_routing_put_port_mixer),
  8991. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8992. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8993. msm_routing_get_port_mixer,
  8994. msm_routing_put_port_mixer),
  8995. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8996. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8997. msm_routing_get_port_mixer,
  8998. msm_routing_put_port_mixer),
  8999. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9000. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9001. msm_routing_get_port_mixer,
  9002. msm_routing_put_port_mixer),
  9003. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9004. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9005. msm_routing_get_port_mixer,
  9006. msm_routing_put_port_mixer),
  9007. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9008. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9009. msm_routing_get_port_mixer,
  9010. msm_routing_put_port_mixer),
  9011. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9012. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9013. msm_routing_get_port_mixer,
  9014. msm_routing_put_port_mixer),
  9015. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9016. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9017. msm_routing_get_port_mixer,
  9018. msm_routing_put_port_mixer),
  9019. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9020. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9021. msm_routing_get_port_mixer,
  9022. msm_routing_put_port_mixer),
  9023. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9024. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9025. msm_routing_get_port_mixer,
  9026. msm_routing_put_port_mixer),
  9027. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9028. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9029. msm_routing_get_port_mixer,
  9030. msm_routing_put_port_mixer),
  9031. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9032. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9033. msm_routing_get_port_mixer,
  9034. msm_routing_put_port_mixer),
  9035. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9036. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9037. msm_routing_get_port_mixer,
  9038. msm_routing_put_port_mixer),
  9039. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9040. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9041. msm_routing_get_port_mixer,
  9042. msm_routing_put_port_mixer),
  9043. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9044. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9045. msm_routing_get_port_mixer,
  9046. msm_routing_put_port_mixer),
  9047. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9048. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9049. msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. };
  9052. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  9053. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9054. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9055. msm_routing_get_port_mixer,
  9056. msm_routing_put_port_mixer),
  9057. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9058. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9059. msm_routing_get_port_mixer,
  9060. msm_routing_put_port_mixer),
  9061. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9063. msm_routing_get_port_mixer,
  9064. msm_routing_put_port_mixer),
  9065. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9066. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9067. msm_routing_get_port_mixer,
  9068. msm_routing_put_port_mixer),
  9069. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9071. msm_routing_get_port_mixer,
  9072. msm_routing_put_port_mixer),
  9073. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9074. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9075. msm_routing_get_port_mixer,
  9076. msm_routing_put_port_mixer),
  9077. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9078. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9079. msm_routing_get_port_mixer,
  9080. msm_routing_put_port_mixer),
  9081. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9082. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9083. msm_routing_get_port_mixer,
  9084. msm_routing_put_port_mixer),
  9085. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9086. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9087. msm_routing_get_port_mixer,
  9088. msm_routing_put_port_mixer),
  9089. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9090. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9091. msm_routing_get_port_mixer,
  9092. msm_routing_put_port_mixer),
  9093. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9094. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9095. msm_routing_get_port_mixer,
  9096. msm_routing_put_port_mixer),
  9097. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9098. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9099. msm_routing_get_port_mixer,
  9100. msm_routing_put_port_mixer),
  9101. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9102. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9103. msm_routing_get_port_mixer,
  9104. msm_routing_put_port_mixer),
  9105. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9106. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9107. msm_routing_get_port_mixer,
  9108. msm_routing_put_port_mixer),
  9109. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9110. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9111. msm_routing_get_port_mixer,
  9112. msm_routing_put_port_mixer),
  9113. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9114. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9115. msm_routing_get_port_mixer,
  9116. msm_routing_put_port_mixer),
  9117. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9118. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9119. msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9122. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9123. msm_routing_get_port_mixer,
  9124. msm_routing_put_port_mixer),
  9125. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9126. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9127. msm_routing_get_port_mixer,
  9128. msm_routing_put_port_mixer),
  9129. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9130. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9131. msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. };
  9134. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  9135. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9136. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9137. msm_routing_get_port_mixer,
  9138. msm_routing_put_port_mixer),
  9139. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9140. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9141. msm_routing_get_port_mixer,
  9142. msm_routing_put_port_mixer),
  9143. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9145. msm_routing_get_port_mixer,
  9146. msm_routing_put_port_mixer),
  9147. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9149. msm_routing_get_port_mixer,
  9150. msm_routing_put_port_mixer),
  9151. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9152. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9153. msm_routing_get_port_mixer,
  9154. msm_routing_put_port_mixer),
  9155. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9156. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9157. msm_routing_get_port_mixer,
  9158. msm_routing_put_port_mixer),
  9159. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9160. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9161. msm_routing_get_port_mixer,
  9162. msm_routing_put_port_mixer),
  9163. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9164. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9165. msm_routing_get_port_mixer,
  9166. msm_routing_put_port_mixer),
  9167. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9168. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9169. msm_routing_get_port_mixer,
  9170. msm_routing_put_port_mixer),
  9171. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9172. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9173. msm_routing_get_port_mixer,
  9174. msm_routing_put_port_mixer),
  9175. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9176. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9177. msm_routing_get_port_mixer,
  9178. msm_routing_put_port_mixer),
  9179. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9180. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9181. msm_routing_get_port_mixer,
  9182. msm_routing_put_port_mixer),
  9183. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9184. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9185. msm_routing_get_port_mixer,
  9186. msm_routing_put_port_mixer),
  9187. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9188. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9189. msm_routing_get_port_mixer,
  9190. msm_routing_put_port_mixer),
  9191. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9193. msm_routing_get_port_mixer,
  9194. msm_routing_put_port_mixer),
  9195. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9197. msm_routing_get_port_mixer,
  9198. msm_routing_put_port_mixer),
  9199. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9200. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9201. msm_routing_get_port_mixer,
  9202. msm_routing_put_port_mixer),
  9203. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9204. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9205. msm_routing_get_port_mixer,
  9206. msm_routing_put_port_mixer),
  9207. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9208. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9209. msm_routing_get_port_mixer,
  9210. msm_routing_put_port_mixer),
  9211. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9212. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9213. msm_routing_get_port_mixer,
  9214. msm_routing_put_port_mixer),
  9215. };
  9216. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9217. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9218. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9219. msm_routing_get_port_mixer,
  9220. msm_routing_put_port_mixer),
  9221. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9223. msm_routing_get_port_mixer,
  9224. msm_routing_put_port_mixer),
  9225. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9227. msm_routing_get_port_mixer,
  9228. msm_routing_put_port_mixer),
  9229. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9231. msm_routing_get_port_mixer,
  9232. msm_routing_put_port_mixer),
  9233. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9235. msm_routing_get_port_mixer,
  9236. msm_routing_put_port_mixer),
  9237. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9238. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9239. msm_routing_get_port_mixer,
  9240. msm_routing_put_port_mixer),
  9241. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9242. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9243. msm_routing_get_port_mixer,
  9244. msm_routing_put_port_mixer),
  9245. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9246. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9247. msm_routing_get_port_mixer,
  9248. msm_routing_put_port_mixer),
  9249. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9250. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9251. msm_routing_get_port_mixer,
  9252. msm_routing_put_port_mixer),
  9253. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9254. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9255. msm_routing_get_port_mixer,
  9256. msm_routing_put_port_mixer),
  9257. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9258. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9259. msm_routing_get_port_mixer,
  9260. msm_routing_put_port_mixer),
  9261. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9262. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9263. msm_routing_get_port_mixer,
  9264. msm_routing_put_port_mixer),
  9265. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9266. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9267. msm_routing_get_port_mixer,
  9268. msm_routing_put_port_mixer),
  9269. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9270. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9271. msm_routing_get_port_mixer,
  9272. msm_routing_put_port_mixer),
  9273. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9274. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9275. msm_routing_get_port_mixer,
  9276. msm_routing_put_port_mixer),
  9277. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9278. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9279. msm_routing_get_port_mixer,
  9280. msm_routing_put_port_mixer),
  9281. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9282. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9283. msm_routing_get_port_mixer,
  9284. msm_routing_put_port_mixer),
  9285. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9286. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9287. msm_routing_get_port_mixer,
  9288. msm_routing_put_port_mixer),
  9289. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9290. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9291. msm_routing_get_port_mixer,
  9292. msm_routing_put_port_mixer),
  9293. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9294. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9295. msm_routing_get_port_mixer,
  9296. msm_routing_put_port_mixer),
  9297. };
  9298. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9299. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9300. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9301. msm_routing_get_port_mixer,
  9302. msm_routing_put_port_mixer),
  9303. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9304. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9305. msm_routing_get_port_mixer,
  9306. msm_routing_put_port_mixer),
  9307. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9308. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9309. msm_routing_get_port_mixer,
  9310. msm_routing_put_port_mixer),
  9311. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9312. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9313. msm_routing_get_port_mixer,
  9314. msm_routing_put_port_mixer),
  9315. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9316. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9317. msm_routing_get_port_mixer,
  9318. msm_routing_put_port_mixer),
  9319. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9320. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9321. msm_routing_get_port_mixer,
  9322. msm_routing_put_port_mixer),
  9323. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9324. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9325. msm_routing_get_port_mixer,
  9326. msm_routing_put_port_mixer),
  9327. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9328. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9329. msm_routing_get_port_mixer,
  9330. msm_routing_put_port_mixer),
  9331. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9332. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9333. msm_routing_get_port_mixer,
  9334. msm_routing_put_port_mixer),
  9335. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9336. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9337. msm_routing_get_port_mixer,
  9338. msm_routing_put_port_mixer),
  9339. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9340. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9341. msm_routing_get_port_mixer,
  9342. msm_routing_put_port_mixer),
  9343. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9344. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9345. msm_routing_get_port_mixer,
  9346. msm_routing_put_port_mixer),
  9347. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9348. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9349. msm_routing_get_port_mixer,
  9350. msm_routing_put_port_mixer),
  9351. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9352. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9353. msm_routing_get_port_mixer,
  9354. msm_routing_put_port_mixer),
  9355. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9356. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9357. msm_routing_get_port_mixer,
  9358. msm_routing_put_port_mixer),
  9359. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9360. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9361. msm_routing_get_port_mixer,
  9362. msm_routing_put_port_mixer),
  9363. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9364. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9365. msm_routing_get_port_mixer,
  9366. msm_routing_put_port_mixer),
  9367. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9368. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9369. msm_routing_get_port_mixer,
  9370. msm_routing_put_port_mixer),
  9371. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9372. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9373. msm_routing_get_port_mixer,
  9374. msm_routing_put_port_mixer),
  9375. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9376. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9377. msm_routing_get_port_mixer,
  9378. msm_routing_put_port_mixer),
  9379. };
  9380. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9381. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9382. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9383. msm_routing_get_port_mixer,
  9384. msm_routing_put_port_mixer),
  9385. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9386. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9387. msm_routing_get_port_mixer,
  9388. msm_routing_put_port_mixer),
  9389. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9390. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9391. msm_routing_get_port_mixer,
  9392. msm_routing_put_port_mixer),
  9393. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9394. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9395. msm_routing_get_port_mixer,
  9396. msm_routing_put_port_mixer),
  9397. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9398. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9399. msm_routing_get_port_mixer,
  9400. msm_routing_put_port_mixer),
  9401. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9402. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9403. msm_routing_get_port_mixer,
  9404. msm_routing_put_port_mixer),
  9405. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9406. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9407. msm_routing_get_port_mixer,
  9408. msm_routing_put_port_mixer),
  9409. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9410. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9411. msm_routing_get_port_mixer,
  9412. msm_routing_put_port_mixer),
  9413. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9414. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9415. msm_routing_get_port_mixer,
  9416. msm_routing_put_port_mixer),
  9417. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9418. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9419. msm_routing_get_port_mixer,
  9420. msm_routing_put_port_mixer),
  9421. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9422. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9423. msm_routing_get_port_mixer,
  9424. msm_routing_put_port_mixer),
  9425. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9426. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9427. msm_routing_get_port_mixer,
  9428. msm_routing_put_port_mixer),
  9429. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9430. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9431. msm_routing_get_port_mixer,
  9432. msm_routing_put_port_mixer),
  9433. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9434. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9435. msm_routing_get_port_mixer,
  9436. msm_routing_put_port_mixer),
  9437. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9438. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9439. msm_routing_get_port_mixer,
  9440. msm_routing_put_port_mixer),
  9441. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9442. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9443. msm_routing_get_port_mixer,
  9444. msm_routing_put_port_mixer),
  9445. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9446. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9447. msm_routing_get_port_mixer,
  9448. msm_routing_put_port_mixer),
  9449. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9450. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9451. msm_routing_get_port_mixer,
  9452. msm_routing_put_port_mixer),
  9453. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9454. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9455. msm_routing_get_port_mixer,
  9456. msm_routing_put_port_mixer),
  9457. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9458. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9459. msm_routing_get_port_mixer,
  9460. msm_routing_put_port_mixer),
  9461. };
  9462. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9463. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9464. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9465. msm_routing_get_port_mixer,
  9466. msm_routing_put_port_mixer),
  9467. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9468. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9469. msm_routing_get_port_mixer,
  9470. msm_routing_put_port_mixer),
  9471. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9473. msm_routing_get_port_mixer,
  9474. msm_routing_put_port_mixer),
  9475. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9476. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9477. msm_routing_get_port_mixer,
  9478. msm_routing_put_port_mixer),
  9479. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9480. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9481. msm_routing_get_port_mixer,
  9482. msm_routing_put_port_mixer),
  9483. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9485. msm_routing_get_port_mixer,
  9486. msm_routing_put_port_mixer),
  9487. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9489. msm_routing_get_port_mixer,
  9490. msm_routing_put_port_mixer),
  9491. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9493. msm_routing_get_port_mixer,
  9494. msm_routing_put_port_mixer),
  9495. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9496. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9497. msm_routing_get_port_mixer,
  9498. msm_routing_put_port_mixer),
  9499. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9500. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9501. msm_routing_get_port_mixer,
  9502. msm_routing_put_port_mixer),
  9503. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9504. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9505. msm_routing_get_port_mixer,
  9506. msm_routing_put_port_mixer),
  9507. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9508. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9509. msm_routing_get_port_mixer,
  9510. msm_routing_put_port_mixer),
  9511. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9512. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9513. msm_routing_get_port_mixer,
  9514. msm_routing_put_port_mixer),
  9515. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9516. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9517. msm_routing_get_port_mixer,
  9518. msm_routing_put_port_mixer),
  9519. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9520. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9521. msm_routing_get_port_mixer,
  9522. msm_routing_put_port_mixer),
  9523. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9524. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9525. msm_routing_get_port_mixer,
  9526. msm_routing_put_port_mixer),
  9527. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9528. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9529. msm_routing_get_port_mixer,
  9530. msm_routing_put_port_mixer),
  9531. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9532. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9533. msm_routing_get_port_mixer,
  9534. msm_routing_put_port_mixer),
  9535. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9536. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9537. msm_routing_get_port_mixer,
  9538. msm_routing_put_port_mixer),
  9539. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9540. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9541. msm_routing_get_port_mixer,
  9542. msm_routing_put_port_mixer),
  9543. };
  9544. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9545. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9546. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9547. msm_routing_get_port_mixer,
  9548. msm_routing_put_port_mixer),
  9549. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9550. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9551. msm_routing_get_port_mixer,
  9552. msm_routing_put_port_mixer),
  9553. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9554. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9555. msm_routing_get_port_mixer,
  9556. msm_routing_put_port_mixer),
  9557. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9558. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9559. msm_routing_get_port_mixer,
  9560. msm_routing_put_port_mixer),
  9561. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9562. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9563. msm_routing_get_port_mixer,
  9564. msm_routing_put_port_mixer),
  9565. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9566. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9567. msm_routing_get_port_mixer,
  9568. msm_routing_put_port_mixer),
  9569. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9570. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9571. msm_routing_get_port_mixer,
  9572. msm_routing_put_port_mixer),
  9573. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9574. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9575. msm_routing_get_port_mixer,
  9576. msm_routing_put_port_mixer),
  9577. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9578. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9579. msm_routing_get_port_mixer,
  9580. msm_routing_put_port_mixer),
  9581. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9582. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9583. msm_routing_get_port_mixer,
  9584. msm_routing_put_port_mixer),
  9585. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9586. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9587. msm_routing_get_port_mixer,
  9588. msm_routing_put_port_mixer),
  9589. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9590. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9591. msm_routing_get_port_mixer,
  9592. msm_routing_put_port_mixer),
  9593. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9594. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9595. msm_routing_get_port_mixer,
  9596. msm_routing_put_port_mixer),
  9597. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9598. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9599. msm_routing_get_port_mixer,
  9600. msm_routing_put_port_mixer),
  9601. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9602. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9603. msm_routing_get_port_mixer,
  9604. msm_routing_put_port_mixer),
  9605. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9606. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9607. msm_routing_get_port_mixer,
  9608. msm_routing_put_port_mixer),
  9609. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9610. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9611. msm_routing_get_port_mixer,
  9612. msm_routing_put_port_mixer),
  9613. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9614. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9615. msm_routing_get_port_mixer,
  9616. msm_routing_put_port_mixer),
  9617. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9618. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9619. msm_routing_get_port_mixer,
  9620. msm_routing_put_port_mixer),
  9621. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9622. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9623. msm_routing_get_port_mixer,
  9624. msm_routing_put_port_mixer),
  9625. };
  9626. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9627. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9628. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9629. msm_routing_get_port_mixer,
  9630. msm_routing_put_port_mixer),
  9631. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9632. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9633. msm_routing_get_port_mixer,
  9634. msm_routing_put_port_mixer),
  9635. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9636. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9637. msm_routing_get_port_mixer,
  9638. msm_routing_put_port_mixer),
  9639. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9640. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9641. msm_routing_get_port_mixer,
  9642. msm_routing_put_port_mixer),
  9643. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9644. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9645. msm_routing_get_port_mixer,
  9646. msm_routing_put_port_mixer),
  9647. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9648. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9649. msm_routing_get_port_mixer,
  9650. msm_routing_put_port_mixer),
  9651. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9652. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9653. msm_routing_get_port_mixer,
  9654. msm_routing_put_port_mixer),
  9655. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9657. msm_routing_get_port_mixer,
  9658. msm_routing_put_port_mixer),
  9659. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9660. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9661. msm_routing_get_port_mixer,
  9662. msm_routing_put_port_mixer),
  9663. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9664. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9665. msm_routing_get_port_mixer,
  9666. msm_routing_put_port_mixer),
  9667. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9668. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9669. msm_routing_get_port_mixer,
  9670. msm_routing_put_port_mixer),
  9671. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9672. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9673. msm_routing_get_port_mixer,
  9674. msm_routing_put_port_mixer),
  9675. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9676. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9677. msm_routing_get_port_mixer,
  9678. msm_routing_put_port_mixer),
  9679. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9680. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9681. msm_routing_get_port_mixer,
  9682. msm_routing_put_port_mixer),
  9683. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9684. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9685. msm_routing_get_port_mixer,
  9686. msm_routing_put_port_mixer),
  9687. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9688. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9689. msm_routing_get_port_mixer,
  9690. msm_routing_put_port_mixer),
  9691. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9692. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9693. msm_routing_get_port_mixer,
  9694. msm_routing_put_port_mixer),
  9695. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9696. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9697. msm_routing_get_port_mixer,
  9698. msm_routing_put_port_mixer),
  9699. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9700. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9701. msm_routing_get_port_mixer,
  9702. msm_routing_put_port_mixer),
  9703. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9704. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9705. msm_routing_get_port_mixer,
  9706. msm_routing_put_port_mixer),
  9707. };
  9708. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9709. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9710. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9711. msm_routing_get_port_mixer,
  9712. msm_routing_put_port_mixer),
  9713. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9714. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9715. msm_routing_get_port_mixer,
  9716. msm_routing_put_port_mixer),
  9717. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9718. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9719. msm_routing_get_port_mixer,
  9720. msm_routing_put_port_mixer),
  9721. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9722. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9723. msm_routing_get_port_mixer,
  9724. msm_routing_put_port_mixer),
  9725. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9726. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9727. msm_routing_get_port_mixer,
  9728. msm_routing_put_port_mixer),
  9729. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9730. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9731. msm_routing_get_port_mixer,
  9732. msm_routing_put_port_mixer),
  9733. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9734. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9735. msm_routing_get_port_mixer,
  9736. msm_routing_put_port_mixer),
  9737. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9738. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9739. msm_routing_get_port_mixer,
  9740. msm_routing_put_port_mixer),
  9741. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9742. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9743. msm_routing_get_port_mixer,
  9744. msm_routing_put_port_mixer),
  9745. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9746. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9747. msm_routing_get_port_mixer,
  9748. msm_routing_put_port_mixer),
  9749. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9750. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9751. msm_routing_get_port_mixer,
  9752. msm_routing_put_port_mixer),
  9753. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9754. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9755. msm_routing_get_port_mixer,
  9756. msm_routing_put_port_mixer),
  9757. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9758. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9759. msm_routing_get_port_mixer,
  9760. msm_routing_put_port_mixer),
  9761. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9762. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9763. msm_routing_get_port_mixer,
  9764. msm_routing_put_port_mixer),
  9765. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9766. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9767. msm_routing_get_port_mixer,
  9768. msm_routing_put_port_mixer),
  9769. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9770. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9771. msm_routing_get_port_mixer,
  9772. msm_routing_put_port_mixer),
  9773. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9774. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9775. msm_routing_get_port_mixer,
  9776. msm_routing_put_port_mixer),
  9777. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9778. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9779. msm_routing_get_port_mixer,
  9780. msm_routing_put_port_mixer),
  9781. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9782. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9783. msm_routing_get_port_mixer,
  9784. msm_routing_put_port_mixer),
  9785. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9786. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9787. msm_routing_get_port_mixer,
  9788. msm_routing_put_port_mixer),
  9789. };
  9790. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9791. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9792. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9793. msm_routing_get_port_mixer,
  9794. msm_routing_put_port_mixer),
  9795. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9796. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9797. msm_routing_get_port_mixer,
  9798. msm_routing_put_port_mixer),
  9799. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9800. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9801. msm_routing_get_port_mixer,
  9802. msm_routing_put_port_mixer),
  9803. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9804. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9805. msm_routing_get_port_mixer,
  9806. msm_routing_put_port_mixer),
  9807. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9808. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9809. msm_routing_get_port_mixer,
  9810. msm_routing_put_port_mixer),
  9811. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9812. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9813. msm_routing_get_port_mixer,
  9814. msm_routing_put_port_mixer),
  9815. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9816. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9817. msm_routing_get_port_mixer,
  9818. msm_routing_put_port_mixer),
  9819. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9820. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9821. msm_routing_get_port_mixer,
  9822. msm_routing_put_port_mixer),
  9823. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9824. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9825. msm_routing_get_port_mixer,
  9826. msm_routing_put_port_mixer),
  9827. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9828. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9829. msm_routing_get_port_mixer,
  9830. msm_routing_put_port_mixer),
  9831. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9832. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9833. msm_routing_get_port_mixer,
  9834. msm_routing_put_port_mixer),
  9835. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9836. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9837. msm_routing_get_port_mixer,
  9838. msm_routing_put_port_mixer),
  9839. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9840. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9841. msm_routing_get_port_mixer,
  9842. msm_routing_put_port_mixer),
  9843. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9844. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9845. msm_routing_get_port_mixer,
  9846. msm_routing_put_port_mixer),
  9847. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9848. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9849. msm_routing_get_port_mixer,
  9850. msm_routing_put_port_mixer),
  9851. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9852. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9853. msm_routing_get_port_mixer,
  9854. msm_routing_put_port_mixer),
  9855. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9856. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9857. msm_routing_get_port_mixer,
  9858. msm_routing_put_port_mixer),
  9859. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9860. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9861. msm_routing_get_port_mixer,
  9862. msm_routing_put_port_mixer),
  9863. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9864. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9865. msm_routing_get_port_mixer,
  9866. msm_routing_put_port_mixer),
  9867. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9868. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9869. msm_routing_get_port_mixer,
  9870. msm_routing_put_port_mixer),
  9871. };
  9872. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9873. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9874. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9875. msm_routing_get_port_mixer,
  9876. msm_routing_put_port_mixer),
  9877. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9878. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9879. msm_routing_get_port_mixer,
  9880. msm_routing_put_port_mixer),
  9881. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9883. msm_routing_get_port_mixer,
  9884. msm_routing_put_port_mixer),
  9885. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9886. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9887. msm_routing_get_port_mixer,
  9888. msm_routing_put_port_mixer),
  9889. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9890. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9891. msm_routing_get_port_mixer,
  9892. msm_routing_put_port_mixer),
  9893. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9894. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9895. msm_routing_get_port_mixer,
  9896. msm_routing_put_port_mixer),
  9897. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9898. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9899. msm_routing_get_port_mixer,
  9900. msm_routing_put_port_mixer),
  9901. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9902. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9903. msm_routing_get_port_mixer,
  9904. msm_routing_put_port_mixer),
  9905. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9906. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9907. msm_routing_get_port_mixer,
  9908. msm_routing_put_port_mixer),
  9909. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9910. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9911. msm_routing_get_port_mixer,
  9912. msm_routing_put_port_mixer),
  9913. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9914. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9915. msm_routing_get_port_mixer,
  9916. msm_routing_put_port_mixer),
  9917. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9918. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9919. msm_routing_get_port_mixer,
  9920. msm_routing_put_port_mixer),
  9921. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9922. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9923. msm_routing_get_port_mixer,
  9924. msm_routing_put_port_mixer),
  9925. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9926. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9927. msm_routing_get_port_mixer,
  9928. msm_routing_put_port_mixer),
  9929. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9930. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9931. msm_routing_get_port_mixer,
  9932. msm_routing_put_port_mixer),
  9933. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9934. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9935. msm_routing_get_port_mixer,
  9936. msm_routing_put_port_mixer),
  9937. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9938. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9939. msm_routing_get_port_mixer,
  9940. msm_routing_put_port_mixer),
  9941. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9942. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9943. msm_routing_get_port_mixer,
  9944. msm_routing_put_port_mixer),
  9945. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9946. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9947. msm_routing_get_port_mixer,
  9948. msm_routing_put_port_mixer),
  9949. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9950. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9951. msm_routing_get_port_mixer,
  9952. msm_routing_put_port_mixer),
  9953. };
  9954. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9955. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9956. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9957. msm_routing_get_port_mixer,
  9958. msm_routing_put_port_mixer),
  9959. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9960. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9961. msm_routing_get_port_mixer,
  9962. msm_routing_put_port_mixer),
  9963. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9964. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9965. msm_routing_get_port_mixer,
  9966. msm_routing_put_port_mixer),
  9967. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9968. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9969. msm_routing_get_port_mixer,
  9970. msm_routing_put_port_mixer),
  9971. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9972. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9973. msm_routing_get_port_mixer,
  9974. msm_routing_put_port_mixer),
  9975. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9976. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9977. msm_routing_get_port_mixer,
  9978. msm_routing_put_port_mixer),
  9979. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9980. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9981. msm_routing_get_port_mixer,
  9982. msm_routing_put_port_mixer),
  9983. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9984. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9985. msm_routing_get_port_mixer,
  9986. msm_routing_put_port_mixer),
  9987. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9988. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9989. msm_routing_get_port_mixer,
  9990. msm_routing_put_port_mixer),
  9991. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9992. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9993. msm_routing_get_port_mixer,
  9994. msm_routing_put_port_mixer),
  9995. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9996. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9997. msm_routing_get_port_mixer,
  9998. msm_routing_put_port_mixer),
  9999. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10000. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10001. msm_routing_get_port_mixer,
  10002. msm_routing_put_port_mixer),
  10003. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10004. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10005. msm_routing_get_port_mixer,
  10006. msm_routing_put_port_mixer),
  10007. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10008. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10009. msm_routing_get_port_mixer,
  10010. msm_routing_put_port_mixer),
  10011. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10012. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10013. msm_routing_get_port_mixer,
  10014. msm_routing_put_port_mixer),
  10015. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10016. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10017. msm_routing_get_port_mixer,
  10018. msm_routing_put_port_mixer),
  10019. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10020. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10021. msm_routing_get_port_mixer,
  10022. msm_routing_put_port_mixer),
  10023. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10024. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10025. msm_routing_get_port_mixer,
  10026. msm_routing_put_port_mixer),
  10027. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10028. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10029. msm_routing_get_port_mixer,
  10030. msm_routing_put_port_mixer),
  10031. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10032. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10033. msm_routing_get_port_mixer,
  10034. msm_routing_put_port_mixer),
  10035. };
  10036. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  10037. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10038. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10039. msm_routing_get_port_mixer,
  10040. msm_routing_put_port_mixer),
  10041. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10042. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10043. msm_routing_get_port_mixer,
  10044. msm_routing_put_port_mixer),
  10045. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10046. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10047. msm_routing_get_port_mixer,
  10048. msm_routing_put_port_mixer),
  10049. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10050. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10051. msm_routing_get_port_mixer,
  10052. msm_routing_put_port_mixer),
  10053. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10054. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10055. msm_routing_get_port_mixer,
  10056. msm_routing_put_port_mixer),
  10057. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10058. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10059. msm_routing_get_port_mixer,
  10060. msm_routing_put_port_mixer),
  10061. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10062. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10063. msm_routing_get_port_mixer,
  10064. msm_routing_put_port_mixer),
  10065. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10066. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10067. msm_routing_get_port_mixer,
  10068. msm_routing_put_port_mixer),
  10069. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10070. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10071. msm_routing_get_port_mixer,
  10072. msm_routing_put_port_mixer),
  10073. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10074. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10075. msm_routing_get_port_mixer,
  10076. msm_routing_put_port_mixer),
  10077. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10078. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10079. msm_routing_get_port_mixer,
  10080. msm_routing_put_port_mixer),
  10081. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10082. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10083. msm_routing_get_port_mixer,
  10084. msm_routing_put_port_mixer),
  10085. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10086. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10087. msm_routing_get_port_mixer,
  10088. msm_routing_put_port_mixer),
  10089. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10090. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10091. msm_routing_get_port_mixer,
  10092. msm_routing_put_port_mixer),
  10093. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10094. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10095. msm_routing_get_port_mixer,
  10096. msm_routing_put_port_mixer),
  10097. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10098. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10099. msm_routing_get_port_mixer,
  10100. msm_routing_put_port_mixer),
  10101. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10102. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10103. msm_routing_get_port_mixer,
  10104. msm_routing_put_port_mixer),
  10105. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10106. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10107. msm_routing_get_port_mixer,
  10108. msm_routing_put_port_mixer),
  10109. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10110. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10111. msm_routing_get_port_mixer,
  10112. msm_routing_put_port_mixer),
  10113. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10114. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10115. msm_routing_get_port_mixer,
  10116. msm_routing_put_port_mixer),
  10117. };
  10118. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  10119. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10120. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10121. msm_routing_get_port_mixer,
  10122. msm_routing_put_port_mixer),
  10123. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10124. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10125. msm_routing_get_port_mixer,
  10126. msm_routing_put_port_mixer),
  10127. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10128. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10129. msm_routing_get_port_mixer,
  10130. msm_routing_put_port_mixer),
  10131. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10132. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10133. msm_routing_get_port_mixer,
  10134. msm_routing_put_port_mixer),
  10135. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10136. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10137. msm_routing_get_port_mixer,
  10138. msm_routing_put_port_mixer),
  10139. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10140. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10141. msm_routing_get_port_mixer,
  10142. msm_routing_put_port_mixer),
  10143. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10144. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10145. msm_routing_get_port_mixer,
  10146. msm_routing_put_port_mixer),
  10147. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10148. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10149. msm_routing_get_port_mixer,
  10150. msm_routing_put_port_mixer),
  10151. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10152. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10153. msm_routing_get_port_mixer,
  10154. msm_routing_put_port_mixer),
  10155. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10156. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10157. msm_routing_get_port_mixer,
  10158. msm_routing_put_port_mixer),
  10159. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10160. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10161. msm_routing_get_port_mixer,
  10162. msm_routing_put_port_mixer),
  10163. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10164. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10165. msm_routing_get_port_mixer,
  10166. msm_routing_put_port_mixer),
  10167. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10168. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10169. msm_routing_get_port_mixer,
  10170. msm_routing_put_port_mixer),
  10171. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10172. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10173. msm_routing_get_port_mixer,
  10174. msm_routing_put_port_mixer),
  10175. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10176. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10177. msm_routing_get_port_mixer,
  10178. msm_routing_put_port_mixer),
  10179. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10180. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10181. msm_routing_get_port_mixer,
  10182. msm_routing_put_port_mixer),
  10183. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10184. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10185. msm_routing_get_port_mixer,
  10186. msm_routing_put_port_mixer),
  10187. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10188. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10189. msm_routing_get_port_mixer,
  10190. msm_routing_put_port_mixer),
  10191. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10192. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10193. msm_routing_get_port_mixer,
  10194. msm_routing_put_port_mixer),
  10195. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10196. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10197. msm_routing_get_port_mixer,
  10198. msm_routing_put_port_mixer),
  10199. };
  10200. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10201. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10202. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10203. msm_routing_get_port_mixer,
  10204. msm_routing_put_port_mixer),
  10205. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10206. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10207. msm_routing_get_port_mixer,
  10208. msm_routing_put_port_mixer),
  10209. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10210. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10211. msm_routing_get_port_mixer,
  10212. msm_routing_put_port_mixer),
  10213. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10214. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10215. msm_routing_get_port_mixer,
  10216. msm_routing_put_port_mixer),
  10217. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10218. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10219. msm_routing_get_port_mixer,
  10220. msm_routing_put_port_mixer),
  10221. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10222. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10223. msm_routing_get_port_mixer,
  10224. msm_routing_put_port_mixer),
  10225. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10226. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10227. msm_routing_get_port_mixer,
  10228. msm_routing_put_port_mixer),
  10229. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10230. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10231. msm_routing_get_port_mixer,
  10232. msm_routing_put_port_mixer),
  10233. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10234. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10235. msm_routing_get_port_mixer,
  10236. msm_routing_put_port_mixer),
  10237. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10238. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10239. msm_routing_get_port_mixer,
  10240. msm_routing_put_port_mixer),
  10241. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10242. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10243. msm_routing_get_port_mixer,
  10244. msm_routing_put_port_mixer),
  10245. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10246. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10247. msm_routing_get_port_mixer,
  10248. msm_routing_put_port_mixer),
  10249. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10250. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10251. msm_routing_get_port_mixer,
  10252. msm_routing_put_port_mixer),
  10253. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10254. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10255. msm_routing_get_port_mixer,
  10256. msm_routing_put_port_mixer),
  10257. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10258. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10259. msm_routing_get_port_mixer,
  10260. msm_routing_put_port_mixer),
  10261. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10262. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10263. msm_routing_get_port_mixer,
  10264. msm_routing_put_port_mixer),
  10265. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10266. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10267. msm_routing_get_port_mixer,
  10268. msm_routing_put_port_mixer),
  10269. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10270. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10271. msm_routing_get_port_mixer,
  10272. msm_routing_put_port_mixer),
  10273. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10275. msm_routing_get_port_mixer,
  10276. msm_routing_put_port_mixer),
  10277. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10278. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10279. msm_routing_get_port_mixer,
  10280. msm_routing_put_port_mixer),
  10281. };
  10282. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10283. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10284. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10285. msm_routing_get_port_mixer,
  10286. msm_routing_put_port_mixer),
  10287. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10288. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10289. msm_routing_get_port_mixer,
  10290. msm_routing_put_port_mixer),
  10291. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10292. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10293. msm_routing_get_port_mixer,
  10294. msm_routing_put_port_mixer),
  10295. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10296. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10297. msm_routing_get_port_mixer,
  10298. msm_routing_put_port_mixer),
  10299. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10300. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10301. msm_routing_get_port_mixer,
  10302. msm_routing_put_port_mixer),
  10303. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10304. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10305. msm_routing_get_port_mixer,
  10306. msm_routing_put_port_mixer),
  10307. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10308. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10309. msm_routing_get_port_mixer,
  10310. msm_routing_put_port_mixer),
  10311. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10312. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10313. msm_routing_get_port_mixer,
  10314. msm_routing_put_port_mixer),
  10315. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10316. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10317. msm_routing_get_port_mixer,
  10318. msm_routing_put_port_mixer),
  10319. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10320. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10321. msm_routing_get_port_mixer,
  10322. msm_routing_put_port_mixer),
  10323. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10324. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10325. msm_routing_get_port_mixer,
  10326. msm_routing_put_port_mixer),
  10327. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10328. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10329. msm_routing_get_port_mixer,
  10330. msm_routing_put_port_mixer),
  10331. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10332. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10333. msm_routing_get_port_mixer,
  10334. msm_routing_put_port_mixer),
  10335. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10336. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10337. msm_routing_get_port_mixer,
  10338. msm_routing_put_port_mixer),
  10339. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10340. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10341. msm_routing_get_port_mixer,
  10342. msm_routing_put_port_mixer),
  10343. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10344. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10345. msm_routing_get_port_mixer,
  10346. msm_routing_put_port_mixer),
  10347. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10348. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10349. msm_routing_get_port_mixer,
  10350. msm_routing_put_port_mixer),
  10351. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10352. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10353. msm_routing_get_port_mixer,
  10354. msm_routing_put_port_mixer),
  10355. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10356. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10357. msm_routing_get_port_mixer,
  10358. msm_routing_put_port_mixer),
  10359. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10360. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10361. msm_routing_get_port_mixer,
  10362. msm_routing_put_port_mixer),
  10363. };
  10364. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10365. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10366. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10367. msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10371. msm_routing_get_port_mixer,
  10372. msm_routing_put_port_mixer),
  10373. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10374. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10375. msm_routing_get_port_mixer,
  10376. msm_routing_put_port_mixer),
  10377. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10378. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10379. msm_routing_get_port_mixer,
  10380. msm_routing_put_port_mixer),
  10381. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10382. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10383. msm_routing_get_port_mixer,
  10384. msm_routing_put_port_mixer),
  10385. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10386. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10387. msm_routing_get_port_mixer,
  10388. msm_routing_put_port_mixer),
  10389. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10390. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10391. msm_routing_get_port_mixer,
  10392. msm_routing_put_port_mixer),
  10393. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10394. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10395. msm_routing_get_port_mixer,
  10396. msm_routing_put_port_mixer),
  10397. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10398. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10399. msm_routing_get_port_mixer,
  10400. msm_routing_put_port_mixer),
  10401. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10402. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10403. msm_routing_get_port_mixer,
  10404. msm_routing_put_port_mixer),
  10405. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10406. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10407. msm_routing_get_port_mixer,
  10408. msm_routing_put_port_mixer),
  10409. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10410. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10411. msm_routing_get_port_mixer,
  10412. msm_routing_put_port_mixer),
  10413. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10415. msm_routing_get_port_mixer,
  10416. msm_routing_put_port_mixer),
  10417. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10418. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10419. msm_routing_get_port_mixer,
  10420. msm_routing_put_port_mixer),
  10421. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10422. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10423. msm_routing_get_port_mixer,
  10424. msm_routing_put_port_mixer),
  10425. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10426. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10427. msm_routing_get_port_mixer,
  10428. msm_routing_put_port_mixer),
  10429. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10430. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10431. msm_routing_get_port_mixer,
  10432. msm_routing_put_port_mixer),
  10433. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10434. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10435. msm_routing_get_port_mixer,
  10436. msm_routing_put_port_mixer),
  10437. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10438. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10439. msm_routing_get_port_mixer,
  10440. msm_routing_put_port_mixer),
  10441. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10442. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10443. msm_routing_get_port_mixer,
  10444. msm_routing_put_port_mixer),
  10445. };
  10446. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10447. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10448. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10449. msm_routing_get_port_mixer,
  10450. msm_routing_put_port_mixer),
  10451. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10452. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10453. msm_routing_get_port_mixer,
  10454. msm_routing_put_port_mixer),
  10455. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10456. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10457. msm_routing_get_port_mixer,
  10458. msm_routing_put_port_mixer),
  10459. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10460. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10461. msm_routing_get_port_mixer,
  10462. msm_routing_put_port_mixer),
  10463. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10464. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10465. msm_routing_get_port_mixer,
  10466. msm_routing_put_port_mixer),
  10467. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10468. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10469. msm_routing_get_port_mixer,
  10470. msm_routing_put_port_mixer),
  10471. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10472. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10473. msm_routing_get_port_mixer,
  10474. msm_routing_put_port_mixer),
  10475. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10476. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10477. msm_routing_get_port_mixer,
  10478. msm_routing_put_port_mixer),
  10479. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10480. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10481. msm_routing_get_port_mixer,
  10482. msm_routing_put_port_mixer),
  10483. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10484. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10485. msm_routing_get_port_mixer,
  10486. msm_routing_put_port_mixer),
  10487. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10488. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10489. msm_routing_get_port_mixer,
  10490. msm_routing_put_port_mixer),
  10491. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10492. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10493. msm_routing_get_port_mixer,
  10494. msm_routing_put_port_mixer),
  10495. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10496. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10497. msm_routing_get_port_mixer,
  10498. msm_routing_put_port_mixer),
  10499. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10500. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10501. msm_routing_get_port_mixer,
  10502. msm_routing_put_port_mixer),
  10503. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10504. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10505. msm_routing_get_port_mixer,
  10506. msm_routing_put_port_mixer),
  10507. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10508. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10509. msm_routing_get_port_mixer,
  10510. msm_routing_put_port_mixer),
  10511. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10512. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10513. msm_routing_get_port_mixer,
  10514. msm_routing_put_port_mixer),
  10515. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10516. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10517. msm_routing_get_port_mixer,
  10518. msm_routing_put_port_mixer),
  10519. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10520. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10521. msm_routing_get_port_mixer,
  10522. msm_routing_put_port_mixer),
  10523. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10524. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10525. msm_routing_get_port_mixer,
  10526. msm_routing_put_port_mixer),
  10527. };
  10528. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10529. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10530. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10531. msm_routing_put_port_mixer),
  10532. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10534. msm_routing_put_port_mixer),
  10535. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10536. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10537. msm_routing_put_port_mixer),
  10538. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10539. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10540. msm_routing_put_port_mixer),
  10541. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10542. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10543. msm_routing_put_port_mixer),
  10544. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10545. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10546. msm_routing_put_port_mixer),
  10547. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10548. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10549. msm_routing_put_port_mixer),
  10550. };
  10551. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10552. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10553. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10554. msm_routing_put_port_mixer),
  10555. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10556. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10557. msm_routing_put_port_mixer),
  10558. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10560. msm_routing_put_port_mixer),
  10561. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10562. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10563. msm_routing_put_port_mixer),
  10564. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10565. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10566. msm_routing_put_port_mixer),
  10567. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10568. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10569. msm_routing_put_port_mixer),
  10570. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10571. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10572. msm_routing_put_port_mixer),
  10573. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10574. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10575. msm_routing_put_port_mixer),
  10576. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10577. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10578. msm_routing_put_port_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10581. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10582. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10583. msm_routing_put_listen_mixer),
  10584. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10585. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10586. msm_routing_put_listen_mixer),
  10587. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10588. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10589. msm_routing_put_listen_mixer),
  10590. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10591. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10592. msm_routing_put_listen_mixer),
  10593. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10594. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10595. msm_routing_put_listen_mixer),
  10596. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10597. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10598. msm_routing_put_listen_mixer),
  10599. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10600. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10601. msm_routing_put_listen_mixer),
  10602. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10603. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10604. msm_routing_put_listen_mixer),
  10605. };
  10606. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10607. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10609. msm_routing_put_listen_mixer),
  10610. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10611. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10612. msm_routing_put_listen_mixer),
  10613. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10614. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10615. msm_routing_put_listen_mixer),
  10616. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10617. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10618. msm_routing_put_listen_mixer),
  10619. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10620. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10621. msm_routing_put_listen_mixer),
  10622. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10623. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10624. msm_routing_put_listen_mixer),
  10625. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10626. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10627. msm_routing_put_listen_mixer),
  10628. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10629. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10630. msm_routing_put_listen_mixer),
  10631. };
  10632. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10633. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10635. msm_routing_put_listen_mixer),
  10636. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10637. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10638. msm_routing_put_listen_mixer),
  10639. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10640. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10641. msm_routing_put_listen_mixer),
  10642. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10643. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10644. msm_routing_put_listen_mixer),
  10645. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10647. msm_routing_put_listen_mixer),
  10648. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10649. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10650. msm_routing_put_listen_mixer),
  10651. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10652. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10653. msm_routing_put_listen_mixer),
  10654. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10655. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10656. msm_routing_put_listen_mixer),
  10657. };
  10658. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10659. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10660. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10661. msm_routing_put_listen_mixer),
  10662. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10663. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10664. msm_routing_put_listen_mixer),
  10665. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10666. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10667. msm_routing_put_listen_mixer),
  10668. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10669. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10670. msm_routing_put_listen_mixer),
  10671. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10672. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10673. msm_routing_put_listen_mixer),
  10674. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10675. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10676. msm_routing_put_listen_mixer),
  10677. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10678. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10679. msm_routing_put_listen_mixer),
  10680. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10681. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10682. msm_routing_put_listen_mixer),
  10683. };
  10684. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10685. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10686. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10687. msm_routing_put_listen_mixer),
  10688. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10689. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10690. msm_routing_put_listen_mixer),
  10691. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10692. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10693. msm_routing_put_listen_mixer),
  10694. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10695. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10696. msm_routing_put_listen_mixer),
  10697. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10698. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10699. msm_routing_put_listen_mixer),
  10700. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10701. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10702. msm_routing_put_listen_mixer),
  10703. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10704. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10705. msm_routing_put_listen_mixer),
  10706. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10707. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10708. msm_routing_put_listen_mixer),
  10709. };
  10710. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10711. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10712. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10713. msm_routing_put_listen_mixer),
  10714. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10715. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10716. msm_routing_put_listen_mixer),
  10717. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10718. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10719. msm_routing_put_listen_mixer),
  10720. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10721. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10722. msm_routing_put_listen_mixer),
  10723. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10724. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10725. msm_routing_put_listen_mixer),
  10726. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10727. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10728. msm_routing_put_listen_mixer),
  10729. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10730. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10731. msm_routing_put_listen_mixer),
  10732. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10733. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10734. msm_routing_put_listen_mixer),
  10735. };
  10736. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10737. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10738. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10739. msm_routing_put_listen_mixer),
  10740. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10741. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10742. msm_routing_put_listen_mixer),
  10743. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10744. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10745. msm_routing_put_listen_mixer),
  10746. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10747. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10748. msm_routing_put_listen_mixer),
  10749. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10750. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10751. msm_routing_put_listen_mixer),
  10752. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10753. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10754. msm_routing_put_listen_mixer),
  10755. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10756. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10757. msm_routing_put_listen_mixer),
  10758. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10759. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10760. msm_routing_put_listen_mixer),
  10761. };
  10762. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10763. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10764. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10765. msm_routing_put_listen_mixer),
  10766. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10767. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10768. msm_routing_put_listen_mixer),
  10769. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10770. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10771. msm_routing_put_listen_mixer),
  10772. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10773. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10774. msm_routing_put_listen_mixer),
  10775. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10776. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10777. msm_routing_put_listen_mixer),
  10778. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10779. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10780. msm_routing_put_listen_mixer),
  10781. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10782. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10783. msm_routing_put_listen_mixer),
  10784. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10785. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10786. msm_routing_put_listen_mixer),
  10787. };
  10788. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10789. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10790. 0, 1, 0, msm_routing_get_switch_mixer,
  10791. msm_routing_put_switch_mixer);
  10792. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10793. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10794. 0, 1, 0, msm_routing_get_switch_mixer,
  10795. msm_routing_put_switch_mixer);
  10796. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10797. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10798. 0, 1, 0, msm_routing_get_switch_mixer,
  10799. msm_routing_put_switch_mixer);
  10800. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10801. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10802. 0, 1, 0, msm_routing_get_switch_mixer,
  10803. msm_routing_put_switch_mixer);
  10804. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10805. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10806. 0, 1, 0, msm_routing_get_switch_mixer,
  10807. msm_routing_put_switch_mixer);
  10808. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10809. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10810. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10811. msm_routing_put_fm_pcmrx_switch_mixer);
  10812. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10813. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10814. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10815. msm_routing_put_int0_mi2s_switch_mixer);
  10816. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10817. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10818. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10819. msm_routing_put_int4_mi2s_switch_mixer);
  10820. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10821. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10822. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10823. msm_routing_put_pri_mi2s_switch_mixer);
  10824. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10825. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10826. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10827. msm_routing_put_sec_mi2s_switch_mixer);
  10828. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10829. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10830. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10831. msm_routing_put_tert_mi2s_switch_mixer);
  10832. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10833. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10834. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10835. msm_routing_put_quat_mi2s_switch_mixer);
  10836. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10837. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10838. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10839. msm_routing_put_quin_mi2s_switch_mixer);
  10840. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10841. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10842. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10843. msm_routing_put_hfp_switch_mixer);
  10844. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10845. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10846. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10847. msm_routing_put_hfp_switch_mixer);
  10848. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10849. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10850. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10851. msm_routing_put_hfp_switch_mixer);
  10852. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10853. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10854. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10855. msm_routing_put_hfp_switch_mixer);
  10856. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10857. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10858. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10859. msm_routing_put_usb_switch_mixer);
  10860. static const struct soc_enum lsm_port_enum =
  10861. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10862. static const char * const lsm_func_text[] = {
  10863. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10864. };
  10865. static const struct soc_enum lsm_func_enum =
  10866. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10867. static const struct snd_kcontrol_new lsm_controls[] = {
  10868. /* kcontrol of lsm_function */
  10869. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10870. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10871. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10872. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10873. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10874. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10875. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10876. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10877. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10878. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10879. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10880. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10881. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10882. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10883. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10884. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10885. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10886. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10887. /* kcontrol of lsm_port */
  10888. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10889. msm_routing_lsm_port_get,
  10890. msm_routing_lsm_port_put),
  10891. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10892. msm_routing_lsm_port_get,
  10893. msm_routing_lsm_port_put),
  10894. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10895. msm_routing_lsm_port_get,
  10896. msm_routing_lsm_port_put),
  10897. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10898. msm_routing_lsm_port_get,
  10899. msm_routing_lsm_port_put),
  10900. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10901. msm_routing_lsm_port_get,
  10902. msm_routing_lsm_port_put),
  10903. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10904. msm_routing_lsm_port_get,
  10905. msm_routing_lsm_port_put),
  10906. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10907. msm_routing_lsm_port_get,
  10908. msm_routing_lsm_port_put),
  10909. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10910. msm_routing_lsm_port_get,
  10911. msm_routing_lsm_port_put),
  10912. };
  10913. static const char * const aanc_slim_0_rx_text[] = {
  10914. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10915. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10916. };
  10917. static const struct soc_enum aanc_slim_0_rx_enum =
  10918. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10919. aanc_slim_0_rx_text);
  10920. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10921. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10922. msm_routing_slim_0_rx_aanc_mux_get,
  10923. msm_routing_slim_0_rx_aanc_mux_put)
  10924. };
  10925. static int msm_routing_get_stereo_to_custom_stereo_control(
  10926. struct snd_kcontrol *kcontrol,
  10927. struct snd_ctl_elem_value *ucontrol)
  10928. {
  10929. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10930. return 0;
  10931. }
  10932. static int msm_routing_put_stereo_to_custom_stereo_control(
  10933. struct snd_kcontrol *kcontrol,
  10934. struct snd_ctl_elem_value *ucontrol)
  10935. {
  10936. int flag = 0, i = 0, rc = 0, idx = 0;
  10937. int be_index = 0, port_id, topo_id;
  10938. unsigned int session_id = 0;
  10939. uint16_t op_FL_ip_FL_weight = 0;
  10940. uint16_t op_FL_ip_FR_weight = 0;
  10941. uint16_t op_FR_ip_FL_weight = 0;
  10942. uint16_t op_FR_ip_FR_weight = 0;
  10943. flag = ucontrol->value.integer.value[0];
  10944. pr_debug("%s E flag %d\n", __func__, flag);
  10945. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10946. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10947. __func__, is_custom_stereo_on, flag);
  10948. return 0;
  10949. }
  10950. is_custom_stereo_on = flag ? true : false;
  10951. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10952. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10953. port_id = msm_bedais[be_index].port_id;
  10954. if (!msm_bedais[be_index].active)
  10955. continue;
  10956. if ((port_id != SLIMBUS_0_RX) &&
  10957. (port_id != RT_PROXY_PORT_001_RX) &&
  10958. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10959. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10960. continue;
  10961. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10962. MSM_FRONTEND_DAI_MM_SIZE) {
  10963. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10964. LEGACY_PCM_MODE)
  10965. goto skip_send_custom_stereo;
  10966. session_id =
  10967. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10968. if (is_custom_stereo_on) {
  10969. op_FL_ip_FL_weight =
  10970. Q14_GAIN_ZERO_POINT_FIVE;
  10971. op_FL_ip_FR_weight =
  10972. Q14_GAIN_ZERO_POINT_FIVE;
  10973. op_FR_ip_FL_weight =
  10974. Q14_GAIN_ZERO_POINT_FIVE;
  10975. op_FR_ip_FR_weight =
  10976. Q14_GAIN_ZERO_POINT_FIVE;
  10977. } else {
  10978. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10979. op_FL_ip_FR_weight = 0;
  10980. op_FR_ip_FL_weight = 0;
  10981. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10982. }
  10983. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10984. unsigned long copp =
  10985. session_copp_map[i]
  10986. [SESSION_TYPE_RX][be_index];
  10987. if (!test_bit(idx, &copp))
  10988. goto skip_send_custom_stereo;
  10989. topo_id = adm_get_topology_for_port_copp_idx(
  10990. msm_bedais[be_index].port_id, idx);
  10991. if (topo_id < 0)
  10992. pr_debug("%s:Err:custom stereo topo %d",
  10993. __func__, topo_id);
  10994. pr_debug("idx %d\n", idx);
  10995. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10996. rc = msm_ds2_dap_set_custom_stereo_onoff
  10997. (msm_bedais[be_index].port_id,
  10998. idx, is_custom_stereo_on);
  10999. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  11000. rc = dolby_dap_set_custom_stereo_onoff(
  11001. msm_bedais[be_index].port_id,
  11002. idx, is_custom_stereo_on);
  11003. else
  11004. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  11005. (msm_bedais[be_index].port_id,
  11006. idx, session_id,
  11007. op_FL_ip_FL_weight,
  11008. op_FL_ip_FR_weight,
  11009. op_FR_ip_FL_weight,
  11010. op_FR_ip_FR_weight);
  11011. if (rc < 0)
  11012. skip_send_custom_stereo:
  11013. pr_err("%s: err setting custom stereo\n",
  11014. __func__);
  11015. }
  11016. }
  11017. }
  11018. return 0;
  11019. }
  11020. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  11021. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  11022. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  11023. msm_routing_put_stereo_to_custom_stereo_control),
  11024. };
  11025. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  11026. struct snd_ctl_elem_value *ucontrol)
  11027. {
  11028. return 0;
  11029. }
  11030. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  11031. struct snd_ctl_elem_value *ucontrol)
  11032. {
  11033. int i = 0, j;
  11034. int num_app_types = ucontrol->value.integer.value[i++];
  11035. pr_debug("%s\n", __func__);
  11036. memset(app_type_cfg, 0, MAX_APP_TYPES*
  11037. sizeof(struct msm_pcm_routing_app_type_data));
  11038. if (num_app_types > MAX_APP_TYPES) {
  11039. pr_err("%s: number of app types exceed the max supported\n",
  11040. __func__);
  11041. return -EINVAL;
  11042. }
  11043. for (j = 0; j < num_app_types; j++) {
  11044. app_type_cfg[j].app_type =
  11045. ucontrol->value.integer.value[i++];
  11046. app_type_cfg[j].sample_rate =
  11047. ucontrol->value.integer.value[i++];
  11048. app_type_cfg[j].bit_width =
  11049. ucontrol->value.integer.value[i++];
  11050. }
  11051. return 0;
  11052. }
  11053. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  11054. struct snd_ctl_elem_value *ucontrol)
  11055. {
  11056. int j, fe_id, be_id, port_type;
  11057. int ret = 0;
  11058. unsigned long copp;
  11059. struct msm_pcm_routing_bdai_data *bedai;
  11060. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11061. SESSION_TYPE_RX;
  11062. int app_type = ucontrol->value.integer.value[1];
  11063. int gain = (ucontrol->value.integer.value[2] +
  11064. ucontrol->value.integer.value[3])/2;
  11065. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11066. MSM_AFE_PORT_TYPE_TX;
  11067. mutex_lock(&routing_lock);
  11068. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11069. if (is_be_dai_extproc(be_id))
  11070. continue;
  11071. bedai = &msm_bedais[be_id];
  11072. if (afe_get_port_type(bedai->port_id) != port_type)
  11073. continue;
  11074. if (!bedai->active)
  11075. continue;
  11076. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11077. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11078. continue;
  11079. if (app_type !=
  11080. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11081. continue;
  11082. copp = session_copp_map[fe_id][dir][be_id];
  11083. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  11084. if (!test_bit(j, &copp))
  11085. continue;
  11086. ret |= adm_set_volume(bedai->port_id, j, gain);
  11087. }
  11088. }
  11089. }
  11090. mutex_unlock(&routing_lock);
  11091. return ret ? -EINVAL : 0;
  11092. }
  11093. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  11094. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  11095. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  11096. msm_routing_put_app_type_cfg_control),
  11097. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  11098. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  11099. };
  11100. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  11101. struct snd_ctl_elem_value *ucontrol)
  11102. {
  11103. int copp_idx, fe_id, be_id, port_type;
  11104. int ret = 0;
  11105. unsigned long copp;
  11106. struct msm_pcm_routing_bdai_data *bedai;
  11107. char *param_data = NULL;
  11108. uint32_t *update_param_data = NULL;
  11109. uint32_t param_size = sizeof(uint32_t) +
  11110. sizeof(struct adm_param_data_v5);
  11111. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11112. SESSION_TYPE_RX;
  11113. int app_type = ucontrol->value.integer.value[1];
  11114. int module_id = ucontrol->value.integer.value[2];
  11115. int instance_id = ucontrol->value.integer.value[3];
  11116. int param_id = ucontrol->value.integer.value[4];
  11117. int param_value = ucontrol->value.integer.value[5];
  11118. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11119. MSM_AFE_PORT_TYPE_TX;
  11120. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  11121. __func__, app_type, module_id,
  11122. instance_id, param_id, param_value);
  11123. param_data = kzalloc(param_size, GFP_KERNEL);
  11124. if (!param_data)
  11125. return -ENOMEM;
  11126. update_param_data = (uint32_t *)param_data;
  11127. *update_param_data++ = module_id;
  11128. *update_param_data++ = param_id;
  11129. *update_param_data++ = sizeof(uint32_t);
  11130. *update_param_data++ = param_value;
  11131. mutex_lock(&routing_lock);
  11132. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11133. if (is_be_dai_extproc(be_id))
  11134. continue;
  11135. bedai = &msm_bedais[be_id];
  11136. if (afe_get_port_type(bedai->port_id) != port_type)
  11137. continue;
  11138. if (!bedai->active)
  11139. continue;
  11140. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11141. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11142. continue;
  11143. if (app_type !=
  11144. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11145. continue;
  11146. copp = session_copp_map[fe_id][dir][be_id];
  11147. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  11148. copp_idx++) {
  11149. if (!test_bit(copp_idx, &copp))
  11150. continue;
  11151. ret = adm_send_params_v5(bedai->port_id,
  11152. copp_idx,
  11153. param_data,
  11154. param_size);
  11155. if (ret) {
  11156. pr_err("%s: Setting param failed with err=%d\n",
  11157. __func__, ret);
  11158. ret = -EINVAL;
  11159. goto done;
  11160. }
  11161. }
  11162. }
  11163. }
  11164. done:
  11165. mutex_unlock(&routing_lock);
  11166. kfree(param_data);
  11167. return ret;
  11168. }
  11169. static const struct snd_kcontrol_new module_cfg_controls[] = {
  11170. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  11171. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  11172. };
  11173. static int msm_routing_get_lsm_app_type_cfg_control(
  11174. struct snd_kcontrol *kcontrol,
  11175. struct snd_ctl_elem_value *ucontrol)
  11176. {
  11177. return 0;
  11178. }
  11179. static int msm_routing_put_lsm_app_type_cfg_control(
  11180. struct snd_kcontrol *kcontrol,
  11181. struct snd_ctl_elem_value *ucontrol)
  11182. {
  11183. int i = 0, j;
  11184. int num_app_types = ucontrol->value.integer.value[i++];
  11185. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  11186. sizeof(struct msm_pcm_routing_app_type_data));
  11187. if (num_app_types > MAX_APP_TYPES) {
  11188. pr_err("%s: number of app types exceed the max supported\n",
  11189. __func__);
  11190. return -EINVAL;
  11191. }
  11192. for (j = 0; j < num_app_types; j++) {
  11193. lsm_app_type_cfg[j].app_type =
  11194. ucontrol->value.integer.value[i++];
  11195. lsm_app_type_cfg[j].sample_rate =
  11196. ucontrol->value.integer.value[i++];
  11197. lsm_app_type_cfg[j].bit_width =
  11198. ucontrol->value.integer.value[i++];
  11199. }
  11200. return 0;
  11201. }
  11202. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11203. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11204. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11205. msm_routing_put_lsm_app_type_cfg_control),
  11206. };
  11207. static int msm_routing_get_use_ds1_or_ds2_control(
  11208. struct snd_kcontrol *kcontrol,
  11209. struct snd_ctl_elem_value *ucontrol)
  11210. {
  11211. ucontrol->value.integer.value[0] = is_ds2_on;
  11212. return 0;
  11213. }
  11214. static int msm_routing_put_use_ds1_or_ds2_control(
  11215. struct snd_kcontrol *kcontrol,
  11216. struct snd_ctl_elem_value *ucontrol)
  11217. {
  11218. is_ds2_on = ucontrol->value.integer.value[0];
  11219. return 0;
  11220. }
  11221. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11222. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11223. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11224. msm_routing_put_use_ds1_or_ds2_control),
  11225. };
  11226. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11227. struct snd_ctl_elem_value *ucontrol) {
  11228. int rc = 0;
  11229. int be_idx = 0;
  11230. char *param_value;
  11231. int *update_param_value;
  11232. uint32_t param_length = sizeof(uint32_t);
  11233. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11234. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11235. if (!param_value)
  11236. return -ENOMEM;
  11237. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11238. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11239. break;
  11240. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11241. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11242. RMS_MODULEID_APPI_PASSTHRU,
  11243. RMS_PARAM_FIRST_SAMPLE,
  11244. param_length + param_payload_len,
  11245. param_value);
  11246. if (rc) {
  11247. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11248. kfree(param_value);
  11249. return -EINVAL;
  11250. }
  11251. update_param_value = (int *)param_value;
  11252. ucontrol->value.integer.value[0] = update_param_value[0];
  11253. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11254. __func__, update_param_value[0]);
  11255. }
  11256. kfree(param_value);
  11257. return 0;
  11258. }
  11259. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11260. struct snd_ctl_elem_value *ucontrol)
  11261. {
  11262. voc_session_id = ucontrol->value.integer.value[0];
  11263. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11264. return 0;
  11265. }
  11266. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11267. struct snd_ctl_elem_value *ucontrol)
  11268. {
  11269. ucontrol->value.integer.value[0] = voc_session_id;
  11270. return 0;
  11271. }
  11272. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11273. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11274. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11275. msm_voc_session_id_put),
  11276. };
  11277. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11278. struct snd_ctl_elem_info *uinfo)
  11279. {
  11280. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11281. uinfo->count = sizeof(struct sound_focus_param);
  11282. return 0;
  11283. }
  11284. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11285. struct snd_ctl_elem_value *ucontrol)
  11286. {
  11287. int ret = 0;
  11288. struct sound_focus_param soundFocusData;
  11289. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11290. sizeof(struct sound_focus_param));
  11291. ret = voc_set_sound_focus(soundFocusData);
  11292. if (ret) {
  11293. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11294. __func__, ret);
  11295. ret = -EINVAL;
  11296. }
  11297. return ret;
  11298. }
  11299. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11300. struct snd_ctl_elem_value *ucontrol)
  11301. {
  11302. int ret = 0;
  11303. struct sound_focus_param soundFocusData;
  11304. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11305. ret = voc_get_sound_focus(&soundFocusData);
  11306. if (ret) {
  11307. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11308. __func__, ret);
  11309. ret = -EINVAL;
  11310. goto done;
  11311. }
  11312. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11313. sizeof(struct sound_focus_param));
  11314. done:
  11315. return ret;
  11316. }
  11317. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11318. struct snd_ctl_elem_info *uinfo)
  11319. {
  11320. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11321. uinfo->count = sizeof(struct source_tracking_param);
  11322. return 0;
  11323. }
  11324. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11325. struct snd_ctl_elem_value *ucontrol)
  11326. {
  11327. return -EINVAL;
  11328. }
  11329. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11330. int *copp_idx)
  11331. {
  11332. int i, idx, be_idx;
  11333. int ret = 0;
  11334. unsigned long copp;
  11335. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11336. ret = q6audio_validate_port(port_id);
  11337. if (ret < 0) {
  11338. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11339. __func__, port_id, ret);
  11340. ret = -EINVAL;
  11341. goto done;
  11342. }
  11343. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11344. if (msm_bedais[be_idx].port_id == port_id)
  11345. break;
  11346. }
  11347. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11348. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11349. ret = -EINVAL;
  11350. goto done;
  11351. }
  11352. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11353. MSM_FRONTEND_DAI_MM_SIZE) {
  11354. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11355. copp = session_copp_map[i]
  11356. [session_type][be_idx];
  11357. if (test_bit(idx, &copp))
  11358. break;
  11359. }
  11360. if (idx >= MAX_COPPS_PER_PORT)
  11361. continue;
  11362. else
  11363. break;
  11364. }
  11365. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11366. pr_err("%s: Invalid FE, exiting\n", __func__);
  11367. ret = -EINVAL;
  11368. goto done;
  11369. }
  11370. *copp_idx = idx;
  11371. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11372. done:
  11373. return ret;
  11374. }
  11375. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11376. const char *prefix, int *port_id)
  11377. {
  11378. int ret = 0;
  11379. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11380. /*
  11381. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11382. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11383. * and compare the string with the backend name to derive the port id.
  11384. */
  11385. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11386. "SLIMBUS_0")) {
  11387. *port_id = SLIMBUS_0_TX;
  11388. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11389. "TERT_MI2S")) {
  11390. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11391. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11392. "INT3_MI2S")) {
  11393. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11394. } else {
  11395. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11396. __func__, kcontrol->id.name);
  11397. ret = -EINVAL;
  11398. goto done;
  11399. }
  11400. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11401. __func__, kcontrol->id.name, *port_id);
  11402. done:
  11403. return ret;
  11404. }
  11405. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11406. struct snd_ctl_elem_value *ucontrol)
  11407. {
  11408. int ret = 0;
  11409. struct sound_focus_param soundFocusData;
  11410. int port_id, copp_idx;
  11411. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11412. "Sound Focus Audio Tx ", &port_id);
  11413. if (ret != 0) {
  11414. pr_err("%s: Error in deriving port id, err=%d\n",
  11415. __func__, ret);
  11416. ret = -EINVAL;
  11417. goto done;
  11418. }
  11419. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11420. &copp_idx);
  11421. if (ret) {
  11422. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11423. __func__, port_id);
  11424. ret = -EINVAL;
  11425. goto done;
  11426. }
  11427. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11428. sizeof(struct sound_focus_param));
  11429. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11430. if (ret) {
  11431. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11432. __func__, ret);
  11433. ret = -EINVAL;
  11434. goto done;
  11435. }
  11436. done:
  11437. return ret;
  11438. }
  11439. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11440. struct snd_ctl_elem_value *ucontrol)
  11441. {
  11442. int ret = 0;
  11443. struct sound_focus_param soundFocusData;
  11444. int port_id, copp_idx;
  11445. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11446. "Sound Focus Audio Tx ", &port_id);
  11447. if (ret) {
  11448. pr_err("%s: Error in deriving port id, err=%d\n",
  11449. __func__, ret);
  11450. ret = -EINVAL;
  11451. goto done;
  11452. }
  11453. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11454. &copp_idx);
  11455. if (ret) {
  11456. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11457. __func__, port_id);
  11458. ret = -EINVAL;
  11459. goto done;
  11460. }
  11461. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11462. if (ret) {
  11463. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11464. __func__, ret);
  11465. ret = -EINVAL;
  11466. goto done;
  11467. }
  11468. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11469. sizeof(struct sound_focus_param));
  11470. done:
  11471. return ret;
  11472. }
  11473. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11474. struct snd_ctl_elem_value *ucontrol)
  11475. {
  11476. int ret = 0;
  11477. struct source_tracking_param sourceTrackingData;
  11478. int port_id, copp_idx;
  11479. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11480. "Source Tracking Audio Tx ", &port_id);
  11481. if (ret) {
  11482. pr_err("%s: Error in deriving port id, err=%d\n",
  11483. __func__, ret);
  11484. ret = -EINVAL;
  11485. goto done;
  11486. }
  11487. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11488. &copp_idx);
  11489. if (ret) {
  11490. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11491. __func__, port_id);
  11492. ret = -EINVAL;
  11493. goto done;
  11494. }
  11495. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11496. if (ret) {
  11497. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11498. __func__, ret);
  11499. ret = -EINVAL;
  11500. goto done;
  11501. }
  11502. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11503. sizeof(struct source_tracking_param));
  11504. done:
  11505. return ret;
  11506. }
  11507. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11508. {
  11509. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11510. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11511. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11512. .info = msm_sound_focus_info,
  11513. .get = msm_voice_sound_focus_get,
  11514. .put = msm_voice_sound_focus_put,
  11515. },
  11516. {
  11517. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11519. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11520. .info = msm_source_tracking_info,
  11521. .get = msm_voice_source_tracking_get,
  11522. },
  11523. {
  11524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11526. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11527. .info = msm_sound_focus_info,
  11528. .get = msm_audio_sound_focus_get,
  11529. .put = msm_audio_sound_focus_put,
  11530. },
  11531. {
  11532. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11533. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11534. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11535. .info = msm_source_tracking_info,
  11536. .get = msm_audio_source_tracking_get,
  11537. },
  11538. {
  11539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11541. .name = "Sound Focus Voice Tx TERT_MI2S",
  11542. .info = msm_sound_focus_info,
  11543. .get = msm_voice_sound_focus_get,
  11544. .put = msm_voice_sound_focus_put,
  11545. },
  11546. {
  11547. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11549. .name = "Source Tracking Voice Tx TERT_MI2S",
  11550. .info = msm_source_tracking_info,
  11551. .get = msm_voice_source_tracking_get,
  11552. },
  11553. {
  11554. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11555. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11556. .name = "Sound Focus Audio Tx TERT_MI2S",
  11557. .info = msm_sound_focus_info,
  11558. .get = msm_audio_sound_focus_get,
  11559. .put = msm_audio_sound_focus_put,
  11560. },
  11561. {
  11562. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11564. .name = "Source Tracking Audio Tx TERT_MI2S",
  11565. .info = msm_source_tracking_info,
  11566. .get = msm_audio_source_tracking_get,
  11567. },
  11568. {
  11569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11571. .name = "Sound Focus Voice Tx INT3_MI2S",
  11572. .info = msm_sound_focus_info,
  11573. .get = msm_voice_sound_focus_get,
  11574. .put = msm_voice_sound_focus_put,
  11575. },
  11576. {
  11577. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11578. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11579. .name = "Source Tracking Voice Tx INT3_MI2S",
  11580. .info = msm_source_tracking_info,
  11581. .get = msm_voice_source_tracking_get,
  11582. },
  11583. {
  11584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11586. .name = "Sound Focus Audio Tx INT3_MI2S",
  11587. .info = msm_sound_focus_info,
  11588. .get = msm_audio_sound_focus_get,
  11589. .put = msm_audio_sound_focus_put,
  11590. },
  11591. {
  11592. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11594. .name = "Source Tracking Audio Tx INT3_MI2S",
  11595. .info = msm_source_tracking_info,
  11596. .get = msm_audio_source_tracking_get,
  11597. },
  11598. };
  11599. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11600. struct snd_ctl_elem_value *ucontrol)
  11601. {
  11602. int ret = 0;
  11603. int item;
  11604. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11605. pr_debug("%s item is %d\n", __func__,
  11606. ucontrol->value.enumerated.item[0]);
  11607. mutex_lock(&routing_lock);
  11608. item = ucontrol->value.enumerated.item[0];
  11609. if (item < e->items) {
  11610. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11611. __func__, e->shift_l, e->values[item]);
  11612. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11613. e->values[item] < MSM_BACKEND_DAI_MAX)
  11614. /* Enable feedback TX path */
  11615. ret = afe_spk_prot_feed_back_cfg(
  11616. msm_bedais[e->values[item]].port_id,
  11617. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11618. else {
  11619. pr_debug("%s values are out of range item %d\n",
  11620. __func__, e->values[item]);
  11621. /* Disable feedback TX path */
  11622. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11623. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11624. else
  11625. ret = -EINVAL;
  11626. }
  11627. } else {
  11628. pr_err("%s item value is out of range item\n", __func__);
  11629. ret = -EINVAL;
  11630. }
  11631. mutex_unlock(&routing_lock);
  11632. return ret;
  11633. }
  11634. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11635. struct snd_ctl_elem_value *ucontrol)
  11636. {
  11637. int ret = 0;
  11638. int item;
  11639. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11640. pr_debug("%s item is %d\n", __func__,
  11641. ucontrol->value.enumerated.item[0]);
  11642. mutex_lock(&routing_lock);
  11643. item = ucontrol->value.enumerated.item[0];
  11644. if (item < e->items) {
  11645. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11646. __func__, e->shift_l, e->values[item]);
  11647. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11648. e->values[item] < MSM_BACKEND_DAI_MAX)
  11649. /* Enable feedback TX path */
  11650. ret = afe_spk_prot_feed_back_cfg(
  11651. msm_bedais[e->values[item]].port_id,
  11652. msm_bedais[e->shift_l].port_id,
  11653. 1, 1, 1);
  11654. else {
  11655. pr_debug("%s values are out of range item %d\n",
  11656. __func__, e->values[item]);
  11657. /* Disable feedback TX path */
  11658. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11659. ret = afe_spk_prot_feed_back_cfg(0,
  11660. 0, 0, 0, 0);
  11661. else
  11662. ret = -EINVAL;
  11663. }
  11664. } else {
  11665. pr_err("%s item value is out of range item\n", __func__);
  11666. ret = -EINVAL;
  11667. }
  11668. mutex_unlock(&routing_lock);
  11669. return ret;
  11670. }
  11671. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11672. struct snd_ctl_elem_value *ucontrol)
  11673. {
  11674. pr_debug("%s\n", __func__);
  11675. return 0;
  11676. }
  11677. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11678. struct snd_ctl_elem_value *ucontrol)
  11679. {
  11680. pr_debug("%s\n", __func__);
  11681. ucontrol->value.enumerated.item[0] = 0;
  11682. return 0;
  11683. }
  11684. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11685. "ZERO", "SLIM4_TX"
  11686. };
  11687. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11688. "ZERO", "SLIM4_TX"
  11689. };
  11690. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11691. "ZERO", "SENARY_TX"
  11692. };
  11693. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11694. "ZERO", "INT5_MI2S_TX"
  11695. };
  11696. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11697. "ZERO", "INT5_MI2S_TX"
  11698. };
  11699. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11700. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11701. };
  11702. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11703. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11704. };
  11705. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11706. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11707. };
  11708. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11709. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11710. };
  11711. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11712. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11713. };
  11714. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11715. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11716. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11717. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11718. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11719. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11720. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11721. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11722. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11723. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11724. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11725. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11726. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11727. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11728. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11729. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11730. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11731. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11732. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11733. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11734. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11735. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11736. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11737. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11738. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11739. spkr_prot_put_vi_lch_port);
  11740. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11741. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11742. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11743. spkr_prot_put_vi_rch_port);
  11744. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11745. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11746. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11747. spkr_prot_put_vi_lch_port);
  11748. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11749. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11750. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11751. spkr_prot_put_vi_lch_port);
  11752. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11753. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11754. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11755. spkr_prot_put_vi_rch_port);
  11756. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11757. /* Frontend AIF */
  11758. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11759. * Stream name must contains substring of front-end dai name
  11760. */
  11761. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11762. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11763. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11764. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11765. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11766. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11767. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11768. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11769. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11770. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11771. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11772. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11773. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11775. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11776. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11777. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11778. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11779. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11780. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11781. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11782. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11783. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11784. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11785. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11786. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11787. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11788. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11789. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11790. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11791. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11792. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11793. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11794. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11795. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11796. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11797. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11798. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11799. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11800. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11801. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11802. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11803. 0, 0, 0, 0),
  11804. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11805. 0, 0, 0, 0),
  11806. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11807. 0, 0, 0, 0),
  11808. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11809. 0, 0, 0, 0),
  11810. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11811. 0, 0, 0, 0),
  11812. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11813. 0, 0, 0, 0),
  11814. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11815. 0, 0, 0, 0),
  11816. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11817. 0, 0, 0, 0),
  11818. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11819. 0, 0, 0, 0),
  11820. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11823. 0, 0, 0, 0),
  11824. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11825. 0, 0, 0, 0),
  11826. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11829. 0, 0, 0, 0),
  11830. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11831. 0, 0, 0, 0),
  11832. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11833. 0, 0, 0, 0),
  11834. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11835. 0, 0, 0, 0),
  11836. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11837. 0, 0, 0, 0),
  11838. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11839. 0, 0, 0, 0),
  11840. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11841. 0, 0, 0, 0),
  11842. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11843. 0, 0, 0, 0),
  11844. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11845. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11846. 0, 0, 0, 0),
  11847. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11848. "INT0 MI2S_RX Hostless Playback",
  11849. 0, 0, 0, 0),
  11850. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11851. "INT4 MI2S_RX Hostless Playback",
  11852. 0, 0, 0, 0),
  11853. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11854. "Primary MI2S_RX Hostless Playback",
  11855. 0, 0, 0, 0),
  11856. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11857. "Secondary MI2S_RX Hostless Playback",
  11858. 0, 0, 0, 0),
  11859. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11860. "Tertiary MI2S_RX Hostless Playback",
  11861. 0, 0, 0, 0),
  11862. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11863. "Quaternary MI2S_RX Hostless Playback",
  11864. 0, 0, 0, 0),
  11865. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11866. "Quinary MI2S_RX Hostless Playback",
  11867. 0, 0, 0, 0),
  11868. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11869. 0, 0, 0, 0),
  11870. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11871. 0, 0, 0, 0),
  11872. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  11873. 0, 0, 0, 0),
  11874. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  11875. 0, 0, 0, 0),
  11876. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11877. 0, 0, 0, 0),
  11878. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11879. "INT3 MI2S_TX Hostless Capture",
  11880. 0, 0, 0, 0),
  11881. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11882. "Tertiary MI2S_TX Hostless Capture",
  11883. 0, 0, 0, 0),
  11884. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11885. "Secondary MI2S_TX Hostless Capture",
  11886. 0, 0, 0, 0),
  11887. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11888. "Primary MI2S_TX Hostless Capture",
  11889. 0, 0, 0, 0),
  11890. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11891. 0, 0, 0, 0),
  11892. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11893. 0, 0, 0, 0),
  11894. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11895. "Quaternary MI2S_TX Hostless Capture",
  11896. 0, 0, 0, 0),
  11897. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11898. "Quinary MI2S_TX Hostless Capture",
  11899. 0, 0, 0, 0),
  11900. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11901. "Primary TDM0 Hostless Playback",
  11902. 0, 0, 0, 0),
  11903. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11904. "Primary TDM0 Hostless Capture",
  11905. 0, 0, 0, 0),
  11906. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11907. "Primary TDM1 Hostless Playback",
  11908. 0, 0, 0, 0),
  11909. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11910. "Primary TDM1 Hostless Capture",
  11911. 0, 0, 0, 0),
  11912. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11913. "Primary TDM2 Hostless Playback",
  11914. 0, 0, 0, 0),
  11915. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11916. "Primary TDM2 Hostless Capture",
  11917. 0, 0, 0, 0),
  11918. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11919. "Primary TDM3 Hostless Playback",
  11920. 0, 0, 0, 0),
  11921. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11922. "Primary TDM3 Hostless Capture",
  11923. 0, 0, 0, 0),
  11924. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11925. "Primary TDM4 Hostless Playback",
  11926. 0, 0, 0, 0),
  11927. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11928. "Primary TDM4 Hostless Capture",
  11929. 0, 0, 0, 0),
  11930. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11931. "Primary TDM5 Hostless Playback",
  11932. 0, 0, 0, 0),
  11933. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11934. "Primary TDM5 Hostless Capture",
  11935. 0, 0, 0, 0),
  11936. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11937. "Primary TDM6 Hostless Playback",
  11938. 0, 0, 0, 0),
  11939. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11940. "Primary TDM6 Hostless Capture",
  11941. 0, 0, 0, 0),
  11942. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11943. "Primary TDM7 Hostless Playback",
  11944. 0, 0, 0, 0),
  11945. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11946. "Primary TDM7 Hostless Capture",
  11947. 0, 0, 0, 0),
  11948. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11949. "Secondary TDM0 Hostless Playback",
  11950. 0, 0, 0, 0),
  11951. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11952. "Secondary TDM0 Hostless Capture",
  11953. 0, 0, 0, 0),
  11954. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11955. "Secondary TDM1 Hostless Playback",
  11956. 0, 0, 0, 0),
  11957. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11958. "Secondary TDM1 Hostless Capture",
  11959. 0, 0, 0, 0),
  11960. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11961. "Secondary TDM2 Hostless Playback",
  11962. 0, 0, 0, 0),
  11963. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11964. "Secondary TDM2 Hostless Capture",
  11965. 0, 0, 0, 0),
  11966. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11967. "Secondary TDM3 Hostless Playback",
  11968. 0, 0, 0, 0),
  11969. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11970. "Secondary TDM3 Hostless Capture",
  11971. 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11973. "Secondary TDM4 Hostless Playback",
  11974. 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11976. "Secondary TDM4 Hostless Capture",
  11977. 0, 0, 0, 0),
  11978. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11979. "Secondary TDM5 Hostless Playback",
  11980. 0, 0, 0, 0),
  11981. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11982. "Secondary TDM5 Hostless Capture",
  11983. 0, 0, 0, 0),
  11984. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11985. "Secondary TDM6 Hostless Playback",
  11986. 0, 0, 0, 0),
  11987. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11988. "Secondary TDM6 Hostless Capture",
  11989. 0, 0, 0, 0),
  11990. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11991. "Secondary TDM7 Hostless Playback",
  11992. 0, 0, 0, 0),
  11993. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11994. "Secondary TDM7 Hostless Capture",
  11995. 0, 0, 0, 0),
  11996. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11997. "Tertiary TDM0 Hostless Playback",
  11998. 0, 0, 0, 0),
  11999. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  12000. "Tertiary TDM0 Hostless Capture",
  12001. 0, 0, 0, 0),
  12002. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  12003. "Tertiary TDM1 Hostless Playback",
  12004. 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  12006. "Tertiary TDM1 Hostless Capture",
  12007. 0, 0, 0, 0),
  12008. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  12009. "Tertiary TDM2 Hostless Playback",
  12010. 0, 0, 0, 0),
  12011. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  12012. "Tertiary TDM2 Hostless Capture",
  12013. 0, 0, 0, 0),
  12014. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  12015. "Tertiary TDM3 Hostless Playback",
  12016. 0, 0, 0, 0),
  12017. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  12018. "Tertiary TDM3 Hostless Capture",
  12019. 0, 0, 0, 0),
  12020. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  12021. "Tertiary TDM4 Hostless Playback",
  12022. 0, 0, 0, 0),
  12023. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  12024. "Tertiary TDM4 Hostless Capture",
  12025. 0, 0, 0, 0),
  12026. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  12027. "Tertiary TDM5 Hostless Playback",
  12028. 0, 0, 0, 0),
  12029. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  12030. "Tertiary TDM5 Hostless Capture",
  12031. 0, 0, 0, 0),
  12032. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  12033. "Tertiary TDM6 Hostless Playback",
  12034. 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  12036. "Tertiary TDM6 Hostless Capture",
  12037. 0, 0, 0, 0),
  12038. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  12039. "Tertiary TDM7 Hostless Playback",
  12040. 0, 0, 0, 0),
  12041. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  12042. "Tertiary TDM7 Hostless Capture",
  12043. 0, 0, 0, 0),
  12044. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  12045. "Quaternary TDM0 Hostless Playback",
  12046. 0, 0, 0, 0),
  12047. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  12048. "Quaternary TDM0 Hostless Capture",
  12049. 0, 0, 0, 0),
  12050. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  12051. "Quaternary TDM1 Hostless Playback",
  12052. 0, 0, 0, 0),
  12053. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  12054. "Quaternary TDM1 Hostless Capture",
  12055. 0, 0, 0, 0),
  12056. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  12057. "Quaternary TDM2 Hostless Playback",
  12058. 0, 0, 0, 0),
  12059. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  12060. "Quaternary TDM2 Hostless Capture",
  12061. 0, 0, 0, 0),
  12062. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  12063. "Quaternary TDM3 Hostless Playback",
  12064. 0, 0, 0, 0),
  12065. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  12066. "Quaternary TDM3 Hostless Capture",
  12067. 0, 0, 0, 0),
  12068. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  12069. "Quaternary TDM4 Hostless Playback",
  12070. 0, 0, 0, 0),
  12071. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  12072. "Quaternary TDM4 Hostless Capture",
  12073. 0, 0, 0, 0),
  12074. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  12075. "Quaternary TDM5 Hostless Playback",
  12076. 0, 0, 0, 0),
  12077. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  12078. "Quaternary TDM5 Hostless Capture",
  12079. 0, 0, 0, 0),
  12080. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  12081. "Quaternary TDM6 Hostless Playback",
  12082. 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  12084. "Quaternary TDM6 Hostless Capture",
  12085. 0, 0, 0, 0),
  12086. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  12087. "Quaternary TDM7 Hostless Playback",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  12090. "Quaternary TDM7 Hostless Capture",
  12091. 0, 0, 0, 0),
  12092. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  12093. "Quinary TDM0 Hostless Playback",
  12094. 0, 0, 0, 0),
  12095. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  12096. "Quinary TDM0 Hostless Capture",
  12097. 0, 0, 0, 0),
  12098. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  12099. "Quinary TDM1 Hostless Playback",
  12100. 0, 0, 0, 0),
  12101. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  12102. "Quinary TDM1 Hostless Capture",
  12103. 0, 0, 0, 0),
  12104. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  12105. "Quinary TDM2 Hostless Playback",
  12106. 0, 0, 0, 0),
  12107. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  12108. "Quinary TDM2 Hostless Capture",
  12109. 0, 0, 0, 0),
  12110. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  12111. "Quinary TDM3 Hostless Playback",
  12112. 0, 0, 0, 0),
  12113. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  12114. "Quinary TDM3 Hostless Capture",
  12115. 0, 0, 0, 0),
  12116. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  12117. "Quinary TDM4 Hostless Playback",
  12118. 0, 0, 0, 0),
  12119. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  12120. "Quinary TDM4 Hostless Capture",
  12121. 0, 0, 0, 0),
  12122. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  12123. "Quinary TDM5 Hostless Playback",
  12124. 0, 0, 0, 0),
  12125. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  12126. "Quinary TDM5 Hostless Capture",
  12127. 0, 0, 0, 0),
  12128. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  12129. "Quinary TDM6 Hostless Playback",
  12130. 0, 0, 0, 0),
  12131. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  12132. "Quinary TDM6 Hostless Capture",
  12133. 0, 0, 0, 0),
  12134. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  12135. "Quinary TDM7 Hostless Playback",
  12136. 0, 0, 0, 0),
  12137. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  12138. "Quinary TDM7 Hostless Capture",
  12139. 0, 0, 0, 0),
  12140. /* LSM */
  12141. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  12142. 0, 0, 0, 0),
  12143. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  12144. 0, 0, 0, 0),
  12145. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  12146. 0, 0, 0, 0),
  12147. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  12148. 0, 0, 0, 0),
  12149. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  12150. 0, 0, 0, 0),
  12151. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  12152. 0, 0, 0, 0),
  12153. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  12154. 0, 0, 0, 0),
  12155. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  12156. 0, 0, 0, 0),
  12157. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  12158. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  12159. /* Backend AIF */
  12160. /* Stream name equals to backend dai link stream name */
  12161. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  12162. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  12163. 0, 0, 0, 0),
  12164. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  12166. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  12168. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  12170. 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  12172. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  12173. 0, 0, 0, 0),
  12174. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  12175. 0, 0, 0, 0),
  12176. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  12177. 0, 0, 0, 0),
  12178. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  12179. "Secondary MI2S Playback SD1",
  12180. 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12182. 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12184. 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  12186. 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  12188. 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  12190. 0, 0, 0, 0),
  12191. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12192. 0, 0, 0, 0),
  12193. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  12194. 0, 0, 0, 0),
  12195. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12196. 0, 0, 0, 0),
  12197. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12199. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12200. 0, 0, 0, 0),
  12201. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12202. 0, 0, 0, 0),
  12203. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12204. 0, 0, 0, 0),
  12205. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  12206. 0, 0, 0, 0),
  12207. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12208. 0, 0, 0, 0),
  12209. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12210. 0, 0, 0, 0),
  12211. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12212. 0, 0, 0, 0),
  12213. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12214. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12215. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12216. 0, 0, 0, 0),
  12217. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12218. 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12220. 0, 0, 0, 0),
  12221. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12222. 0, 0, 0, 0),
  12223. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12224. 0, 0, 0, 0),
  12225. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12226. 0, 0, 0, 0),
  12227. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12228. 0, 0, 0, 0),
  12229. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12230. 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12232. 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12234. 0, 0, 0, 0),
  12235. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12236. 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12238. 0, 0, 0, 0),
  12239. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12240. 0, 0, 0, 0),
  12241. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12242. 0, 0, 0, 0),
  12243. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12244. 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12246. 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12248. 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12250. 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12252. 0, 0, 0, 0),
  12253. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12254. 0, 0, 0, 0),
  12255. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12256. 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12258. 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12260. 0, 0, 0, 0),
  12261. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12262. 0, 0, 0, 0),
  12263. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12264. 0, 0, 0, 0),
  12265. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12266. 0, 0, 0, 0),
  12267. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12268. 0, 0, 0, 0),
  12269. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12270. 0, 0, 0, 0),
  12271. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12272. 0, 0, 0, 0),
  12273. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12274. 0, 0, 0, 0),
  12275. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12276. 0, 0, 0, 0),
  12277. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12278. 0, 0, 0, 0),
  12279. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12280. 0, 0, 0, 0),
  12281. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12282. 0, 0, 0, 0),
  12283. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12284. 0, 0, 0, 0),
  12285. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12286. 0, 0, 0, 0),
  12287. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12288. 0, 0, 0, 0),
  12289. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12290. 0, 0, 0, 0),
  12291. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12292. 0, 0, 0, 0),
  12293. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12294. 0, 0, 0, 0),
  12295. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12296. 0, 0, 0, 0),
  12297. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12298. 0, 0, 0, 0),
  12299. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12300. 0, 0, 0, 0),
  12301. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12302. 0, 0, 0, 0),
  12303. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12304. 0, 0, 0, 0),
  12305. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12306. 0, 0, 0, 0),
  12307. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12308. 0, 0, 0, 0),
  12309. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12310. 0, 0, 0, 0),
  12311. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12312. 0, 0, 0, 0),
  12313. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12314. 0, 0, 0, 0),
  12315. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12316. 0, 0, 0, 0),
  12317. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12318. 0, 0, 0, 0),
  12319. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12320. 0, 0, 0, 0),
  12321. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12322. 0, 0, 0, 0),
  12323. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12324. 0, 0, 0, 0),
  12325. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12326. 0, 0, 0, 0),
  12327. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12328. 0, 0, 0, 0),
  12329. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12330. 0, 0, 0, 0),
  12331. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12332. 0, 0, 0, 0),
  12333. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12334. 0, 0, 0, 0),
  12335. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12336. 0, 0, 0, 0),
  12337. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12338. 0, 0, 0, 0),
  12339. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12340. 0, 0, 0, 0),
  12341. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12342. 0, 0, 0, 0),
  12343. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12344. 0, 0, 0, 0),
  12345. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12346. 0, 0, 0, 0),
  12347. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12348. 0, 0, 0, 0),
  12349. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12350. 0, 0, 0, 0),
  12351. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12352. 0, 0, 0, 0),
  12353. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12354. 0, 0, 0, 0),
  12355. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12356. 0, 0, 0, 0),
  12357. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12358. 0, 0, 0, 0),
  12359. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12360. 0, 0, 0, 0),
  12361. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12362. 0, 0, 0, 0),
  12363. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12364. 0, 0, 0, 0),
  12365. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12366. 0, 0, 0, 0),
  12367. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12368. 0, 0, 0, 0),
  12369. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12370. 0, 0, 0, 0),
  12371. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12372. 0, 0, 0, 0),
  12373. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12374. 0, 0, 0, 0),
  12375. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12376. 0, 0, 0, 0),
  12377. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12378. 0, 0, 0, 0),
  12379. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12380. 0, 0, 0, 0),
  12381. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12382. 0, 0, 0, 0),
  12383. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12384. 0, 0, 0, 0),
  12385. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12386. 0, 0, 0, 0),
  12387. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12388. 0, 0, 0, 0),
  12389. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12390. 0, 0, 0, 0),
  12391. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12392. 0, 0, 0, 0),
  12393. /* incall */
  12394. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12395. 0, 0, 0, 0),
  12396. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12397. 0, 0, 0, 0),
  12398. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12399. 0, 0, 0, 0),
  12400. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12401. 0, 0, 0, 0),
  12402. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12403. 0, 0, 0, 0),
  12404. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12405. 0, 0, 0, 0),
  12406. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12407. 0, 0, 0, 0),
  12408. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12409. 0, 0, 0, 0),
  12410. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12411. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12412. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12413. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12414. 0, 0, 0, 0),
  12415. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12416. 0, 0, 0, 0),
  12417. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12418. 0, 0, 0, 0),
  12419. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12420. 0, 0, 0, 0),
  12421. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12422. 0, 0, 0, 0),
  12423. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12424. 0, 0, 0, 0),
  12425. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12426. 0, 0, 0, 0),
  12427. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12428. 0, 0, 0, 0),
  12429. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12430. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12431. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12432. 0, 0, 0, 0),
  12433. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12434. 0, 0, 0, 0),
  12435. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12436. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12437. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12438. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12439. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12440. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12441. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12442. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12443. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12444. /* In- call recording */
  12445. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12446. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12447. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12448. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12449. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12450. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12451. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12452. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12453. /* Switch Definitions */
  12454. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12455. &slim_fm_switch_mixer_controls),
  12456. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12457. &slim1_fm_switch_mixer_controls),
  12458. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12459. &slim3_fm_switch_mixer_controls),
  12460. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12461. &slim4_fm_switch_mixer_controls),
  12462. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12463. &slim6_fm_switch_mixer_controls),
  12464. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12465. &pcm_rx_switch_mixer_controls),
  12466. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12467. &int0_mi2s_rx_switch_mixer_controls),
  12468. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12469. &int4_mi2s_rx_switch_mixer_controls),
  12470. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12471. &pri_mi2s_rx_switch_mixer_controls),
  12472. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12473. &sec_mi2s_rx_switch_mixer_controls),
  12474. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12475. &tert_mi2s_rx_switch_mixer_controls),
  12476. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12477. &quat_mi2s_rx_switch_mixer_controls),
  12478. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12479. &quin_mi2s_rx_switch_mixer_controls),
  12480. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12481. &hfp_pri_aux_switch_mixer_controls),
  12482. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12483. &hfp_aux_switch_mixer_controls),
  12484. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12485. &hfp_int_switch_mixer_controls),
  12486. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12487. &hfp_slim7_switch_mixer_controls),
  12488. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12489. &usb_switch_mixer_controls),
  12490. /* Mixer definitions */
  12491. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12492. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12493. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12494. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12495. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12496. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12497. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12498. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12499. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12500. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12501. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12502. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12503. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12504. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12505. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12506. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12507. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12508. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12509. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12510. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12511. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12512. quaternary_mi2s_rx_mixer_controls,
  12513. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12514. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12515. tertiary_mi2s_rx_mixer_controls,
  12516. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12517. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12518. secondary_mi2s_rx_mixer_controls,
  12519. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12520. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12521. secondary_mi2s_rx2_mixer_controls,
  12522. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12523. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12524. primary_mi2s_rx_mixer_controls,
  12525. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12526. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12527. int0_mi2s_rx_mixer_controls,
  12528. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12529. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12530. int4_mi2s_rx_mixer_controls,
  12531. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12532. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12533. quinary_mi2s_rx_mixer_controls,
  12534. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12535. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12536. pri_tdm_rx_0_mixer_controls,
  12537. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12538. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12539. pri_tdm_rx_1_mixer_controls,
  12540. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12541. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12542. pri_tdm_rx_2_mixer_controls,
  12543. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12544. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12545. pri_tdm_rx_3_mixer_controls,
  12546. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12547. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12548. pri_tdm_tx_0_mixer_controls,
  12549. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12550. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12551. sec_tdm_rx_0_mixer_controls,
  12552. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12553. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12554. sec_tdm_rx_1_mixer_controls,
  12555. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12556. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12557. sec_tdm_rx_2_mixer_controls,
  12558. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12559. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12560. sec_tdm_rx_3_mixer_controls,
  12561. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12562. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12563. sec_tdm_tx_0_mixer_controls,
  12564. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12565. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12566. tert_tdm_rx_0_mixer_controls,
  12567. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12568. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12569. tert_tdm_tx_0_mixer_controls,
  12570. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12571. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12572. tert_tdm_rx_1_mixer_controls,
  12573. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12574. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12575. tert_tdm_rx_2_mixer_controls,
  12576. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12577. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12578. tert_tdm_rx_3_mixer_controls,
  12579. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12580. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12581. tert_tdm_rx_4_mixer_controls,
  12582. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12583. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12584. quat_tdm_rx_0_mixer_controls,
  12585. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12586. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12587. quat_tdm_tx_0_mixer_controls,
  12588. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12589. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12590. quat_tdm_rx_1_mixer_controls,
  12591. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12592. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12593. quat_tdm_rx_2_mixer_controls,
  12594. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12595. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12596. quat_tdm_rx_3_mixer_controls,
  12597. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12598. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12599. quin_tdm_rx_0_mixer_controls,
  12600. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12601. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12602. quin_tdm_tx_0_mixer_controls,
  12603. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12604. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12605. quin_tdm_rx_1_mixer_controls,
  12606. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12607. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12608. quin_tdm_rx_2_mixer_controls,
  12609. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12610. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12611. quin_tdm_rx_3_mixer_controls,
  12612. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12613. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12614. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12615. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12616. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12617. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12618. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12619. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12620. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12621. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12622. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12623. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12624. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12625. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12626. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12627. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12628. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12629. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12630. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12631. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12632. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12633. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12634. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12635. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12636. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12637. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12638. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12639. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12640. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12641. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  12642. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  12643. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  12644. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  12645. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12646. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12647. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12648. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12649. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12650. tert_auxpcm_rx_mixer_controls,
  12651. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12652. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12653. quat_auxpcm_rx_mixer_controls,
  12654. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12655. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12656. quin_auxpcm_rx_mixer_controls,
  12657. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12658. /* incall */
  12659. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12660. incall_music_delivery_mixer_controls,
  12661. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12662. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12663. incall_music2_delivery_mixer_controls,
  12664. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12665. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12666. slimbus_4_rx_mixer_controls,
  12667. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12668. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12669. slimbus_6_rx_mixer_controls,
  12670. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12671. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12672. usb_audio_rx_mixer_controls,
  12673. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12674. /* Voice Mixer */
  12675. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12676. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12677. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12678. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12679. SND_SOC_NOPM, 0, 0,
  12680. sec_i2s_rx_voice_mixer_controls,
  12681. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12682. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12683. SND_SOC_NOPM, 0, 0,
  12684. sec_mi2s_rx_voice_mixer_controls,
  12685. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12686. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12687. SND_SOC_NOPM, 0, 0,
  12688. slimbus_rx_voice_mixer_controls,
  12689. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12690. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12691. SND_SOC_NOPM, 0, 0,
  12692. bt_sco_rx_voice_mixer_controls,
  12693. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12694. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12695. SND_SOC_NOPM, 0, 0,
  12696. afe_pcm_rx_voice_mixer_controls,
  12697. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12698. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12699. SND_SOC_NOPM, 0, 0,
  12700. aux_pcm_rx_voice_mixer_controls,
  12701. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12702. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12703. SND_SOC_NOPM, 0, 0,
  12704. sec_aux_pcm_rx_voice_mixer_controls,
  12705. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12706. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12707. SND_SOC_NOPM, 0, 0,
  12708. tert_aux_pcm_rx_voice_mixer_controls,
  12709. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12710. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12711. SND_SOC_NOPM, 0, 0,
  12712. quat_aux_pcm_rx_voice_mixer_controls,
  12713. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12714. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12715. SND_SOC_NOPM, 0, 0,
  12716. quin_aux_pcm_rx_voice_mixer_controls,
  12717. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12718. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12719. SND_SOC_NOPM, 0, 0,
  12720. hdmi_rx_voice_mixer_controls,
  12721. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12722. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12723. SND_SOC_NOPM, 0, 0,
  12724. mi2s_rx_voice_mixer_controls,
  12725. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12726. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12727. SND_SOC_NOPM, 0, 0,
  12728. pri_mi2s_rx_voice_mixer_controls,
  12729. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12730. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12731. SND_SOC_NOPM, 0, 0,
  12732. int0_mi2s_rx_voice_mixer_controls,
  12733. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12734. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12735. SND_SOC_NOPM, 0, 0,
  12736. int4_mi2s_rx_voice_mixer_controls,
  12737. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12738. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12739. SND_SOC_NOPM, 0, 0,
  12740. tert_mi2s_rx_voice_mixer_controls,
  12741. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12742. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12743. SND_SOC_NOPM, 0, 0,
  12744. quat_mi2s_rx_voice_mixer_controls,
  12745. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12746. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12747. SND_SOC_NOPM, 0, 0,
  12748. quin_mi2s_rx_voice_mixer_controls,
  12749. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12750. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12751. SND_SOC_NOPM, 0, 0,
  12752. quat_tdm_rx_2_voice_mixer_controls,
  12753. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12754. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12755. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12756. ARRAY_SIZE(tx_voip_mixer_controls)),
  12757. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12758. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12759. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12760. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12761. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12762. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12763. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12764. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12765. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12766. int_bt_a2dp_rx_mixer_controls,
  12767. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12768. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12769. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12770. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12771. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12772. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12773. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12774. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12775. tx_voice2_stub_mixer_controls,
  12776. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12777. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12778. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12779. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12780. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12781. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12782. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12783. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12784. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12785. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12786. SND_SOC_NOPM, 0, 0,
  12787. slimbus_6_rx_voice_mixer_controls,
  12788. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12789. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12790. slimbus_7_rx_voice_mixer_controls,
  12791. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12792. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12793. slimbus_8_rx_voice_mixer_controls,
  12794. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12795. /* port mixer */
  12796. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12797. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12798. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12799. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12800. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12801. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12802. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12803. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12804. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12805. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12806. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12807. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12808. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12809. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12810. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12811. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12812. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12813. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12814. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12815. sbus_1_rx_port_mixer_controls,
  12816. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12817. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12818. bt_sco_rx_port_mixer_controls,
  12819. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12820. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12821. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12822. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12823. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12824. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12825. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12826. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12827. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12828. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12829. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12830. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12831. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12832. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12833. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12834. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12835. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12836. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12837. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12838. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12839. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12840. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12841. primary_mi2s_rx_port_mixer_controls,
  12842. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12843. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12844. sec_mi2s_rx_port_mixer_controls,
  12845. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12846. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12847. tert_mi2s_rx_port_mixer_controls,
  12848. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12849. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12850. quat_mi2s_rx_port_mixer_controls,
  12851. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12852. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12853. quin_mi2s_rx_port_mixer_controls,
  12854. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12855. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12856. pri_tdm_rx_0_port_mixer_controls,
  12857. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12858. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12859. pri_tdm_rx_1_port_mixer_controls,
  12860. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12861. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12862. pri_tdm_rx_2_port_mixer_controls,
  12863. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12864. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12865. pri_tdm_rx_3_port_mixer_controls,
  12866. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12867. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12868. sec_tdm_rx_0_port_mixer_controls,
  12869. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12870. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12871. sec_tdm_rx_1_port_mixer_controls,
  12872. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12873. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12874. sec_tdm_rx_2_port_mixer_controls,
  12875. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12876. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12877. sec_tdm_rx_3_port_mixer_controls,
  12878. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12879. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12880. tert_tdm_rx_0_port_mixer_controls,
  12881. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12882. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12883. tert_tdm_rx_1_port_mixer_controls,
  12884. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12885. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12886. tert_tdm_rx_2_port_mixer_controls,
  12887. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12888. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12889. tert_tdm_rx_3_port_mixer_controls,
  12890. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12891. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12892. quat_tdm_rx_0_port_mixer_controls,
  12893. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12894. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12895. quat_tdm_rx_1_port_mixer_controls,
  12896. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12897. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12898. quat_tdm_rx_2_port_mixer_controls,
  12899. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12900. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12901. quat_tdm_rx_3_port_mixer_controls,
  12902. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12903. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12904. quin_tdm_rx_0_port_mixer_controls,
  12905. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12906. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12907. quin_tdm_rx_1_port_mixer_controls,
  12908. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12909. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12910. quin_tdm_rx_2_port_mixer_controls,
  12911. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12912. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12913. quin_tdm_rx_3_port_mixer_controls,
  12914. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12915. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12916. int0_mi2s_rx_port_mixer_controls,
  12917. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12918. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12919. int4_mi2s_rx_port_mixer_controls,
  12920. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12921. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12922. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12923. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12924. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12925. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12926. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12927. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12928. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12929. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12930. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12931. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12932. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12933. /* lsm mixer definitions */
  12934. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12935. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12936. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12937. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12938. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12939. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12940. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12941. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12942. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12943. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12944. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12945. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12946. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12947. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12948. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12949. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12950. /* Virtual Pins to force backends ON atm */
  12951. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12952. SND_SOC_DAPM_INPUT("BE_IN"),
  12953. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12954. &slim0_rx_vi_fb_lch_mux),
  12955. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12956. &slim0_rx_vi_fb_rch_mux),
  12957. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12958. &mi2s_rx_vi_fb_mux),
  12959. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12960. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12961. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12962. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12963. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12964. &voc_ext_ec_mux),
  12965. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12966. &ext_ec_ref_mux_ul1),
  12967. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12968. &ext_ec_ref_mux_ul2),
  12969. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12970. &ext_ec_ref_mux_ul3),
  12971. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12972. &ext_ec_ref_mux_ul4),
  12973. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12974. &ext_ec_ref_mux_ul5),
  12975. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12976. &ext_ec_ref_mux_ul6),
  12977. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12978. &ext_ec_ref_mux_ul8),
  12979. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12980. &ext_ec_ref_mux_ul9),
  12981. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12982. &ext_ec_ref_mux_ul10),
  12983. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12984. &ext_ec_ref_mux_ul16),
  12985. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12986. &ext_ec_ref_mux_ul17),
  12987. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12988. &ext_ec_ref_mux_ul18),
  12989. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12990. &ext_ec_ref_mux_ul19),
  12991. };
  12992. static const struct snd_soc_dapm_route intercon[] = {
  12993. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12994. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12995. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12996. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12997. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12998. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12999. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13000. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13001. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13002. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13003. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13004. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13005. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13006. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13007. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13008. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13009. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  13010. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13011. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13012. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13013. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13014. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13015. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13016. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13017. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13018. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13019. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13020. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13021. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13022. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13023. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13024. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13025. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13026. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  13027. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13028. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13029. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13030. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13031. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13032. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13033. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13034. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13035. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13036. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13037. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13038. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13039. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13040. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13041. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13042. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13043. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  13044. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13045. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13046. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13047. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13048. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13049. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13050. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13051. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13052. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13053. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13054. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13055. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13056. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13057. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13058. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13059. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13060. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  13061. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13062. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13063. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13064. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13065. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13066. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13067. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13068. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13069. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13070. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13071. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13072. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13073. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13074. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13075. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13076. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13077. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  13078. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  13079. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  13080. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  13081. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  13082. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  13083. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  13084. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  13085. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  13086. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  13087. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  13088. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  13089. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  13090. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  13091. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  13092. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  13093. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  13094. {"HDMI", NULL, "HDMI Mixer"},
  13095. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  13096. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  13097. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  13098. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  13099. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  13100. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  13101. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  13102. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  13103. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  13104. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  13105. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  13106. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  13107. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  13108. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  13109. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  13110. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  13111. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  13112. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13113. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13114. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13115. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13116. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13117. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13118. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13119. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13120. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13121. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13122. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13123. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13124. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13125. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13126. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13127. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13128. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  13129. /* incall */
  13130. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  13131. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  13132. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  13133. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  13134. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  13135. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13136. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13137. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13138. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13139. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  13140. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13141. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13142. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13143. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13144. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  13145. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13146. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13147. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13148. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13149. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13150. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13151. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13152. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13153. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13154. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13155. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13156. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13157. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13158. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13159. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13160. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13161. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  13162. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13163. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13164. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13165. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13166. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13167. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13168. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13169. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13170. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13171. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13172. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13173. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13174. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13175. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13176. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13177. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13178. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  13179. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13180. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13181. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13182. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13183. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13184. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13185. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13186. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13187. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13188. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13189. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13190. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13191. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13192. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13193. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13194. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13195. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13196. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13197. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13198. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13199. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13200. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13201. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13202. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13203. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13204. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13205. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13206. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13207. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13208. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13209. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13210. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13211. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13212. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13213. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13214. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13215. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13216. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13217. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13218. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13219. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13220. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13221. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13222. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13223. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13224. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13225. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13226. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13227. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13228. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13229. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13230. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13231. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13232. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13233. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13234. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13235. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13236. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13237. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13238. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13239. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13240. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13241. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13242. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13243. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13244. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13245. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13246. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13247. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13248. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13249. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13250. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13251. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13252. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13253. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13254. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13255. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13256. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13257. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13258. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13259. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13260. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13261. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13262. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13263. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13264. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13265. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13266. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13267. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13268. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13269. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13270. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13271. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13272. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13273. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13274. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13275. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13276. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13277. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13278. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13279. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13280. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13281. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13282. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13283. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13284. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13285. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13286. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13287. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13288. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13289. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13290. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13291. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13292. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13293. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13294. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13295. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13296. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13297. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13298. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13299. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13300. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13301. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13302. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13303. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13304. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13305. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13306. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13307. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13308. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13309. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13310. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13311. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13312. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13313. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13314. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13315. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13316. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13317. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13318. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13319. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13320. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13321. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13322. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13323. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13324. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13325. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13326. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13327. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13328. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13329. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13330. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13331. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13332. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13333. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13334. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13335. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13336. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13337. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13338. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13339. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13340. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13341. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13342. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13343. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13344. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13345. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13346. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13347. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13348. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13349. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13350. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13351. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13352. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13353. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13354. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13355. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13356. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13357. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13358. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13359. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13360. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13361. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13362. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13363. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13364. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13365. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13366. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13367. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13368. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13369. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13370. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13371. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13372. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13373. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13374. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13375. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13376. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13377. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13378. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13379. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13380. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13381. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13382. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13383. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13384. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13385. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13386. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13387. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13388. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13389. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13390. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13391. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13392. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13393. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13394. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13395. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13396. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13397. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13398. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13399. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13400. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13401. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13402. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13403. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13404. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13405. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13406. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13407. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13408. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13409. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13410. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13411. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13412. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13413. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13414. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13415. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13416. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13417. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13418. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13419. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13420. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13421. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13422. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13423. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13424. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13425. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13426. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13427. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13428. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13429. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13430. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13431. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13432. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13433. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13434. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13435. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13436. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13437. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13438. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13439. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13440. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13441. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13442. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13443. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13444. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13445. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13446. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13447. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13448. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13449. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13450. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13451. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13452. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13453. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13454. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13455. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13456. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13457. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13458. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13459. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13460. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13461. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13462. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13463. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13464. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13465. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13466. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13467. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13468. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13469. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13470. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13471. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13472. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13473. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13474. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13475. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13476. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13477. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13478. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13479. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13480. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13481. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13482. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13483. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13484. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13485. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13486. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13487. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13488. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13489. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13490. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13491. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13492. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13493. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13494. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13495. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13496. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13497. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13498. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13499. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13500. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13501. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13502. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13503. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13504. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13505. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13506. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13507. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13508. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13509. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13510. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13511. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13512. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13513. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13514. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13515. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13516. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13517. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13518. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13519. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13520. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13521. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13522. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13523. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13524. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13525. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13526. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13527. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13528. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13529. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13530. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13531. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13532. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13533. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13534. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13535. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13536. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13537. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13538. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13539. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13540. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13541. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13542. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13543. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13544. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13545. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13546. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13547. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13548. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13549. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13550. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13551. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13552. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13553. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13554. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13555. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13556. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13557. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13558. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13559. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13560. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13561. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13562. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13563. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13564. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13565. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13566. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13567. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13568. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13569. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13570. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13571. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13572. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13573. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13574. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13575. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13576. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13577. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13578. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13579. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13580. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13581. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13582. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13583. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13584. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13585. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13586. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13587. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13588. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13589. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13590. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13591. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13592. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13593. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13594. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13595. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13596. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13597. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13598. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13599. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13600. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13601. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13602. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13603. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13604. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13605. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13606. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13607. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13608. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13609. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13610. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13611. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13612. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13613. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13614. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13615. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13616. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13617. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13618. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13619. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13620. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13621. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13622. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13623. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13624. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13625. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13626. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13627. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13628. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13629. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13630. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13631. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13632. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13633. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13634. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13635. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13636. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13637. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13638. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13639. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13640. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13641. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13642. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13643. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13644. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13645. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13646. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13647. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13648. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13649. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13650. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13651. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13652. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13653. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13654. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13655. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13656. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13657. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13658. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13659. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13660. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13661. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13662. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13663. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13664. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13665. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13666. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13667. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13668. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13669. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13670. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13671. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13672. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13673. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13674. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13675. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13676. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13677. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13678. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13679. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13680. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13681. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13682. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13683. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13684. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13685. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13686. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13687. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13688. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13689. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13690. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13691. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13692. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13693. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13694. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13695. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13696. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13697. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13698. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13699. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13700. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13701. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13702. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13703. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13704. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13705. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13706. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13707. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13708. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13709. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13710. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13711. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13712. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13713. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13714. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13715. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13716. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13717. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13718. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13719. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13720. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13721. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13722. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13723. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13724. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13725. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13726. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13727. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13728. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13729. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13730. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13731. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13732. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13733. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13734. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13735. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13736. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13737. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13738. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13739. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13740. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13741. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13742. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13743. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13744. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13745. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13746. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13747. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13748. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13749. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13750. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13751. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13752. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13753. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13754. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13755. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13756. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13757. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13758. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13759. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13760. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13761. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13762. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13763. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13764. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13765. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13766. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13767. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13768. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13769. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13770. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13771. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13772. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13773. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13774. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13775. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13776. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13777. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13778. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13779. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13780. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13781. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13782. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13783. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13784. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13785. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13786. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13787. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13788. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13789. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13790. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13791. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13792. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13793. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13794. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13795. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13796. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13797. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13798. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13799. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13800. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13801. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13802. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13803. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13804. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13805. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13806. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13807. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13808. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13809. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13810. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13811. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13812. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13813. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13814. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13815. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13816. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13817. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13818. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13819. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13820. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13821. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13822. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13823. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13824. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13825. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13826. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13827. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13828. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13829. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13830. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13831. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13832. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13833. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13834. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13835. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13836. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13837. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13838. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13839. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13840. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13841. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13842. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13843. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13844. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13845. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13846. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13847. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13848. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13849. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13850. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13851. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13852. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13853. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13854. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13855. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13856. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13857. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13858. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13859. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13860. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13861. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13862. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13863. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13864. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13865. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13866. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13867. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13868. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13869. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13870. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13871. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13872. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13873. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13874. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13875. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13876. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13877. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13878. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13879. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13880. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13881. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13882. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13883. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13884. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13885. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13886. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13887. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13888. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13889. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13890. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13891. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13892. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13893. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13894. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13895. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13896. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13897. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13898. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13899. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13900. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13901. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13902. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13903. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13904. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13905. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13906. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13907. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13908. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13909. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13910. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13911. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13912. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13913. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13914. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13915. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13916. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13917. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13918. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13919. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13920. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13921. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13922. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13923. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13924. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13925. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13926. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13927. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13928. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13929. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13930. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13931. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13932. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13933. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13934. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13935. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13936. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13937. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13938. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13939. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13940. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13941. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13942. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13943. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13944. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13945. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13946. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13947. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13948. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13949. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13950. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13951. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13952. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13953. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13954. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13955. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13956. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13957. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13958. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13959. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13960. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13961. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13962. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13963. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13964. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13965. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13966. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13967. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13968. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13969. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13970. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13971. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13972. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13973. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13974. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13975. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13976. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13977. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13978. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13979. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13980. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13981. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13982. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13983. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13984. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13985. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13986. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13987. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13988. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13989. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13990. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13991. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13992. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13993. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13994. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13995. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13996. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13997. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13998. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13999. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14000. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14001. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14002. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14003. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14004. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14005. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14006. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14007. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14008. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14009. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14010. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14011. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14012. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14013. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14014. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14015. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14016. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14017. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14018. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14019. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14020. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14021. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14022. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14023. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14024. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14025. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14026. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14027. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14028. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14029. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14030. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14031. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14032. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14033. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14034. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14035. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14036. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14037. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14038. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14039. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14040. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14041. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14042. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14043. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14044. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14045. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14046. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14047. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14048. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14049. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14050. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14051. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14052. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14053. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14054. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14055. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14056. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14057. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14058. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14059. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14060. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14061. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14062. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14063. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14064. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14065. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14066. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14067. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14068. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14069. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14070. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14071. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14072. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14073. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14074. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14075. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14076. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14077. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14078. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14079. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14080. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14081. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14082. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14083. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14084. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14085. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14086. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14087. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14088. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14089. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14090. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14091. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14092. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14093. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14094. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14095. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14096. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14097. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14098. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14099. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14100. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14101. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14102. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14103. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14104. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14105. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14106. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14107. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14108. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14109. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14110. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14111. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14112. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14113. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14114. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14115. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14116. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14117. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14118. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14119. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14120. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14121. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14122. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14123. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  14124. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14125. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14126. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14127. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14128. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14129. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14130. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14131. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14132. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14133. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14134. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14135. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14136. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14137. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14138. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14139. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14140. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14141. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  14142. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14143. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14144. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14145. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14146. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14147. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14148. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14149. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14150. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14151. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14152. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14153. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14154. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14155. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14156. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14157. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14158. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  14159. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14160. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14161. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14162. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14163. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14164. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14165. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14166. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14167. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14168. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14169. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14170. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14171. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14172. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14173. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14174. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14175. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  14176. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14177. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14178. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14179. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14180. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14181. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14182. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14183. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14184. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14185. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14186. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14187. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14188. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14189. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14190. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14191. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14192. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14193. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14194. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14195. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14196. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14197. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14198. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14199. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14200. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14201. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14202. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14203. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14204. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14205. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14206. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14207. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14208. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14209. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14210. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14211. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14212. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14213. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14214. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14215. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14216. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14217. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14218. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14219. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14220. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14221. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14222. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14223. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14224. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14225. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14226. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  14227. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  14228. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14229. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14230. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14231. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14232. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14233. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14234. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14235. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14236. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14237. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14238. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14239. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14240. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14241. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14242. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14243. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14244. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14245. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14246. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14247. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14248. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14249. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14250. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14251. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14252. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14253. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14254. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14255. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14256. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14257. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14258. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14259. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14260. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14261. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14262. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14263. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14264. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14265. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14266. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14267. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14268. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14269. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14270. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14271. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14272. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14273. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14274. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14275. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14276. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14277. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14278. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14279. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14280. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14281. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14282. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14283. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14284. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14285. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14286. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14287. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14288. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14289. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14290. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14291. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14292. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14293. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14294. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14295. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14296. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14297. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14298. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14299. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14300. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14301. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14302. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14303. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14304. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14305. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14306. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14307. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14308. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14309. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14310. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14311. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14312. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14313. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14314. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14315. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14316. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14317. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14318. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14319. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14320. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14321. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14322. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14323. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14324. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14325. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14326. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14327. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14328. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14329. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14330. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14331. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14332. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14333. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14334. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14335. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14336. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14337. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14338. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14339. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14340. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14341. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14342. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14343. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14344. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14345. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14346. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14347. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14348. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14349. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14350. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14351. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14352. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14353. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14354. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14355. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14356. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14357. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14358. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14359. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14360. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14361. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14362. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14363. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14364. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14365. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14366. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14367. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14368. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14369. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14370. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14371. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14372. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14373. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14374. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14375. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14376. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14377. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14378. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14379. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14380. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14381. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14382. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14383. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14384. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14385. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14386. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14387. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14388. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14389. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14390. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14391. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14392. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14393. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14394. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14395. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14396. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14397. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14398. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14399. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14400. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14401. {"HDMI", NULL, "HDMI_DL_HL"},
  14402. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14403. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14404. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14405. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14406. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14407. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14408. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14409. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14410. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14411. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14412. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14413. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14414. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14415. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14416. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14417. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14418. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14419. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14420. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14421. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14422. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14423. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14424. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14425. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14426. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14427. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14428. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14429. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14430. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14431. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14432. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14433. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14434. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14435. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14436. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14437. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14438. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14439. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14440. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14441. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14442. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14443. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14444. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14445. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14446. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14447. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14448. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14449. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14450. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14451. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14452. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14453. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14454. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14455. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14456. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14457. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14458. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14459. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14460. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14461. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14462. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14463. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14464. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14465. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14466. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14467. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14468. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14469. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14470. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14471. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14472. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14473. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14474. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14475. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14476. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14477. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14478. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14479. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14480. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14481. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14482. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14483. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14484. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14485. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14486. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14487. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14488. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14489. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14490. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14491. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14492. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14493. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14494. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14495. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14496. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14497. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14498. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14499. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14500. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14501. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14502. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14503. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14504. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14505. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14506. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14507. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14508. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14509. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14510. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14511. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14512. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14513. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14514. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14515. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14516. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14517. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14518. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14519. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14520. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14521. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14522. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14523. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14524. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14525. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14526. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14527. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14528. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14529. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14530. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14531. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14532. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14533. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14534. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14535. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14536. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14537. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14538. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14539. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14540. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14541. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14542. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14543. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14544. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14545. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14546. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  14547. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  14548. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14549. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14550. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14551. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14552. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14553. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14554. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14555. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14556. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14557. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14558. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14559. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14560. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14561. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14562. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14563. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14564. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14565. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14566. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14567. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14568. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14569. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14570. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14571. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14572. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14573. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14574. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14575. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14576. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14577. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14578. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14579. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14580. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14581. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14582. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14583. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14584. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14585. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14586. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14587. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14588. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14589. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14590. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14591. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14592. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14593. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14594. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14595. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14596. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14597. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14598. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14599. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14600. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14601. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14602. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14603. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14604. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14605. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14606. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14607. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14608. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14609. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14610. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14611. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14612. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14613. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14614. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14615. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14616. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14617. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14618. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14619. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14620. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14621. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14622. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14623. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14624. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14625. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14626. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14627. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14628. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14629. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14630. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14631. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14632. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14633. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14634. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14635. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14636. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14637. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14638. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14639. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14640. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14641. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14642. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14643. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14644. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14645. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14646. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14647. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14648. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14649. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14650. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14651. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14652. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14653. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14654. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14655. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14656. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14657. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14658. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14659. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14660. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14661. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14662. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14663. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14664. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14665. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14666. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14667. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14668. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14669. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14670. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14671. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14672. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14673. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14674. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14675. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14676. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14677. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14678. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14679. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14680. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14681. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14682. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14683. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14684. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14685. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14686. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14687. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14688. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14689. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14690. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14691. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14692. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14693. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14694. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14695. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14696. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14697. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14698. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14699. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14700. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14701. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14702. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14703. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14704. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14705. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14706. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14707. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14708. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14709. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14710. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14711. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  14712. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14713. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  14714. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14715. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14716. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14717. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14718. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14719. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14720. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14721. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14722. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14723. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14724. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14725. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14726. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14727. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14728. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14729. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14730. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14731. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14732. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14733. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14734. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14735. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14736. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14737. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14738. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14739. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14740. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14741. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14742. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14743. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14744. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14745. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14746. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14747. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14748. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14749. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14750. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14751. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14752. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14753. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14754. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14755. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14756. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14757. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14758. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14759. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14760. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14761. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14762. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14763. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14764. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14765. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14766. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14767. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14768. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14769. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14770. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14771. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14772. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14773. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14774. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14775. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14776. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14777. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14778. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14779. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14780. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14781. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14782. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14783. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14784. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14785. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14786. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14787. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14788. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14789. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14790. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14791. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14792. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14793. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14794. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14795. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14796. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14797. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14798. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14799. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14800. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14801. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14802. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14803. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14804. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14805. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14806. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14807. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14808. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14809. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14810. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14811. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14812. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14813. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14814. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14815. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14816. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14817. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14818. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14819. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14820. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14821. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14822. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14823. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14824. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14825. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14826. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14827. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14828. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14829. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14830. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14831. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14832. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14833. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14834. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14835. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14836. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14837. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14838. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14839. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14840. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14841. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14842. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14843. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14844. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14845. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14846. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14847. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14848. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14849. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14850. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14851. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14852. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14853. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14854. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14855. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14856. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14857. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14858. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14859. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14860. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14861. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14862. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14863. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14864. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14865. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14866. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14867. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14868. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14869. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14870. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14871. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14872. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14873. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14874. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14875. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14876. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14877. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14878. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14879. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14880. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14881. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14882. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14883. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14884. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14885. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14886. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14887. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14888. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14889. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14890. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14891. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14892. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14893. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14894. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14895. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14896. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14897. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14898. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14899. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14900. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14901. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14902. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14903. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14904. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14905. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14906. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14907. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14908. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14909. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14910. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14911. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14912. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14913. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14914. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14915. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14916. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14917. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14918. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14919. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14920. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14921. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14922. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14923. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14924. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14925. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14926. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14927. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14928. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14929. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14930. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14931. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14932. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14933. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14934. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14935. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14936. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14937. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14938. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14939. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14940. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14941. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14942. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14943. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14944. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14945. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14946. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14947. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14948. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14949. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14950. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14951. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14952. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14953. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14954. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14955. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14956. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14957. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14958. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14959. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14960. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14961. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14962. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14963. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14964. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14965. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14966. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14967. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14968. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14969. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14970. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14971. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14972. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14973. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14974. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14975. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14976. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14977. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14978. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14979. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14980. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14981. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14982. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14983. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14984. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14985. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14986. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14987. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14988. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14989. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14990. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14991. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14992. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14993. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14994. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14995. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14996. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14997. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14998. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14999. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15000. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15001. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15002. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15003. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15004. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15005. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15006. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15007. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15008. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15009. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15010. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15011. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15012. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15013. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  15014. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15015. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15016. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15017. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15018. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15019. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15020. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15021. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15022. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15023. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15024. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15025. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15026. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15027. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15028. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15029. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15030. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15031. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15032. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15033. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15034. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  15035. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15036. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15037. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15038. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15039. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15040. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15041. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15042. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15043. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15044. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15045. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15046. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15047. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15048. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15049. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15050. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15051. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15052. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15053. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15054. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15055. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  15056. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15057. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15058. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15059. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15060. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15061. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15062. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15063. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15064. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15065. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15066. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15067. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15068. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15069. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15070. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15071. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15072. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15073. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15074. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15075. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15076. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  15077. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15078. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15079. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15080. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15081. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15082. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15083. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15084. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15085. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15086. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15087. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15088. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15089. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15090. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15091. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15092. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15093. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15094. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15095. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15096. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15097. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  15098. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15099. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15100. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15101. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15102. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15103. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15104. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15105. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15106. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15107. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15108. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15109. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15110. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15111. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15112. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15113. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15114. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15115. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15116. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15117. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15118. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  15119. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15120. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15121. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15122. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15123. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15124. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15125. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15126. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15127. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15128. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15129. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15130. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15131. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15132. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15133. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15134. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15135. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15136. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15137. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15138. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15139. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  15140. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15141. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15142. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15143. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15144. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15145. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15146. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15147. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15148. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15149. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15150. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15151. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15152. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15153. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15154. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15155. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15156. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15157. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15158. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15159. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15160. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  15161. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15162. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15163. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15164. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15165. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15166. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15167. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15168. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15169. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15170. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15171. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15172. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15173. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15174. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15175. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15176. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15177. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15178. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15179. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15180. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15181. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  15182. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15183. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15184. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15185. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15186. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15187. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15188. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15189. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15190. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15191. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15192. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15193. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15194. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15195. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15196. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15197. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15198. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15199. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15200. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15201. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15202. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  15203. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15204. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15205. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15206. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15207. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15208. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15209. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15210. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15211. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15212. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15213. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  15214. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15215. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15216. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15217. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15218. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15219. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15220. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15221. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15222. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15223. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15224. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15225. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15226. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15227. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15228. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15229. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15230. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15231. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15232. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15233. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15234. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15235. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15236. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15237. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15238. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15239. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15240. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15241. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15242. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15243. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15244. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15245. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15246. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15247. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15248. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15249. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15250. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15251. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15252. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15253. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15254. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15255. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15256. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15257. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15258. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15259. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15260. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15261. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15262. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15263. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15264. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15265. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15266. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15267. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15268. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15269. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15270. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15271. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15272. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15273. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15274. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15275. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15276. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15277. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15278. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15279. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15280. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15281. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15282. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15283. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15284. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15285. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15286. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15287. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15288. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15289. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15290. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15291. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15292. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15293. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15294. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15295. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15296. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15297. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15298. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15299. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15300. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15301. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15302. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15303. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15304. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15305. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15306. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15307. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15308. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15309. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15310. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15311. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15312. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15313. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15314. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15315. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15316. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15317. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15318. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15319. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15320. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15321. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15322. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15323. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15324. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15325. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15326. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15327. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15328. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15329. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15330. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15331. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15332. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15333. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15334. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15335. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15336. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15337. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15338. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15339. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15340. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15341. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15342. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15343. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15344. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15345. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15346. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15347. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15348. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15349. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15350. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15351. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15352. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15353. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15354. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15355. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15356. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15357. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15358. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15359. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15360. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15361. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15362. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15363. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15364. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15365. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15366. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15367. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15368. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15369. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15370. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15371. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15372. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15373. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15374. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15375. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15376. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15377. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15378. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15379. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15380. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15381. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15382. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15383. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15384. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15385. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15386. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15387. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15388. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15389. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15390. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15391. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15392. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15393. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15394. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15395. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15396. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15397. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15398. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15399. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15400. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15401. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15402. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15403. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15404. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15405. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15406. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15407. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15408. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15409. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15410. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15411. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15412. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15413. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15414. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15415. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15416. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15417. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15418. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15419. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15420. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15421. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15422. /* Backend Enablement */
  15423. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15424. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15425. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15426. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15427. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15428. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15429. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15430. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15431. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15432. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15433. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15434. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15435. {"BE_OUT", NULL, "HDMI"},
  15436. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15437. {"BE_OUT", NULL, "SPDIF_RX"},
  15438. {"BE_OUT", NULL, "MI2S_RX"},
  15439. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15440. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15441. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15442. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15443. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15444. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15445. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15446. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15447. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  15448. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  15449. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  15450. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15451. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15452. {"BE_OUT", NULL, "INT_FM_RX"},
  15453. {"BE_OUT", NULL, "PCM_RX"},
  15454. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15455. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15456. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15457. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15458. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15459. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15460. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15461. {"BE_OUT", NULL, "INT_FM_RX"},
  15462. {"BE_OUT", NULL, "PCM_RX"},
  15463. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15464. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15465. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15466. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15467. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15468. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15469. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15470. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15471. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15472. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15473. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15474. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15475. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15476. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15477. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15478. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15479. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15480. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15481. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15482. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15483. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15484. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15485. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15486. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15487. {"PRI_I2S_TX", NULL, "BE_IN"},
  15488. {"MI2S_TX", NULL, "BE_IN"},
  15489. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15490. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15491. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15492. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15493. {"INT0_MI2S_TX", NULL, "BE_IN"},
  15494. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15495. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15496. {"INT4_MI2S_TX", NULL, "BE_IN"},
  15497. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15498. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15499. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15500. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15501. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15502. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15503. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15504. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15505. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15506. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15507. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15508. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15509. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15510. {"INT_FM_TX", NULL, "BE_IN"},
  15511. {"PCM_TX", NULL, "BE_IN"},
  15512. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15513. {"BE_OUT", NULL, "STUB_RX"},
  15514. {"STUB_TX", NULL, "BE_IN"},
  15515. {"STUB_1_TX", NULL, "BE_IN"},
  15516. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15517. {"AUX_PCM_TX", NULL, "BE_IN"},
  15518. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15519. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15520. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15521. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15522. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15523. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15524. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15525. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15526. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15527. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15528. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15529. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15530. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15531. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15532. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15533. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15534. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15535. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15536. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15537. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15538. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15539. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15540. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15541. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15542. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15543. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15544. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15545. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15546. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15547. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15548. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15549. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15550. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15551. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15552. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15553. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15554. };
  15555. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15556. struct snd_pcm_hw_params *params)
  15557. {
  15558. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15559. unsigned int be_id = rtd->dai_link->id;
  15560. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15561. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15562. return -EINVAL;
  15563. }
  15564. mutex_lock(&routing_lock);
  15565. msm_bedais[be_id].sample_rate = params_rate(params);
  15566. msm_bedais[be_id].channel = params_channels(params);
  15567. msm_bedais[be_id].format = params_format(params);
  15568. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15569. __func__, msm_bedais[be_id].sample_rate,
  15570. msm_bedais[be_id].format, be_id);
  15571. mutex_unlock(&routing_lock);
  15572. return 0;
  15573. }
  15574. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15575. {
  15576. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15577. unsigned int be_id = rtd->dai_link->id;
  15578. int i, session_type, path_type, topology;
  15579. struct msm_pcm_routing_bdai_data *bedai;
  15580. struct msm_pcm_routing_fdai_data *fdai;
  15581. pr_debug("%s: substream->pcm->id:%s\n",
  15582. __func__, substream->pcm->id);
  15583. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15584. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15585. return -EINVAL;
  15586. }
  15587. bedai = &msm_bedais[be_id];
  15588. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15589. 0 : 1);
  15590. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15591. path_type = ADM_PATH_PLAYBACK;
  15592. else
  15593. path_type = ADM_PATH_LIVE_REC;
  15594. mutex_lock(&routing_lock);
  15595. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15596. if (!is_mm_lsm_fe_id(i))
  15597. continue;
  15598. fdai = &fe_dai_map[i][session_type];
  15599. if (fdai->strm_id != INVALID_SESSION) {
  15600. int idx;
  15601. int port_id;
  15602. unsigned long copp =
  15603. session_copp_map[i][session_type][be_id];
  15604. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15605. if (test_bit(idx, &copp))
  15606. break;
  15607. fdai->be_srate = bedai->sample_rate;
  15608. port_id = bedai->port_id;
  15609. topology = adm_get_topology_for_port_copp_idx(port_id,
  15610. idx);
  15611. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15612. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15613. __func__, copp, i, session_type, be_id,
  15614. topology);
  15615. clear_bit(idx,
  15616. &session_copp_map[i][session_type][be_id]);
  15617. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15618. (bedai->passthr_mode[i] == LEGACY_PCM))
  15619. msm_pcm_routing_deinit_pp(bedai->port_id,
  15620. topology);
  15621. }
  15622. }
  15623. bedai->active = 0;
  15624. bedai->sample_rate = 0;
  15625. bedai->channel = 0;
  15626. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15627. if (bedai->passthr_mode[i] != LISTEN)
  15628. bedai->passthr_mode[i] = LEGACY_PCM;
  15629. }
  15630. mutex_unlock(&routing_lock);
  15631. return 0;
  15632. }
  15633. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15634. {
  15635. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15636. unsigned int be_id = rtd->dai_link->id;
  15637. int i, path_type, topology;
  15638. int session_type = INVALID_SESSION;
  15639. struct msm_pcm_routing_bdai_data *bedai;
  15640. u32 channels, sample_rate;
  15641. uint16_t bits_per_sample = 16, voc_path_type;
  15642. struct msm_pcm_routing_fdai_data *fdai;
  15643. u32 session_id;
  15644. struct media_format_info voc_be_media_format;
  15645. bool is_lsm;
  15646. pr_debug("%s: substream->pcm->id:%s\n",
  15647. __func__, substream->pcm->id);
  15648. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15649. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15650. return -EINVAL;
  15651. }
  15652. bedai = &msm_bedais[be_id];
  15653. mutex_lock(&routing_lock);
  15654. if (bedai->active == 1)
  15655. goto done; /* Ignore prepare if back-end already active */
  15656. /* AFE port is not active at this point. However, still
  15657. * go ahead setting active flag under the notion that
  15658. * QDSP6 is able to handle ADM starting before AFE port
  15659. * is started.
  15660. */
  15661. bedai->active = 1;
  15662. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15663. if (!(is_mm_lsm_fe_id(i) &&
  15664. route_check_fe_id_adm_support(i)))
  15665. continue;
  15666. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15667. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15668. path_type = ADM_PATH_COMPRESSED_RX;
  15669. else
  15670. path_type = ADM_PATH_PLAYBACK;
  15671. session_type = SESSION_TYPE_RX;
  15672. } else {
  15673. path_type = ADM_PATH_LIVE_REC;
  15674. session_type = SESSION_TYPE_TX;
  15675. }
  15676. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15677. (i <= MSM_FRONTEND_DAI_LSM8);
  15678. fdai = &fe_dai_map[i][session_type];
  15679. if (fdai->strm_id != INVALID_SESSION) {
  15680. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15681. if (session_type == SESSION_TYPE_TX &&
  15682. fdai->be_srate &&
  15683. (fdai->be_srate != bedai->sample_rate)) {
  15684. pr_debug("%s: flush strm %d diff BE rates\n",
  15685. __func__,
  15686. fdai->strm_id);
  15687. if (fdai->event_info.event_func)
  15688. fdai->event_info.event_func(
  15689. MSM_PCM_RT_EVT_BUF_RECFG,
  15690. fdai->event_info.priv_data);
  15691. fdai->be_srate = 0; /* might not need it */
  15692. }
  15693. bits_per_sample = msm_routing_get_bit_width(
  15694. bedai->format);
  15695. app_type =
  15696. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15697. if (app_type && is_lsm) {
  15698. app_type_idx =
  15699. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15700. sample_rate =
  15701. fe_dai_app_type_cfg[i][session_type][be_id]
  15702. .sample_rate;
  15703. bits_per_sample =
  15704. lsm_app_type_cfg[app_type_idx].bit_width;
  15705. } else if (app_type) {
  15706. app_type_idx =
  15707. msm_pcm_routing_get_app_type_idx(app_type);
  15708. sample_rate =
  15709. fe_dai_app_type_cfg[i][session_type]
  15710. [be_id].sample_rate;
  15711. bits_per_sample =
  15712. app_type_cfg[app_type_idx].bit_width;
  15713. } else
  15714. sample_rate = bedai->sample_rate;
  15715. /*
  15716. * check if ADM needs to be configured with different
  15717. * channel mapping than backend
  15718. */
  15719. if (!bedai->adm_override_ch)
  15720. channels = bedai->channel;
  15721. else
  15722. channels = bedai->adm_override_ch;
  15723. acdb_dev_id =
  15724. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15725. topology = msm_routing_get_adm_topology(i, session_type,
  15726. be_id);
  15727. copp_idx = adm_open(bedai->port_id, path_type,
  15728. sample_rate, channels, topology,
  15729. fdai->perf_mode, bits_per_sample,
  15730. app_type, acdb_dev_id);
  15731. if ((copp_idx < 0) ||
  15732. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15733. pr_err("%s: adm open failed\n", __func__);
  15734. mutex_unlock(&routing_lock);
  15735. return -EINVAL;
  15736. }
  15737. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15738. __func__, i, session_type, be_id);
  15739. set_bit(copp_idx,
  15740. &session_copp_map[i][session_type][be_id]);
  15741. if (msm_is_resample_needed(
  15742. sample_rate,
  15743. bedai->sample_rate))
  15744. adm_copp_mfc_cfg(
  15745. bedai->port_id, copp_idx,
  15746. bedai->sample_rate);
  15747. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15748. fdai->perf_mode,
  15749. bedai->passthr_mode[i]);
  15750. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15751. (bedai->passthr_mode[i] == LEGACY_PCM))
  15752. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15753. topology, channels);
  15754. }
  15755. }
  15756. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15757. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15758. if (session_id) {
  15759. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15760. session_id);
  15761. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15762. voc_path_type = RX_PATH;
  15763. else
  15764. voc_path_type = TX_PATH;
  15765. voc_set_route_flag(session_id, voc_path_type, 1);
  15766. memset(&voc_be_media_format, 0,
  15767. sizeof(struct media_format_info));
  15768. voc_be_media_format.port_id = bedai->port_id;
  15769. voc_be_media_format.num_channels = bedai->channel;
  15770. voc_be_media_format.sample_rate = bedai->sample_rate;
  15771. voc_be_media_format.bits_per_sample = bedai->format;
  15772. /* Defaulting this to 1 for voice call usecases */
  15773. voc_be_media_format.channel_mapping[0] = 1;
  15774. voc_set_device_config(session_id, voc_path_type,
  15775. &voc_be_media_format);
  15776. if (voc_get_route_flag(session_id, RX_PATH) &&
  15777. voc_get_route_flag(session_id, TX_PATH))
  15778. voc_enable_device(session_id);
  15779. }
  15780. }
  15781. /* Check if backend is an external ec ref port and set as needed */
  15782. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15783. memset(&voc_be_media_format, 0,
  15784. sizeof(struct media_format_info));
  15785. /* Get format info for ec ref port from msm_bedais[] */
  15786. voc_be_media_format.port_id = bedai->port_id;
  15787. voc_be_media_format.num_channels = bedai->channel;
  15788. voc_be_media_format.bits_per_sample = bedai->format;
  15789. voc_be_media_format.sample_rate = bedai->sample_rate;
  15790. /* Defaulting this to 1 for voice call usecases */
  15791. voc_be_media_format.channel_mapping[0] = 1;
  15792. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15793. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15794. __func__, voc_be_media_format.port_id,
  15795. voc_be_media_format.num_channels,
  15796. voc_be_media_format.bits_per_sample,
  15797. voc_be_media_format.sample_rate);
  15798. }
  15799. done:
  15800. mutex_unlock(&routing_lock);
  15801. return 0;
  15802. }
  15803. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15804. int fe_id)
  15805. {
  15806. int index, topo_id, be_idx;
  15807. unsigned long pp_config = 0;
  15808. bool mute_on;
  15809. int latency;
  15810. bool compr_passthr_mode = true;
  15811. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15812. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15813. pr_err("%s: Device pp params on invalid port %d\n",
  15814. __func__, port_id);
  15815. return -EINVAL;
  15816. }
  15817. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15818. if (port_id == msm_bedais[be_idx].port_id)
  15819. break;
  15820. }
  15821. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15822. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15823. return -EINVAL;
  15824. }
  15825. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15826. if (msm_bedais_pp_params[index].port_id == port_id)
  15827. break;
  15828. }
  15829. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15830. pr_err("%s: Invalid backend pp params index %d\n",
  15831. __func__, index);
  15832. return -EINVAL;
  15833. }
  15834. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15835. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15836. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15837. __func__, topo_id);
  15838. return -EINVAL;
  15839. }
  15840. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15841. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15842. compr_passthr_mode = false;
  15843. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15844. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15845. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15846. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15847. mute_on = msm_bedais_pp_params[index].mute_on;
  15848. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15849. adm_send_compressed_device_mute(port_id,
  15850. copp_idx,
  15851. mute_on);
  15852. }
  15853. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15854. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15855. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15856. &pp_config);
  15857. latency = msm_bedais_pp_params[index].latency;
  15858. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15859. adm_send_compressed_device_latency(port_id,
  15860. copp_idx,
  15861. latency);
  15862. }
  15863. return 0;
  15864. }
  15865. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15866. struct snd_ctl_elem_value *ucontrol)
  15867. {
  15868. int pp_id = ucontrol->value.integer.value[0];
  15869. int port_id = 0;
  15870. int index, be_idx, i, topo_id, idx;
  15871. bool mute;
  15872. int latency;
  15873. bool compr_passthr_mode = true;
  15874. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15875. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15876. port_id = msm_bedais[be_idx].port_id;
  15877. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15878. break;
  15879. }
  15880. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15881. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15882. return -EINVAL;
  15883. }
  15884. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15885. if (msm_bedais_pp_params[index].port_id == port_id)
  15886. break;
  15887. }
  15888. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15889. pr_err("%s: Invalid pp params backend index %d\n",
  15890. __func__, index);
  15891. return -EINVAL;
  15892. }
  15893. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15894. MSM_FRONTEND_DAI_MM_SIZE) {
  15895. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15896. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15897. compr_passthr_mode = false;
  15898. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15899. unsigned long copp =
  15900. session_copp_map[i]
  15901. [SESSION_TYPE_RX][be_idx];
  15902. if (!test_bit(idx, &copp))
  15903. continue;
  15904. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15905. idx);
  15906. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15907. continue;
  15908. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15909. __func__, port_id, copp, msm_bedais[be_idx].active,
  15910. msm_bedais[be_idx].passthr_mode[i]);
  15911. switch (pp_id) {
  15912. case ADM_PP_PARAM_MUTE_ID:
  15913. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15914. mute = ucontrol->value.integer.value[1] ? true : false;
  15915. msm_bedais_pp_params[index].mute_on = mute;
  15916. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15917. &msm_bedais_pp_params[index].pp_params_config);
  15918. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15919. adm_send_compressed_device_mute(port_id,
  15920. idx, mute);
  15921. break;
  15922. case ADM_PP_PARAM_LATENCY_ID:
  15923. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15924. msm_bedais_pp_params[index].latency =
  15925. ucontrol->value.integer.value[1];
  15926. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15927. &msm_bedais_pp_params[index].pp_params_config);
  15928. latency = msm_bedais_pp_params[index].latency =
  15929. ucontrol->value.integer.value[1];
  15930. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15931. adm_send_compressed_device_latency(port_id,
  15932. idx, latency);
  15933. break;
  15934. default:
  15935. pr_info("%s, device pp param %d not supported\n",
  15936. __func__, pp_id);
  15937. break;
  15938. }
  15939. }
  15940. }
  15941. return 0;
  15942. }
  15943. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15944. struct snd_ctl_elem_value *ucontrol)
  15945. {
  15946. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15947. return 0;
  15948. }
  15949. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15950. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15951. 0, 3, msm_routing_get_device_pp_params_mixer,
  15952. msm_routing_put_device_pp_params_mixer),
  15953. };
  15954. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15955. struct snd_ctl_elem_value *ucontrol)
  15956. {
  15957. ucontrol->value.integer.value[0] =
  15958. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15959. pr_debug("%s: status %ld\n", __func__,
  15960. ucontrol->value.integer.value[0]);
  15961. return 0;
  15962. }
  15963. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15964. struct snd_ctl_elem_value *ucontrol)
  15965. {
  15966. int32_t status = 0;
  15967. status = core_set_license(ucontrol->value.integer.value[0],
  15968. APTX_CLASSIC_DEC_LICENSE_ID);
  15969. pr_debug("%s: status %d\n", __func__, status);
  15970. return status;
  15971. }
  15972. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15973. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15974. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15975. msm_aptx_dec_license_control_put),
  15976. };
  15977. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15978. struct snd_ctl_elem_info *uinfo)
  15979. {
  15980. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15981. uinfo->count = sizeof(be_dai_name_table);
  15982. return 0;
  15983. }
  15984. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15985. unsigned int __user *bytes,
  15986. unsigned int size)
  15987. {
  15988. int i;
  15989. int ret;
  15990. if (size < sizeof(be_dai_name_table)) {
  15991. pr_err("%s: invalid size %d requested, returning\n",
  15992. __func__, size);
  15993. ret = -EINVAL;
  15994. goto done;
  15995. }
  15996. /*
  15997. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15998. * needed when adding new backends
  15999. */
  16000. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16001. be_dai_name_table[i].be_id = i;
  16002. strlcpy(be_dai_name_table[i].be_name,
  16003. msm_bedais[i].name,
  16004. LPASS_BE_NAME_MAX_LENGTH);
  16005. }
  16006. ret = copy_to_user(bytes, &be_dai_name_table,
  16007. sizeof(be_dai_name_table));
  16008. if (ret) {
  16009. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  16010. ret = -EFAULT;
  16011. }
  16012. done:
  16013. return ret;
  16014. }
  16015. static const struct snd_kcontrol_new
  16016. msm_routing_be_dai_name_table_mixer_controls[] = {
  16017. {
  16018. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  16019. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  16020. .info = msm_routing_be_dai_name_table_info,
  16021. .name = "Backend DAI Name Table",
  16022. .tlv.c = snd_soc_bytes_tlv_callback,
  16023. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  16024. .max = sizeof(be_dai_name_table),
  16025. .get = msm_routing_be_dai_name_table_tlv_get,
  16026. }
  16027. },
  16028. };
  16029. static int msm_routing_stereo_channel_reverse_control_get(
  16030. struct snd_kcontrol *kcontrol,
  16031. struct snd_ctl_elem_value *ucontrol)
  16032. {
  16033. ucontrol->value.integer.value[0] = swap_ch;
  16034. pr_debug("%s: Swap channel value: %ld\n", __func__,
  16035. ucontrol->value.integer.value[0]);
  16036. return 0;
  16037. }
  16038. static int msm_routing_stereo_channel_reverse_control_put(
  16039. struct snd_kcontrol *kcontrol,
  16040. struct snd_ctl_elem_value *ucontrol)
  16041. {
  16042. int i, idx, be_index, port_id;
  16043. int ret = 0;
  16044. unsigned long copp;
  16045. pr_debug("%s Swap channel value:%ld\n", __func__,
  16046. ucontrol->value.integer.value[0]);
  16047. swap_ch = ucontrol->value.integer.value[0];
  16048. mutex_lock(&routing_lock);
  16049. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16050. port_id = msm_bedais[be_index].port_id;
  16051. if (!msm_bedais[be_index].active)
  16052. continue;
  16053. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16054. MSM_FRONTEND_DAI_MM_SIZE) {
  16055. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  16056. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16057. if (!test_bit(idx, &copp))
  16058. continue;
  16059. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  16060. __func__, port_id, idx);
  16061. ret = adm_swap_speaker_channels(
  16062. port_id, idx,
  16063. msm_bedais[be_index].sample_rate,
  16064. swap_ch);
  16065. if (ret) {
  16066. pr_err("%s:Swap_channel failed, err=%d\n",
  16067. __func__, ret);
  16068. goto done;
  16069. }
  16070. }
  16071. }
  16072. }
  16073. done:
  16074. mutex_unlock(&routing_lock);
  16075. return ret;
  16076. }
  16077. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  16078. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  16079. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  16080. msm_routing_stereo_channel_reverse_control_put),
  16081. };
  16082. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  16083. .hw_params = msm_pcm_routing_hw_params,
  16084. .close = msm_pcm_routing_close,
  16085. .prepare = msm_pcm_routing_prepare,
  16086. };
  16087. /* Not used but frame seems to require it */
  16088. static int msm_routing_probe(struct snd_soc_platform *platform)
  16089. {
  16090. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  16091. ARRAY_SIZE(msm_qdsp6_widgets));
  16092. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  16093. ARRAY_SIZE(intercon));
  16094. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  16095. snd_soc_add_platform_controls(platform, lsm_controls,
  16096. ARRAY_SIZE(lsm_controls));
  16097. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  16098. ARRAY_SIZE(aanc_slim_0_rx_mux));
  16099. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  16100. ARRAY_SIZE(msm_voc_session_controls));
  16101. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  16102. ARRAY_SIZE(app_type_cfg_controls));
  16103. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  16104. ARRAY_SIZE(lsm_app_type_cfg_controls));
  16105. snd_soc_add_platform_controls(platform, module_cfg_controls,
  16106. ARRAY_SIZE(module_cfg_controls));
  16107. snd_soc_add_platform_controls(platform,
  16108. stereo_to_custom_stereo_controls,
  16109. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  16110. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  16111. ARRAY_SIZE(ec_ref_param_controls));
  16112. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  16113. ARRAY_SIZE(channel_mixer_controls));
  16114. msm_qti_pp_add_controls(platform);
  16115. msm_dts_srs_tm_add_controls(platform);
  16116. msm_dolby_dap_add_controls(platform);
  16117. snd_soc_add_platform_controls(platform,
  16118. use_ds1_or_ds2_controls,
  16119. ARRAY_SIZE(use_ds1_or_ds2_controls));
  16120. snd_soc_add_platform_controls(platform,
  16121. device_pp_params_mixer_controls,
  16122. ARRAY_SIZE(device_pp_params_mixer_controls));
  16123. snd_soc_add_platform_controls(platform,
  16124. msm_routing_be_dai_name_table_mixer_controls,
  16125. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  16126. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  16127. ARRAY_SIZE(msm_source_tracking_controls));
  16128. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  16129. ARRAY_SIZE(adm_channel_config_controls));
  16130. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  16131. ARRAY_SIZE(aptx_dec_license_controls));
  16132. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  16133. ARRAY_SIZE(stereo_channel_reverse_control));
  16134. return 0;
  16135. }
  16136. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  16137. {
  16138. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  16139. }
  16140. void msm_routing_pcm_free(struct snd_pcm *pcm)
  16141. {
  16142. msm_pcm_routing_hwdep_free(pcm);
  16143. }
  16144. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  16145. .ops = &msm_routing_pcm_ops,
  16146. .probe = msm_routing_probe,
  16147. .pcm_new = msm_routing_pcm_new,
  16148. .pcm_free = msm_routing_pcm_free,
  16149. };
  16150. static int msm_routing_pcm_probe(struct platform_device *pdev)
  16151. {
  16152. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  16153. return snd_soc_register_platform(&pdev->dev,
  16154. &msm_soc_routing_platform);
  16155. }
  16156. static int msm_routing_pcm_remove(struct platform_device *pdev)
  16157. {
  16158. snd_soc_unregister_platform(&pdev->dev);
  16159. return 0;
  16160. }
  16161. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  16162. {.compatible = "qcom,msm-pcm-routing"},
  16163. {}
  16164. };
  16165. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  16166. static struct platform_driver msm_routing_pcm_driver = {
  16167. .driver = {
  16168. .name = "msm-pcm-routing",
  16169. .owner = THIS_MODULE,
  16170. .of_match_table = msm_pcm_routing_dt_match,
  16171. },
  16172. .probe = msm_routing_pcm_probe,
  16173. .remove = msm_routing_pcm_remove,
  16174. };
  16175. int msm_routing_check_backend_enabled(int fedai_id)
  16176. {
  16177. int i;
  16178. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  16179. /* bad ID assigned in machine driver */
  16180. pr_err("%s: bad MM ID\n", __func__);
  16181. return 0;
  16182. }
  16183. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16184. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  16185. return msm_bedais[i].active;
  16186. }
  16187. return 0;
  16188. }
  16189. static int get_cal_type_index(int32_t cal_type)
  16190. {
  16191. int ret = -EINVAL;
  16192. switch (cal_type) {
  16193. case ADM_TOPOLOGY_CAL_TYPE:
  16194. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  16195. break;
  16196. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  16197. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  16198. break;
  16199. default:
  16200. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  16201. }
  16202. return ret;
  16203. }
  16204. static int msm_routing_set_cal(int32_t cal_type,
  16205. size_t data_size, void *data)
  16206. {
  16207. int ret = 0;
  16208. int cal_index;
  16209. pr_debug("%s\n", __func__);
  16210. cal_index = get_cal_type_index(cal_type);
  16211. if (cal_index < 0) {
  16212. pr_err("%s: Could not get cal index %d\n",
  16213. __func__, cal_index);
  16214. ret = -EINVAL;
  16215. goto done;
  16216. }
  16217. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  16218. if (ret < 0) {
  16219. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  16220. __func__, ret, cal_type);
  16221. ret = -EINVAL;
  16222. goto done;
  16223. }
  16224. done:
  16225. return ret;
  16226. }
  16227. static void msm_routing_delete_cal_data(void)
  16228. {
  16229. pr_debug("%s\n", __func__);
  16230. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  16231. }
  16232. static int msm_routing_init_cal_data(void)
  16233. {
  16234. int ret = 0;
  16235. struct cal_type_info cal_type_info[] = {
  16236. {{ADM_TOPOLOGY_CAL_TYPE,
  16237. {NULL, NULL, NULL,
  16238. msm_routing_set_cal, NULL, NULL} },
  16239. {NULL, NULL, cal_utils_match_buf_num} },
  16240. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16241. {NULL, NULL, NULL,
  16242. msm_routing_set_cal, NULL, NULL} },
  16243. {NULL, NULL, cal_utils_match_buf_num} },
  16244. };
  16245. pr_debug("%s\n", __func__);
  16246. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16247. &cal_type_info[0]);
  16248. if (ret < 0) {
  16249. pr_err("%s: could not create cal type!\n",
  16250. __func__);
  16251. ret = -EINVAL;
  16252. goto err;
  16253. }
  16254. return ret;
  16255. err:
  16256. msm_routing_delete_cal_data();
  16257. return ret;
  16258. }
  16259. int __init msm_soc_routing_platform_init(void)
  16260. {
  16261. mutex_init(&routing_lock);
  16262. if (msm_routing_init_cal_data())
  16263. pr_err("%s: could not init cal data!\n", __func__);
  16264. afe_set_routing_callback(
  16265. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16266. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16267. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16268. return platform_driver_register(&msm_routing_pcm_driver);
  16269. }
  16270. void msm_soc_routing_platform_exit(void)
  16271. {
  16272. msm_routing_delete_cal_data();
  16273. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16274. mutex_destroy(&routing_lock);
  16275. platform_driver_unregister(&msm_routing_pcm_driver);
  16276. }
  16277. MODULE_DESCRIPTION("MSM routing platform driver");
  16278. MODULE_LICENSE("GPL v2");