msm-pcm-routing-v2.c 710 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004
  1. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data;
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* VOIP */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* AFE_RX */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* AFE_TX */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* VOICE_STUB */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* DTMF_RX */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* QCHAT */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* VOLTE_STUB */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* LSM1 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* LSM2 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* LSM3 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM4 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM5 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM6 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM7 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM8 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* VOICE2_STUB */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* VOICEMMODE1 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* VOICEMMODE2 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. };
  673. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  674. [MSM_BACKEND_DAI_MAX];
  675. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  676. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  677. static struct msm_pcm_stream_app_type_cfg
  678. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  679. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  680. /* The caller of this should aqcuire routing lock */
  681. void msm_pcm_routing_get_bedai_info(int be_idx,
  682. struct msm_pcm_routing_bdai_data *be_dai)
  683. {
  684. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  685. memcpy(be_dai, &msm_bedais[be_idx],
  686. sizeof(struct msm_pcm_routing_bdai_data));
  687. }
  688. /* The caller of this should aqcuire routing lock */
  689. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  690. struct msm_pcm_routing_fdai_data *fe_dai)
  691. {
  692. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  693. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  694. sizeof(struct msm_pcm_routing_fdai_data));
  695. }
  696. void msm_pcm_routing_acquire_lock(void)
  697. {
  698. mutex_lock(&routing_lock);
  699. }
  700. void msm_pcm_routing_release_lock(void)
  701. {
  702. mutex_unlock(&routing_lock);
  703. }
  704. static int msm_pcm_routing_get_app_type_idx(int app_type)
  705. {
  706. int idx;
  707. pr_debug("%s: app_type: %d\n", __func__, app_type);
  708. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  709. if (app_type_cfg[idx].app_type == app_type)
  710. return idx;
  711. }
  712. pr_info("%s: App type not available, fallback to default\n", __func__);
  713. return 0;
  714. }
  715. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  716. {
  717. int idx;
  718. pr_debug("%s: app_type: %d\n", __func__, app_type);
  719. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  720. if (lsm_app_type_cfg[idx].app_type == app_type)
  721. return idx;
  722. }
  723. pr_debug("%s: App type not available, fallback to default\n", __func__);
  724. return 0;
  725. }
  726. static bool is_mm_lsm_fe_id(int fe_id)
  727. {
  728. bool rc = true;
  729. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  730. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  731. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  732. rc = false;
  733. }
  734. return rc;
  735. }
  736. int msm_pcm_routing_reg_stream_app_type_cfg(
  737. int fedai_id, int session_type, int be_id,
  738. struct msm_pcm_stream_app_type_cfg *cfg_data)
  739. {
  740. int ret = 0;
  741. if (cfg_data == NULL) {
  742. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  743. ret = -EINVAL;
  744. goto done;
  745. }
  746. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  747. __func__, fedai_id, session_type, be_id,
  748. cfg_data->app_type, cfg_data->acdb_dev_id,
  749. cfg_data->sample_rate);
  750. if (!is_mm_lsm_fe_id(fedai_id)) {
  751. pr_err("%s: Invalid machine driver ID %d\n",
  752. __func__, fedai_id);
  753. ret = -EINVAL;
  754. goto done;
  755. }
  756. if (session_type != SESSION_TYPE_RX &&
  757. session_type != SESSION_TYPE_TX) {
  758. pr_err("%s: Invalid session type %d\n",
  759. __func__, session_type);
  760. ret = -EINVAL;
  761. goto done;
  762. }
  763. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  764. pr_err("%s: Received out of bounds be_id %d\n",
  765. __func__, be_id);
  766. ret = -EINVAL;
  767. goto done;
  768. }
  769. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  770. /*
  771. * Store the BE ID of the configuration information set as the latest so
  772. * the get mixer control knows what to return.
  773. */
  774. last_be_id_configured[fedai_id][session_type] = be_id;
  775. done:
  776. return ret;
  777. }
  778. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  779. /**
  780. * msm_pcm_routing_get_stream_app_type_cfg
  781. *
  782. * Receives fedai_id, session_type, be_id, and populates app_type,
  783. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  784. * -EINVAL and does not alter passed values.
  785. *
  786. * fedai_id - Passed value, front end ID for which app type config is wanted
  787. * session_type - Passed value, session type for which app type config
  788. * is wanted
  789. * be_id - Returned value, back end device id the app type config data is for
  790. * cfg_data - Returned value, configuration data used by app type config
  791. */
  792. int msm_pcm_routing_get_stream_app_type_cfg(
  793. int fedai_id, int session_type, int *bedai_id,
  794. struct msm_pcm_stream_app_type_cfg *cfg_data)
  795. {
  796. int be_id;
  797. int ret = 0;
  798. if (bedai_id == NULL) {
  799. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  800. ret = -EINVAL;
  801. goto done;
  802. } else if (cfg_data == NULL) {
  803. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  804. ret = -EINVAL;
  805. goto done;
  806. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  807. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  808. ret = -EINVAL;
  809. goto done;
  810. } else if (session_type != SESSION_TYPE_RX &&
  811. session_type != SESSION_TYPE_TX) {
  812. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  813. ret = -EINVAL;
  814. goto done;
  815. }
  816. be_id = last_be_id_configured[fedai_id][session_type];
  817. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  818. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  819. ret = -EINVAL;
  820. goto done;
  821. }
  822. *bedai_id = be_id;
  823. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  824. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  825. __func__, fedai_id, session_type, *bedai_id,
  826. cfg_data->app_type, cfg_data->acdb_dev_id,
  827. cfg_data->sample_rate);
  828. done:
  829. return ret;
  830. }
  831. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  832. static struct cal_block_data *msm_routing_find_topology_by_path(int path)
  833. {
  834. struct list_head *ptr, *next;
  835. struct cal_block_data *cal_block = NULL;
  836. pr_debug("%s\n", __func__);
  837. list_for_each_safe(ptr, next,
  838. &cal_data->cal_blocks) {
  839. cal_block = list_entry(ptr,
  840. struct cal_block_data, list);
  841. if (((struct audio_cal_info_adm_top *)cal_block->cal_info)
  842. ->path == path) {
  843. return cal_block;
  844. }
  845. }
  846. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  847. return NULL;
  848. }
  849. static struct cal_block_data *msm_routing_find_topology(int path,
  850. int app_type,
  851. int acdb_id)
  852. {
  853. struct list_head *ptr, *next;
  854. struct cal_block_data *cal_block = NULL;
  855. struct audio_cal_info_adm_top *cal_info;
  856. pr_debug("%s\n", __func__);
  857. list_for_each_safe(ptr, next,
  858. &cal_data->cal_blocks) {
  859. cal_block = list_entry(ptr,
  860. struct cal_block_data, list);
  861. cal_info = (struct audio_cal_info_adm_top *)
  862. cal_block->cal_info;
  863. if ((cal_info->path == path) &&
  864. (cal_info->app_type == app_type) &&
  865. (cal_info->acdb_id == acdb_id)) {
  866. return cal_block;
  867. }
  868. }
  869. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  870. __func__, path, app_type, acdb_id);
  871. return msm_routing_find_topology_by_path(path);
  872. }
  873. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  874. int be_id)
  875. {
  876. int topology = NULL_COPP_TOPOLOGY;
  877. struct cal_block_data *cal_block = NULL;
  878. int app_type = 0, acdb_dev_id = 0;
  879. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  880. __func__, fedai_id, session_type, be_id);
  881. if (cal_data == NULL)
  882. goto done;
  883. mutex_lock(&cal_data->lock);
  884. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  885. acdb_dev_id =
  886. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  887. cal_block = msm_routing_find_topology(session_type, app_type,
  888. acdb_dev_id);
  889. if (cal_block == NULL)
  890. goto unlock;
  891. topology = ((struct audio_cal_info_adm_top *)
  892. cal_block->cal_info)->topology;
  893. unlock:
  894. mutex_unlock(&cal_data->lock);
  895. done:
  896. pr_debug("%s: Using topology %d\n", __func__, topology);
  897. return topology;
  898. }
  899. static uint8_t is_be_dai_extproc(int be_dai)
  900. {
  901. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  902. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  903. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  904. return 1;
  905. else
  906. return 0;
  907. }
  908. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  909. int path_type, int perf_mode,
  910. uint32_t passthr_mode)
  911. {
  912. int i, port_type, j, num_copps = 0;
  913. struct route_payload payload;
  914. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  915. path_type == ADM_PATH_COMPRESSED_RX) ?
  916. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  917. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  918. if (!is_be_dai_extproc(i) &&
  919. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  920. (msm_bedais[i].active) &&
  921. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  922. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  923. unsigned long copp =
  924. session_copp_map[fedai_id][sess_type][i];
  925. if (test_bit(j, &copp)) {
  926. payload.port_id[num_copps] =
  927. msm_bedais[i].port_id;
  928. payload.copp_idx[num_copps] = j;
  929. payload.app_type[num_copps] =
  930. fe_dai_app_type_cfg
  931. [fedai_id][sess_type][i]
  932. .app_type;
  933. payload.acdb_dev_id[num_copps] =
  934. fe_dai_app_type_cfg
  935. [fedai_id][sess_type][i]
  936. .acdb_dev_id;
  937. payload.sample_rate[num_copps] =
  938. fe_dai_app_type_cfg
  939. [fedai_id][sess_type][i]
  940. .sample_rate;
  941. num_copps++;
  942. }
  943. }
  944. }
  945. }
  946. if (num_copps) {
  947. payload.num_copps = num_copps;
  948. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  949. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  950. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  951. }
  952. }
  953. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  954. int stream_type)
  955. {
  956. int i, session_type, path_type, port_type;
  957. u32 mode = 0;
  958. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  959. /* bad ID assigned in machine driver */
  960. pr_err("%s: bad MM ID\n", __func__);
  961. return;
  962. }
  963. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  964. session_type = SESSION_TYPE_RX;
  965. path_type = ADM_PATH_PLAYBACK;
  966. port_type = MSM_AFE_PORT_TYPE_RX;
  967. } else {
  968. session_type = SESSION_TYPE_TX;
  969. path_type = ADM_PATH_LIVE_REC;
  970. port_type = MSM_AFE_PORT_TYPE_TX;
  971. }
  972. mutex_lock(&routing_lock);
  973. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  974. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  975. if (!is_be_dai_extproc(i) &&
  976. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  977. (msm_bedais[i].active) &&
  978. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  979. mode = afe_get_port_type(msm_bedais[i].port_id);
  980. adm_connect_afe_port(mode, dspst_id,
  981. msm_bedais[i].port_id);
  982. break;
  983. }
  984. }
  985. mutex_unlock(&routing_lock);
  986. }
  987. static bool route_check_fe_id_adm_support(int fe_id)
  988. {
  989. bool rc = true;
  990. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  991. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  992. /* fe id is listen while port is set to afe */
  993. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  994. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  995. __func__, fe_id, lsm_port_index);
  996. rc = false;
  997. }
  998. }
  999. return rc;
  1000. }
  1001. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1002. int dspst_id, int stream_type,
  1003. uint32_t passthr_mode)
  1004. {
  1005. int i, j, session_type, path_type, port_type, topology;
  1006. int num_copps = 0;
  1007. struct route_payload payload;
  1008. u32 channels, sample_rate;
  1009. u16 bit_width = 16;
  1010. bool is_lsm;
  1011. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1012. __func__, fe_id, perf_mode, dspst_id,
  1013. stream_type, passthr_mode);
  1014. if (!is_mm_lsm_fe_id(fe_id)) {
  1015. /* bad ID assigned in machine driver */
  1016. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1017. return -EINVAL;
  1018. }
  1019. if (!route_check_fe_id_adm_support(fe_id)) {
  1020. /* ignore adm open if not supported for fe_id */
  1021. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1022. return 0;
  1023. }
  1024. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1025. session_type = SESSION_TYPE_RX;
  1026. if (passthr_mode != LEGACY_PCM)
  1027. path_type = ADM_PATH_COMPRESSED_RX;
  1028. else
  1029. path_type = ADM_PATH_PLAYBACK;
  1030. port_type = MSM_AFE_PORT_TYPE_RX;
  1031. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1032. session_type = SESSION_TYPE_TX;
  1033. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1034. path_type = ADM_PATH_COMPRESSED_TX;
  1035. else
  1036. path_type = ADM_PATH_LIVE_REC;
  1037. port_type = MSM_AFE_PORT_TYPE_TX;
  1038. } else {
  1039. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1040. return -EINVAL;
  1041. }
  1042. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1043. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1044. mutex_lock(&routing_lock);
  1045. payload.num_copps = 0; /* only RX needs to use payload */
  1046. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1047. /* re-enable EQ if active */
  1048. msm_qti_pp_send_eq_values(fe_id);
  1049. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1050. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1051. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1052. if (!is_be_dai_extproc(i) &&
  1053. (afe_get_port_type(msm_bedais[i].port_id) ==
  1054. port_type) &&
  1055. (msm_bedais[i].active) &&
  1056. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1057. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1058. /*
  1059. * check if ADM needs to be configured with different
  1060. * channel mapping than backend
  1061. */
  1062. if (!msm_bedais[i].adm_override_ch)
  1063. channels = msm_bedais[i].channel;
  1064. else
  1065. channels = msm_bedais[i].adm_override_ch;
  1066. bit_width = msm_routing_get_bit_width(
  1067. msm_bedais[i].format);
  1068. app_type =
  1069. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1070. if (app_type && is_lsm) {
  1071. app_type_idx =
  1072. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1073. sample_rate =
  1074. fe_dai_app_type_cfg[fe_id][session_type][i]
  1075. .sample_rate;
  1076. bit_width =
  1077. lsm_app_type_cfg[app_type_idx].bit_width;
  1078. } else if (app_type) {
  1079. app_type_idx =
  1080. msm_pcm_routing_get_app_type_idx(
  1081. app_type);
  1082. sample_rate =
  1083. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1084. bit_width =
  1085. app_type_cfg[app_type_idx].bit_width;
  1086. } else {
  1087. sample_rate = msm_bedais[i].sample_rate;
  1088. }
  1089. acdb_dev_id =
  1090. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1091. topology = msm_routing_get_adm_topology(fe_id,
  1092. session_type,
  1093. i);
  1094. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1095. || (passthr_mode ==
  1096. COMPRESSED_PASSTHROUGH_GEN))
  1097. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1098. pr_debug("%s: Before adm open topology %d\n", __func__,
  1099. topology);
  1100. copp_idx =
  1101. adm_open(msm_bedais[i].port_id,
  1102. path_type, sample_rate, channels,
  1103. topology, perf_mode, bit_width,
  1104. app_type, acdb_dev_id);
  1105. if ((copp_idx < 0) ||
  1106. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1107. pr_err("%s:adm open failed coppid:%d\n",
  1108. __func__, copp_idx);
  1109. mutex_unlock(&routing_lock);
  1110. return -EINVAL;
  1111. }
  1112. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1113. __func__, fe_id, session_type, i);
  1114. set_bit(copp_idx,
  1115. &session_copp_map[fe_id][session_type][i]);
  1116. if (msm_is_resample_needed(
  1117. sample_rate,
  1118. msm_bedais[i].sample_rate))
  1119. adm_copp_mfc_cfg(
  1120. msm_bedais[i].port_id, copp_idx,
  1121. msm_bedais[i].sample_rate);
  1122. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1123. unsigned long copp =
  1124. session_copp_map[fe_id][session_type][i];
  1125. if (test_bit(j, &copp)) {
  1126. payload.port_id[num_copps] =
  1127. msm_bedais[i].port_id;
  1128. payload.copp_idx[num_copps] = j;
  1129. payload.app_type[num_copps] =
  1130. fe_dai_app_type_cfg
  1131. [fe_id][session_type][i]
  1132. .app_type;
  1133. payload.acdb_dev_id[num_copps] =
  1134. fe_dai_app_type_cfg
  1135. [fe_id][session_type][i]
  1136. .acdb_dev_id;
  1137. payload.sample_rate[num_copps] =
  1138. fe_dai_app_type_cfg
  1139. [fe_id][session_type][i]
  1140. .sample_rate;
  1141. num_copps++;
  1142. }
  1143. }
  1144. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1145. && passthr_mode !=
  1146. COMPRESSED_PASSTHROUGH_GEN) {
  1147. msm_routing_send_device_pp_params(
  1148. msm_bedais[i].port_id,
  1149. copp_idx, fe_id);
  1150. }
  1151. }
  1152. }
  1153. if (num_copps) {
  1154. payload.num_copps = num_copps;
  1155. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1156. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1157. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1158. }
  1159. mutex_unlock(&routing_lock);
  1160. return 0;
  1161. }
  1162. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1163. {
  1164. u32 session_id;
  1165. switch (val) {
  1166. case MSM_FRONTEND_DAI_QCHAT:
  1167. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1168. break;
  1169. case MSM_FRONTEND_DAI_VOIP:
  1170. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1171. break;
  1172. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1173. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1174. break;
  1175. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1176. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1177. break;
  1178. default:
  1179. session_id = 0;
  1180. }
  1181. pr_debug("%s session_id 0x%x", __func__, session_id);
  1182. return session_id;
  1183. }
  1184. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1185. int dspst_id, int stream_type)
  1186. {
  1187. int copp_idx = 0;
  1188. int sess_type = 0;
  1189. int i = 0, j = 0, be_id;
  1190. int ret = 0;
  1191. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1192. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1193. return 0;
  1194. }
  1195. if (!(channel_mixer[fe_id].enable)) {
  1196. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1197. __func__, fe_id);
  1198. return 0;
  1199. }
  1200. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1201. sess_type = SESSION_TYPE_RX;
  1202. else
  1203. sess_type = SESSION_TYPE_TX;
  1204. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1205. ++i) {
  1206. be_id = channel_input[fe_id][i] - 1;
  1207. channel_mixer[fe_id].input_channels[i] =
  1208. msm_bedais[be_id].channel;
  1209. if ((msm_bedais[be_id].active) &&
  1210. test_bit(fe_id,
  1211. &msm_bedais[be_id].fe_sessions[0])) {
  1212. unsigned long copp =
  1213. session_copp_map[fe_id][sess_type][be_id];
  1214. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1215. if (test_bit(j, &copp)) {
  1216. copp_idx = j;
  1217. break;
  1218. }
  1219. }
  1220. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1221. __func__,
  1222. fe_id, be_id, msm_bedais[be_id].channel,
  1223. copp_idx);
  1224. ret = adm_programable_channel_mixer(
  1225. msm_bedais[be_id].port_id,
  1226. copp_idx, dspst_id, sess_type,
  1227. channel_mixer + fe_id, i);
  1228. }
  1229. }
  1230. return ret;
  1231. }
  1232. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1233. int dspst_id, int stream_type)
  1234. {
  1235. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1236. struct route_payload payload;
  1237. u32 channels, sample_rate;
  1238. uint16_t bits_per_sample = 16;
  1239. uint32_t passthr_mode = LEGACY_PCM;
  1240. int ret = 0;
  1241. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1242. /* bad ID assigned in machine driver */
  1243. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1244. return -EINVAL;
  1245. }
  1246. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1247. session_type = SESSION_TYPE_RX;
  1248. path_type = ADM_PATH_PLAYBACK;
  1249. port_type = MSM_AFE_PORT_TYPE_RX;
  1250. } else {
  1251. session_type = SESSION_TYPE_TX;
  1252. path_type = ADM_PATH_LIVE_REC;
  1253. port_type = MSM_AFE_PORT_TYPE_TX;
  1254. }
  1255. mutex_lock(&routing_lock);
  1256. payload.num_copps = 0; /* only RX needs to use payload */
  1257. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1258. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1259. /* re-enable EQ if active */
  1260. msm_qti_pp_send_eq_values(fedai_id);
  1261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1262. if (!is_be_dai_extproc(i) &&
  1263. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1264. (msm_bedais[i].active) &&
  1265. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1266. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1267. /*
  1268. * check if ADM needs to be configured with different
  1269. * channel mapping than backend
  1270. */
  1271. if (!msm_bedais[i].adm_override_ch)
  1272. channels = msm_bedais[i].channel;
  1273. else
  1274. channels = msm_bedais[i].adm_override_ch;
  1275. msm_bedais[i].passthr_mode[fedai_id] =
  1276. LEGACY_PCM;
  1277. bits_per_sample = msm_routing_get_bit_width(
  1278. msm_bedais[i].format);
  1279. app_type =
  1280. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1281. if (app_type) {
  1282. app_type_idx =
  1283. msm_pcm_routing_get_app_type_idx(app_type);
  1284. sample_rate =
  1285. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1286. .sample_rate;
  1287. bits_per_sample =
  1288. app_type_cfg[app_type_idx].bit_width;
  1289. } else
  1290. sample_rate = msm_bedais[i].sample_rate;
  1291. acdb_dev_id =
  1292. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1293. .acdb_dev_id;
  1294. topology = msm_routing_get_adm_topology(fedai_id,
  1295. session_type,
  1296. i);
  1297. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1298. sample_rate, channels, topology,
  1299. perf_mode, bits_per_sample,
  1300. app_type, acdb_dev_id);
  1301. if ((copp_idx < 0) ||
  1302. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1303. pr_err("%s: adm open failed copp_idx:%d\n",
  1304. __func__, copp_idx);
  1305. mutex_unlock(&routing_lock);
  1306. return -EINVAL;
  1307. }
  1308. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1309. __func__, fedai_id, session_type, i);
  1310. set_bit(copp_idx,
  1311. &session_copp_map[fedai_id][session_type][i]);
  1312. if (msm_is_resample_needed(
  1313. sample_rate,
  1314. msm_bedais[i].sample_rate))
  1315. adm_copp_mfc_cfg(
  1316. msm_bedais[i].port_id, copp_idx,
  1317. msm_bedais[i].sample_rate);
  1318. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1319. unsigned long copp =
  1320. session_copp_map[fedai_id][session_type][i];
  1321. if (test_bit(j, &copp)) {
  1322. payload.port_id[num_copps] =
  1323. msm_bedais[i].port_id;
  1324. payload.copp_idx[num_copps] = j;
  1325. payload.app_type[num_copps] =
  1326. fe_dai_app_type_cfg
  1327. [fedai_id][session_type]
  1328. [i].app_type;
  1329. payload.acdb_dev_id[num_copps] =
  1330. fe_dai_app_type_cfg
  1331. [fedai_id][session_type]
  1332. [i].acdb_dev_id;
  1333. payload.sample_rate[num_copps] =
  1334. fe_dai_app_type_cfg
  1335. [fedai_id][session_type]
  1336. [i].sample_rate;
  1337. num_copps++;
  1338. }
  1339. }
  1340. if ((perf_mode == LEGACY_PCM_MODE) &&
  1341. (msm_bedais[i].passthr_mode[fedai_id] ==
  1342. LEGACY_PCM))
  1343. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1344. copp_idx, topology,
  1345. channels);
  1346. }
  1347. }
  1348. if (num_copps) {
  1349. payload.num_copps = num_copps;
  1350. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1351. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1352. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1353. }
  1354. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1355. dspst_id, stream_type);
  1356. mutex_unlock(&routing_lock);
  1357. return ret;
  1358. }
  1359. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1360. int dspst_id, int stream_type,
  1361. struct msm_pcm_routing_evt event_info)
  1362. {
  1363. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1364. stream_type)) {
  1365. pr_err("%s: failed to reg phy stream\n", __func__);
  1366. return -EINVAL;
  1367. }
  1368. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1369. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1370. else
  1371. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1372. return 0;
  1373. }
  1374. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1375. {
  1376. int i, port_type, session_type, path_type, topology;
  1377. struct msm_pcm_routing_fdai_data *fdai;
  1378. if (!is_mm_lsm_fe_id(fedai_id)) {
  1379. /* bad ID assigned in machine driver */
  1380. pr_err("%s: bad MM ID\n", __func__);
  1381. return;
  1382. }
  1383. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1384. port_type = MSM_AFE_PORT_TYPE_RX;
  1385. session_type = SESSION_TYPE_RX;
  1386. path_type = ADM_PATH_PLAYBACK;
  1387. } else {
  1388. port_type = MSM_AFE_PORT_TYPE_TX;
  1389. session_type = SESSION_TYPE_TX;
  1390. path_type = ADM_PATH_LIVE_REC;
  1391. }
  1392. mutex_lock(&routing_lock);
  1393. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1394. if (!is_be_dai_extproc(i) &&
  1395. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1396. (msm_bedais[i].active) &&
  1397. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1398. int idx;
  1399. unsigned long copp =
  1400. session_copp_map[fedai_id][session_type][i];
  1401. fdai = &fe_dai_map[fedai_id][session_type];
  1402. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1403. if (test_bit(idx, &copp))
  1404. break;
  1405. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1406. pr_debug("%s: copp idx is invalid, exiting\n",
  1407. __func__);
  1408. continue;
  1409. }
  1410. topology = adm_get_topology_for_port_copp_idx(
  1411. msm_bedais[i].port_id, idx);
  1412. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1413. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1414. __func__, copp, fedai_id, session_type, i);
  1415. clear_bit(idx,
  1416. &session_copp_map[fedai_id][session_type][i]);
  1417. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1418. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1419. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1420. (msm_bedais[i].passthr_mode[fedai_id] ==
  1421. LEGACY_PCM))
  1422. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1423. topology);
  1424. }
  1425. }
  1426. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1427. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1428. mutex_unlock(&routing_lock);
  1429. }
  1430. /* Check if FE/BE route is set */
  1431. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1432. {
  1433. bool rc = false;
  1434. if (!is_mm_lsm_fe_id(fe_id)) {
  1435. /* recheck FE ID in the mixer control defined in this file */
  1436. pr_err("%s: bad MM ID\n", __func__);
  1437. return rc;
  1438. }
  1439. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1440. rc = true;
  1441. return rc;
  1442. }
  1443. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1444. {
  1445. int session_type, path_type, topology;
  1446. u32 channels, sample_rate;
  1447. uint16_t bits_per_sample = 16;
  1448. struct msm_pcm_routing_fdai_data *fdai;
  1449. uint32_t passthr_mode;
  1450. bool is_lsm;
  1451. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1452. if (!is_mm_lsm_fe_id(val)) {
  1453. /* recheck FE ID in the mixer control defined in this file */
  1454. pr_err("%s: bad MM ID\n", __func__);
  1455. return;
  1456. }
  1457. if (!route_check_fe_id_adm_support(val)) {
  1458. /* ignore adm open if not supported for fe_id */
  1459. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1460. return;
  1461. }
  1462. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1463. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1464. MSM_AFE_PORT_TYPE_RX) {
  1465. session_type = SESSION_TYPE_RX;
  1466. if (passthr_mode != LEGACY_PCM)
  1467. path_type = ADM_PATH_COMPRESSED_RX;
  1468. else
  1469. path_type = ADM_PATH_PLAYBACK;
  1470. } else {
  1471. session_type = SESSION_TYPE_TX;
  1472. if (passthr_mode != LEGACY_PCM)
  1473. path_type = ADM_PATH_COMPRESSED_TX;
  1474. else
  1475. path_type = ADM_PATH_LIVE_REC;
  1476. }
  1477. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1478. (val <= MSM_FRONTEND_DAI_LSM8);
  1479. mutex_lock(&routing_lock);
  1480. if (set) {
  1481. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1482. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1483. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1484. voc_start_playback(set, msm_bedais[reg].port_id);
  1485. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1486. fdai = &fe_dai_map[val][session_type];
  1487. if (msm_bedais[reg].active && fdai->strm_id !=
  1488. INVALID_SESSION) {
  1489. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1490. /*
  1491. * check if ADM needs to be configured with different
  1492. * channel mapping than backend
  1493. */
  1494. if (!msm_bedais[reg].adm_override_ch)
  1495. channels = msm_bedais[reg].channel;
  1496. else
  1497. channels = msm_bedais[reg].adm_override_ch;
  1498. if (session_type == SESSION_TYPE_TX &&
  1499. fdai->be_srate &&
  1500. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1501. pr_debug("%s: flush strm %d diff BE rates\n",
  1502. __func__, fdai->strm_id);
  1503. if (fdai->event_info.event_func)
  1504. fdai->event_info.event_func(
  1505. MSM_PCM_RT_EVT_BUF_RECFG,
  1506. fdai->event_info.priv_data);
  1507. fdai->be_srate = 0; /* might not need it */
  1508. }
  1509. bits_per_sample = msm_routing_get_bit_width(
  1510. msm_bedais[reg].format);
  1511. app_type =
  1512. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1513. if (app_type && is_lsm) {
  1514. app_type_idx =
  1515. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1516. sample_rate =
  1517. fe_dai_app_type_cfg[val][session_type][reg]
  1518. .sample_rate;
  1519. bits_per_sample =
  1520. lsm_app_type_cfg[app_type_idx].bit_width;
  1521. } else if (app_type) {
  1522. app_type_idx =
  1523. msm_pcm_routing_get_app_type_idx(app_type);
  1524. sample_rate =
  1525. fe_dai_app_type_cfg[val][session_type][reg]
  1526. .sample_rate;
  1527. bits_per_sample =
  1528. app_type_cfg[app_type_idx].bit_width;
  1529. } else
  1530. sample_rate = msm_bedais[reg].sample_rate;
  1531. topology = msm_routing_get_adm_topology(val,
  1532. session_type,
  1533. reg);
  1534. acdb_dev_id =
  1535. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1536. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1537. sample_rate, channels, topology,
  1538. fdai->perf_mode, bits_per_sample,
  1539. app_type, acdb_dev_id);
  1540. if ((copp_idx < 0) ||
  1541. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1542. pr_err("%s: adm open failed\n", __func__);
  1543. mutex_unlock(&routing_lock);
  1544. return;
  1545. }
  1546. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1547. __func__, val, session_type, reg);
  1548. set_bit(copp_idx,
  1549. &session_copp_map[val][session_type][reg]);
  1550. if (msm_is_resample_needed(
  1551. sample_rate,
  1552. msm_bedais[reg].sample_rate))
  1553. adm_copp_mfc_cfg(
  1554. msm_bedais[reg].port_id, copp_idx,
  1555. msm_bedais[reg].sample_rate);
  1556. if (session_type == SESSION_TYPE_RX &&
  1557. fdai->event_info.event_func)
  1558. fdai->event_info.event_func(
  1559. MSM_PCM_RT_EVT_DEVSWITCH,
  1560. fdai->event_info.priv_data);
  1561. msm_pcm_routing_build_matrix(val, session_type,
  1562. path_type,
  1563. fdai->perf_mode,
  1564. passthr_mode);
  1565. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1566. (passthr_mode == LEGACY_PCM))
  1567. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1568. copp_idx, topology,
  1569. channels);
  1570. }
  1571. } else {
  1572. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1573. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1574. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1575. voc_start_playback(set, msm_bedais[reg].port_id);
  1576. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1577. fdai = &fe_dai_map[val][session_type];
  1578. if (msm_bedais[reg].active && fdai->strm_id !=
  1579. INVALID_SESSION) {
  1580. int idx;
  1581. int port_id;
  1582. unsigned long copp =
  1583. session_copp_map[val][session_type][reg];
  1584. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1585. if (test_bit(idx, &copp))
  1586. break;
  1587. port_id = msm_bedais[reg].port_id;
  1588. topology = adm_get_topology_for_port_copp_idx(port_id,
  1589. idx);
  1590. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1591. idx);
  1592. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1593. __func__, copp, val, session_type, reg,
  1594. topology);
  1595. clear_bit(idx,
  1596. &session_copp_map[val][session_type][reg]);
  1597. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1598. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1599. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1600. (passthr_mode == LEGACY_PCM))
  1601. msm_pcm_routing_deinit_pp(
  1602. msm_bedais[reg].port_id,
  1603. topology);
  1604. msm_pcm_routing_build_matrix(val, session_type,
  1605. path_type,
  1606. fdai->perf_mode,
  1607. passthr_mode);
  1608. }
  1609. }
  1610. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1611. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1612. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1613. mutex_unlock(&routing_lock);
  1614. }
  1615. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1616. struct snd_ctl_elem_value *ucontrol)
  1617. {
  1618. struct soc_mixer_control *mc =
  1619. (struct soc_mixer_control *)kcontrol->private_value;
  1620. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1621. ucontrol->value.integer.value[0] = 1;
  1622. else
  1623. ucontrol->value.integer.value[0] = 0;
  1624. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1625. ucontrol->value.integer.value[0]);
  1626. return 0;
  1627. }
  1628. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1629. struct snd_ctl_elem_value *ucontrol)
  1630. {
  1631. struct snd_soc_dapm_widget *widget =
  1632. snd_soc_dapm_kcontrol_widget(kcontrol);
  1633. struct soc_mixer_control *mc =
  1634. (struct soc_mixer_control *)kcontrol->private_value;
  1635. struct snd_soc_dapm_update *update = NULL;
  1636. if (ucontrol->value.integer.value[0] &&
  1637. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1638. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1639. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1640. update);
  1641. } else if (!ucontrol->value.integer.value[0] &&
  1642. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1643. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1644. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1645. update);
  1646. }
  1647. return 1;
  1648. }
  1649. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1650. struct snd_ctl_elem_value *ucontrol)
  1651. {
  1652. struct soc_mixer_control *mc =
  1653. (struct soc_mixer_control *)kcontrol->private_value;
  1654. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1655. ucontrol->value.integer.value[0] = 1;
  1656. else
  1657. ucontrol->value.integer.value[0] = 0;
  1658. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1659. ucontrol->value.integer.value[0]);
  1660. return 0;
  1661. }
  1662. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1663. struct snd_ctl_elem_value *ucontrol)
  1664. {
  1665. struct snd_soc_dapm_widget *widget =
  1666. snd_soc_dapm_kcontrol_widget(kcontrol);
  1667. struct soc_mixer_control *mc =
  1668. (struct soc_mixer_control *)kcontrol->private_value;
  1669. struct snd_soc_dapm_update *update = NULL;
  1670. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1671. ucontrol->value.integer.value[0]);
  1672. if (ucontrol->value.integer.value[0]) {
  1673. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1674. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1675. snd_soc_dapm_mixer_update_power(widget->dapm,
  1676. kcontrol, 1, update);
  1677. } else if (!ucontrol->value.integer.value[0]) {
  1678. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1679. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1680. snd_soc_dapm_mixer_update_power(widget->dapm,
  1681. kcontrol, 0, update);
  1682. }
  1683. return 1;
  1684. }
  1685. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1686. {
  1687. u32 session_id = 0;
  1688. u16 path_type;
  1689. struct media_format_info voc_be_media_format;
  1690. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1691. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1692. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1693. __func__, val, session_id);
  1694. mutex_lock(&routing_lock);
  1695. if (set)
  1696. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1697. else
  1698. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1699. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1700. afe_get_port_type(msm_bedais[reg].port_id) ==
  1701. MSM_AFE_PORT_TYPE_RX) {
  1702. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1703. __func__, set, msm_bedais[reg].port_id);
  1704. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1705. }
  1706. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1707. MSM_AFE_PORT_TYPE_RX)
  1708. path_type = RX_PATH;
  1709. else
  1710. path_type = TX_PATH;
  1711. if (set) {
  1712. if (msm_bedais[reg].active) {
  1713. voc_set_route_flag(session_id, path_type, 1);
  1714. memset(&voc_be_media_format, 0,
  1715. sizeof(struct media_format_info));
  1716. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1717. voc_be_media_format.num_channels =
  1718. msm_bedais[reg].channel;
  1719. voc_be_media_format.sample_rate =
  1720. msm_bedais[reg].sample_rate;
  1721. voc_be_media_format.bits_per_sample =
  1722. msm_bedais[reg].format;
  1723. /* Defaulting this to 1 for voice call usecases */
  1724. voc_be_media_format.channel_mapping[0] = 1;
  1725. voc_set_device_config(session_id, path_type,
  1726. &voc_be_media_format);
  1727. if (voc_get_route_flag(session_id, TX_PATH) &&
  1728. voc_get_route_flag(session_id, RX_PATH))
  1729. voc_enable_device(session_id);
  1730. } else {
  1731. pr_debug("%s BE is not active\n", __func__);
  1732. }
  1733. } else {
  1734. voc_set_route_flag(session_id, path_type, 0);
  1735. voc_disable_device(session_id);
  1736. }
  1737. mutex_unlock(&routing_lock);
  1738. }
  1739. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1740. struct snd_ctl_elem_value *ucontrol)
  1741. {
  1742. struct soc_mixer_control *mc =
  1743. (struct soc_mixer_control *)kcontrol->private_value;
  1744. mutex_lock(&routing_lock);
  1745. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1746. ucontrol->value.integer.value[0] = 1;
  1747. else
  1748. ucontrol->value.integer.value[0] = 0;
  1749. mutex_unlock(&routing_lock);
  1750. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1751. ucontrol->value.integer.value[0]);
  1752. return 0;
  1753. }
  1754. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1755. struct snd_ctl_elem_value *ucontrol)
  1756. {
  1757. struct snd_soc_dapm_widget *widget =
  1758. snd_soc_dapm_kcontrol_widget(kcontrol);
  1759. struct soc_mixer_control *mc =
  1760. (struct soc_mixer_control *)kcontrol->private_value;
  1761. struct snd_soc_dapm_update *update = NULL;
  1762. if (ucontrol->value.integer.value[0]) {
  1763. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1764. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1765. update);
  1766. } else {
  1767. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1768. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1769. update);
  1770. }
  1771. return 1;
  1772. }
  1773. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1774. struct snd_ctl_elem_value *ucontrol)
  1775. {
  1776. struct soc_mixer_control *mc =
  1777. (struct soc_mixer_control *)kcontrol->private_value;
  1778. mutex_lock(&routing_lock);
  1779. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1780. ucontrol->value.integer.value[0] = 1;
  1781. else
  1782. ucontrol->value.integer.value[0] = 0;
  1783. mutex_unlock(&routing_lock);
  1784. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1785. ucontrol->value.integer.value[0]);
  1786. return 0;
  1787. }
  1788. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1789. struct snd_ctl_elem_value *ucontrol)
  1790. {
  1791. struct snd_soc_dapm_widget *widget =
  1792. snd_soc_dapm_kcontrol_widget(kcontrol);
  1793. struct soc_mixer_control *mc =
  1794. (struct soc_mixer_control *)kcontrol->private_value;
  1795. struct snd_soc_dapm_update *update = NULL;
  1796. if (ucontrol->value.integer.value[0]) {
  1797. mutex_lock(&routing_lock);
  1798. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1799. mutex_unlock(&routing_lock);
  1800. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1801. update);
  1802. } else {
  1803. mutex_lock(&routing_lock);
  1804. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1805. mutex_unlock(&routing_lock);
  1806. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1807. update);
  1808. }
  1809. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1810. ucontrol->value.integer.value[0]);
  1811. return 1;
  1812. }
  1813. /*
  1814. * Return the mapping between port ID and backend ID to enable the AFE callback
  1815. * to determine the acdb_dev_id from the port id
  1816. */
  1817. int msm_pcm_get_be_id_from_port_id(int port_id)
  1818. {
  1819. int i;
  1820. int be_id = -EINVAL;
  1821. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1822. if (msm_bedais[i].port_id == port_id) {
  1823. be_id = i;
  1824. break;
  1825. }
  1826. }
  1827. return be_id;
  1828. }
  1829. /*
  1830. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1831. * correct AFE calibration information by comparing the header information.
  1832. */
  1833. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1834. {
  1835. int acdb_id = -EINVAL;
  1836. int i = 0;
  1837. int session;
  1838. int port_type = afe_get_port_type(port_id);
  1839. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1840. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1841. __func__, port_id, be_id, port_type);
  1842. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1843. session = SESSION_TYPE_TX;
  1844. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1845. session = SESSION_TYPE_RX;
  1846. } else {
  1847. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1848. acdb_id = -EINVAL;
  1849. goto exit;
  1850. }
  1851. if (be_id < 0) {
  1852. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1853. goto exit;
  1854. }
  1855. mutex_lock(&routing_lock);
  1856. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1857. MSM_FRONTEND_DAI_MAX);
  1858. if (i < MSM_FRONTEND_DAI_MAX)
  1859. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1860. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1861. __func__, i, session, be_id, acdb_id);
  1862. mutex_unlock(&routing_lock);
  1863. exit:
  1864. return acdb_id;
  1865. }
  1866. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1867. struct snd_ctl_elem_value *ucontrol)
  1868. {
  1869. ucontrol->value.integer.value[0] = fm_switch_enable;
  1870. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1871. ucontrol->value.integer.value[0]);
  1872. return 0;
  1873. }
  1874. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1875. struct snd_ctl_elem_value *ucontrol)
  1876. {
  1877. struct snd_soc_dapm_widget *widget =
  1878. snd_soc_dapm_kcontrol_widget(kcontrol);
  1879. struct snd_soc_dapm_update *update = NULL;
  1880. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1881. ucontrol->value.integer.value[0]);
  1882. if (ucontrol->value.integer.value[0])
  1883. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1884. update);
  1885. else
  1886. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1887. update);
  1888. fm_switch_enable = ucontrol->value.integer.value[0];
  1889. return 1;
  1890. }
  1891. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1892. struct snd_ctl_elem_value *ucontrol)
  1893. {
  1894. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1895. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1896. ucontrol->value.integer.value[0]);
  1897. return 0;
  1898. }
  1899. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1900. struct snd_ctl_elem_value *ucontrol)
  1901. {
  1902. struct snd_soc_dapm_widget *widget =
  1903. snd_soc_dapm_kcontrol_widget(kcontrol);
  1904. struct snd_soc_dapm_update *update = NULL;
  1905. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1906. ucontrol->value.integer.value[0]);
  1907. if (ucontrol->value.integer.value[0])
  1908. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1909. 1, update);
  1910. else
  1911. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1912. 0, update);
  1913. hfp_switch_enable = ucontrol->value.integer.value[0];
  1914. return 1;
  1915. }
  1916. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1917. struct snd_ctl_elem_value *ucontrol)
  1918. {
  1919. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1920. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1921. ucontrol->value.integer.value[0]);
  1922. return 0;
  1923. }
  1924. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1925. struct snd_ctl_elem_value *ucontrol)
  1926. {
  1927. struct snd_soc_dapm_widget *widget =
  1928. snd_soc_dapm_kcontrol_widget(kcontrol);
  1929. struct snd_soc_dapm_update *update = NULL;
  1930. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1931. ucontrol->value.integer.value[0]);
  1932. if (ucontrol->value.integer.value[0])
  1933. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1934. update);
  1935. else
  1936. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1937. update);
  1938. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1939. return 1;
  1940. }
  1941. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1942. struct snd_ctl_elem_value *ucontrol)
  1943. {
  1944. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1945. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1946. ucontrol->value.integer.value[0]);
  1947. return 0;
  1948. }
  1949. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1950. struct snd_ctl_elem_value *ucontrol)
  1951. {
  1952. struct snd_soc_dapm_widget *widget =
  1953. snd_soc_dapm_kcontrol_widget(kcontrol);
  1954. struct snd_soc_dapm_update *update = NULL;
  1955. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1956. ucontrol->value.integer.value[0]);
  1957. if (ucontrol->value.integer.value[0])
  1958. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1959. update);
  1960. else
  1961. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1962. update);
  1963. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1964. return 1;
  1965. }
  1966. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1967. struct snd_ctl_elem_value *ucontrol)
  1968. {
  1969. ucontrol->value.integer.value[0] = usb_switch_enable;
  1970. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1971. ucontrol->value.integer.value[0]);
  1972. return 0;
  1973. }
  1974. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1975. struct snd_ctl_elem_value *ucontrol)
  1976. {
  1977. struct snd_soc_dapm_widget *widget =
  1978. snd_soc_dapm_kcontrol_widget(kcontrol);
  1979. struct snd_soc_dapm_update *update = NULL;
  1980. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1981. ucontrol->value.integer.value[0]);
  1982. if (ucontrol->value.integer.value[0])
  1983. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1984. 1, update);
  1985. else
  1986. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1987. 0, update);
  1988. usb_switch_enable = ucontrol->value.integer.value[0];
  1989. return 1;
  1990. }
  1991. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1992. struct snd_ctl_elem_value *ucontrol)
  1993. {
  1994. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  1995. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  1996. ucontrol->value.integer.value[0]);
  1997. return 0;
  1998. }
  1999. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2000. struct snd_ctl_elem_value *ucontrol)
  2001. {
  2002. struct snd_soc_dapm_widget *widget =
  2003. snd_soc_dapm_kcontrol_widget(kcontrol);
  2004. struct snd_soc_dapm_update *update = NULL;
  2005. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2006. ucontrol->value.integer.value[0]);
  2007. if (ucontrol->value.integer.value[0])
  2008. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2009. update);
  2010. else
  2011. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2012. update);
  2013. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2014. return 1;
  2015. }
  2016. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2017. struct snd_ctl_elem_value *ucontrol)
  2018. {
  2019. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2020. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2021. ucontrol->value.integer.value[0]);
  2022. return 0;
  2023. }
  2024. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2025. struct snd_ctl_elem_value *ucontrol)
  2026. {
  2027. struct snd_soc_dapm_widget *widget =
  2028. snd_soc_dapm_kcontrol_widget(kcontrol);
  2029. struct snd_soc_dapm_update *update = NULL;
  2030. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2031. ucontrol->value.integer.value[0]);
  2032. if (ucontrol->value.integer.value[0])
  2033. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2034. update);
  2035. else
  2036. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2037. update);
  2038. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2039. return 1;
  2040. }
  2041. static int msm_routing_get_tert_mi2s_switch_mixer(
  2042. struct snd_kcontrol *kcontrol,
  2043. struct snd_ctl_elem_value *ucontrol)
  2044. {
  2045. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2046. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2047. ucontrol->value.integer.value[0]);
  2048. return 0;
  2049. }
  2050. static int msm_routing_put_tert_mi2s_switch_mixer(
  2051. struct snd_kcontrol *kcontrol,
  2052. struct snd_ctl_elem_value *ucontrol)
  2053. {
  2054. struct snd_soc_dapm_widget *widget =
  2055. snd_soc_dapm_kcontrol_widget(kcontrol);
  2056. struct snd_soc_dapm_update *update = NULL;
  2057. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2058. ucontrol->value.integer.value[0]);
  2059. if (ucontrol->value.integer.value[0])
  2060. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2061. update);
  2062. else
  2063. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2064. update);
  2065. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2066. return 1;
  2067. }
  2068. static int msm_routing_get_quat_mi2s_switch_mixer(
  2069. struct snd_kcontrol *kcontrol,
  2070. struct snd_ctl_elem_value *ucontrol)
  2071. {
  2072. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2073. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2074. ucontrol->value.integer.value[0]);
  2075. return 0;
  2076. }
  2077. static int msm_routing_put_quat_mi2s_switch_mixer(
  2078. struct snd_kcontrol *kcontrol,
  2079. struct snd_ctl_elem_value *ucontrol)
  2080. {
  2081. struct snd_soc_dapm_widget *widget =
  2082. snd_soc_dapm_kcontrol_widget(kcontrol);
  2083. struct snd_soc_dapm_update *update = NULL;
  2084. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. if (ucontrol->value.integer.value[0])
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2088. update);
  2089. else
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2091. update);
  2092. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2093. return 1;
  2094. }
  2095. static int msm_routing_get_quin_mi2s_switch_mixer(
  2096. struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2100. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2101. ucontrol->value.integer.value[0]);
  2102. return 0;
  2103. }
  2104. static int msm_routing_put_quin_mi2s_switch_mixer(
  2105. struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. struct snd_soc_dapm_widget *widget =
  2109. snd_soc_dapm_kcontrol_widget(kcontrol);
  2110. struct snd_soc_dapm_update *update = NULL;
  2111. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2112. ucontrol->value.integer.value[0]);
  2113. if (ucontrol->value.integer.value[0])
  2114. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2115. update);
  2116. else
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2118. update);
  2119. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2120. return 1;
  2121. }
  2122. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2123. struct snd_ctl_elem_value *ucontrol)
  2124. {
  2125. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2126. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2127. ucontrol->value.integer.value[0]);
  2128. return 0;
  2129. }
  2130. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. struct snd_soc_dapm_widget *widget =
  2134. snd_soc_dapm_kcontrol_widget(kcontrol);
  2135. struct snd_soc_dapm_update *update = NULL;
  2136. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2137. ucontrol->value.integer.value[0]);
  2138. if (ucontrol->value.integer.value[0])
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2140. update);
  2141. else
  2142. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2143. update);
  2144. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2145. return 1;
  2146. }
  2147. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. ucontrol->value.integer.value[0] = lsm_port_index;
  2151. return 0;
  2152. }
  2153. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2154. struct snd_ctl_elem_value *ucontrol)
  2155. {
  2156. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2157. int mux = ucontrol->value.enumerated.item[0];
  2158. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2159. if (mux >= e->items) {
  2160. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2161. return -EINVAL;
  2162. }
  2163. pr_debug("%s: LSM enable %ld\n", __func__,
  2164. ucontrol->value.integer.value[0]);
  2165. switch (ucontrol->value.integer.value[0]) {
  2166. case 1:
  2167. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2168. break;
  2169. case 2:
  2170. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2171. break;
  2172. case 3:
  2173. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2174. break;
  2175. case 4:
  2176. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2177. break;
  2178. case 5:
  2179. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2180. break;
  2181. case 6:
  2182. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2183. break;
  2184. case 7:
  2185. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2186. break;
  2187. case 8:
  2188. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2189. break;
  2190. case 9:
  2191. lsm_port = ADM_LSM_PORT_ID;
  2192. break;
  2193. case 10:
  2194. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2195. break;
  2196. default:
  2197. pr_err("Default lsm port");
  2198. break;
  2199. }
  2200. set_lsm_port(lsm_port);
  2201. lsm_port_index = ucontrol->value.integer.value[0];
  2202. return 0;
  2203. }
  2204. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2205. struct snd_ctl_elem_value *ucontrol)
  2206. {
  2207. int i;
  2208. u16 port_id;
  2209. enum afe_mad_type mad_type;
  2210. pr_debug("%s: enter\n", __func__);
  2211. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2212. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2213. strlen(lsm_port_text[i])))
  2214. break;
  2215. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2216. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2217. return -EINVAL;
  2218. }
  2219. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2220. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2221. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2222. strlen(lsm_port_text[7])))
  2223. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2224. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2225. strlen(lsm_port_text[8])))
  2226. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2227. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2228. strlen(lsm_port_text[10])))
  2229. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2230. mad_type = afe_port_get_mad_type(port_id);
  2231. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2232. mad_type);
  2233. switch (mad_type) {
  2234. case MAD_HW_NONE:
  2235. ucontrol->value.integer.value[0] = MADNONE;
  2236. break;
  2237. case MAD_HW_AUDIO:
  2238. ucontrol->value.integer.value[0] = MADAUDIO;
  2239. break;
  2240. case MAD_HW_BEACON:
  2241. ucontrol->value.integer.value[0] = MADBEACON;
  2242. break;
  2243. case MAD_HW_ULTRASOUND:
  2244. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2245. break;
  2246. case MAD_SW_AUDIO:
  2247. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2248. break;
  2249. default:
  2250. WARN(1, "Unknown\n");
  2251. return -EINVAL;
  2252. }
  2253. return 0;
  2254. }
  2255. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2256. struct snd_ctl_elem_value *ucontrol)
  2257. {
  2258. int i;
  2259. u16 port_id;
  2260. enum afe_mad_type mad_type;
  2261. pr_debug("%s: enter\n", __func__);
  2262. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2263. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2264. strlen(lsm_port_text[i])))
  2265. break;
  2266. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2267. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2268. return -EINVAL;
  2269. }
  2270. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2271. switch (ucontrol->value.integer.value[0]) {
  2272. case MADNONE:
  2273. mad_type = MAD_HW_NONE;
  2274. break;
  2275. case MADAUDIO:
  2276. mad_type = MAD_HW_AUDIO;
  2277. break;
  2278. case MADBEACON:
  2279. mad_type = MAD_HW_BEACON;
  2280. break;
  2281. case MADULTRASOUND:
  2282. mad_type = MAD_HW_ULTRASOUND;
  2283. break;
  2284. case MADSWAUDIO:
  2285. mad_type = MAD_SW_AUDIO;
  2286. break;
  2287. default:
  2288. WARN(1, "Unknown\n");
  2289. return -EINVAL;
  2290. }
  2291. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2292. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2293. strlen(lsm_port_text[7])))
  2294. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2295. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2296. strlen(lsm_port_text[8])))
  2297. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2298. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2299. strlen(lsm_port_text[10])))
  2300. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2301. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2302. mad_type);
  2303. return afe_port_set_mad_type(port_id, mad_type);
  2304. }
  2305. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2306. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2307. adm_override_chs_text);
  2308. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2309. {
  2310. int backend_id;
  2311. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2312. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2313. } else {
  2314. pr_err("%s: unsupported backend id: %s",
  2315. __func__, kcontrol->id.name);
  2316. return -EINVAL;
  2317. }
  2318. return backend_id;
  2319. }
  2320. static int msm_routing_adm_channel_config_get(
  2321. struct snd_kcontrol *kcontrol,
  2322. struct snd_ctl_elem_value *ucontrol)
  2323. {
  2324. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2325. if (backend_id >= 0) {
  2326. mutex_lock(&routing_lock);
  2327. ucontrol->value.integer.value[0] =
  2328. msm_bedais[backend_id].adm_override_ch;
  2329. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2330. ucontrol->value.integer.value[0], backend_id);
  2331. mutex_unlock(&routing_lock);
  2332. }
  2333. return 0;
  2334. }
  2335. static int msm_routing_adm_channel_config_put(
  2336. struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2340. if (backend_id >= 0) {
  2341. mutex_lock(&routing_lock);
  2342. msm_bedais[backend_id].adm_override_ch =
  2343. ucontrol->value.integer.value[0];
  2344. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2345. __func__, backend_id,
  2346. msm_bedais[backend_id].adm_override_ch);
  2347. mutex_unlock(&routing_lock);
  2348. }
  2349. return 0;
  2350. }
  2351. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2352. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2353. msm_routing_adm_channel_config_get,
  2354. msm_routing_adm_channel_config_put),
  2355. };
  2356. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. mutex_lock(&routing_lock);
  2360. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2361. mutex_unlock(&routing_lock);
  2362. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2363. ucontrol->value.integer.value[0]);
  2364. return 0;
  2365. };
  2366. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2367. struct snd_ctl_elem_value *ucontrol)
  2368. {
  2369. struct aanc_data aanc_info;
  2370. mutex_lock(&routing_lock);
  2371. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2372. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2373. ucontrol->value.integer.value[0]);
  2374. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2375. if (ucontrol->value.integer.value[0] == 0) {
  2376. aanc_info.aanc_active = false;
  2377. aanc_info.aanc_tx_port = 0;
  2378. aanc_info.aanc_rx_port = 0;
  2379. } else {
  2380. aanc_info.aanc_active = true;
  2381. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2382. aanc_info.aanc_tx_port =
  2383. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2384. }
  2385. afe_set_aanc_info(&aanc_info);
  2386. mutex_unlock(&routing_lock);
  2387. return 0;
  2388. };
  2389. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. int idx = 0, shift = 0;
  2393. struct soc_mixer_control *mc =
  2394. (struct soc_mixer_control *)kcontrol->private_value;
  2395. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2396. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2397. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2398. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2399. return -EINVAL;
  2400. }
  2401. if (test_bit(shift,
  2402. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2403. ucontrol->value.integer.value[0] = 1;
  2404. else
  2405. ucontrol->value.integer.value[0] = 0;
  2406. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2407. ucontrol->value.integer.value[0]);
  2408. return 0;
  2409. }
  2410. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. int idx = 0, shift = 0;
  2414. struct soc_mixer_control *mc =
  2415. (struct soc_mixer_control *)kcontrol->private_value;
  2416. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2417. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2418. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2419. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2420. return -EINVAL;
  2421. }
  2422. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2423. __func__, mc->reg, mc->shift,
  2424. ucontrol->value.integer.value[0], idx, shift);
  2425. if (ucontrol->value.integer.value[0]) {
  2426. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2427. msm_bedais[mc->shift].port_id);
  2428. set_bit(shift,
  2429. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2430. } else {
  2431. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2432. msm_bedais[mc->shift].port_id);
  2433. clear_bit(shift,
  2434. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2435. }
  2436. return 1;
  2437. }
  2438. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2439. struct snd_ctl_elem_value *ucontrol)
  2440. {
  2441. u16 fe_id = 0;
  2442. fe_id = ((struct soc_mixer_control *)
  2443. kcontrol->private_value)->shift;
  2444. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2445. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2446. return -EINVAL;
  2447. }
  2448. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2449. return 0;
  2450. }
  2451. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2452. struct snd_ctl_elem_value *ucontrol)
  2453. {
  2454. u16 fe_id = 0;
  2455. fe_id = ((struct soc_mixer_control *)
  2456. kcontrol->private_value)->shift;
  2457. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2458. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2459. return -EINVAL;
  2460. }
  2461. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2462. return 1;
  2463. }
  2464. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. u16 fe_id = 0;
  2468. fe_id = ((struct soc_multi_mixer_control *)
  2469. kcontrol->private_value)->shift;
  2470. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2471. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2472. return -EINVAL;
  2473. }
  2474. ucontrol->value.integer.value[0] =
  2475. channel_mixer[fe_id].output_channel;
  2476. return 0;
  2477. }
  2478. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2479. struct snd_ctl_elem_value *ucontrol)
  2480. {
  2481. u16 fe_id = 0;
  2482. fe_id = ((struct soc_multi_mixer_control *)
  2483. kcontrol->private_value)->shift;
  2484. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2485. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2486. return -EINVAL;
  2487. }
  2488. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2489. fe_id,
  2490. (unsigned int)(ucontrol->value.integer.value[0]));
  2491. channel_mixer[fe_id].output_channel =
  2492. (unsigned int)(ucontrol->value.integer.value[0]);
  2493. return 1;
  2494. }
  2495. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2496. /* If new backend is added, need update this array */
  2497. static const char *const be_name[] = {
  2498. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2499. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2500. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2501. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2502. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2503. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2504. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2505. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2506. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2507. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2508. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2509. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2510. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2511. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2512. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2513. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2514. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2515. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2516. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2517. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2518. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2519. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2520. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2521. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2522. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2523. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2524. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2525. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2526. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2527. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2528. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2529. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2530. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2531. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2532. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2533. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2534. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2535. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2536. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2537. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2538. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2539. };
  2540. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2541. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2542. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2543. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2544. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2545. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2546. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2547. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2548. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2549. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2550. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2551. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2552. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2553. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2554. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2555. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2556. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2557. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2558. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2559. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2560. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2561. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2562. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2563. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2564. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2565. unsigned int channels,
  2566. unsigned int items, const char *const names[])
  2567. {
  2568. if (uinfo->value.enumerated.item >= items)
  2569. uinfo->value.enumerated.item = items - 1;
  2570. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2571. sizeof(uinfo->value.enumerated.name),
  2572. "ALSA: too long item name '%s'\n",
  2573. names[uinfo->value.enumerated.item]);
  2574. strlcpy(uinfo->value.enumerated.name,
  2575. names[uinfo->value.enumerated.item],
  2576. sizeof(uinfo->value.enumerated.name));
  2577. return 0;
  2578. }
  2579. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_info *uinfo)
  2581. {
  2582. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2583. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2584. uinfo->count = 1;
  2585. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2586. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2587. return 0;
  2588. }
  2589. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2590. struct snd_ctl_elem_value *ucontrol)
  2591. {
  2592. u16 fe_id = 0;
  2593. fe_id = ((struct soc_enum *)
  2594. kcontrol->private_value)->shift_l;
  2595. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2596. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2597. return -EINVAL;
  2598. }
  2599. pr_debug("%s: FE %d %s\n", __func__,
  2600. fe_id,
  2601. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2602. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2603. return 0;
  2604. }
  2605. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2606. struct snd_ctl_elem_value *ucontrol)
  2607. {
  2608. u16 fe_id = 0;
  2609. fe_id = ((struct soc_enum *)
  2610. kcontrol->private_value)->shift_l;
  2611. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2612. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2613. return -EINVAL;
  2614. }
  2615. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2616. pr_debug("%s: %s FE %d\n", __func__,
  2617. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2618. fe_id);
  2619. return 0;
  2620. }
  2621. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_info *uinfo)
  2623. {
  2624. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2625. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2626. uinfo->count = 1;
  2627. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2628. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2629. return 0;
  2630. }
  2631. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2632. struct snd_ctl_elem_value *ucontrol)
  2633. {
  2634. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2635. u16 fe_id = 0, in_ch = 0;
  2636. fe_id = e->shift_l;
  2637. in_ch = e->shift_r;
  2638. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2639. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2640. return -EINVAL;
  2641. }
  2642. if (in_ch >= ADM_MAX_CHANNELS) {
  2643. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2644. return -EINVAL;
  2645. }
  2646. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2647. return 1;
  2648. }
  2649. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2650. struct snd_ctl_elem_value *ucontrol)
  2651. {
  2652. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2653. u16 fe_id = 0, in_ch = 0;
  2654. fe_id = e->shift_l;
  2655. in_ch = e->shift_r;
  2656. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2657. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2658. return -EINVAL;
  2659. }
  2660. if (in_ch >= ADM_MAX_CHANNELS) {
  2661. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2662. return -EINVAL;
  2663. }
  2664. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2665. return 1;
  2666. }
  2667. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2668. struct snd_ctl_elem_info *uinfo)
  2669. {
  2670. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2671. uinfo->count = ADM_MAX_CHANNELS;
  2672. uinfo->value.integer.min = 0;
  2673. uinfo->value.integer.max = WEIGHT_0_DB;
  2674. return 0;
  2675. }
  2676. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. u16 fe_id = 0, out_ch = 0;
  2680. int i, weight;
  2681. fe_id = ((struct soc_multi_mixer_control *)
  2682. kcontrol->private_value)->shift;
  2683. out_ch = ((struct soc_multi_mixer_control *)
  2684. kcontrol->private_value)->rshift;
  2685. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2686. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2687. return -EINVAL;
  2688. }
  2689. if (out_ch >= ADM_MAX_CHANNELS) {
  2690. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2691. return -EINVAL;
  2692. }
  2693. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2694. __func__, fe_id,
  2695. ucontrol->value.integer.value[0],
  2696. ucontrol->value.integer.value[1],
  2697. ucontrol->value.integer.value[2],
  2698. ucontrol->value.integer.value[3],
  2699. ucontrol->value.integer.value[4],
  2700. ucontrol->value.integer.value[5],
  2701. ucontrol->value.integer.value[6],
  2702. ucontrol->value.integer.value[7]);
  2703. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2704. weight = ucontrol->value.integer.value[i];
  2705. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2706. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2707. __func__, fe_id, out_ch, i,
  2708. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2709. }
  2710. return 0;
  2711. }
  2712. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2713. struct snd_ctl_elem_value *ucontrol)
  2714. {
  2715. u16 fe_id = 0, out_ch = 0;
  2716. int i;
  2717. fe_id = ((struct soc_multi_mixer_control *)
  2718. kcontrol->private_value)->shift;
  2719. out_ch = ((struct soc_multi_mixer_control *)
  2720. kcontrol->private_value)->rshift;
  2721. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2722. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2723. return -EINVAL;
  2724. }
  2725. if (out_ch >= ADM_MAX_CHANNELS) {
  2726. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2727. return -EINVAL;
  2728. }
  2729. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2730. ucontrol->value.integer.value[i] =
  2731. channel_mixer[fe_id].channel_weight[out_ch][i];
  2732. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2733. __func__, fe_id,
  2734. ucontrol->value.integer.value[0],
  2735. ucontrol->value.integer.value[1],
  2736. ucontrol->value.integer.value[2],
  2737. ucontrol->value.integer.value[3],
  2738. ucontrol->value.integer.value[4],
  2739. ucontrol->value.integer.value[5],
  2740. ucontrol->value.integer.value[6],
  2741. ucontrol->value.integer.value[7]);
  2742. return 0;
  2743. }
  2744. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2745. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2746. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2747. msm_pcm_get_channel_rule_index,
  2748. msm_pcm_put_channel_rule_index),
  2749. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2750. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2751. msm_pcm_get_channel_rule_index,
  2752. msm_pcm_put_channel_rule_index),
  2753. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2754. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2755. msm_pcm_get_channel_rule_index,
  2756. msm_pcm_put_channel_rule_index),
  2757. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2758. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2759. msm_pcm_get_channel_rule_index,
  2760. msm_pcm_put_channel_rule_index),
  2761. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2762. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2763. msm_pcm_get_channel_rule_index,
  2764. msm_pcm_put_channel_rule_index),
  2765. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2766. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2767. msm_pcm_get_channel_rule_index,
  2768. msm_pcm_put_channel_rule_index),
  2769. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2770. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2771. msm_pcm_get_out_chs,
  2772. msm_pcm_put_out_chs),
  2773. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2774. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2775. msm_pcm_get_out_chs,
  2776. msm_pcm_put_out_chs),
  2777. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2778. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2779. msm_pcm_get_out_chs,
  2780. msm_pcm_put_out_chs),
  2781. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2782. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2783. msm_pcm_get_out_chs,
  2784. msm_pcm_put_out_chs),
  2785. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2786. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2787. msm_pcm_get_out_chs,
  2788. msm_pcm_put_out_chs),
  2789. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2790. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2791. msm_pcm_get_out_chs,
  2792. msm_pcm_put_out_chs),
  2793. {
  2794. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2795. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2796. .name = "MultiMedia1 Channel Mixer",
  2797. .info = msm_pcm_channel_mixer_info,
  2798. .get = msm_pcm_channel_mixer_get,
  2799. .put = msm_pcm_channel_mixer_put,
  2800. .private_value = (unsigned long)&(mm1_channel_mux)
  2801. },
  2802. {
  2803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2804. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2805. .name = "MultiMedia2 Channel Mixer",
  2806. .info = msm_pcm_channel_mixer_info,
  2807. .get = msm_pcm_channel_mixer_get,
  2808. .put = msm_pcm_channel_mixer_put,
  2809. .private_value = (unsigned long)&(mm2_channel_mux)
  2810. },
  2811. {
  2812. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2813. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2814. .name = "MultiMedia3 Channel Mixer",
  2815. .info = msm_pcm_channel_mixer_info,
  2816. .get = msm_pcm_channel_mixer_get,
  2817. .put = msm_pcm_channel_mixer_put,
  2818. .private_value = (unsigned long)&(mm3_channel_mux)
  2819. },
  2820. {
  2821. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2822. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2823. .name = "MultiMedia4 Channel Mixer",
  2824. .info = msm_pcm_channel_mixer_info,
  2825. .get = msm_pcm_channel_mixer_get,
  2826. .put = msm_pcm_channel_mixer_put,
  2827. .private_value = (unsigned long)&(mm4_channel_mux)
  2828. },
  2829. {
  2830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2831. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2832. .name = "MultiMedia1 Output Channel1",
  2833. .info = msm_pcm_channel_weight_info,
  2834. .get = msm_pcm_channel_weight_get,
  2835. .put = msm_pcm_channel_weight_put,
  2836. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2837. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2838. },
  2839. {
  2840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2841. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2842. .name = "MultiMedia1 Output Channel2",
  2843. .info = msm_pcm_channel_weight_info,
  2844. .get = msm_pcm_channel_weight_get,
  2845. .put = msm_pcm_channel_weight_put,
  2846. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2847. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2848. },
  2849. {
  2850. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2851. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2852. .name = "MultiMedia1 Output Channel3",
  2853. .info = msm_pcm_channel_weight_info,
  2854. .get = msm_pcm_channel_weight_get,
  2855. .put = msm_pcm_channel_weight_put,
  2856. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2857. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2858. },
  2859. {
  2860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2861. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2862. .name = "MultiMedia1 Output Channel4",
  2863. .info = msm_pcm_channel_weight_info,
  2864. .get = msm_pcm_channel_weight_get,
  2865. .put = msm_pcm_channel_weight_put,
  2866. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2867. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2868. },
  2869. {
  2870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2871. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2872. .name = "MultiMedia1 Output Channel5",
  2873. .info = msm_pcm_channel_weight_info,
  2874. .get = msm_pcm_channel_weight_get,
  2875. .put = msm_pcm_channel_weight_put,
  2876. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2877. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2878. },
  2879. {
  2880. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2881. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2882. .name = "MultiMedia1 Output Channel6",
  2883. .info = msm_pcm_channel_weight_info,
  2884. .get = msm_pcm_channel_weight_get,
  2885. .put = msm_pcm_channel_weight_put,
  2886. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2887. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2888. },
  2889. {
  2890. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2892. .name = "MultiMedia1 Output Channel7",
  2893. .info = msm_pcm_channel_weight_info,
  2894. .get = msm_pcm_channel_weight_get,
  2895. .put = msm_pcm_channel_weight_put,
  2896. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2897. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2898. },
  2899. {
  2900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2901. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2902. .name = "MultiMedia1 Output Channel8",
  2903. .info = msm_pcm_channel_weight_info,
  2904. .get = msm_pcm_channel_weight_get,
  2905. .put = msm_pcm_channel_weight_put,
  2906. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2907. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2908. },
  2909. {
  2910. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2911. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2912. .name = "MultiMedia2 Output Channel1",
  2913. .info = msm_pcm_channel_weight_info,
  2914. .get = msm_pcm_channel_weight_get,
  2915. .put = msm_pcm_channel_weight_put,
  2916. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2917. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2918. },
  2919. {
  2920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2922. .name = "MultiMedia2 Output Channel2",
  2923. .info = msm_pcm_channel_weight_info,
  2924. .get = msm_pcm_channel_weight_get,
  2925. .put = msm_pcm_channel_weight_put,
  2926. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2927. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2928. },
  2929. {
  2930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2931. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2932. .name = "MultiMedia2 Output Channel3",
  2933. .info = msm_pcm_channel_weight_info,
  2934. .get = msm_pcm_channel_weight_get,
  2935. .put = msm_pcm_channel_weight_put,
  2936. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2937. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2938. },
  2939. {
  2940. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2941. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2942. .name = "MultiMedia3 Output Channel1",
  2943. .info = msm_pcm_channel_weight_info,
  2944. .get = msm_pcm_channel_weight_get,
  2945. .put = msm_pcm_channel_weight_put,
  2946. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2947. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2948. },
  2949. {
  2950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2952. .name = "MultiMedia3 Output Channel2",
  2953. .info = msm_pcm_channel_weight_info,
  2954. .get = msm_pcm_channel_weight_get,
  2955. .put = msm_pcm_channel_weight_put,
  2956. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2957. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2958. },
  2959. {
  2960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2961. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2962. .name = "MultiMedia1 Channel1",
  2963. .info = msm_pcm_channel_input_be_info,
  2964. .get = msm_pcm_channel_input_be_get,
  2965. .put = msm_pcm_channel_input_be_put,
  2966. .private_value = (unsigned long)&(mm1_ch1_enum)
  2967. },
  2968. {
  2969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2971. .name = "MultiMedia1 Channel2",
  2972. .info = msm_pcm_channel_input_be_info,
  2973. .get = msm_pcm_channel_input_be_get,
  2974. .put = msm_pcm_channel_input_be_put,
  2975. .private_value = (unsigned long)&(mm1_ch2_enum)
  2976. },
  2977. {
  2978. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2979. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2980. .name = "MultiMedia1 Channel3",
  2981. .info = msm_pcm_channel_input_be_info,
  2982. .get = msm_pcm_channel_input_be_get,
  2983. .put = msm_pcm_channel_input_be_put,
  2984. .private_value = (unsigned long)&(mm1_ch3_enum)
  2985. },
  2986. {
  2987. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2988. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2989. .name = "MultiMedia1 Channel4",
  2990. .info = msm_pcm_channel_input_be_info,
  2991. .get = msm_pcm_channel_input_be_get,
  2992. .put = msm_pcm_channel_input_be_put,
  2993. .private_value = (unsigned long)&(mm1_ch4_enum)
  2994. },
  2995. {
  2996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2998. .name = "MultiMedia1 Channel5",
  2999. .info = msm_pcm_channel_input_be_info,
  3000. .get = msm_pcm_channel_input_be_get,
  3001. .put = msm_pcm_channel_input_be_put,
  3002. .private_value = (unsigned long)&(mm1_ch5_enum)
  3003. },
  3004. {
  3005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3007. .name = "MultiMedia1 Channel6",
  3008. .info = msm_pcm_channel_input_be_info,
  3009. .get = msm_pcm_channel_input_be_get,
  3010. .put = msm_pcm_channel_input_be_put,
  3011. .private_value = (unsigned long)&(mm1_ch6_enum)
  3012. },
  3013. {
  3014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3015. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3016. .name = "MultiMedia1 Channel7",
  3017. .info = msm_pcm_channel_input_be_info,
  3018. .get = msm_pcm_channel_input_be_get,
  3019. .put = msm_pcm_channel_input_be_put,
  3020. .private_value = (unsigned long)&(mm1_ch7_enum)
  3021. },
  3022. {
  3023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3024. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3025. .name = "MultiMedia1 Channel8",
  3026. .info = msm_pcm_channel_input_be_info,
  3027. .get = msm_pcm_channel_input_be_get,
  3028. .put = msm_pcm_channel_input_be_put,
  3029. .private_value = (unsigned long)&(mm1_ch8_enum)
  3030. },
  3031. };
  3032. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3033. struct snd_ctl_elem_value *ucontrol)
  3034. {
  3035. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3036. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3037. ucontrol->value.integer.value[0]);
  3038. return 0;
  3039. }
  3040. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3041. struct snd_ctl_elem_value *ucontrol)
  3042. {
  3043. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3044. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3045. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3046. return 0;
  3047. }
  3048. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3049. "Four", "Five", "Six", "Seven", "Eight"};
  3050. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3051. struct snd_ctl_elem_value *ucontrol)
  3052. {
  3053. switch (msm_ec_ref_bit_format) {
  3054. case SNDRV_PCM_FORMAT_S24_LE:
  3055. ucontrol->value.integer.value[0] = 2;
  3056. break;
  3057. case SNDRV_PCM_FORMAT_S16_LE:
  3058. ucontrol->value.integer.value[0] = 1;
  3059. break;
  3060. default:
  3061. ucontrol->value.integer.value[0] = 0;
  3062. break;
  3063. }
  3064. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3065. __func__, ucontrol->value.integer.value[0]);
  3066. return 0;
  3067. }
  3068. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3069. struct snd_ctl_elem_value *ucontrol)
  3070. {
  3071. u16 bit_width = 0;
  3072. switch (ucontrol->value.integer.value[0]) {
  3073. case 2:
  3074. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3075. break;
  3076. case 1:
  3077. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3078. break;
  3079. default:
  3080. msm_ec_ref_bit_format = 0;
  3081. break;
  3082. }
  3083. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3084. bit_width = 16;
  3085. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3086. bit_width = 24;
  3087. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3088. __func__, msm_ec_ref_bit_format);
  3089. adm_ec_ref_rx_bit_width(bit_width);
  3090. return 0;
  3091. }
  3092. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3093. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3094. struct snd_ctl_elem_value *ucontrol)
  3095. {
  3096. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3097. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3098. __func__, ucontrol->value.integer.value[0]);
  3099. return 0;
  3100. }
  3101. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3102. struct snd_ctl_elem_value *ucontrol)
  3103. {
  3104. switch (ucontrol->value.integer.value[0]) {
  3105. case 0:
  3106. msm_ec_ref_sampling_rate = 0;
  3107. break;
  3108. case 1:
  3109. msm_ec_ref_sampling_rate = 8000;
  3110. break;
  3111. case 2:
  3112. msm_ec_ref_sampling_rate = 16000;
  3113. break;
  3114. case 3:
  3115. msm_ec_ref_sampling_rate = 32000;
  3116. break;
  3117. case 4:
  3118. msm_ec_ref_sampling_rate = 44100;
  3119. break;
  3120. case 5:
  3121. msm_ec_ref_sampling_rate = 48000;
  3122. break;
  3123. case 6:
  3124. msm_ec_ref_sampling_rate = 96000;
  3125. break;
  3126. case 7:
  3127. msm_ec_ref_sampling_rate = 192000;
  3128. break;
  3129. case 8:
  3130. msm_ec_ref_sampling_rate = 384000;
  3131. break;
  3132. default:
  3133. msm_ec_ref_sampling_rate = 48000;
  3134. break;
  3135. }
  3136. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3137. __func__, msm_ec_ref_sampling_rate);
  3138. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3139. return 0;
  3140. }
  3141. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3142. "32000", "44100", "48000", "96000", "192000", "384000"};
  3143. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3144. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3145. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3146. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3147. };
  3148. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3149. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3150. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3151. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3152. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3153. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3154. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3155. };
  3156. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3157. struct snd_ctl_elem_value *ucontrol)
  3158. {
  3159. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3160. mutex_lock(&routing_lock);
  3161. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3162. mutex_unlock(&routing_lock);
  3163. return 0;
  3164. }
  3165. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3166. struct snd_ctl_elem_value *ucontrol)
  3167. {
  3168. int ec_ref_port_id;
  3169. struct snd_soc_dapm_widget *widget =
  3170. snd_soc_dapm_kcontrol_widget(kcontrol);
  3171. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3172. struct snd_soc_dapm_update *update = NULL;
  3173. mutex_lock(&routing_lock);
  3174. switch (ucontrol->value.integer.value[0]) {
  3175. case 0:
  3176. msm_route_ec_ref_rx = 0;
  3177. ec_ref_port_id = AFE_PORT_INVALID;
  3178. break;
  3179. case 1:
  3180. msm_route_ec_ref_rx = 1;
  3181. ec_ref_port_id = SLIMBUS_0_RX;
  3182. break;
  3183. case 2:
  3184. msm_route_ec_ref_rx = 2;
  3185. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3186. break;
  3187. case 3:
  3188. msm_route_ec_ref_rx = 3;
  3189. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3190. break;
  3191. case 4:
  3192. msm_route_ec_ref_rx = 4;
  3193. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3194. break;
  3195. case 5:
  3196. msm_route_ec_ref_rx = 5;
  3197. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3198. break;
  3199. case 6:
  3200. msm_route_ec_ref_rx = 6;
  3201. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3202. break;
  3203. case 7:
  3204. msm_route_ec_ref_rx = 7;
  3205. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3206. break;
  3207. case 9:
  3208. msm_route_ec_ref_rx = 9;
  3209. ec_ref_port_id = SLIMBUS_5_RX;
  3210. break;
  3211. case 10:
  3212. msm_route_ec_ref_rx = 10;
  3213. ec_ref_port_id = SLIMBUS_1_TX;
  3214. break;
  3215. case 11:
  3216. msm_route_ec_ref_rx = 11;
  3217. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3218. break;
  3219. case 12:
  3220. msm_route_ec_ref_rx = 12;
  3221. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3222. break;
  3223. case 13:
  3224. msm_route_ec_ref_rx = 13;
  3225. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3226. break;
  3227. case 14:
  3228. msm_route_ec_ref_rx = 14;
  3229. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3230. break;
  3231. case 15:
  3232. msm_route_ec_ref_rx = 15;
  3233. ec_ref_port_id = SLIMBUS_6_RX;
  3234. break;
  3235. case 16:
  3236. msm_route_ec_ref_rx = 16;
  3237. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3238. break;
  3239. case 17:
  3240. msm_route_ec_ref_rx = 17;
  3241. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3242. break;
  3243. case 18:
  3244. msm_route_ec_ref_rx = 18;
  3245. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3246. break;
  3247. case 19:
  3248. msm_route_ec_ref_rx = 19;
  3249. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3250. break;
  3251. case 20:
  3252. msm_route_ec_ref_rx = 20;
  3253. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3254. break;
  3255. case 21:
  3256. msm_route_ec_ref_rx = 21;
  3257. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3258. break;
  3259. case 22:
  3260. msm_route_ec_ref_rx = 22;
  3261. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3262. break;
  3263. case 23:
  3264. msm_route_ec_ref_rx = 23;
  3265. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3266. break;
  3267. default:
  3268. msm_route_ec_ref_rx = 0; /* NONE */
  3269. pr_err("%s EC ref rx %ld not valid\n",
  3270. __func__, ucontrol->value.integer.value[0]);
  3271. ec_ref_port_id = AFE_PORT_INVALID;
  3272. break;
  3273. }
  3274. adm_ec_ref_rx_id(ec_ref_port_id);
  3275. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3276. __func__, msm_route_ec_ref_rx);
  3277. mutex_unlock(&routing_lock);
  3278. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3279. msm_route_ec_ref_rx, e, update);
  3280. return 0;
  3281. }
  3282. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3283. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3284. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3285. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3286. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3287. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3288. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3289. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3290. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3291. };
  3292. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3293. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3294. msm_route_ec_ref_rx_enum[0],
  3295. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3296. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3297. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3298. msm_route_ec_ref_rx_enum[0],
  3299. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3300. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3301. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3302. msm_route_ec_ref_rx_enum[0],
  3303. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3304. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3305. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3306. msm_route_ec_ref_rx_enum[0],
  3307. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3308. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3309. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3310. msm_route_ec_ref_rx_enum[0],
  3311. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3312. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3313. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3314. msm_route_ec_ref_rx_enum[0],
  3315. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3316. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3317. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3318. msm_route_ec_ref_rx_enum[0],
  3319. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3320. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3321. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3322. msm_route_ec_ref_rx_enum[0],
  3323. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3324. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3325. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3326. msm_route_ec_ref_rx_enum[0],
  3327. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3328. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3329. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3330. msm_route_ec_ref_rx_enum[0],
  3331. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3332. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3333. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3334. msm_route_ec_ref_rx_enum[0],
  3335. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3336. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3337. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3338. msm_route_ec_ref_rx_enum[0],
  3339. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3340. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3341. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3342. msm_route_ec_ref_rx_enum[0],
  3343. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3344. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3345. struct snd_ctl_elem_value *ucontrol)
  3346. {
  3347. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3348. mutex_lock(&routing_lock);
  3349. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3350. mutex_unlock(&routing_lock);
  3351. return 0;
  3352. }
  3353. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3354. struct snd_ctl_elem_value *ucontrol)
  3355. {
  3356. struct snd_soc_dapm_widget *widget =
  3357. snd_soc_dapm_kcontrol_widget(kcontrol);
  3358. int mux = ucontrol->value.enumerated.item[0];
  3359. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3360. int ret = 1;
  3361. bool state = true;
  3362. uint16_t ext_ec_ref_port_id;
  3363. struct snd_soc_dapm_update *update = NULL;
  3364. if (mux >= e->items) {
  3365. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3366. return -EINVAL;
  3367. }
  3368. mutex_lock(&routing_lock);
  3369. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3370. switch (msm_route_ext_ec_ref) {
  3371. case EXT_EC_REF_PRI_MI2S_TX:
  3372. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3373. break;
  3374. case EXT_EC_REF_SEC_MI2S_TX:
  3375. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3376. break;
  3377. case EXT_EC_REF_TERT_MI2S_TX:
  3378. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3379. break;
  3380. case EXT_EC_REF_QUAT_MI2S_TX:
  3381. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3382. break;
  3383. case EXT_EC_REF_QUIN_MI2S_TX:
  3384. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3385. break;
  3386. case EXT_EC_REF_SLIM_1_TX:
  3387. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3388. break;
  3389. case EXT_EC_REF_NONE:
  3390. default:
  3391. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3392. state = false;
  3393. break;
  3394. }
  3395. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3396. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3397. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3398. mutex_unlock(&routing_lock);
  3399. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3400. update);
  3401. } else {
  3402. ret = -EINVAL;
  3403. mutex_unlock(&routing_lock);
  3404. }
  3405. return ret;
  3406. }
  3407. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3408. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3409. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3410. "SLIM_1_TX"};
  3411. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3412. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3413. };
  3414. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3415. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3416. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3417. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3418. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3420. msm_routing_put_audio_mixer),
  3421. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3423. msm_routing_put_audio_mixer),
  3424. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3426. msm_routing_put_audio_mixer),
  3427. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3429. msm_routing_put_audio_mixer),
  3430. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3432. msm_routing_put_audio_mixer),
  3433. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3435. msm_routing_put_audio_mixer),
  3436. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3437. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3438. msm_routing_put_audio_mixer),
  3439. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3441. msm_routing_put_audio_mixer),
  3442. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3444. msm_routing_put_audio_mixer),
  3445. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3447. msm_routing_put_audio_mixer),
  3448. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3449. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3450. msm_routing_put_audio_mixer),
  3451. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3453. msm_routing_put_audio_mixer),
  3454. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3456. msm_routing_put_audio_mixer),
  3457. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3459. msm_routing_put_audio_mixer),
  3460. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3462. msm_routing_put_audio_mixer),
  3463. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3465. msm_routing_put_audio_mixer),
  3466. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3468. msm_routing_put_audio_mixer),
  3469. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3471. msm_routing_put_audio_mixer),
  3472. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3474. msm_routing_put_audio_mixer),
  3475. };
  3476. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3477. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3479. msm_routing_put_audio_mixer),
  3480. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3482. msm_routing_put_audio_mixer),
  3483. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3485. msm_routing_put_audio_mixer),
  3486. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3488. msm_routing_put_audio_mixer),
  3489. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3512. msm_routing_put_audio_mixer),
  3513. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3515. msm_routing_put_audio_mixer),
  3516. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3518. msm_routing_put_audio_mixer),
  3519. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3524. msm_routing_put_audio_mixer),
  3525. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3527. msm_routing_put_audio_mixer),
  3528. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3530. msm_routing_put_audio_mixer),
  3531. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. };
  3535. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3536. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3538. msm_routing_put_audio_mixer),
  3539. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3541. msm_routing_put_audio_mixer),
  3542. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3544. msm_routing_put_audio_mixer),
  3545. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3547. msm_routing_put_audio_mixer),
  3548. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3573. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3574. msm_routing_put_audio_mixer),
  3575. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3576. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3577. msm_routing_put_audio_mixer),
  3578. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3585. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3586. msm_routing_put_audio_mixer),
  3587. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3588. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3589. msm_routing_put_audio_mixer),
  3590. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. };
  3594. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3595. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3597. msm_routing_put_audio_mixer),
  3598. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3600. msm_routing_put_audio_mixer),
  3601. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3603. msm_routing_put_audio_mixer),
  3604. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3606. msm_routing_put_audio_mixer),
  3607. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. };
  3644. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3645. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3650. msm_routing_put_audio_mixer),
  3651. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3653. msm_routing_put_audio_mixer),
  3654. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. };
  3703. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3704. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3706. msm_routing_put_audio_mixer),
  3707. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3715. msm_routing_put_audio_mixer),
  3716. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. };
  3762. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3763. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. };
  3821. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3822. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. };
  3880. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3881. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3883. msm_routing_put_audio_mixer),
  3884. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3886. msm_routing_put_audio_mixer),
  3887. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. };
  3939. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3940. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3948. msm_routing_put_audio_mixer),
  3949. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. };
  3992. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  3993. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. };
  3997. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  3998. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4006. msm_routing_put_audio_mixer),
  4007. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. };
  4056. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4057. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. };
  4115. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4116. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4124. msm_routing_put_audio_mixer),
  4125. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. };
  4165. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4166. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4174. msm_routing_put_audio_mixer),
  4175. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. };
  4215. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4216. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. };
  4274. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4275. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. };
  4324. /* incall music delivery mixer */
  4325. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4326. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. };
  4339. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4340. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. };
  4353. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4354. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. };
  4367. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4368. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4370. msm_routing_put_audio_mixer),
  4371. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. };
  4417. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4418. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. };
  4467. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4468. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. };
  4517. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4518. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. };
  4576. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4577. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. };
  4626. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4627. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. };
  4685. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4686. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. };
  4744. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4745. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. };
  4803. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4804. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. };
  4862. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4863. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. };
  4912. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4913. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. };
  4962. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4963. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. };
  5012. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5013. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. };
  5062. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5063. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. };
  5112. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5113. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. };
  5162. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5163. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. };
  5212. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5213. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. };
  5262. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5263. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. };
  5312. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5313. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. };
  5362. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5363. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. };
  5412. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5413. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. };
  5462. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5463. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. };
  5512. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5513. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. };
  5562. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5563. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. };
  5612. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5613. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. };
  5662. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5663. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. };
  5712. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5713. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. };
  5762. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5763. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. };
  5812. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5813. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. };
  5865. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5866. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. };
  5915. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5916. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. };
  5968. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5969. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. };
  6021. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6022. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. };
  6074. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6075. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. };
  6127. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6128. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. };
  6177. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6178. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. };
  6230. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6231. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. };
  6283. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6284. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. };
  6336. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6337. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. };
  6473. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6474. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. };
  6577. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6578. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 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_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. };
  6681. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6682. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. };
  6782. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6783. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. };
  6901. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6902. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. };
  7005. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7006. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. };
  7112. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7113. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. };
  7219. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7220. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. };
  7281. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7282. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. };
  7361. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7362. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. };
  7384. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7385. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. };
  7410. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7411. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. };
  7433. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7434. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. };
  7510. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7511. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7512. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7513. msm_routing_put_voice_mixer),
  7514. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7515. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7516. msm_routing_put_voice_mixer),
  7517. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7518. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7519. msm_routing_put_voice_mixer),
  7520. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7521. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7522. msm_routing_put_voice_mixer),
  7523. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7525. msm_routing_put_voice_mixer),
  7526. };
  7527. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7528. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7529. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7530. msm_routing_put_voice_mixer),
  7531. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7532. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7533. msm_routing_put_voice_mixer),
  7534. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7536. msm_routing_put_voice_mixer),
  7537. };
  7538. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7539. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7540. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7541. msm_routing_put_voice_mixer),
  7542. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7543. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7544. msm_routing_put_voice_mixer),
  7545. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7546. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7547. msm_routing_put_voice_mixer),
  7548. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7550. msm_routing_put_voice_mixer),
  7551. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7552. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7553. msm_routing_put_voice_mixer),
  7554. };
  7555. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7556. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7557. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7558. msm_routing_put_voice_mixer),
  7559. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7560. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7561. msm_routing_put_voice_mixer),
  7562. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7563. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7564. msm_routing_put_voice_mixer),
  7565. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7566. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7567. msm_routing_put_voice_mixer),
  7568. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7569. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7570. msm_routing_put_voice_mixer),
  7571. };
  7572. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7573. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7574. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7575. msm_routing_put_voice_mixer),
  7576. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7577. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7578. msm_routing_put_voice_mixer),
  7579. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7580. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7581. msm_routing_put_voice_mixer),
  7582. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7583. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7584. msm_routing_put_voice_mixer),
  7585. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7586. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7587. msm_routing_put_voice_mixer),
  7588. };
  7589. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7590. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7591. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7592. msm_routing_put_voice_mixer),
  7593. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7594. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7595. msm_routing_put_voice_mixer),
  7596. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7597. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7598. msm_routing_put_voice_mixer),
  7599. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7600. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7601. msm_routing_put_voice_mixer),
  7602. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7603. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7604. msm_routing_put_voice_mixer),
  7605. };
  7606. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  7607. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7609. msm_routing_put_voice_mixer),
  7610. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7612. msm_routing_put_voice_mixer),
  7613. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7614. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7615. msm_routing_put_voice_mixer),
  7616. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7617. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7618. msm_routing_put_voice_mixer),
  7619. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7620. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7621. msm_routing_put_voice_mixer),
  7622. };
  7623. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7624. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7625. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7626. msm_routing_put_voice_mixer),
  7627. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7628. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7629. msm_routing_put_voice_mixer),
  7630. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7631. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7632. msm_routing_put_voice_mixer),
  7633. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7634. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7635. msm_routing_put_voice_mixer),
  7636. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7637. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7638. msm_routing_put_voice_mixer),
  7639. };
  7640. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7641. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7643. msm_routing_put_voice_mixer),
  7644. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7645. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7646. msm_routing_put_voice_mixer),
  7647. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7648. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7649. msm_routing_put_voice_mixer),
  7650. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7651. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7652. msm_routing_put_voice_mixer),
  7653. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7654. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. };
  7657. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7658. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7659. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7660. msm_routing_put_voice_mixer),
  7661. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7662. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7663. msm_routing_put_voice_mixer),
  7664. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7665. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7666. msm_routing_put_voice_mixer),
  7667. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7668. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7669. msm_routing_put_voice_mixer),
  7670. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7671. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7672. msm_routing_put_voice_mixer),
  7673. };
  7674. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7675. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7676. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7677. msm_routing_put_voice_mixer),
  7678. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7679. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7680. msm_routing_put_voice_mixer),
  7681. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7682. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7683. msm_routing_put_voice_mixer),
  7684. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7686. msm_routing_put_voice_mixer),
  7687. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7688. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7689. msm_routing_put_voice_mixer),
  7690. };
  7691. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7692. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7693. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7694. msm_routing_put_voice_mixer),
  7695. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7696. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7697. msm_routing_put_voice_mixer),
  7698. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7699. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7700. msm_routing_put_voice_mixer),
  7701. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7702. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7703. msm_routing_put_voice_mixer),
  7704. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7705. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7706. msm_routing_put_voice_mixer),
  7707. };
  7708. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7709. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7710. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7711. msm_routing_put_voice_mixer),
  7712. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7713. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7714. msm_routing_put_voice_mixer),
  7715. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7717. msm_routing_put_voice_mixer),
  7718. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7719. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7720. msm_routing_put_voice_mixer),
  7721. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7722. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7723. msm_routing_put_voice_mixer),
  7724. };
  7725. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7726. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7727. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7728. msm_routing_put_voice_mixer),
  7729. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7730. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7731. msm_routing_put_voice_mixer),
  7732. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7733. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7734. msm_routing_put_voice_mixer),
  7735. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7736. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7737. msm_routing_put_voice_mixer),
  7738. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7739. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7740. msm_routing_put_voice_mixer),
  7741. };
  7742. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7743. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7744. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7745. msm_routing_put_voice_mixer),
  7746. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7747. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7748. msm_routing_put_voice_mixer),
  7749. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7750. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7751. msm_routing_put_voice_mixer),
  7752. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7753. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7754. msm_routing_put_voice_mixer),
  7755. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7756. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7757. msm_routing_put_voice_mixer),
  7758. };
  7759. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7760. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7761. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7762. msm_routing_put_voice_mixer),
  7763. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7764. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7765. msm_routing_put_voice_mixer),
  7766. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7767. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7768. msm_routing_put_voice_mixer),
  7769. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7770. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7771. msm_routing_put_voice_mixer),
  7772. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7773. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7774. msm_routing_put_voice_mixer),
  7775. };
  7776. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7777. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7778. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7779. msm_routing_put_voice_mixer),
  7780. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7781. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7782. msm_routing_put_voice_mixer),
  7783. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7784. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7785. msm_routing_put_voice_mixer),
  7786. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7787. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7788. msm_routing_put_voice_mixer),
  7789. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7790. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7791. msm_routing_put_voice_mixer),
  7792. };
  7793. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7794. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7796. msm_routing_put_voice_mixer),
  7797. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7798. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7799. msm_routing_put_voice_mixer),
  7800. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7801. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7802. msm_routing_put_voice_mixer),
  7803. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7804. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7805. msm_routing_put_voice_mixer),
  7806. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7807. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7808. msm_routing_put_voice_mixer),
  7809. };
  7810. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7811. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7812. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7813. msm_routing_put_voice_mixer),
  7814. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7815. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7816. msm_routing_put_voice_mixer),
  7817. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7818. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7819. msm_routing_put_voice_mixer),
  7820. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7822. msm_routing_put_voice_mixer),
  7823. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7824. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7825. msm_routing_put_voice_mixer),
  7826. };
  7827. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7828. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7829. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7830. msm_routing_put_voice_mixer),
  7831. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7832. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7833. msm_routing_put_voice_mixer),
  7834. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7835. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7836. msm_routing_put_voice_mixer),
  7837. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7839. msm_routing_put_voice_mixer),
  7840. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7841. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7842. msm_routing_put_voice_mixer),
  7843. };
  7844. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7845. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7847. msm_routing_put_voice_mixer),
  7848. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7849. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7850. msm_routing_put_voice_mixer),
  7851. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7852. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7853. msm_routing_put_voice_mixer),
  7854. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7855. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7856. msm_routing_put_voice_mixer),
  7857. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7858. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7859. msm_routing_put_voice_mixer),
  7860. };
  7861. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7862. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7863. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7864. msm_routing_put_voice_mixer),
  7865. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7866. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7867. msm_routing_put_voice_mixer),
  7868. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7870. msm_routing_put_voice_mixer),
  7871. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7872. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7873. msm_routing_put_voice_mixer),
  7874. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7875. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7876. msm_routing_put_voice_mixer),
  7877. };
  7878. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7879. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7880. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7881. msm_routing_put_voice_mixer),
  7882. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7883. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7884. msm_routing_put_voice_mixer),
  7885. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7886. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7887. msm_routing_put_voice_mixer),
  7888. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7889. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7890. msm_routing_put_voice_mixer),
  7891. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7893. msm_routing_put_voice_mixer),
  7894. };
  7895. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7896. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7898. msm_routing_put_voice_mixer),
  7899. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7900. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7901. msm_routing_put_voice_mixer),
  7902. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7903. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7904. msm_routing_put_voice_mixer),
  7905. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7906. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7907. msm_routing_put_voice_mixer),
  7908. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7909. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7910. msm_routing_put_voice_mixer),
  7911. };
  7912. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  7913. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7914. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7915. msm_routing_put_voice_mixer),
  7916. };
  7917. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  7918. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_EXTPROC_RX,
  7919. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7920. msm_routing_put_voice_mixer),
  7921. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_EXTPROC_RX,
  7922. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7923. msm_routing_put_voice_mixer),
  7924. };
  7925. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  7926. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7928. msm_routing_put_voice_mixer),
  7929. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7930. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7931. msm_routing_put_voice_mixer),
  7932. };
  7933. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  7934. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7935. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7936. msm_routing_put_voice_mixer),
  7937. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7938. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7939. msm_routing_put_voice_mixer),
  7940. };
  7941. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  7942. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  7943. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7944. msm_routing_put_voice_mixer),
  7945. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  7946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7947. msm_routing_put_voice_mixer),
  7948. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  7949. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7950. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7951. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  7952. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7953. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7954. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  7955. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7956. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7957. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  7958. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7959. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7960. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  7961. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7962. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7963. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  7964. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7965. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7966. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  7967. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7968. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7969. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  7970. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7971. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7972. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  7973. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7974. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7975. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  7976. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7977. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7978. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  7979. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7980. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7981. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  7982. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7984. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  7985. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7986. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7987. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  7988. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7989. msm_routing_put_voice_mixer),
  7990. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  7991. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  7992. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7993. };
  7994. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  7995. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  7996. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7997. msm_routing_put_voice_mixer),
  7998. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  7999. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8000. msm_routing_put_voice_mixer),
  8001. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8002. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8003. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8004. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8005. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8006. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8007. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8008. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8009. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8010. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8011. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8012. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8013. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8014. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8015. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8016. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8017. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8018. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8019. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8020. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8021. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8022. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8023. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8024. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8025. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8026. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8027. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8028. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8029. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8030. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8031. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8032. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8033. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8034. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8035. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8036. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8037. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8038. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8039. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8040. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8041. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8042. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8043. };
  8044. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8045. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8046. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8047. msm_routing_put_voice_mixer),
  8048. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8049. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8050. msm_routing_put_voice_mixer),
  8051. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8053. msm_routing_put_voice_mixer),
  8054. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8055. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8056. msm_routing_put_voice_mixer),
  8057. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8059. msm_routing_put_voice_mixer),
  8060. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8062. msm_routing_put_voice_mixer),
  8063. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8065. msm_routing_put_voice_mixer),
  8066. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8068. msm_routing_put_voice_mixer),
  8069. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8071. msm_routing_put_voice_mixer),
  8072. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8074. msm_routing_put_voice_mixer),
  8075. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8076. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8077. msm_routing_put_voice_mixer),
  8078. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8079. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8080. msm_routing_put_voice_mixer),
  8081. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8083. msm_routing_put_voice_mixer),
  8084. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8086. msm_routing_put_voice_mixer),
  8087. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8089. msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8091. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8092. msm_routing_put_voice_mixer),
  8093. };
  8094. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8095. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8096. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8097. msm_routing_put_voice_stub_mixer),
  8098. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8099. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8100. msm_routing_put_voice_stub_mixer),
  8101. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8102. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8103. msm_routing_put_voice_stub_mixer),
  8104. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8105. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8106. msm_routing_put_voice_stub_mixer),
  8107. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8108. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8109. msm_routing_put_voice_stub_mixer),
  8110. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8111. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8112. msm_routing_put_voice_stub_mixer),
  8113. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8114. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8115. msm_routing_put_voice_stub_mixer),
  8116. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8117. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8118. msm_routing_put_voice_stub_mixer),
  8119. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8120. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8121. msm_routing_put_voice_stub_mixer),
  8122. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8123. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8124. msm_routing_put_voice_stub_mixer),
  8125. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8126. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8127. msm_routing_put_voice_stub_mixer),
  8128. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8129. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8130. msm_routing_put_voice_stub_mixer),
  8131. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8132. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8133. msm_routing_put_voice_stub_mixer),
  8134. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8135. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8136. msm_routing_put_voice_stub_mixer),
  8137. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8138. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8139. msm_routing_put_voice_stub_mixer),
  8140. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8141. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8142. msm_routing_put_voice_stub_mixer),
  8143. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8144. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8145. msm_routing_put_voice_stub_mixer),
  8146. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8147. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8148. msm_routing_put_voice_stub_mixer),
  8149. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8151. msm_routing_put_voice_stub_mixer),
  8152. };
  8153. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8154. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8155. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8156. msm_routing_put_voice_stub_mixer),
  8157. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8158. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8159. msm_routing_put_voice_stub_mixer),
  8160. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8161. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8162. msm_routing_put_voice_stub_mixer),
  8163. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8164. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8165. msm_routing_put_voice_stub_mixer),
  8166. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8167. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8168. msm_routing_put_voice_stub_mixer),
  8169. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8170. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8171. msm_routing_put_voice_stub_mixer),
  8172. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8173. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8174. msm_routing_put_voice_stub_mixer),
  8175. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8176. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8177. msm_routing_put_voice_stub_mixer),
  8178. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8179. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8180. msm_routing_put_voice_stub_mixer),
  8181. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8182. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8183. msm_routing_put_voice_stub_mixer),
  8184. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8185. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8186. msm_routing_put_voice_stub_mixer),
  8187. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8188. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8189. msm_routing_put_voice_stub_mixer),
  8190. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8191. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8192. msm_routing_put_voice_stub_mixer),
  8193. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8194. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8195. msm_routing_put_voice_stub_mixer),
  8196. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8197. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8198. msm_routing_put_voice_stub_mixer),
  8199. };
  8200. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8201. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8202. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8203. msm_routing_put_voice_stub_mixer),
  8204. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8205. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8206. msm_routing_put_voice_stub_mixer),
  8207. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8208. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8209. msm_routing_put_voice_stub_mixer),
  8210. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8211. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8212. msm_routing_put_voice_stub_mixer),
  8213. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8214. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8215. msm_routing_put_voice_stub_mixer),
  8216. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8217. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8218. msm_routing_put_voice_stub_mixer),
  8219. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8220. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8221. msm_routing_put_voice_stub_mixer),
  8222. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8223. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8224. msm_routing_put_voice_stub_mixer),
  8225. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8226. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8227. msm_routing_put_voice_stub_mixer),
  8228. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8229. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8230. msm_routing_put_voice_stub_mixer),
  8231. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8232. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8233. msm_routing_put_voice_stub_mixer),
  8234. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8235. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8236. msm_routing_put_voice_stub_mixer),
  8237. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8238. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8239. msm_routing_put_voice_stub_mixer),
  8240. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8241. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8242. msm_routing_put_voice_stub_mixer),
  8243. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8244. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8245. msm_routing_put_voice_stub_mixer),
  8246. };
  8247. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8248. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8249. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8250. msm_routing_put_voice_mixer),
  8251. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8252. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8253. msm_routing_put_voice_mixer),
  8254. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8255. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8256. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8257. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8258. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8259. msm_routing_put_voice_mixer),
  8260. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8262. msm_routing_put_voice_mixer),
  8263. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8265. msm_routing_put_voice_mixer),
  8266. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8267. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8268. msm_routing_put_voice_mixer),
  8269. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8271. msm_routing_put_voice_mixer),
  8272. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8274. msm_routing_put_voice_mixer),
  8275. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8277. msm_routing_put_voice_mixer),
  8278. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8280. msm_routing_put_voice_mixer),
  8281. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8283. msm_routing_put_voice_mixer),
  8284. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8286. msm_routing_put_voice_mixer),
  8287. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8288. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8289. msm_routing_put_voice_mixer),
  8290. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8292. msm_routing_put_voice_mixer),
  8293. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8295. msm_routing_put_voice_mixer),
  8296. };
  8297. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8298. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8299. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8300. msm_routing_put_port_mixer),
  8301. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8302. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8303. msm_routing_put_port_mixer),
  8304. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8305. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8306. msm_routing_put_port_mixer),
  8307. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8308. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8309. msm_routing_put_port_mixer),
  8310. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8311. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8312. msm_routing_put_port_mixer),
  8313. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8314. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8315. msm_routing_put_port_mixer),
  8316. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8317. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8318. msm_routing_put_port_mixer),
  8319. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8320. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8321. msm_routing_put_port_mixer),
  8322. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8323. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8324. msm_routing_put_port_mixer),
  8325. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8326. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8327. msm_routing_put_port_mixer),
  8328. };
  8329. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8330. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8331. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8332. msm_routing_put_port_mixer),
  8333. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8334. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8335. msm_routing_put_port_mixer),
  8336. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8337. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8338. msm_routing_put_port_mixer),
  8339. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8340. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8341. msm_routing_put_port_mixer),
  8342. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8343. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8344. msm_routing_put_port_mixer),
  8345. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8346. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8347. msm_routing_put_port_mixer),
  8348. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8349. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8350. msm_routing_put_port_mixer),
  8351. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8352. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8353. msm_routing_put_port_mixer),
  8354. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8355. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8356. msm_routing_put_port_mixer),
  8357. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8358. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8359. msm_routing_put_port_mixer),
  8360. };
  8361. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8362. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8364. msm_routing_put_port_mixer),
  8365. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8366. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8367. msm_routing_put_port_mixer),
  8368. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8369. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8370. msm_routing_put_port_mixer),
  8371. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8372. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8373. msm_routing_put_port_mixer),
  8374. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8375. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8376. msm_routing_put_port_mixer),
  8377. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8378. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8379. msm_routing_put_port_mixer),
  8380. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8381. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8382. msm_routing_put_port_mixer),
  8383. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8384. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8385. msm_routing_put_port_mixer),
  8386. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8387. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8388. msm_routing_put_port_mixer),
  8389. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8390. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8391. msm_routing_put_port_mixer),
  8392. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8393. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8394. msm_routing_put_port_mixer),
  8395. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8396. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8397. msm_routing_put_port_mixer),
  8398. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8399. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8400. msm_routing_put_port_mixer),
  8401. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8402. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8403. msm_routing_put_port_mixer),
  8404. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8405. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8406. msm_routing_put_port_mixer),
  8407. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8408. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8409. msm_routing_put_port_mixer),
  8410. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8411. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8412. msm_routing_put_port_mixer),
  8413. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8414. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8415. msm_routing_put_port_mixer),
  8416. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8418. msm_routing_put_port_mixer),
  8419. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8420. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8421. msm_routing_put_port_mixer),
  8422. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8423. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8424. msm_routing_put_port_mixer),
  8425. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8426. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8427. msm_routing_put_port_mixer),
  8428. };
  8429. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8430. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8431. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8432. msm_routing_put_port_mixer),
  8433. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8434. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8435. msm_routing_put_port_mixer),
  8436. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8437. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8438. msm_routing_put_port_mixer),
  8439. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8440. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8441. msm_routing_put_port_mixer),
  8442. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8443. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8444. msm_routing_put_port_mixer),
  8445. };
  8446. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8447. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8448. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8449. msm_routing_put_port_mixer),
  8450. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8451. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8452. msm_routing_put_port_mixer),
  8453. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8454. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8455. msm_routing_put_port_mixer),
  8456. };
  8457. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8458. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8459. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8460. msm_routing_put_port_mixer),
  8461. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8462. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8463. msm_routing_put_port_mixer),
  8464. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8465. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8466. msm_routing_put_port_mixer),
  8467. };
  8468. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8469. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8470. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8471. msm_routing_put_port_mixer),
  8472. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8473. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8474. msm_routing_put_port_mixer),
  8475. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8476. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8477. msm_routing_put_port_mixer),
  8478. };
  8479. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8480. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8481. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8482. msm_routing_put_port_mixer),
  8483. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8484. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8485. msm_routing_put_port_mixer),
  8486. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8488. msm_routing_put_port_mixer),
  8489. };
  8490. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8491. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8492. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8493. msm_routing_put_port_mixer),
  8494. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8496. msm_routing_put_port_mixer),
  8497. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8498. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8499. msm_routing_put_port_mixer),
  8500. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8501. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8502. msm_routing_put_port_mixer),
  8503. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8504. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8505. msm_routing_put_port_mixer),
  8506. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8507. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8508. msm_routing_put_port_mixer),
  8509. };
  8510. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8511. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8512. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8513. msm_routing_put_port_mixer),
  8514. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8515. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8516. msm_routing_put_port_mixer),
  8517. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8518. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8519. msm_routing_put_port_mixer),
  8520. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8521. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8522. msm_routing_put_port_mixer),
  8523. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8524. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8525. msm_routing_put_port_mixer),
  8526. };
  8527. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8528. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8529. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8530. msm_routing_put_port_mixer),
  8531. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8532. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8533. msm_routing_put_port_mixer),
  8534. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8535. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8536. msm_routing_put_port_mixer),
  8537. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8538. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8539. msm_routing_put_port_mixer),
  8540. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8541. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8542. msm_routing_put_port_mixer),
  8543. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8544. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8545. msm_routing_put_port_mixer),
  8546. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8547. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8550. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8551. msm_routing_put_port_mixer),
  8552. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8553. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8554. msm_routing_put_port_mixer),
  8555. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8556. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8557. msm_routing_put_port_mixer),
  8558. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8559. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8560. msm_routing_put_port_mixer),
  8561. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8562. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8563. msm_routing_put_port_mixer),
  8564. };
  8565. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8566. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8567. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8568. msm_routing_put_port_mixer),
  8569. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8570. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8571. msm_routing_put_port_mixer),
  8572. };
  8573. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8574. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8575. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8576. msm_routing_put_port_mixer),
  8577. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8578. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8579. msm_routing_put_port_mixer),
  8580. };
  8581. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8582. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8583. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8584. msm_routing_put_port_mixer),
  8585. };
  8586. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8587. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8588. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8589. msm_routing_put_port_mixer),
  8590. };
  8591. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8592. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8593. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8594. msm_routing_put_port_mixer),
  8595. };
  8596. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8597. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8598. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8599. msm_routing_put_port_mixer),
  8600. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8601. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8602. msm_routing_put_port_mixer),
  8603. };
  8604. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8605. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8607. msm_routing_put_port_mixer),
  8608. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8609. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8610. msm_routing_put_port_mixer),
  8611. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8612. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8613. msm_routing_put_port_mixer),
  8614. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8616. msm_routing_put_port_mixer),
  8617. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8618. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8619. msm_routing_put_port_mixer),
  8620. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8622. msm_routing_put_port_mixer),
  8623. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8624. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8625. msm_routing_put_port_mixer),
  8626. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8627. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8628. msm_routing_put_port_mixer),
  8629. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8630. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8631. msm_routing_put_port_mixer),
  8632. };
  8633. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8634. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8635. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8636. msm_routing_put_port_mixer),
  8637. };
  8638. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8639. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8640. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8641. msm_routing_put_port_mixer),
  8642. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8643. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8644. msm_routing_put_port_mixer),
  8645. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8646. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8647. msm_routing_put_port_mixer),
  8648. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8649. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8650. msm_routing_put_port_mixer),
  8651. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8652. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8653. msm_routing_put_port_mixer),
  8654. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8655. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8656. msm_routing_put_port_mixer),
  8657. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8658. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8659. msm_routing_put_port_mixer),
  8660. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8661. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8662. msm_routing_put_port_mixer),
  8663. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8664. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8665. msm_routing_put_port_mixer),
  8666. };
  8667. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8668. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8669. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8670. msm_routing_put_port_mixer),
  8671. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8672. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8673. msm_routing_put_port_mixer),
  8674. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8675. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8676. msm_routing_put_port_mixer),
  8677. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8678. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8679. msm_routing_put_port_mixer),
  8680. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8681. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8682. msm_routing_put_port_mixer),
  8683. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8684. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8685. msm_routing_put_port_mixer),
  8686. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8687. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. };
  8690. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8691. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8692. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8693. msm_routing_get_port_mixer,
  8694. msm_routing_put_port_mixer),
  8695. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8697. msm_routing_get_port_mixer,
  8698. msm_routing_put_port_mixer),
  8699. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8700. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8701. msm_routing_get_port_mixer,
  8702. msm_routing_put_port_mixer),
  8703. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8704. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8705. msm_routing_get_port_mixer,
  8706. msm_routing_put_port_mixer),
  8707. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8708. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8709. msm_routing_get_port_mixer,
  8710. msm_routing_put_port_mixer),
  8711. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8712. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8713. msm_routing_get_port_mixer,
  8714. msm_routing_put_port_mixer),
  8715. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8716. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8717. msm_routing_get_port_mixer,
  8718. msm_routing_put_port_mixer),
  8719. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8720. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8721. msm_routing_get_port_mixer,
  8722. msm_routing_put_port_mixer),
  8723. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8724. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8725. msm_routing_get_port_mixer,
  8726. msm_routing_put_port_mixer),
  8727. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8728. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8729. msm_routing_get_port_mixer,
  8730. msm_routing_put_port_mixer),
  8731. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8732. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8733. msm_routing_get_port_mixer,
  8734. msm_routing_put_port_mixer),
  8735. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8736. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8737. msm_routing_get_port_mixer,
  8738. msm_routing_put_port_mixer),
  8739. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8740. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8741. msm_routing_get_port_mixer,
  8742. msm_routing_put_port_mixer),
  8743. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8744. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8745. msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8748. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8749. msm_routing_get_port_mixer,
  8750. msm_routing_put_port_mixer),
  8751. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8752. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8753. msm_routing_get_port_mixer,
  8754. msm_routing_put_port_mixer),
  8755. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8756. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8757. msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8760. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8761. msm_routing_get_port_mixer,
  8762. msm_routing_put_port_mixer),
  8763. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8764. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8765. msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8768. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8769. msm_routing_get_port_mixer,
  8770. msm_routing_put_port_mixer),
  8771. };
  8772. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8773. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8774. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8775. msm_routing_get_port_mixer,
  8776. msm_routing_put_port_mixer),
  8777. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8778. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8779. msm_routing_get_port_mixer,
  8780. msm_routing_put_port_mixer),
  8781. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8782. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8783. msm_routing_get_port_mixer,
  8784. msm_routing_put_port_mixer),
  8785. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8786. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8787. msm_routing_get_port_mixer,
  8788. msm_routing_put_port_mixer),
  8789. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8790. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8791. msm_routing_get_port_mixer,
  8792. msm_routing_put_port_mixer),
  8793. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8794. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8795. msm_routing_get_port_mixer,
  8796. msm_routing_put_port_mixer),
  8797. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8798. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8799. msm_routing_get_port_mixer,
  8800. msm_routing_put_port_mixer),
  8801. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8802. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8803. msm_routing_get_port_mixer,
  8804. msm_routing_put_port_mixer),
  8805. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8806. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8807. msm_routing_get_port_mixer,
  8808. msm_routing_put_port_mixer),
  8809. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8810. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8811. msm_routing_get_port_mixer,
  8812. msm_routing_put_port_mixer),
  8813. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8814. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8815. msm_routing_get_port_mixer,
  8816. msm_routing_put_port_mixer),
  8817. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8818. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8819. msm_routing_get_port_mixer,
  8820. msm_routing_put_port_mixer),
  8821. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8822. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8823. msm_routing_get_port_mixer,
  8824. msm_routing_put_port_mixer),
  8825. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8826. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8827. msm_routing_get_port_mixer,
  8828. msm_routing_put_port_mixer),
  8829. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8830. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8831. msm_routing_get_port_mixer,
  8832. msm_routing_put_port_mixer),
  8833. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8834. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8835. msm_routing_get_port_mixer,
  8836. msm_routing_put_port_mixer),
  8837. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8838. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8839. msm_routing_get_port_mixer,
  8840. msm_routing_put_port_mixer),
  8841. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8842. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8843. msm_routing_get_port_mixer,
  8844. msm_routing_put_port_mixer),
  8845. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8846. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8847. msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8850. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8851. msm_routing_get_port_mixer,
  8852. msm_routing_put_port_mixer),
  8853. };
  8854. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8855. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8856. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8857. msm_routing_get_port_mixer,
  8858. msm_routing_put_port_mixer),
  8859. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8860. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8861. msm_routing_get_port_mixer,
  8862. msm_routing_put_port_mixer),
  8863. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8864. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8865. msm_routing_get_port_mixer,
  8866. msm_routing_put_port_mixer),
  8867. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8868. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8869. msm_routing_get_port_mixer,
  8870. msm_routing_put_port_mixer),
  8871. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8872. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8873. msm_routing_get_port_mixer,
  8874. msm_routing_put_port_mixer),
  8875. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8876. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8877. msm_routing_get_port_mixer,
  8878. msm_routing_put_port_mixer),
  8879. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8880. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8881. msm_routing_get_port_mixer,
  8882. msm_routing_put_port_mixer),
  8883. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8884. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8885. msm_routing_get_port_mixer,
  8886. msm_routing_put_port_mixer),
  8887. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8888. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8889. msm_routing_get_port_mixer,
  8890. msm_routing_put_port_mixer),
  8891. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8892. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8893. msm_routing_get_port_mixer,
  8894. msm_routing_put_port_mixer),
  8895. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8896. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8897. msm_routing_get_port_mixer,
  8898. msm_routing_put_port_mixer),
  8899. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8900. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8901. msm_routing_get_port_mixer,
  8902. msm_routing_put_port_mixer),
  8903. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8904. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8905. msm_routing_get_port_mixer,
  8906. msm_routing_put_port_mixer),
  8907. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8908. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8909. msm_routing_get_port_mixer,
  8910. msm_routing_put_port_mixer),
  8911. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8912. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8913. msm_routing_get_port_mixer,
  8914. msm_routing_put_port_mixer),
  8915. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8916. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8917. msm_routing_get_port_mixer,
  8918. msm_routing_put_port_mixer),
  8919. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8920. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8921. msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8924. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8925. msm_routing_get_port_mixer,
  8926. msm_routing_put_port_mixer),
  8927. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8928. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8929. msm_routing_get_port_mixer,
  8930. msm_routing_put_port_mixer),
  8931. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8932. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8933. msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. };
  8936. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  8937. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8938. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8939. msm_routing_get_port_mixer,
  8940. msm_routing_put_port_mixer),
  8941. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8942. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8943. msm_routing_get_port_mixer,
  8944. msm_routing_put_port_mixer),
  8945. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8946. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8947. msm_routing_get_port_mixer,
  8948. msm_routing_put_port_mixer),
  8949. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8950. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8951. msm_routing_get_port_mixer,
  8952. msm_routing_put_port_mixer),
  8953. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8954. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8955. msm_routing_get_port_mixer,
  8956. msm_routing_put_port_mixer),
  8957. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8958. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8959. msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8962. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8963. msm_routing_get_port_mixer,
  8964. msm_routing_put_port_mixer),
  8965. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8966. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8967. msm_routing_get_port_mixer,
  8968. msm_routing_put_port_mixer),
  8969. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8970. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8971. msm_routing_get_port_mixer,
  8972. msm_routing_put_port_mixer),
  8973. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8974. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8975. msm_routing_get_port_mixer,
  8976. msm_routing_put_port_mixer),
  8977. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8978. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8979. msm_routing_get_port_mixer,
  8980. msm_routing_put_port_mixer),
  8981. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8982. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8983. msm_routing_get_port_mixer,
  8984. msm_routing_put_port_mixer),
  8985. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8986. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8987. msm_routing_get_port_mixer,
  8988. msm_routing_put_port_mixer),
  8989. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8990. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8991. msm_routing_get_port_mixer,
  8992. msm_routing_put_port_mixer),
  8993. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8994. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8995. msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8998. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8999. msm_routing_get_port_mixer,
  9000. msm_routing_put_port_mixer),
  9001. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9002. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9003. msm_routing_get_port_mixer,
  9004. msm_routing_put_port_mixer),
  9005. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9006. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9007. msm_routing_get_port_mixer,
  9008. msm_routing_put_port_mixer),
  9009. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9010. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9011. msm_routing_get_port_mixer,
  9012. msm_routing_put_port_mixer),
  9013. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9014. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9015. msm_routing_get_port_mixer,
  9016. msm_routing_put_port_mixer),
  9017. };
  9018. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9019. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9020. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9021. msm_routing_get_port_mixer,
  9022. msm_routing_put_port_mixer),
  9023. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9024. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9025. msm_routing_get_port_mixer,
  9026. msm_routing_put_port_mixer),
  9027. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9028. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9029. msm_routing_get_port_mixer,
  9030. msm_routing_put_port_mixer),
  9031. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9032. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9033. msm_routing_get_port_mixer,
  9034. msm_routing_put_port_mixer),
  9035. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9036. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9037. msm_routing_get_port_mixer,
  9038. msm_routing_put_port_mixer),
  9039. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9040. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9041. msm_routing_get_port_mixer,
  9042. msm_routing_put_port_mixer),
  9043. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9044. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9045. msm_routing_get_port_mixer,
  9046. msm_routing_put_port_mixer),
  9047. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9048. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9049. msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9052. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9053. msm_routing_get_port_mixer,
  9054. msm_routing_put_port_mixer),
  9055. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9056. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9057. msm_routing_get_port_mixer,
  9058. msm_routing_put_port_mixer),
  9059. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9060. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9061. msm_routing_get_port_mixer,
  9062. msm_routing_put_port_mixer),
  9063. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9064. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9065. msm_routing_get_port_mixer,
  9066. msm_routing_put_port_mixer),
  9067. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9068. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9069. msm_routing_get_port_mixer,
  9070. msm_routing_put_port_mixer),
  9071. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9072. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9073. msm_routing_get_port_mixer,
  9074. msm_routing_put_port_mixer),
  9075. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9076. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9077. msm_routing_get_port_mixer,
  9078. msm_routing_put_port_mixer),
  9079. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9080. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9081. msm_routing_get_port_mixer,
  9082. msm_routing_put_port_mixer),
  9083. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9084. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9085. msm_routing_get_port_mixer,
  9086. msm_routing_put_port_mixer),
  9087. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9088. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9089. msm_routing_get_port_mixer,
  9090. msm_routing_put_port_mixer),
  9091. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9092. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9093. msm_routing_get_port_mixer,
  9094. msm_routing_put_port_mixer),
  9095. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9096. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9097. msm_routing_get_port_mixer,
  9098. msm_routing_put_port_mixer),
  9099. };
  9100. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9101. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9102. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9103. msm_routing_get_port_mixer,
  9104. msm_routing_put_port_mixer),
  9105. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9106. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9107. msm_routing_get_port_mixer,
  9108. msm_routing_put_port_mixer),
  9109. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9111. msm_routing_get_port_mixer,
  9112. msm_routing_put_port_mixer),
  9113. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9114. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9115. msm_routing_get_port_mixer,
  9116. msm_routing_put_port_mixer),
  9117. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9118. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9119. msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9122. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9123. msm_routing_get_port_mixer,
  9124. msm_routing_put_port_mixer),
  9125. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9126. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9127. msm_routing_get_port_mixer,
  9128. msm_routing_put_port_mixer),
  9129. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9130. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9131. msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9134. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9135. msm_routing_get_port_mixer,
  9136. msm_routing_put_port_mixer),
  9137. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9138. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9139. msm_routing_get_port_mixer,
  9140. msm_routing_put_port_mixer),
  9141. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9142. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9143. msm_routing_get_port_mixer,
  9144. msm_routing_put_port_mixer),
  9145. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9146. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9147. msm_routing_get_port_mixer,
  9148. msm_routing_put_port_mixer),
  9149. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9150. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9151. msm_routing_get_port_mixer,
  9152. msm_routing_put_port_mixer),
  9153. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9154. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9155. msm_routing_get_port_mixer,
  9156. msm_routing_put_port_mixer),
  9157. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9158. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9159. msm_routing_get_port_mixer,
  9160. msm_routing_put_port_mixer),
  9161. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9162. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9163. msm_routing_get_port_mixer,
  9164. msm_routing_put_port_mixer),
  9165. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9166. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9167. msm_routing_get_port_mixer,
  9168. msm_routing_put_port_mixer),
  9169. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9170. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9171. msm_routing_get_port_mixer,
  9172. msm_routing_put_port_mixer),
  9173. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9174. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9175. msm_routing_get_port_mixer,
  9176. msm_routing_put_port_mixer),
  9177. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9178. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9179. msm_routing_get_port_mixer,
  9180. msm_routing_put_port_mixer),
  9181. };
  9182. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9183. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9185. msm_routing_get_port_mixer,
  9186. msm_routing_put_port_mixer),
  9187. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9188. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9189. msm_routing_get_port_mixer,
  9190. msm_routing_put_port_mixer),
  9191. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9192. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9193. msm_routing_get_port_mixer,
  9194. msm_routing_put_port_mixer),
  9195. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9196. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9197. msm_routing_get_port_mixer,
  9198. msm_routing_put_port_mixer),
  9199. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9200. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9201. msm_routing_get_port_mixer,
  9202. msm_routing_put_port_mixer),
  9203. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9204. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9205. msm_routing_get_port_mixer,
  9206. msm_routing_put_port_mixer),
  9207. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9208. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9209. msm_routing_get_port_mixer,
  9210. msm_routing_put_port_mixer),
  9211. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9212. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9213. msm_routing_get_port_mixer,
  9214. msm_routing_put_port_mixer),
  9215. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9216. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9217. msm_routing_get_port_mixer,
  9218. msm_routing_put_port_mixer),
  9219. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9220. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9221. msm_routing_get_port_mixer,
  9222. msm_routing_put_port_mixer),
  9223. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9224. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9225. msm_routing_get_port_mixer,
  9226. msm_routing_put_port_mixer),
  9227. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9228. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9229. msm_routing_get_port_mixer,
  9230. msm_routing_put_port_mixer),
  9231. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9232. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9233. msm_routing_get_port_mixer,
  9234. msm_routing_put_port_mixer),
  9235. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9236. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9237. msm_routing_get_port_mixer,
  9238. msm_routing_put_port_mixer),
  9239. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9240. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9241. msm_routing_get_port_mixer,
  9242. msm_routing_put_port_mixer),
  9243. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9244. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9245. msm_routing_get_port_mixer,
  9246. msm_routing_put_port_mixer),
  9247. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9248. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9249. msm_routing_get_port_mixer,
  9250. msm_routing_put_port_mixer),
  9251. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9252. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9253. msm_routing_get_port_mixer,
  9254. msm_routing_put_port_mixer),
  9255. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9256. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9257. msm_routing_get_port_mixer,
  9258. msm_routing_put_port_mixer),
  9259. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9261. msm_routing_get_port_mixer,
  9262. msm_routing_put_port_mixer),
  9263. };
  9264. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9265. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9266. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9267. msm_routing_get_port_mixer,
  9268. msm_routing_put_port_mixer),
  9269. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9270. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9271. msm_routing_get_port_mixer,
  9272. msm_routing_put_port_mixer),
  9273. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9274. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9275. msm_routing_get_port_mixer,
  9276. msm_routing_put_port_mixer),
  9277. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9278. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9279. msm_routing_get_port_mixer,
  9280. msm_routing_put_port_mixer),
  9281. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9282. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9283. msm_routing_get_port_mixer,
  9284. msm_routing_put_port_mixer),
  9285. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9286. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9287. msm_routing_get_port_mixer,
  9288. msm_routing_put_port_mixer),
  9289. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9290. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9291. msm_routing_get_port_mixer,
  9292. msm_routing_put_port_mixer),
  9293. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9294. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9295. msm_routing_get_port_mixer,
  9296. msm_routing_put_port_mixer),
  9297. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9298. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9299. msm_routing_get_port_mixer,
  9300. msm_routing_put_port_mixer),
  9301. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9302. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9303. msm_routing_get_port_mixer,
  9304. msm_routing_put_port_mixer),
  9305. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9306. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9307. msm_routing_get_port_mixer,
  9308. msm_routing_put_port_mixer),
  9309. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9310. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9311. msm_routing_get_port_mixer,
  9312. msm_routing_put_port_mixer),
  9313. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9314. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9315. msm_routing_get_port_mixer,
  9316. msm_routing_put_port_mixer),
  9317. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9318. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9319. msm_routing_get_port_mixer,
  9320. msm_routing_put_port_mixer),
  9321. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9322. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9323. msm_routing_get_port_mixer,
  9324. msm_routing_put_port_mixer),
  9325. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9326. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9327. msm_routing_get_port_mixer,
  9328. msm_routing_put_port_mixer),
  9329. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9330. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9331. msm_routing_get_port_mixer,
  9332. msm_routing_put_port_mixer),
  9333. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9334. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9335. msm_routing_get_port_mixer,
  9336. msm_routing_put_port_mixer),
  9337. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9338. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9339. msm_routing_get_port_mixer,
  9340. msm_routing_put_port_mixer),
  9341. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9342. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9343. msm_routing_get_port_mixer,
  9344. msm_routing_put_port_mixer),
  9345. };
  9346. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9347. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9348. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9349. msm_routing_get_port_mixer,
  9350. msm_routing_put_port_mixer),
  9351. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9352. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9353. msm_routing_get_port_mixer,
  9354. msm_routing_put_port_mixer),
  9355. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9356. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9357. msm_routing_get_port_mixer,
  9358. msm_routing_put_port_mixer),
  9359. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9360. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9361. msm_routing_get_port_mixer,
  9362. msm_routing_put_port_mixer),
  9363. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9364. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9365. msm_routing_get_port_mixer,
  9366. msm_routing_put_port_mixer),
  9367. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9368. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9369. msm_routing_get_port_mixer,
  9370. msm_routing_put_port_mixer),
  9371. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9372. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9373. msm_routing_get_port_mixer,
  9374. msm_routing_put_port_mixer),
  9375. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9376. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9377. msm_routing_get_port_mixer,
  9378. msm_routing_put_port_mixer),
  9379. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9380. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9381. msm_routing_get_port_mixer,
  9382. msm_routing_put_port_mixer),
  9383. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9384. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9385. msm_routing_get_port_mixer,
  9386. msm_routing_put_port_mixer),
  9387. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9388. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9389. msm_routing_get_port_mixer,
  9390. msm_routing_put_port_mixer),
  9391. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9392. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9393. msm_routing_get_port_mixer,
  9394. msm_routing_put_port_mixer),
  9395. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9397. msm_routing_get_port_mixer,
  9398. msm_routing_put_port_mixer),
  9399. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9400. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9401. msm_routing_get_port_mixer,
  9402. msm_routing_put_port_mixer),
  9403. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9404. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9405. msm_routing_get_port_mixer,
  9406. msm_routing_put_port_mixer),
  9407. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9408. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9409. msm_routing_get_port_mixer,
  9410. msm_routing_put_port_mixer),
  9411. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9412. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9413. msm_routing_get_port_mixer,
  9414. msm_routing_put_port_mixer),
  9415. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9416. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9417. msm_routing_get_port_mixer,
  9418. msm_routing_put_port_mixer),
  9419. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9420. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9421. msm_routing_get_port_mixer,
  9422. msm_routing_put_port_mixer),
  9423. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9424. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9425. msm_routing_get_port_mixer,
  9426. msm_routing_put_port_mixer),
  9427. };
  9428. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9429. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9430. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9431. msm_routing_get_port_mixer,
  9432. msm_routing_put_port_mixer),
  9433. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9435. msm_routing_get_port_mixer,
  9436. msm_routing_put_port_mixer),
  9437. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9438. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9439. msm_routing_get_port_mixer,
  9440. msm_routing_put_port_mixer),
  9441. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9442. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9443. msm_routing_get_port_mixer,
  9444. msm_routing_put_port_mixer),
  9445. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9446. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9447. msm_routing_get_port_mixer,
  9448. msm_routing_put_port_mixer),
  9449. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9450. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9451. msm_routing_get_port_mixer,
  9452. msm_routing_put_port_mixer),
  9453. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9454. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9455. msm_routing_get_port_mixer,
  9456. msm_routing_put_port_mixer),
  9457. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9458. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9459. msm_routing_get_port_mixer,
  9460. msm_routing_put_port_mixer),
  9461. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9462. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9463. msm_routing_get_port_mixer,
  9464. msm_routing_put_port_mixer),
  9465. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9466. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9467. msm_routing_get_port_mixer,
  9468. msm_routing_put_port_mixer),
  9469. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9470. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9471. msm_routing_get_port_mixer,
  9472. msm_routing_put_port_mixer),
  9473. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9474. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9475. msm_routing_get_port_mixer,
  9476. msm_routing_put_port_mixer),
  9477. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9478. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9479. msm_routing_get_port_mixer,
  9480. msm_routing_put_port_mixer),
  9481. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9482. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9483. msm_routing_get_port_mixer,
  9484. msm_routing_put_port_mixer),
  9485. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9486. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9487. msm_routing_get_port_mixer,
  9488. msm_routing_put_port_mixer),
  9489. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9490. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9491. msm_routing_get_port_mixer,
  9492. msm_routing_put_port_mixer),
  9493. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9494. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9495. msm_routing_get_port_mixer,
  9496. msm_routing_put_port_mixer),
  9497. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9498. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9499. msm_routing_get_port_mixer,
  9500. msm_routing_put_port_mixer),
  9501. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9502. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9503. msm_routing_get_port_mixer,
  9504. msm_routing_put_port_mixer),
  9505. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9506. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9507. msm_routing_get_port_mixer,
  9508. msm_routing_put_port_mixer),
  9509. };
  9510. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9511. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9512. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9513. msm_routing_get_port_mixer,
  9514. msm_routing_put_port_mixer),
  9515. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9517. msm_routing_get_port_mixer,
  9518. msm_routing_put_port_mixer),
  9519. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9520. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9521. msm_routing_get_port_mixer,
  9522. msm_routing_put_port_mixer),
  9523. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9524. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9525. msm_routing_get_port_mixer,
  9526. msm_routing_put_port_mixer),
  9527. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9528. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9529. msm_routing_get_port_mixer,
  9530. msm_routing_put_port_mixer),
  9531. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9532. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9533. msm_routing_get_port_mixer,
  9534. msm_routing_put_port_mixer),
  9535. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9536. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9537. msm_routing_get_port_mixer,
  9538. msm_routing_put_port_mixer),
  9539. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9540. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9541. msm_routing_get_port_mixer,
  9542. msm_routing_put_port_mixer),
  9543. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9544. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9545. msm_routing_get_port_mixer,
  9546. msm_routing_put_port_mixer),
  9547. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9548. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9549. msm_routing_get_port_mixer,
  9550. msm_routing_put_port_mixer),
  9551. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9552. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9553. msm_routing_get_port_mixer,
  9554. msm_routing_put_port_mixer),
  9555. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9557. msm_routing_get_port_mixer,
  9558. msm_routing_put_port_mixer),
  9559. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9560. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9561. msm_routing_get_port_mixer,
  9562. msm_routing_put_port_mixer),
  9563. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9564. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9565. msm_routing_get_port_mixer,
  9566. msm_routing_put_port_mixer),
  9567. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9568. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9569. msm_routing_get_port_mixer,
  9570. msm_routing_put_port_mixer),
  9571. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9572. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9573. msm_routing_get_port_mixer,
  9574. msm_routing_put_port_mixer),
  9575. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9576. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9577. msm_routing_get_port_mixer,
  9578. msm_routing_put_port_mixer),
  9579. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9580. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9581. msm_routing_get_port_mixer,
  9582. msm_routing_put_port_mixer),
  9583. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9584. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9585. msm_routing_get_port_mixer,
  9586. msm_routing_put_port_mixer),
  9587. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9588. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9589. msm_routing_get_port_mixer,
  9590. msm_routing_put_port_mixer),
  9591. };
  9592. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9593. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9594. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9595. msm_routing_get_port_mixer,
  9596. msm_routing_put_port_mixer),
  9597. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9598. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9599. msm_routing_get_port_mixer,
  9600. msm_routing_put_port_mixer),
  9601. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9602. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9603. msm_routing_get_port_mixer,
  9604. msm_routing_put_port_mixer),
  9605. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9606. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9607. msm_routing_get_port_mixer,
  9608. msm_routing_put_port_mixer),
  9609. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9610. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9611. msm_routing_get_port_mixer,
  9612. msm_routing_put_port_mixer),
  9613. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9614. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9615. msm_routing_get_port_mixer,
  9616. msm_routing_put_port_mixer),
  9617. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9618. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9619. msm_routing_get_port_mixer,
  9620. msm_routing_put_port_mixer),
  9621. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9622. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9623. msm_routing_get_port_mixer,
  9624. msm_routing_put_port_mixer),
  9625. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9626. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9627. msm_routing_get_port_mixer,
  9628. msm_routing_put_port_mixer),
  9629. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9630. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9631. msm_routing_get_port_mixer,
  9632. msm_routing_put_port_mixer),
  9633. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9634. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9635. msm_routing_get_port_mixer,
  9636. msm_routing_put_port_mixer),
  9637. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9638. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9639. msm_routing_get_port_mixer,
  9640. msm_routing_put_port_mixer),
  9641. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9642. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9643. msm_routing_get_port_mixer,
  9644. msm_routing_put_port_mixer),
  9645. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9646. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9647. msm_routing_get_port_mixer,
  9648. msm_routing_put_port_mixer),
  9649. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9650. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9651. msm_routing_get_port_mixer,
  9652. msm_routing_put_port_mixer),
  9653. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9654. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9655. msm_routing_get_port_mixer,
  9656. msm_routing_put_port_mixer),
  9657. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9658. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9659. msm_routing_get_port_mixer,
  9660. msm_routing_put_port_mixer),
  9661. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9662. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9663. msm_routing_get_port_mixer,
  9664. msm_routing_put_port_mixer),
  9665. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9666. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9667. msm_routing_get_port_mixer,
  9668. msm_routing_put_port_mixer),
  9669. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9670. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9671. msm_routing_get_port_mixer,
  9672. msm_routing_put_port_mixer),
  9673. };
  9674. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9675. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9676. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9677. msm_routing_get_port_mixer,
  9678. msm_routing_put_port_mixer),
  9679. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9681. msm_routing_get_port_mixer,
  9682. msm_routing_put_port_mixer),
  9683. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9685. msm_routing_get_port_mixer,
  9686. msm_routing_put_port_mixer),
  9687. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9688. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9689. msm_routing_get_port_mixer,
  9690. msm_routing_put_port_mixer),
  9691. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9692. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9693. msm_routing_get_port_mixer,
  9694. msm_routing_put_port_mixer),
  9695. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9696. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9697. msm_routing_get_port_mixer,
  9698. msm_routing_put_port_mixer),
  9699. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9700. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9701. msm_routing_get_port_mixer,
  9702. msm_routing_put_port_mixer),
  9703. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9704. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9705. msm_routing_get_port_mixer,
  9706. msm_routing_put_port_mixer),
  9707. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9708. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9709. msm_routing_get_port_mixer,
  9710. msm_routing_put_port_mixer),
  9711. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9712. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9713. msm_routing_get_port_mixer,
  9714. msm_routing_put_port_mixer),
  9715. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9716. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9717. msm_routing_get_port_mixer,
  9718. msm_routing_put_port_mixer),
  9719. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9720. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9721. msm_routing_get_port_mixer,
  9722. msm_routing_put_port_mixer),
  9723. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9724. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9725. msm_routing_get_port_mixer,
  9726. msm_routing_put_port_mixer),
  9727. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9728. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9729. msm_routing_get_port_mixer,
  9730. msm_routing_put_port_mixer),
  9731. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9732. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9733. msm_routing_get_port_mixer,
  9734. msm_routing_put_port_mixer),
  9735. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9736. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9737. msm_routing_get_port_mixer,
  9738. msm_routing_put_port_mixer),
  9739. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9740. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9741. msm_routing_get_port_mixer,
  9742. msm_routing_put_port_mixer),
  9743. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9744. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9745. msm_routing_get_port_mixer,
  9746. msm_routing_put_port_mixer),
  9747. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9748. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9749. msm_routing_get_port_mixer,
  9750. msm_routing_put_port_mixer),
  9751. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9752. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9753. msm_routing_get_port_mixer,
  9754. msm_routing_put_port_mixer),
  9755. };
  9756. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9757. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9758. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9759. msm_routing_get_port_mixer,
  9760. msm_routing_put_port_mixer),
  9761. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9762. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9763. msm_routing_get_port_mixer,
  9764. msm_routing_put_port_mixer),
  9765. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9766. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9767. msm_routing_get_port_mixer,
  9768. msm_routing_put_port_mixer),
  9769. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9770. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9771. msm_routing_get_port_mixer,
  9772. msm_routing_put_port_mixer),
  9773. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9774. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9775. msm_routing_get_port_mixer,
  9776. msm_routing_put_port_mixer),
  9777. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9778. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9779. msm_routing_get_port_mixer,
  9780. msm_routing_put_port_mixer),
  9781. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9782. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9783. msm_routing_get_port_mixer,
  9784. msm_routing_put_port_mixer),
  9785. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9786. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9787. msm_routing_get_port_mixer,
  9788. msm_routing_put_port_mixer),
  9789. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9790. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9791. msm_routing_get_port_mixer,
  9792. msm_routing_put_port_mixer),
  9793. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9794. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9795. msm_routing_get_port_mixer,
  9796. msm_routing_put_port_mixer),
  9797. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9798. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9799. msm_routing_get_port_mixer,
  9800. msm_routing_put_port_mixer),
  9801. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9802. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9803. msm_routing_get_port_mixer,
  9804. msm_routing_put_port_mixer),
  9805. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9806. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9807. msm_routing_get_port_mixer,
  9808. msm_routing_put_port_mixer),
  9809. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9810. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9811. msm_routing_get_port_mixer,
  9812. msm_routing_put_port_mixer),
  9813. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9814. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9815. msm_routing_get_port_mixer,
  9816. msm_routing_put_port_mixer),
  9817. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9819. msm_routing_get_port_mixer,
  9820. msm_routing_put_port_mixer),
  9821. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9822. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9823. msm_routing_get_port_mixer,
  9824. msm_routing_put_port_mixer),
  9825. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9826. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9827. msm_routing_get_port_mixer,
  9828. msm_routing_put_port_mixer),
  9829. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9830. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9831. msm_routing_get_port_mixer,
  9832. msm_routing_put_port_mixer),
  9833. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9834. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9835. msm_routing_get_port_mixer,
  9836. msm_routing_put_port_mixer),
  9837. };
  9838. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9839. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9840. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9841. msm_routing_get_port_mixer,
  9842. msm_routing_put_port_mixer),
  9843. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9844. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9845. msm_routing_get_port_mixer,
  9846. msm_routing_put_port_mixer),
  9847. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9848. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9849. msm_routing_get_port_mixer,
  9850. msm_routing_put_port_mixer),
  9851. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9852. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9853. msm_routing_get_port_mixer,
  9854. msm_routing_put_port_mixer),
  9855. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9856. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9857. msm_routing_get_port_mixer,
  9858. msm_routing_put_port_mixer),
  9859. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9860. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9861. msm_routing_get_port_mixer,
  9862. msm_routing_put_port_mixer),
  9863. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9864. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9865. msm_routing_get_port_mixer,
  9866. msm_routing_put_port_mixer),
  9867. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9868. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9869. msm_routing_get_port_mixer,
  9870. msm_routing_put_port_mixer),
  9871. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9872. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9873. msm_routing_get_port_mixer,
  9874. msm_routing_put_port_mixer),
  9875. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9876. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9877. msm_routing_get_port_mixer,
  9878. msm_routing_put_port_mixer),
  9879. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9880. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9881. msm_routing_get_port_mixer,
  9882. msm_routing_put_port_mixer),
  9883. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9885. msm_routing_get_port_mixer,
  9886. msm_routing_put_port_mixer),
  9887. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9888. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9889. msm_routing_get_port_mixer,
  9890. msm_routing_put_port_mixer),
  9891. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9892. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9893. msm_routing_get_port_mixer,
  9894. msm_routing_put_port_mixer),
  9895. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9896. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9897. msm_routing_get_port_mixer,
  9898. msm_routing_put_port_mixer),
  9899. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9900. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9901. msm_routing_get_port_mixer,
  9902. msm_routing_put_port_mixer),
  9903. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9904. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9905. msm_routing_get_port_mixer,
  9906. msm_routing_put_port_mixer),
  9907. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9908. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9909. msm_routing_get_port_mixer,
  9910. msm_routing_put_port_mixer),
  9911. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9912. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9913. msm_routing_get_port_mixer,
  9914. msm_routing_put_port_mixer),
  9915. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9916. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9917. msm_routing_get_port_mixer,
  9918. msm_routing_put_port_mixer),
  9919. };
  9920. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  9921. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9922. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9923. msm_routing_get_port_mixer,
  9924. msm_routing_put_port_mixer),
  9925. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9926. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9927. msm_routing_get_port_mixer,
  9928. msm_routing_put_port_mixer),
  9929. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9930. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9931. msm_routing_get_port_mixer,
  9932. msm_routing_put_port_mixer),
  9933. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9934. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9935. msm_routing_get_port_mixer,
  9936. msm_routing_put_port_mixer),
  9937. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9938. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9939. msm_routing_get_port_mixer,
  9940. msm_routing_put_port_mixer),
  9941. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9942. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9943. msm_routing_get_port_mixer,
  9944. msm_routing_put_port_mixer),
  9945. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9946. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9947. msm_routing_get_port_mixer,
  9948. msm_routing_put_port_mixer),
  9949. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9950. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9951. msm_routing_get_port_mixer,
  9952. msm_routing_put_port_mixer),
  9953. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9954. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9955. msm_routing_get_port_mixer,
  9956. msm_routing_put_port_mixer),
  9957. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9958. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9959. msm_routing_get_port_mixer,
  9960. msm_routing_put_port_mixer),
  9961. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9962. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9963. msm_routing_get_port_mixer,
  9964. msm_routing_put_port_mixer),
  9965. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9966. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9967. msm_routing_get_port_mixer,
  9968. msm_routing_put_port_mixer),
  9969. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9970. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9971. msm_routing_get_port_mixer,
  9972. msm_routing_put_port_mixer),
  9973. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9974. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9975. msm_routing_get_port_mixer,
  9976. msm_routing_put_port_mixer),
  9977. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9978. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9979. msm_routing_get_port_mixer,
  9980. msm_routing_put_port_mixer),
  9981. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9982. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9983. msm_routing_get_port_mixer,
  9984. msm_routing_put_port_mixer),
  9985. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9986. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9987. msm_routing_get_port_mixer,
  9988. msm_routing_put_port_mixer),
  9989. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9990. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9991. msm_routing_get_port_mixer,
  9992. msm_routing_put_port_mixer),
  9993. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9994. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9995. msm_routing_get_port_mixer,
  9996. msm_routing_put_port_mixer),
  9997. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9998. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9999. msm_routing_get_port_mixer,
  10000. msm_routing_put_port_mixer),
  10001. };
  10002. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10003. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10004. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10005. msm_routing_get_port_mixer,
  10006. msm_routing_put_port_mixer),
  10007. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10008. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10009. msm_routing_get_port_mixer,
  10010. msm_routing_put_port_mixer),
  10011. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10012. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10013. msm_routing_get_port_mixer,
  10014. msm_routing_put_port_mixer),
  10015. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10016. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10017. msm_routing_get_port_mixer,
  10018. msm_routing_put_port_mixer),
  10019. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10020. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10021. msm_routing_get_port_mixer,
  10022. msm_routing_put_port_mixer),
  10023. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10024. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10025. msm_routing_get_port_mixer,
  10026. msm_routing_put_port_mixer),
  10027. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10028. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10029. msm_routing_get_port_mixer,
  10030. msm_routing_put_port_mixer),
  10031. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10032. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10033. msm_routing_get_port_mixer,
  10034. msm_routing_put_port_mixer),
  10035. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10036. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10037. msm_routing_get_port_mixer,
  10038. msm_routing_put_port_mixer),
  10039. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10040. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10041. msm_routing_get_port_mixer,
  10042. msm_routing_put_port_mixer),
  10043. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10044. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10045. msm_routing_get_port_mixer,
  10046. msm_routing_put_port_mixer),
  10047. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10048. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10049. msm_routing_get_port_mixer,
  10050. msm_routing_put_port_mixer),
  10051. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10052. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10053. msm_routing_get_port_mixer,
  10054. msm_routing_put_port_mixer),
  10055. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10056. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10057. msm_routing_get_port_mixer,
  10058. msm_routing_put_port_mixer),
  10059. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10060. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10061. msm_routing_get_port_mixer,
  10062. msm_routing_put_port_mixer),
  10063. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10064. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10065. msm_routing_get_port_mixer,
  10066. msm_routing_put_port_mixer),
  10067. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10068. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10069. msm_routing_get_port_mixer,
  10070. msm_routing_put_port_mixer),
  10071. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10073. msm_routing_get_port_mixer,
  10074. msm_routing_put_port_mixer),
  10075. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10076. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10077. msm_routing_get_port_mixer,
  10078. msm_routing_put_port_mixer),
  10079. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10080. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10081. msm_routing_get_port_mixer,
  10082. msm_routing_put_port_mixer),
  10083. };
  10084. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10085. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10086. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10087. msm_routing_get_port_mixer,
  10088. msm_routing_put_port_mixer),
  10089. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10091. msm_routing_get_port_mixer,
  10092. msm_routing_put_port_mixer),
  10093. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10094. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10095. msm_routing_get_port_mixer,
  10096. msm_routing_put_port_mixer),
  10097. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10098. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10099. msm_routing_get_port_mixer,
  10100. msm_routing_put_port_mixer),
  10101. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10102. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10103. msm_routing_get_port_mixer,
  10104. msm_routing_put_port_mixer),
  10105. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10106. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10107. msm_routing_get_port_mixer,
  10108. msm_routing_put_port_mixer),
  10109. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10110. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10111. msm_routing_get_port_mixer,
  10112. msm_routing_put_port_mixer),
  10113. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10114. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10115. msm_routing_get_port_mixer,
  10116. msm_routing_put_port_mixer),
  10117. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10118. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10119. msm_routing_get_port_mixer,
  10120. msm_routing_put_port_mixer),
  10121. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10122. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10123. msm_routing_get_port_mixer,
  10124. msm_routing_put_port_mixer),
  10125. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10126. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10127. msm_routing_get_port_mixer,
  10128. msm_routing_put_port_mixer),
  10129. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10130. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10131. msm_routing_get_port_mixer,
  10132. msm_routing_put_port_mixer),
  10133. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10134. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10135. msm_routing_get_port_mixer,
  10136. msm_routing_put_port_mixer),
  10137. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10138. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10139. msm_routing_get_port_mixer,
  10140. msm_routing_put_port_mixer),
  10141. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10142. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10143. msm_routing_get_port_mixer,
  10144. msm_routing_put_port_mixer),
  10145. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10146. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10147. msm_routing_get_port_mixer,
  10148. msm_routing_put_port_mixer),
  10149. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10150. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10151. msm_routing_get_port_mixer,
  10152. msm_routing_put_port_mixer),
  10153. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10154. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10155. msm_routing_get_port_mixer,
  10156. msm_routing_put_port_mixer),
  10157. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10158. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10159. msm_routing_get_port_mixer,
  10160. msm_routing_put_port_mixer),
  10161. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10162. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10163. msm_routing_get_port_mixer,
  10164. msm_routing_put_port_mixer),
  10165. };
  10166. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10167. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10168. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10169. msm_routing_get_port_mixer,
  10170. msm_routing_put_port_mixer),
  10171. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10172. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10173. msm_routing_get_port_mixer,
  10174. msm_routing_put_port_mixer),
  10175. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10176. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10177. msm_routing_get_port_mixer,
  10178. msm_routing_put_port_mixer),
  10179. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10180. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10181. msm_routing_get_port_mixer,
  10182. msm_routing_put_port_mixer),
  10183. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10184. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10185. msm_routing_get_port_mixer,
  10186. msm_routing_put_port_mixer),
  10187. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10188. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10189. msm_routing_get_port_mixer,
  10190. msm_routing_put_port_mixer),
  10191. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10192. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10193. msm_routing_get_port_mixer,
  10194. msm_routing_put_port_mixer),
  10195. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10196. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10197. msm_routing_get_port_mixer,
  10198. msm_routing_put_port_mixer),
  10199. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10200. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10201. msm_routing_get_port_mixer,
  10202. msm_routing_put_port_mixer),
  10203. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10204. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10205. msm_routing_get_port_mixer,
  10206. msm_routing_put_port_mixer),
  10207. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10208. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10209. msm_routing_get_port_mixer,
  10210. msm_routing_put_port_mixer),
  10211. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10212. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10213. msm_routing_get_port_mixer,
  10214. msm_routing_put_port_mixer),
  10215. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10217. msm_routing_get_port_mixer,
  10218. msm_routing_put_port_mixer),
  10219. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10221. msm_routing_get_port_mixer,
  10222. msm_routing_put_port_mixer),
  10223. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10225. msm_routing_get_port_mixer,
  10226. msm_routing_put_port_mixer),
  10227. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10229. msm_routing_get_port_mixer,
  10230. msm_routing_put_port_mixer),
  10231. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10232. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10233. msm_routing_get_port_mixer,
  10234. msm_routing_put_port_mixer),
  10235. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10236. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10237. msm_routing_get_port_mixer,
  10238. msm_routing_put_port_mixer),
  10239. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10240. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10241. msm_routing_get_port_mixer,
  10242. msm_routing_put_port_mixer),
  10243. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10244. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10245. msm_routing_get_port_mixer,
  10246. msm_routing_put_port_mixer),
  10247. };
  10248. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10249. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10250. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10251. msm_routing_get_port_mixer,
  10252. msm_routing_put_port_mixer),
  10253. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10254. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10255. msm_routing_get_port_mixer,
  10256. msm_routing_put_port_mixer),
  10257. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10258. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10259. msm_routing_get_port_mixer,
  10260. msm_routing_put_port_mixer),
  10261. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10262. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10263. msm_routing_get_port_mixer,
  10264. msm_routing_put_port_mixer),
  10265. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10266. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10267. msm_routing_get_port_mixer,
  10268. msm_routing_put_port_mixer),
  10269. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10270. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10271. msm_routing_get_port_mixer,
  10272. msm_routing_put_port_mixer),
  10273. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10274. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10275. msm_routing_get_port_mixer,
  10276. msm_routing_put_port_mixer),
  10277. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10278. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10279. msm_routing_get_port_mixer,
  10280. msm_routing_put_port_mixer),
  10281. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10282. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10283. msm_routing_get_port_mixer,
  10284. msm_routing_put_port_mixer),
  10285. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10286. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10287. msm_routing_get_port_mixer,
  10288. msm_routing_put_port_mixer),
  10289. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10290. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10291. msm_routing_get_port_mixer,
  10292. msm_routing_put_port_mixer),
  10293. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10294. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10295. msm_routing_get_port_mixer,
  10296. msm_routing_put_port_mixer),
  10297. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10298. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10299. msm_routing_get_port_mixer,
  10300. msm_routing_put_port_mixer),
  10301. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10302. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10303. msm_routing_get_port_mixer,
  10304. msm_routing_put_port_mixer),
  10305. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10306. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10307. msm_routing_get_port_mixer,
  10308. msm_routing_put_port_mixer),
  10309. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10310. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10311. msm_routing_get_port_mixer,
  10312. msm_routing_put_port_mixer),
  10313. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10314. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10315. msm_routing_get_port_mixer,
  10316. msm_routing_put_port_mixer),
  10317. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10318. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10319. msm_routing_get_port_mixer,
  10320. msm_routing_put_port_mixer),
  10321. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10323. msm_routing_get_port_mixer,
  10324. msm_routing_put_port_mixer),
  10325. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10326. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10327. msm_routing_get_port_mixer,
  10328. msm_routing_put_port_mixer),
  10329. };
  10330. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10331. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10332. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10333. msm_routing_put_port_mixer),
  10334. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10336. msm_routing_put_port_mixer),
  10337. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10338. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10339. msm_routing_put_port_mixer),
  10340. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10341. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10342. msm_routing_put_port_mixer),
  10343. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10344. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10345. msm_routing_put_port_mixer),
  10346. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10347. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10350. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10351. msm_routing_put_port_mixer),
  10352. };
  10353. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10354. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10356. msm_routing_put_port_mixer),
  10357. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10358. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10359. msm_routing_put_port_mixer),
  10360. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10361. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10362. msm_routing_put_port_mixer),
  10363. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10365. msm_routing_put_port_mixer),
  10366. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10367. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10370. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10371. msm_routing_put_port_mixer),
  10372. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10373. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10374. msm_routing_put_port_mixer),
  10375. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10376. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10377. msm_routing_put_port_mixer),
  10378. };
  10379. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10380. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10381. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10382. msm_routing_put_listen_mixer),
  10383. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10384. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10385. msm_routing_put_listen_mixer),
  10386. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10387. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10388. msm_routing_put_listen_mixer),
  10389. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10390. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10391. msm_routing_put_listen_mixer),
  10392. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10393. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10394. msm_routing_put_listen_mixer),
  10395. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10396. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10397. msm_routing_put_listen_mixer),
  10398. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10399. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10400. msm_routing_put_listen_mixer),
  10401. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10402. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10403. msm_routing_put_listen_mixer),
  10404. };
  10405. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10406. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10407. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10408. msm_routing_put_listen_mixer),
  10409. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10410. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10411. msm_routing_put_listen_mixer),
  10412. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10413. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10414. msm_routing_put_listen_mixer),
  10415. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10416. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10417. msm_routing_put_listen_mixer),
  10418. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10420. msm_routing_put_listen_mixer),
  10421. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10422. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10423. msm_routing_put_listen_mixer),
  10424. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10425. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10426. msm_routing_put_listen_mixer),
  10427. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10428. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10429. msm_routing_put_listen_mixer),
  10430. };
  10431. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10432. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10433. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10434. msm_routing_put_listen_mixer),
  10435. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10436. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10437. msm_routing_put_listen_mixer),
  10438. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10439. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10440. msm_routing_put_listen_mixer),
  10441. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10442. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10443. msm_routing_put_listen_mixer),
  10444. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10446. msm_routing_put_listen_mixer),
  10447. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10448. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10449. msm_routing_put_listen_mixer),
  10450. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10451. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10452. msm_routing_put_listen_mixer),
  10453. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10455. msm_routing_put_listen_mixer),
  10456. };
  10457. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10458. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10459. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10460. msm_routing_put_listen_mixer),
  10461. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10462. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10463. msm_routing_put_listen_mixer),
  10464. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10465. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10466. msm_routing_put_listen_mixer),
  10467. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10468. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10469. msm_routing_put_listen_mixer),
  10470. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10471. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10472. msm_routing_put_listen_mixer),
  10473. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10474. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10475. msm_routing_put_listen_mixer),
  10476. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10477. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10478. msm_routing_put_listen_mixer),
  10479. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10481. msm_routing_put_listen_mixer),
  10482. };
  10483. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10484. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10485. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10486. msm_routing_put_listen_mixer),
  10487. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10488. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10489. msm_routing_put_listen_mixer),
  10490. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10491. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10492. msm_routing_put_listen_mixer),
  10493. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10494. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10495. msm_routing_put_listen_mixer),
  10496. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10497. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10498. msm_routing_put_listen_mixer),
  10499. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10501. msm_routing_put_listen_mixer),
  10502. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10503. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10504. msm_routing_put_listen_mixer),
  10505. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10506. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10507. msm_routing_put_listen_mixer),
  10508. };
  10509. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10510. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10511. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10512. msm_routing_put_listen_mixer),
  10513. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10514. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10515. msm_routing_put_listen_mixer),
  10516. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10517. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10518. msm_routing_put_listen_mixer),
  10519. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10520. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10521. msm_routing_put_listen_mixer),
  10522. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10523. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10524. msm_routing_put_listen_mixer),
  10525. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10527. msm_routing_put_listen_mixer),
  10528. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10529. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10530. msm_routing_put_listen_mixer),
  10531. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10532. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10533. msm_routing_put_listen_mixer),
  10534. };
  10535. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10536. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10537. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10538. msm_routing_put_listen_mixer),
  10539. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10540. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10541. msm_routing_put_listen_mixer),
  10542. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10543. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10544. msm_routing_put_listen_mixer),
  10545. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10546. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10547. msm_routing_put_listen_mixer),
  10548. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10549. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10550. msm_routing_put_listen_mixer),
  10551. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10552. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10553. msm_routing_put_listen_mixer),
  10554. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10555. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10556. msm_routing_put_listen_mixer),
  10557. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10558. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10559. msm_routing_put_listen_mixer),
  10560. };
  10561. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10562. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10563. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10564. msm_routing_put_listen_mixer),
  10565. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10566. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10567. msm_routing_put_listen_mixer),
  10568. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10569. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10570. msm_routing_put_listen_mixer),
  10571. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10572. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10573. msm_routing_put_listen_mixer),
  10574. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10575. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10576. msm_routing_put_listen_mixer),
  10577. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10578. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10579. msm_routing_put_listen_mixer),
  10580. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10581. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10582. msm_routing_put_listen_mixer),
  10583. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10584. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10585. msm_routing_put_listen_mixer),
  10586. };
  10587. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10588. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10589. 0, 1, 0, msm_routing_get_switch_mixer,
  10590. msm_routing_put_switch_mixer);
  10591. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10592. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10593. 0, 1, 0, msm_routing_get_switch_mixer,
  10594. msm_routing_put_switch_mixer);
  10595. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10596. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10597. 0, 1, 0, msm_routing_get_switch_mixer,
  10598. msm_routing_put_switch_mixer);
  10599. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10600. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10601. 0, 1, 0, msm_routing_get_switch_mixer,
  10602. msm_routing_put_switch_mixer);
  10603. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10604. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10605. 0, 1, 0, msm_routing_get_switch_mixer,
  10606. msm_routing_put_switch_mixer);
  10607. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10608. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10609. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10610. msm_routing_put_fm_pcmrx_switch_mixer);
  10611. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10612. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10613. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10614. msm_routing_put_int0_mi2s_switch_mixer);
  10615. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10616. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10617. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10618. msm_routing_put_int4_mi2s_switch_mixer);
  10619. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10620. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10621. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10622. msm_routing_put_pri_mi2s_switch_mixer);
  10623. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10624. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10625. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10626. msm_routing_put_sec_mi2s_switch_mixer);
  10627. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10628. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10629. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10630. msm_routing_put_tert_mi2s_switch_mixer);
  10631. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10632. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10633. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10634. msm_routing_put_quat_mi2s_switch_mixer);
  10635. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10636. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10637. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10638. msm_routing_put_quin_mi2s_switch_mixer);
  10639. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10640. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10641. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10642. msm_routing_put_hfp_switch_mixer);
  10643. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10644. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10645. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10646. msm_routing_put_hfp_switch_mixer);
  10647. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10648. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10649. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10650. msm_routing_put_hfp_switch_mixer);
  10651. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10652. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10653. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10654. msm_routing_put_hfp_switch_mixer);
  10655. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10656. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10657. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10658. msm_routing_put_usb_switch_mixer);
  10659. static const struct soc_enum lsm_port_enum =
  10660. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10661. static const char * const lsm_func_text[] = {
  10662. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10663. };
  10664. static const struct soc_enum lsm_func_enum =
  10665. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10666. static const struct snd_kcontrol_new lsm_controls[] = {
  10667. /* kcontrol of lsm_function */
  10668. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10669. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10670. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10671. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10672. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10673. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10674. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10675. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10676. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10677. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10678. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10679. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10680. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10681. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10682. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10683. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10684. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10685. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10686. /* kcontrol of lsm_port */
  10687. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10688. msm_routing_lsm_port_get,
  10689. msm_routing_lsm_port_put),
  10690. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10691. msm_routing_lsm_port_get,
  10692. msm_routing_lsm_port_put),
  10693. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10694. msm_routing_lsm_port_get,
  10695. msm_routing_lsm_port_put),
  10696. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10697. msm_routing_lsm_port_get,
  10698. msm_routing_lsm_port_put),
  10699. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10700. msm_routing_lsm_port_get,
  10701. msm_routing_lsm_port_put),
  10702. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10703. msm_routing_lsm_port_get,
  10704. msm_routing_lsm_port_put),
  10705. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10706. msm_routing_lsm_port_get,
  10707. msm_routing_lsm_port_put),
  10708. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10709. msm_routing_lsm_port_get,
  10710. msm_routing_lsm_port_put),
  10711. };
  10712. static const char * const aanc_slim_0_rx_text[] = {
  10713. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10714. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10715. };
  10716. static const struct soc_enum aanc_slim_0_rx_enum =
  10717. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10718. aanc_slim_0_rx_text);
  10719. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10720. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10721. msm_routing_slim_0_rx_aanc_mux_get,
  10722. msm_routing_slim_0_rx_aanc_mux_put)
  10723. };
  10724. static int msm_routing_get_stereo_to_custom_stereo_control(
  10725. struct snd_kcontrol *kcontrol,
  10726. struct snd_ctl_elem_value *ucontrol)
  10727. {
  10728. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10729. return 0;
  10730. }
  10731. static int msm_routing_put_stereo_to_custom_stereo_control(
  10732. struct snd_kcontrol *kcontrol,
  10733. struct snd_ctl_elem_value *ucontrol)
  10734. {
  10735. int flag = 0, i = 0, rc = 0, idx = 0;
  10736. int be_index = 0, port_id, topo_id;
  10737. unsigned int session_id = 0;
  10738. uint16_t op_FL_ip_FL_weight = 0;
  10739. uint16_t op_FL_ip_FR_weight = 0;
  10740. uint16_t op_FR_ip_FL_weight = 0;
  10741. uint16_t op_FR_ip_FR_weight = 0;
  10742. flag = ucontrol->value.integer.value[0];
  10743. pr_debug("%s E flag %d\n", __func__, flag);
  10744. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10745. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10746. __func__, is_custom_stereo_on, flag);
  10747. return 0;
  10748. }
  10749. is_custom_stereo_on = flag ? true : false;
  10750. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10751. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10752. port_id = msm_bedais[be_index].port_id;
  10753. if (!msm_bedais[be_index].active)
  10754. continue;
  10755. if ((port_id != SLIMBUS_0_RX) &&
  10756. (port_id != RT_PROXY_PORT_001_RX) &&
  10757. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10758. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10759. continue;
  10760. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10761. MSM_FRONTEND_DAI_MM_SIZE) {
  10762. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10763. LEGACY_PCM_MODE)
  10764. goto skip_send_custom_stereo;
  10765. session_id =
  10766. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10767. if (is_custom_stereo_on) {
  10768. op_FL_ip_FL_weight =
  10769. Q14_GAIN_ZERO_POINT_FIVE;
  10770. op_FL_ip_FR_weight =
  10771. Q14_GAIN_ZERO_POINT_FIVE;
  10772. op_FR_ip_FL_weight =
  10773. Q14_GAIN_ZERO_POINT_FIVE;
  10774. op_FR_ip_FR_weight =
  10775. Q14_GAIN_ZERO_POINT_FIVE;
  10776. } else {
  10777. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10778. op_FL_ip_FR_weight = 0;
  10779. op_FR_ip_FL_weight = 0;
  10780. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10781. }
  10782. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10783. unsigned long copp =
  10784. session_copp_map[i]
  10785. [SESSION_TYPE_RX][be_index];
  10786. if (!test_bit(idx, &copp))
  10787. goto skip_send_custom_stereo;
  10788. topo_id = adm_get_topology_for_port_copp_idx(
  10789. msm_bedais[be_index].port_id, idx);
  10790. if (topo_id < 0)
  10791. pr_debug("%s:Err:custom stereo topo %d",
  10792. __func__, topo_id);
  10793. pr_debug("idx %d\n", idx);
  10794. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10795. rc = msm_ds2_dap_set_custom_stereo_onoff
  10796. (msm_bedais[be_index].port_id,
  10797. idx, is_custom_stereo_on);
  10798. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10799. rc = dolby_dap_set_custom_stereo_onoff(
  10800. msm_bedais[be_index].port_id,
  10801. idx, is_custom_stereo_on);
  10802. else
  10803. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10804. (msm_bedais[be_index].port_id,
  10805. idx, session_id,
  10806. op_FL_ip_FL_weight,
  10807. op_FL_ip_FR_weight,
  10808. op_FR_ip_FL_weight,
  10809. op_FR_ip_FR_weight);
  10810. if (rc < 0)
  10811. skip_send_custom_stereo:
  10812. pr_err("%s: err setting custom stereo\n",
  10813. __func__);
  10814. }
  10815. }
  10816. }
  10817. return 0;
  10818. }
  10819. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10820. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10821. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10822. msm_routing_put_stereo_to_custom_stereo_control),
  10823. };
  10824. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10825. struct snd_ctl_elem_value *ucontrol)
  10826. {
  10827. return 0;
  10828. }
  10829. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10830. struct snd_ctl_elem_value *ucontrol)
  10831. {
  10832. int i = 0, j;
  10833. int num_app_types = ucontrol->value.integer.value[i++];
  10834. pr_debug("%s\n", __func__);
  10835. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10836. sizeof(struct msm_pcm_routing_app_type_data));
  10837. if (num_app_types > MAX_APP_TYPES) {
  10838. pr_err("%s: number of app types exceed the max supported\n",
  10839. __func__);
  10840. return -EINVAL;
  10841. }
  10842. for (j = 0; j < num_app_types; j++) {
  10843. app_type_cfg[j].app_type =
  10844. ucontrol->value.integer.value[i++];
  10845. app_type_cfg[j].sample_rate =
  10846. ucontrol->value.integer.value[i++];
  10847. app_type_cfg[j].bit_width =
  10848. ucontrol->value.integer.value[i++];
  10849. }
  10850. return 0;
  10851. }
  10852. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10853. struct snd_ctl_elem_value *ucontrol)
  10854. {
  10855. int j, fe_id, be_id, port_type;
  10856. int ret = 0;
  10857. unsigned long copp;
  10858. struct msm_pcm_routing_bdai_data *bedai;
  10859. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10860. SESSION_TYPE_RX;
  10861. int app_type = ucontrol->value.integer.value[1];
  10862. int gain = (ucontrol->value.integer.value[2] +
  10863. ucontrol->value.integer.value[3])/2;
  10864. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10865. MSM_AFE_PORT_TYPE_TX;
  10866. mutex_lock(&routing_lock);
  10867. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10868. if (is_be_dai_extproc(be_id))
  10869. continue;
  10870. bedai = &msm_bedais[be_id];
  10871. if (afe_get_port_type(bedai->port_id) != port_type)
  10872. continue;
  10873. if (!bedai->active)
  10874. continue;
  10875. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10876. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10877. continue;
  10878. if (app_type !=
  10879. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10880. continue;
  10881. copp = session_copp_map[fe_id][dir][be_id];
  10882. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  10883. if (!test_bit(j, &copp))
  10884. continue;
  10885. ret |= adm_set_volume(bedai->port_id, j, gain);
  10886. }
  10887. }
  10888. }
  10889. mutex_unlock(&routing_lock);
  10890. return ret ? -EINVAL : 0;
  10891. }
  10892. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  10893. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  10894. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  10895. msm_routing_put_app_type_cfg_control),
  10896. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  10897. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  10898. };
  10899. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  10900. struct snd_ctl_elem_value *ucontrol)
  10901. {
  10902. int copp_idx, fe_id, be_id, port_type;
  10903. int ret = 0;
  10904. unsigned long copp;
  10905. struct msm_pcm_routing_bdai_data *bedai;
  10906. char *param_data = NULL;
  10907. uint32_t *update_param_data = NULL;
  10908. uint32_t param_size = sizeof(uint32_t) +
  10909. sizeof(struct adm_param_data_v5);
  10910. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10911. SESSION_TYPE_RX;
  10912. int app_type = ucontrol->value.integer.value[1];
  10913. int module_id = ucontrol->value.integer.value[2];
  10914. int instance_id = ucontrol->value.integer.value[3];
  10915. int param_id = ucontrol->value.integer.value[4];
  10916. int param_value = ucontrol->value.integer.value[5];
  10917. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10918. MSM_AFE_PORT_TYPE_TX;
  10919. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  10920. __func__, app_type, module_id,
  10921. instance_id, param_id, param_value);
  10922. param_data = kzalloc(param_size, GFP_KERNEL);
  10923. if (!param_data)
  10924. return -ENOMEM;
  10925. update_param_data = (uint32_t *)param_data;
  10926. *update_param_data++ = module_id;
  10927. *update_param_data++ = param_id;
  10928. *update_param_data++ = sizeof(uint32_t);
  10929. *update_param_data++ = param_value;
  10930. mutex_lock(&routing_lock);
  10931. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10932. if (is_be_dai_extproc(be_id))
  10933. continue;
  10934. bedai = &msm_bedais[be_id];
  10935. if (afe_get_port_type(bedai->port_id) != port_type)
  10936. continue;
  10937. if (!bedai->active)
  10938. continue;
  10939. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10940. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10941. continue;
  10942. if (app_type !=
  10943. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10944. continue;
  10945. copp = session_copp_map[fe_id][dir][be_id];
  10946. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  10947. copp_idx++) {
  10948. if (!test_bit(copp_idx, &copp))
  10949. continue;
  10950. ret = adm_send_params_v5(bedai->port_id,
  10951. copp_idx,
  10952. param_data,
  10953. param_size);
  10954. if (ret) {
  10955. pr_err("%s: Setting param failed with err=%d\n",
  10956. __func__, ret);
  10957. ret = -EINVAL;
  10958. goto done;
  10959. }
  10960. }
  10961. }
  10962. }
  10963. done:
  10964. mutex_unlock(&routing_lock);
  10965. kfree(param_data);
  10966. return ret;
  10967. }
  10968. static const struct snd_kcontrol_new module_cfg_controls[] = {
  10969. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  10970. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  10971. };
  10972. static int msm_routing_get_lsm_app_type_cfg_control(
  10973. struct snd_kcontrol *kcontrol,
  10974. struct snd_ctl_elem_value *ucontrol)
  10975. {
  10976. return 0;
  10977. }
  10978. static int msm_routing_put_lsm_app_type_cfg_control(
  10979. struct snd_kcontrol *kcontrol,
  10980. struct snd_ctl_elem_value *ucontrol)
  10981. {
  10982. int i = 0, j;
  10983. int num_app_types = ucontrol->value.integer.value[i++];
  10984. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  10985. sizeof(struct msm_pcm_routing_app_type_data));
  10986. if (num_app_types > MAX_APP_TYPES) {
  10987. pr_err("%s: number of app types exceed the max supported\n",
  10988. __func__);
  10989. return -EINVAL;
  10990. }
  10991. for (j = 0; j < num_app_types; j++) {
  10992. lsm_app_type_cfg[j].app_type =
  10993. ucontrol->value.integer.value[i++];
  10994. lsm_app_type_cfg[j].sample_rate =
  10995. ucontrol->value.integer.value[i++];
  10996. lsm_app_type_cfg[j].bit_width =
  10997. ucontrol->value.integer.value[i++];
  10998. }
  10999. return 0;
  11000. }
  11001. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11002. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11003. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11004. msm_routing_put_lsm_app_type_cfg_control),
  11005. };
  11006. static int msm_routing_get_use_ds1_or_ds2_control(
  11007. struct snd_kcontrol *kcontrol,
  11008. struct snd_ctl_elem_value *ucontrol)
  11009. {
  11010. ucontrol->value.integer.value[0] = is_ds2_on;
  11011. return 0;
  11012. }
  11013. static int msm_routing_put_use_ds1_or_ds2_control(
  11014. struct snd_kcontrol *kcontrol,
  11015. struct snd_ctl_elem_value *ucontrol)
  11016. {
  11017. is_ds2_on = ucontrol->value.integer.value[0];
  11018. return 0;
  11019. }
  11020. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11021. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11022. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11023. msm_routing_put_use_ds1_or_ds2_control),
  11024. };
  11025. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11026. struct snd_ctl_elem_value *ucontrol) {
  11027. int rc = 0;
  11028. int be_idx = 0;
  11029. char *param_value;
  11030. int *update_param_value;
  11031. uint32_t param_length = sizeof(uint32_t);
  11032. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11033. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11034. if (!param_value)
  11035. return -ENOMEM;
  11036. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11037. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11038. break;
  11039. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11040. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11041. RMS_MODULEID_APPI_PASSTHRU,
  11042. RMS_PARAM_FIRST_SAMPLE,
  11043. param_length + param_payload_len,
  11044. param_value);
  11045. if (rc) {
  11046. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11047. kfree(param_value);
  11048. return -EINVAL;
  11049. }
  11050. update_param_value = (int *)param_value;
  11051. ucontrol->value.integer.value[0] = update_param_value[0];
  11052. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11053. __func__, update_param_value[0]);
  11054. }
  11055. kfree(param_value);
  11056. return 0;
  11057. }
  11058. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11059. struct snd_ctl_elem_value *ucontrol)
  11060. {
  11061. voc_session_id = ucontrol->value.integer.value[0];
  11062. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11063. return 0;
  11064. }
  11065. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11066. struct snd_ctl_elem_value *ucontrol)
  11067. {
  11068. ucontrol->value.integer.value[0] = voc_session_id;
  11069. return 0;
  11070. }
  11071. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11072. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11073. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11074. msm_voc_session_id_put),
  11075. };
  11076. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11077. struct snd_ctl_elem_info *uinfo)
  11078. {
  11079. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11080. uinfo->count = sizeof(struct sound_focus_param);
  11081. return 0;
  11082. }
  11083. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11084. struct snd_ctl_elem_value *ucontrol)
  11085. {
  11086. int ret = 0;
  11087. struct sound_focus_param soundFocusData;
  11088. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11089. sizeof(struct sound_focus_param));
  11090. ret = voc_set_sound_focus(soundFocusData);
  11091. if (ret) {
  11092. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11093. __func__, ret);
  11094. ret = -EINVAL;
  11095. }
  11096. return ret;
  11097. }
  11098. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11099. struct snd_ctl_elem_value *ucontrol)
  11100. {
  11101. int ret = 0;
  11102. struct sound_focus_param soundFocusData;
  11103. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11104. ret = voc_get_sound_focus(&soundFocusData);
  11105. if (ret) {
  11106. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11107. __func__, ret);
  11108. ret = -EINVAL;
  11109. goto done;
  11110. }
  11111. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11112. sizeof(struct sound_focus_param));
  11113. done:
  11114. return ret;
  11115. }
  11116. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11117. struct snd_ctl_elem_info *uinfo)
  11118. {
  11119. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11120. uinfo->count = sizeof(struct source_tracking_param);
  11121. return 0;
  11122. }
  11123. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11124. struct snd_ctl_elem_value *ucontrol)
  11125. {
  11126. int ret = 0;
  11127. struct source_tracking_param sourceTrackingData;
  11128. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11129. ret = voc_get_source_tracking(&sourceTrackingData);
  11130. if (ret) {
  11131. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11132. __func__, ret);
  11133. ret = -EINVAL;
  11134. goto done;
  11135. }
  11136. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11137. sizeof(struct source_tracking_param));
  11138. done:
  11139. return ret;
  11140. }
  11141. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11142. int *copp_idx)
  11143. {
  11144. int i, idx, be_idx;
  11145. int ret = 0;
  11146. unsigned long copp;
  11147. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11148. ret = q6audio_validate_port(port_id);
  11149. if (ret < 0) {
  11150. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11151. __func__, port_id, ret);
  11152. ret = -EINVAL;
  11153. goto done;
  11154. }
  11155. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11156. if (msm_bedais[be_idx].port_id == port_id)
  11157. break;
  11158. }
  11159. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11160. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11161. ret = -EINVAL;
  11162. goto done;
  11163. }
  11164. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11165. MSM_FRONTEND_DAI_MM_SIZE) {
  11166. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11167. copp = session_copp_map[i]
  11168. [session_type][be_idx];
  11169. if (test_bit(idx, &copp))
  11170. break;
  11171. }
  11172. if (idx >= MAX_COPPS_PER_PORT)
  11173. continue;
  11174. else
  11175. break;
  11176. }
  11177. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11178. pr_err("%s: Invalid FE, exiting\n", __func__);
  11179. ret = -EINVAL;
  11180. goto done;
  11181. }
  11182. *copp_idx = idx;
  11183. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11184. done:
  11185. return ret;
  11186. }
  11187. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11188. const char *prefix, int *port_id)
  11189. {
  11190. int ret = 0;
  11191. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11192. /*
  11193. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11194. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11195. * and compare the string with the backend name to derive the port id.
  11196. */
  11197. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11198. "SLIMBUS_0")) {
  11199. *port_id = SLIMBUS_0_TX;
  11200. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11201. "TERT_MI2S")) {
  11202. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11203. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11204. "INT3_MI2S")) {
  11205. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11206. } else {
  11207. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11208. __func__, kcontrol->id.name);
  11209. ret = -EINVAL;
  11210. goto done;
  11211. }
  11212. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11213. __func__, kcontrol->id.name, *port_id);
  11214. done:
  11215. return ret;
  11216. }
  11217. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11218. struct snd_ctl_elem_value *ucontrol)
  11219. {
  11220. int ret = 0;
  11221. struct sound_focus_param soundFocusData;
  11222. int port_id, copp_idx;
  11223. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11224. "Sound Focus Audio Tx ", &port_id);
  11225. if (ret != 0) {
  11226. pr_err("%s: Error in deriving port id, err=%d\n",
  11227. __func__, ret);
  11228. ret = -EINVAL;
  11229. goto done;
  11230. }
  11231. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11232. &copp_idx);
  11233. if (ret) {
  11234. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11235. __func__, port_id);
  11236. ret = -EINVAL;
  11237. goto done;
  11238. }
  11239. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11240. sizeof(struct sound_focus_param));
  11241. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11242. if (ret) {
  11243. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11244. __func__, ret);
  11245. ret = -EINVAL;
  11246. goto done;
  11247. }
  11248. done:
  11249. return ret;
  11250. }
  11251. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11252. struct snd_ctl_elem_value *ucontrol)
  11253. {
  11254. int ret = 0;
  11255. struct sound_focus_param soundFocusData;
  11256. int port_id, copp_idx;
  11257. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11258. "Sound Focus Audio Tx ", &port_id);
  11259. if (ret) {
  11260. pr_err("%s: Error in deriving port id, err=%d\n",
  11261. __func__, ret);
  11262. ret = -EINVAL;
  11263. goto done;
  11264. }
  11265. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11266. &copp_idx);
  11267. if (ret) {
  11268. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11269. __func__, port_id);
  11270. ret = -EINVAL;
  11271. goto done;
  11272. }
  11273. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11274. if (ret) {
  11275. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11276. __func__, ret);
  11277. ret = -EINVAL;
  11278. goto done;
  11279. }
  11280. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11281. sizeof(struct sound_focus_param));
  11282. done:
  11283. return ret;
  11284. }
  11285. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11286. struct snd_ctl_elem_value *ucontrol)
  11287. {
  11288. int ret = 0;
  11289. struct source_tracking_param sourceTrackingData;
  11290. int port_id, copp_idx;
  11291. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11292. "Source Tracking Audio Tx ", &port_id);
  11293. if (ret) {
  11294. pr_err("%s: Error in deriving port id, err=%d\n",
  11295. __func__, ret);
  11296. ret = -EINVAL;
  11297. goto done;
  11298. }
  11299. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11300. &copp_idx);
  11301. if (ret) {
  11302. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11303. __func__, port_id);
  11304. ret = -EINVAL;
  11305. goto done;
  11306. }
  11307. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11308. if (ret) {
  11309. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11310. __func__, ret);
  11311. ret = -EINVAL;
  11312. goto done;
  11313. }
  11314. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11315. sizeof(struct source_tracking_param));
  11316. done:
  11317. return ret;
  11318. }
  11319. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11320. {
  11321. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11322. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11323. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11324. .info = msm_sound_focus_info,
  11325. .get = msm_voice_sound_focus_get,
  11326. .put = msm_voice_sound_focus_put,
  11327. },
  11328. {
  11329. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11330. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11331. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11332. .info = msm_source_tracking_info,
  11333. .get = msm_voice_source_tracking_get,
  11334. },
  11335. {
  11336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11337. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11338. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11339. .info = msm_sound_focus_info,
  11340. .get = msm_audio_sound_focus_get,
  11341. .put = msm_audio_sound_focus_put,
  11342. },
  11343. {
  11344. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11346. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11347. .info = msm_source_tracking_info,
  11348. .get = msm_audio_source_tracking_get,
  11349. },
  11350. {
  11351. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11353. .name = "Sound Focus Voice Tx TERT_MI2S",
  11354. .info = msm_sound_focus_info,
  11355. .get = msm_voice_sound_focus_get,
  11356. .put = msm_voice_sound_focus_put,
  11357. },
  11358. {
  11359. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11360. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11361. .name = "Source Tracking Voice Tx TERT_MI2S",
  11362. .info = msm_source_tracking_info,
  11363. .get = msm_voice_source_tracking_get,
  11364. },
  11365. {
  11366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11367. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11368. .name = "Sound Focus Audio Tx TERT_MI2S",
  11369. .info = msm_sound_focus_info,
  11370. .get = msm_audio_sound_focus_get,
  11371. .put = msm_audio_sound_focus_put,
  11372. },
  11373. {
  11374. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11376. .name = "Source Tracking Audio Tx TERT_MI2S",
  11377. .info = msm_source_tracking_info,
  11378. .get = msm_audio_source_tracking_get,
  11379. },
  11380. {
  11381. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11383. .name = "Sound Focus Voice Tx INT3_MI2S",
  11384. .info = msm_sound_focus_info,
  11385. .get = msm_voice_sound_focus_get,
  11386. .put = msm_voice_sound_focus_put,
  11387. },
  11388. {
  11389. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11390. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11391. .name = "Source Tracking Voice Tx INT3_MI2S",
  11392. .info = msm_source_tracking_info,
  11393. .get = msm_voice_source_tracking_get,
  11394. },
  11395. {
  11396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11398. .name = "Sound Focus Audio Tx INT3_MI2S",
  11399. .info = msm_sound_focus_info,
  11400. .get = msm_audio_sound_focus_get,
  11401. .put = msm_audio_sound_focus_put,
  11402. },
  11403. {
  11404. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11406. .name = "Source Tracking Audio Tx INT3_MI2S",
  11407. .info = msm_source_tracking_info,
  11408. .get = msm_audio_source_tracking_get,
  11409. },
  11410. };
  11411. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11412. struct snd_ctl_elem_value *ucontrol)
  11413. {
  11414. int ret = 0;
  11415. int item;
  11416. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11417. pr_debug("%s item is %d\n", __func__,
  11418. ucontrol->value.enumerated.item[0]);
  11419. mutex_lock(&routing_lock);
  11420. item = ucontrol->value.enumerated.item[0];
  11421. if (item < e->items) {
  11422. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11423. __func__, e->shift_l, e->values[item]);
  11424. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11425. e->values[item] < MSM_BACKEND_DAI_MAX)
  11426. /* Enable feedback TX path */
  11427. ret = afe_spk_prot_feed_back_cfg(
  11428. msm_bedais[e->values[item]].port_id,
  11429. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11430. else {
  11431. pr_debug("%s values are out of range item %d\n",
  11432. __func__, e->values[item]);
  11433. /* Disable feedback TX path */
  11434. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11435. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11436. else
  11437. ret = -EINVAL;
  11438. }
  11439. } else {
  11440. pr_err("%s item value is out of range item\n", __func__);
  11441. ret = -EINVAL;
  11442. }
  11443. mutex_unlock(&routing_lock);
  11444. return ret;
  11445. }
  11446. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11447. struct snd_ctl_elem_value *ucontrol)
  11448. {
  11449. int ret = 0;
  11450. int item;
  11451. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11452. pr_debug("%s item is %d\n", __func__,
  11453. ucontrol->value.enumerated.item[0]);
  11454. mutex_lock(&routing_lock);
  11455. item = ucontrol->value.enumerated.item[0];
  11456. if (item < e->items) {
  11457. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11458. __func__, e->shift_l, e->values[item]);
  11459. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11460. e->values[item] < MSM_BACKEND_DAI_MAX)
  11461. /* Enable feedback TX path */
  11462. ret = afe_spk_prot_feed_back_cfg(
  11463. msm_bedais[e->values[item]].port_id,
  11464. msm_bedais[e->shift_l].port_id,
  11465. 1, 1, 1);
  11466. else {
  11467. pr_debug("%s values are out of range item %d\n",
  11468. __func__, e->values[item]);
  11469. /* Disable feedback TX path */
  11470. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11471. ret = afe_spk_prot_feed_back_cfg(0,
  11472. 0, 0, 0, 0);
  11473. else
  11474. ret = -EINVAL;
  11475. }
  11476. } else {
  11477. pr_err("%s item value is out of range item\n", __func__);
  11478. ret = -EINVAL;
  11479. }
  11480. mutex_unlock(&routing_lock);
  11481. return ret;
  11482. }
  11483. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11484. struct snd_ctl_elem_value *ucontrol)
  11485. {
  11486. pr_debug("%s\n", __func__);
  11487. return 0;
  11488. }
  11489. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11490. struct snd_ctl_elem_value *ucontrol)
  11491. {
  11492. pr_debug("%s\n", __func__);
  11493. ucontrol->value.enumerated.item[0] = 0;
  11494. return 0;
  11495. }
  11496. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11497. "ZERO", "SLIM4_TX"
  11498. };
  11499. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11500. "ZERO", "SLIM4_TX"
  11501. };
  11502. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11503. "ZERO", "SENARY_TX"
  11504. };
  11505. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11506. "ZERO", "INT5_MI2S_TX"
  11507. };
  11508. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11509. "ZERO", "INT5_MI2S_TX"
  11510. };
  11511. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11512. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11513. };
  11514. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11515. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11516. };
  11517. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11518. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11519. };
  11520. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11521. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11522. };
  11523. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11524. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11525. };
  11526. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11527. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11528. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11529. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11530. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11531. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11532. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11533. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11534. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11535. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11536. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11537. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11538. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11539. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11540. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11541. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11542. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11543. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11544. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11545. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11546. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11547. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11548. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11549. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11550. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11551. spkr_prot_put_vi_lch_port);
  11552. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11553. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11554. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11555. spkr_prot_put_vi_rch_port);
  11556. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11557. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11558. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11559. spkr_prot_put_vi_lch_port);
  11560. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11561. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11562. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11563. spkr_prot_put_vi_lch_port);
  11564. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11565. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11566. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11567. spkr_prot_put_vi_rch_port);
  11568. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11569. /* Frontend AIF */
  11570. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11571. * Stream name must contains substring of front-end dai name
  11572. */
  11573. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11574. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11575. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11576. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11577. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11578. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11579. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11580. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11581. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11582. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11583. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11584. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11585. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11586. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11587. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11588. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11589. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11590. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11591. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11592. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11593. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11594. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11595. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11596. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11597. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11598. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11599. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11600. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11601. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11602. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11603. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11604. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11605. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11606. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11607. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11608. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11609. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11610. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11611. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11612. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11613. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11614. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11615. 0, 0, 0, 0),
  11616. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11617. 0, 0, 0, 0),
  11618. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11619. 0, 0, 0, 0),
  11620. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11621. 0, 0, 0, 0),
  11622. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11623. 0, 0, 0, 0),
  11624. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11625. 0, 0, 0, 0),
  11626. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11627. 0, 0, 0, 0),
  11628. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11629. 0, 0, 0, 0),
  11630. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11631. 0, 0, 0, 0),
  11632. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11633. 0, 0, 0, 0),
  11634. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11635. 0, 0, 0, 0),
  11636. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11637. 0, 0, 0, 0),
  11638. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11639. 0, 0, 0, 0),
  11640. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11641. 0, 0, 0, 0),
  11642. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11643. 0, 0, 0, 0),
  11644. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11645. 0, 0, 0, 0),
  11646. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11647. 0, 0, 0, 0),
  11648. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11649. 0, 0, 0, 0),
  11650. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11651. 0, 0, 0, 0),
  11652. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11653. 0, 0, 0, 0),
  11654. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11655. 0, 0, 0, 0),
  11656. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11657. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11658. 0, 0, 0, 0),
  11659. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11660. "INT0 MI2S_RX Hostless Playback",
  11661. 0, 0, 0, 0),
  11662. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11663. "INT4 MI2S_RX Hostless Playback",
  11664. 0, 0, 0, 0),
  11665. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11666. "Primary MI2S_RX Hostless Playback",
  11667. 0, 0, 0, 0),
  11668. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11669. "Secondary MI2S_RX Hostless Playback",
  11670. 0, 0, 0, 0),
  11671. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11672. "Tertiary MI2S_RX Hostless Playback",
  11673. 0, 0, 0, 0),
  11674. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11675. "Quaternary MI2S_RX Hostless Playback",
  11676. 0, 0, 0, 0),
  11677. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11678. "Quinary MI2S_RX Hostless Playback",
  11679. 0, 0, 0, 0),
  11680. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11681. 0, 0, 0, 0),
  11682. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11683. 0, 0, 0, 0),
  11684. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11685. 0, 0, 0, 0),
  11686. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11687. "INT3 MI2S_TX Hostless Capture",
  11688. 0, 0, 0, 0),
  11689. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11690. "Tertiary MI2S_TX Hostless Capture",
  11691. 0, 0, 0, 0),
  11692. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11693. "Secondary MI2S_TX Hostless Capture",
  11694. 0, 0, 0, 0),
  11695. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11696. "Primary MI2S_TX Hostless Capture",
  11697. 0, 0, 0, 0),
  11698. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11699. 0, 0, 0, 0),
  11700. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11701. 0, 0, 0, 0),
  11702. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11703. "Quaternary MI2S_TX Hostless Capture",
  11704. 0, 0, 0, 0),
  11705. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11706. "Quinary MI2S_TX Hostless Capture",
  11707. 0, 0, 0, 0),
  11708. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11709. "Primary TDM0 Hostless Playback",
  11710. 0, 0, 0, 0),
  11711. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11712. "Primary TDM0 Hostless Capture",
  11713. 0, 0, 0, 0),
  11714. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11715. "Primary TDM1 Hostless Playback",
  11716. 0, 0, 0, 0),
  11717. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11718. "Primary TDM1 Hostless Capture",
  11719. 0, 0, 0, 0),
  11720. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11721. "Primary TDM2 Hostless Playback",
  11722. 0, 0, 0, 0),
  11723. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11724. "Primary TDM2 Hostless Capture",
  11725. 0, 0, 0, 0),
  11726. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11727. "Primary TDM3 Hostless Playback",
  11728. 0, 0, 0, 0),
  11729. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11730. "Primary TDM3 Hostless Capture",
  11731. 0, 0, 0, 0),
  11732. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11733. "Primary TDM4 Hostless Playback",
  11734. 0, 0, 0, 0),
  11735. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11736. "Primary TDM4 Hostless Capture",
  11737. 0, 0, 0, 0),
  11738. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11739. "Primary TDM5 Hostless Playback",
  11740. 0, 0, 0, 0),
  11741. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11742. "Primary TDM5 Hostless Capture",
  11743. 0, 0, 0, 0),
  11744. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11745. "Primary TDM6 Hostless Playback",
  11746. 0, 0, 0, 0),
  11747. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11748. "Primary TDM6 Hostless Capture",
  11749. 0, 0, 0, 0),
  11750. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11751. "Primary TDM7 Hostless Playback",
  11752. 0, 0, 0, 0),
  11753. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11754. "Primary TDM7 Hostless Capture",
  11755. 0, 0, 0, 0),
  11756. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11757. "Secondary TDM0 Hostless Playback",
  11758. 0, 0, 0, 0),
  11759. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11760. "Secondary TDM0 Hostless Capture",
  11761. 0, 0, 0, 0),
  11762. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11763. "Secondary TDM1 Hostless Playback",
  11764. 0, 0, 0, 0),
  11765. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11766. "Secondary TDM1 Hostless Capture",
  11767. 0, 0, 0, 0),
  11768. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11769. "Secondary TDM2 Hostless Playback",
  11770. 0, 0, 0, 0),
  11771. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11772. "Secondary TDM2 Hostless Capture",
  11773. 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11775. "Secondary TDM3 Hostless Playback",
  11776. 0, 0, 0, 0),
  11777. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11778. "Secondary TDM3 Hostless Capture",
  11779. 0, 0, 0, 0),
  11780. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11781. "Secondary TDM4 Hostless Playback",
  11782. 0, 0, 0, 0),
  11783. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11784. "Secondary TDM4 Hostless Capture",
  11785. 0, 0, 0, 0),
  11786. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11787. "Secondary TDM5 Hostless Playback",
  11788. 0, 0, 0, 0),
  11789. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11790. "Secondary TDM5 Hostless Capture",
  11791. 0, 0, 0, 0),
  11792. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11793. "Secondary TDM6 Hostless Playback",
  11794. 0, 0, 0, 0),
  11795. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11796. "Secondary TDM6 Hostless Capture",
  11797. 0, 0, 0, 0),
  11798. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11799. "Secondary TDM7 Hostless Playback",
  11800. 0, 0, 0, 0),
  11801. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11802. "Secondary TDM7 Hostless Capture",
  11803. 0, 0, 0, 0),
  11804. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11805. "Tertiary TDM0 Hostless Playback",
  11806. 0, 0, 0, 0),
  11807. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11808. "Tertiary TDM0 Hostless Capture",
  11809. 0, 0, 0, 0),
  11810. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11811. "Tertiary TDM1 Hostless Playback",
  11812. 0, 0, 0, 0),
  11813. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11814. "Tertiary TDM1 Hostless Capture",
  11815. 0, 0, 0, 0),
  11816. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11817. "Tertiary TDM2 Hostless Playback",
  11818. 0, 0, 0, 0),
  11819. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11820. "Tertiary TDM2 Hostless Capture",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11823. "Tertiary TDM3 Hostless Playback",
  11824. 0, 0, 0, 0),
  11825. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11826. "Tertiary TDM3 Hostless Capture",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11829. "Tertiary TDM4 Hostless Playback",
  11830. 0, 0, 0, 0),
  11831. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11832. "Tertiary TDM4 Hostless Capture",
  11833. 0, 0, 0, 0),
  11834. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11835. "Tertiary TDM5 Hostless Playback",
  11836. 0, 0, 0, 0),
  11837. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11838. "Tertiary TDM5 Hostless Capture",
  11839. 0, 0, 0, 0),
  11840. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11841. "Tertiary TDM6 Hostless Playback",
  11842. 0, 0, 0, 0),
  11843. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11844. "Tertiary TDM6 Hostless Capture",
  11845. 0, 0, 0, 0),
  11846. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11847. "Tertiary TDM7 Hostless Playback",
  11848. 0, 0, 0, 0),
  11849. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11850. "Tertiary TDM7 Hostless Capture",
  11851. 0, 0, 0, 0),
  11852. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11853. "Quaternary TDM0 Hostless Playback",
  11854. 0, 0, 0, 0),
  11855. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11856. "Quaternary TDM0 Hostless Capture",
  11857. 0, 0, 0, 0),
  11858. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11859. "Quaternary TDM1 Hostless Playback",
  11860. 0, 0, 0, 0),
  11861. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11862. "Quaternary TDM1 Hostless Capture",
  11863. 0, 0, 0, 0),
  11864. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11865. "Quaternary TDM2 Hostless Playback",
  11866. 0, 0, 0, 0),
  11867. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11868. "Quaternary TDM2 Hostless Capture",
  11869. 0, 0, 0, 0),
  11870. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11871. "Quaternary TDM3 Hostless Playback",
  11872. 0, 0, 0, 0),
  11873. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11874. "Quaternary TDM3 Hostless Capture",
  11875. 0, 0, 0, 0),
  11876. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11877. "Quaternary TDM4 Hostless Playback",
  11878. 0, 0, 0, 0),
  11879. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11880. "Quaternary TDM4 Hostless Capture",
  11881. 0, 0, 0, 0),
  11882. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11883. "Quaternary TDM5 Hostless Playback",
  11884. 0, 0, 0, 0),
  11885. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11886. "Quaternary TDM5 Hostless Capture",
  11887. 0, 0, 0, 0),
  11888. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11889. "Quaternary TDM6 Hostless Playback",
  11890. 0, 0, 0, 0),
  11891. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11892. "Quaternary TDM6 Hostless Capture",
  11893. 0, 0, 0, 0),
  11894. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11895. "Quaternary TDM7 Hostless Playback",
  11896. 0, 0, 0, 0),
  11897. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11898. "Quaternary TDM7 Hostless Capture",
  11899. 0, 0, 0, 0),
  11900. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  11901. "Quinary TDM0 Hostless Playback",
  11902. 0, 0, 0, 0),
  11903. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  11904. "Quinary TDM0 Hostless Capture",
  11905. 0, 0, 0, 0),
  11906. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  11907. "Quinary TDM1 Hostless Playback",
  11908. 0, 0, 0, 0),
  11909. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  11910. "Quinary TDM1 Hostless Capture",
  11911. 0, 0, 0, 0),
  11912. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  11913. "Quinary TDM2 Hostless Playback",
  11914. 0, 0, 0, 0),
  11915. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  11916. "Quinary TDM2 Hostless Capture",
  11917. 0, 0, 0, 0),
  11918. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  11919. "Quinary TDM3 Hostless Playback",
  11920. 0, 0, 0, 0),
  11921. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  11922. "Quinary TDM3 Hostless Capture",
  11923. 0, 0, 0, 0),
  11924. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  11925. "Quinary TDM4 Hostless Playback",
  11926. 0, 0, 0, 0),
  11927. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  11928. "Quinary TDM4 Hostless Capture",
  11929. 0, 0, 0, 0),
  11930. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  11931. "Quinary TDM5 Hostless Playback",
  11932. 0, 0, 0, 0),
  11933. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  11934. "Quinary TDM5 Hostless Capture",
  11935. 0, 0, 0, 0),
  11936. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  11937. "Quinary TDM6 Hostless Playback",
  11938. 0, 0, 0, 0),
  11939. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  11940. "Quinary TDM6 Hostless Capture",
  11941. 0, 0, 0, 0),
  11942. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  11943. "Quinary TDM7 Hostless Playback",
  11944. 0, 0, 0, 0),
  11945. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  11946. "Quinary TDM7 Hostless Capture",
  11947. 0, 0, 0, 0),
  11948. /* LSM */
  11949. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11950. 0, 0, 0, 0),
  11951. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11952. 0, 0, 0, 0),
  11953. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11954. 0, 0, 0, 0),
  11955. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11956. 0, 0, 0, 0),
  11957. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11958. 0, 0, 0, 0),
  11959. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11960. 0, 0, 0, 0),
  11961. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11962. 0, 0, 0, 0),
  11963. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11964. 0, 0, 0, 0),
  11965. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11966. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11967. /* Backend AIF */
  11968. /* Stream name equals to backend dai link stream name */
  11969. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11970. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11971. 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11973. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11974. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11976. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11977. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11978. 0, 0, 0, 0),
  11979. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11980. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11981. 0, 0, 0, 0),
  11982. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11983. 0, 0, 0, 0),
  11984. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11985. 0, 0, 0, 0),
  11986. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  11987. "Secondary MI2S Playback SD1",
  11988. 0, 0, 0, 0),
  11989. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  11990. 0, 0, 0, 0),
  11991. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  11992. 0, 0, 0, 0),
  11993. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  11994. 0, 0, 0, 0),
  11995. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  11996. 0, 0, 0, 0),
  11997. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  11998. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  11999. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12000. 0, 0, 0, 0),
  12001. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12002. 0, 0, 0, 0),
  12003. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12004. 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12006. 0, 0, 0, 0),
  12007. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12008. 0, 0, 0, 0),
  12009. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12010. 0, 0, 0, 0),
  12011. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12012. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12013. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12014. 0, 0, 0, 0),
  12015. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12016. 0, 0, 0, 0),
  12017. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12018. 0, 0, 0, 0),
  12019. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12020. 0, 0, 0, 0),
  12021. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12022. 0, 0, 0, 0),
  12023. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12024. 0, 0, 0, 0),
  12025. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12026. 0, 0, 0, 0),
  12027. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12028. 0, 0, 0, 0),
  12029. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12030. 0, 0, 0, 0),
  12031. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12032. 0, 0, 0, 0),
  12033. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12034. 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12036. 0, 0, 0, 0),
  12037. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12038. 0, 0, 0, 0),
  12039. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12040. 0, 0, 0, 0),
  12041. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12042. 0, 0, 0, 0),
  12043. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12044. 0, 0, 0, 0),
  12045. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12046. 0, 0, 0, 0),
  12047. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12048. 0, 0, 0, 0),
  12049. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12050. 0, 0, 0, 0),
  12051. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12052. 0, 0, 0, 0),
  12053. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12054. 0, 0, 0, 0),
  12055. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12056. 0, 0, 0, 0),
  12057. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12058. 0, 0, 0, 0),
  12059. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12060. 0, 0, 0, 0),
  12061. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12062. 0, 0, 0, 0),
  12063. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12064. 0, 0, 0, 0),
  12065. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12066. 0, 0, 0, 0),
  12067. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12068. 0, 0, 0, 0),
  12069. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12070. 0, 0, 0, 0),
  12071. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12072. 0, 0, 0, 0),
  12073. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12074. 0, 0, 0, 0),
  12075. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12076. 0, 0, 0, 0),
  12077. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12078. 0, 0, 0, 0),
  12079. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12080. 0, 0, 0, 0),
  12081. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12082. 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12084. 0, 0, 0, 0),
  12085. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12086. 0, 0, 0, 0),
  12087. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12090. 0, 0, 0, 0),
  12091. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12092. 0, 0, 0, 0),
  12093. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12094. 0, 0, 0, 0),
  12095. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12096. 0, 0, 0, 0),
  12097. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12098. 0, 0, 0, 0),
  12099. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12100. 0, 0, 0, 0),
  12101. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12102. 0, 0, 0, 0),
  12103. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12104. 0, 0, 0, 0),
  12105. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12106. 0, 0, 0, 0),
  12107. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12108. 0, 0, 0, 0),
  12109. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12110. 0, 0, 0, 0),
  12111. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12112. 0, 0, 0, 0),
  12113. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12114. 0, 0, 0, 0),
  12115. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12116. 0, 0, 0, 0),
  12117. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12118. 0, 0, 0, 0),
  12119. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12120. 0, 0, 0, 0),
  12121. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12122. 0, 0, 0, 0),
  12123. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12124. 0, 0, 0, 0),
  12125. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12126. 0, 0, 0, 0),
  12127. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12128. 0, 0, 0, 0),
  12129. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12130. 0, 0, 0, 0),
  12131. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12132. 0, 0, 0, 0),
  12133. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12134. 0, 0, 0, 0),
  12135. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12136. 0, 0, 0, 0),
  12137. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12138. 0, 0, 0, 0),
  12139. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12140. 0, 0, 0, 0),
  12141. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12142. 0, 0, 0, 0),
  12143. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12144. 0, 0, 0, 0),
  12145. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12146. 0, 0, 0, 0),
  12147. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12148. 0, 0, 0, 0),
  12149. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12150. 0, 0, 0, 0),
  12151. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12152. 0, 0, 0, 0),
  12153. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12154. 0, 0, 0, 0),
  12155. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12156. 0, 0, 0, 0),
  12157. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12158. 0, 0, 0, 0),
  12159. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12160. 0, 0, 0, 0),
  12161. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12162. 0, 0, 0, 0),
  12163. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12164. 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12166. 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12168. 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12170. 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12172. 0, 0, 0, 0),
  12173. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12174. 0, 0, 0, 0),
  12175. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12176. 0, 0, 0, 0),
  12177. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12178. 0, 0, 0, 0),
  12179. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12180. 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12182. 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12184. 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12186. 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12188. 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12190. 0, 0, 0, 0),
  12191. /* incall */
  12192. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12193. 0, 0, 0, 0),
  12194. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12195. 0, 0, 0, 0),
  12196. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12197. 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12199. 0, 0, 0, 0),
  12200. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12201. 0, 0, 0, 0),
  12202. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12203. 0, 0, 0, 0),
  12204. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12205. 0, 0, 0, 0),
  12206. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12207. 0, 0, 0, 0),
  12208. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12209. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12210. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12211. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12212. 0, 0, 0, 0),
  12213. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12214. 0, 0, 0, 0),
  12215. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12216. 0, 0, 0, 0),
  12217. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12218. 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12220. 0, 0, 0, 0),
  12221. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12222. 0, 0, 0, 0),
  12223. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12224. 0, 0, 0, 0),
  12225. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12226. 0, 0, 0, 0),
  12227. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12228. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12229. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12230. 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12232. 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12234. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12235. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12236. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12239. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12240. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12241. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12242. /* In- call recording */
  12243. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12251. /* Switch Definitions */
  12252. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12253. &slim_fm_switch_mixer_controls),
  12254. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12255. &slim1_fm_switch_mixer_controls),
  12256. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12257. &slim3_fm_switch_mixer_controls),
  12258. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12259. &slim4_fm_switch_mixer_controls),
  12260. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12261. &slim6_fm_switch_mixer_controls),
  12262. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12263. &pcm_rx_switch_mixer_controls),
  12264. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12265. &int0_mi2s_rx_switch_mixer_controls),
  12266. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12267. &int4_mi2s_rx_switch_mixer_controls),
  12268. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12269. &pri_mi2s_rx_switch_mixer_controls),
  12270. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12271. &sec_mi2s_rx_switch_mixer_controls),
  12272. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12273. &tert_mi2s_rx_switch_mixer_controls),
  12274. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12275. &quat_mi2s_rx_switch_mixer_controls),
  12276. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12277. &quin_mi2s_rx_switch_mixer_controls),
  12278. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12279. &hfp_pri_aux_switch_mixer_controls),
  12280. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12281. &hfp_aux_switch_mixer_controls),
  12282. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12283. &hfp_int_switch_mixer_controls),
  12284. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12285. &hfp_slim7_switch_mixer_controls),
  12286. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12287. &usb_switch_mixer_controls),
  12288. /* Mixer definitions */
  12289. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12290. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12291. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12292. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12293. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12294. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12295. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12296. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12297. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12298. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12299. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12300. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12301. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12302. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12303. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12304. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12305. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12306. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12307. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12308. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12309. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12310. quaternary_mi2s_rx_mixer_controls,
  12311. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12312. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12313. tertiary_mi2s_rx_mixer_controls,
  12314. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12315. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12316. secondary_mi2s_rx_mixer_controls,
  12317. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12318. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12319. secondary_mi2s_rx2_mixer_controls,
  12320. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12321. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12322. primary_mi2s_rx_mixer_controls,
  12323. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12324. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12325. int0_mi2s_rx_mixer_controls,
  12326. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12327. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12328. int4_mi2s_rx_mixer_controls,
  12329. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12330. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12331. quinary_mi2s_rx_mixer_controls,
  12332. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12333. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12334. pri_tdm_rx_0_mixer_controls,
  12335. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12336. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12337. pri_tdm_rx_1_mixer_controls,
  12338. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12339. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12340. pri_tdm_rx_2_mixer_controls,
  12341. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12342. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12343. pri_tdm_rx_3_mixer_controls,
  12344. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12345. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12346. pri_tdm_tx_0_mixer_controls,
  12347. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12348. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12349. sec_tdm_rx_0_mixer_controls,
  12350. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12351. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12352. sec_tdm_rx_1_mixer_controls,
  12353. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12354. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12355. sec_tdm_rx_2_mixer_controls,
  12356. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12357. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12358. sec_tdm_rx_3_mixer_controls,
  12359. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12360. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12361. sec_tdm_tx_0_mixer_controls,
  12362. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12363. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12364. tert_tdm_rx_0_mixer_controls,
  12365. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12366. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12367. tert_tdm_tx_0_mixer_controls,
  12368. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12369. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12370. tert_tdm_rx_1_mixer_controls,
  12371. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12372. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12373. tert_tdm_rx_2_mixer_controls,
  12374. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12375. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12376. tert_tdm_rx_3_mixer_controls,
  12377. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12378. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12379. tert_tdm_rx_4_mixer_controls,
  12380. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12381. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12382. quat_tdm_rx_0_mixer_controls,
  12383. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12384. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12385. quat_tdm_tx_0_mixer_controls,
  12386. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12387. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12388. quat_tdm_rx_1_mixer_controls,
  12389. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12390. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12391. quat_tdm_rx_2_mixer_controls,
  12392. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12393. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12394. quat_tdm_rx_3_mixer_controls,
  12395. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12396. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12397. quin_tdm_rx_0_mixer_controls,
  12398. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12399. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12400. quin_tdm_tx_0_mixer_controls,
  12401. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12402. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12403. quin_tdm_rx_1_mixer_controls,
  12404. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12405. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12406. quin_tdm_rx_2_mixer_controls,
  12407. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12408. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12409. quin_tdm_rx_3_mixer_controls,
  12410. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12411. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12412. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12413. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12414. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12415. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12416. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12417. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12418. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12419. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12420. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12421. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12422. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12423. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12424. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12425. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12426. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12427. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12428. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12429. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12430. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12431. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12432. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12433. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12434. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12435. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12436. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12437. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12438. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12439. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12440. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12441. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12442. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12443. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12444. tert_auxpcm_rx_mixer_controls,
  12445. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12446. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12447. quat_auxpcm_rx_mixer_controls,
  12448. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12449. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12450. quin_auxpcm_rx_mixer_controls,
  12451. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12452. /* incall */
  12453. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12454. incall_music_delivery_mixer_controls,
  12455. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12456. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12457. incall_music2_delivery_mixer_controls,
  12458. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12459. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12460. slimbus_4_rx_mixer_controls,
  12461. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12462. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12463. slimbus_6_rx_mixer_controls,
  12464. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12465. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12466. usb_audio_rx_mixer_controls,
  12467. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12468. /* Voice Mixer */
  12469. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12470. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12471. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12472. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12473. SND_SOC_NOPM, 0, 0,
  12474. sec_i2s_rx_voice_mixer_controls,
  12475. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12476. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12477. SND_SOC_NOPM, 0, 0,
  12478. sec_mi2s_rx_voice_mixer_controls,
  12479. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12480. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12481. SND_SOC_NOPM, 0, 0,
  12482. slimbus_rx_voice_mixer_controls,
  12483. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12484. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12485. SND_SOC_NOPM, 0, 0,
  12486. bt_sco_rx_voice_mixer_controls,
  12487. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12488. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12489. SND_SOC_NOPM, 0, 0,
  12490. afe_pcm_rx_voice_mixer_controls,
  12491. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12492. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12493. SND_SOC_NOPM, 0, 0,
  12494. aux_pcm_rx_voice_mixer_controls,
  12495. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12496. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12497. SND_SOC_NOPM, 0, 0,
  12498. sec_aux_pcm_rx_voice_mixer_controls,
  12499. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12500. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12501. SND_SOC_NOPM, 0, 0,
  12502. tert_aux_pcm_rx_voice_mixer_controls,
  12503. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12504. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12505. SND_SOC_NOPM, 0, 0,
  12506. quat_aux_pcm_rx_voice_mixer_controls,
  12507. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12508. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12509. SND_SOC_NOPM, 0, 0,
  12510. quin_aux_pcm_rx_voice_mixer_controls,
  12511. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12512. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12513. SND_SOC_NOPM, 0, 0,
  12514. hdmi_rx_voice_mixer_controls,
  12515. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12516. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12517. SND_SOC_NOPM, 0, 0,
  12518. mi2s_rx_voice_mixer_controls,
  12519. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12520. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12521. SND_SOC_NOPM, 0, 0,
  12522. pri_mi2s_rx_voice_mixer_controls,
  12523. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12524. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12525. SND_SOC_NOPM, 0, 0,
  12526. int0_mi2s_rx_voice_mixer_controls,
  12527. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12528. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12529. SND_SOC_NOPM, 0, 0,
  12530. int4_mi2s_rx_voice_mixer_controls,
  12531. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12532. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12533. SND_SOC_NOPM, 0, 0,
  12534. tert_mi2s_rx_voice_mixer_controls,
  12535. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12536. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12537. SND_SOC_NOPM, 0, 0,
  12538. quat_mi2s_rx_voice_mixer_controls,
  12539. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12540. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12541. SND_SOC_NOPM, 0, 0,
  12542. quin_mi2s_rx_voice_mixer_controls,
  12543. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12544. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12545. SND_SOC_NOPM, 0, 0,
  12546. quat_tdm_rx_2_voice_mixer_controls,
  12547. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12548. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12549. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12550. ARRAY_SIZE(tx_voip_mixer_controls)),
  12551. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12552. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12553. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12554. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12555. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12556. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12557. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12558. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12559. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12560. int_bt_a2dp_rx_mixer_controls,
  12561. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12562. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12563. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12564. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12565. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12566. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12567. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12568. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12569. tx_voice2_stub_mixer_controls,
  12570. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12571. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12572. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12573. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12574. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12575. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12576. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12577. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12578. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12579. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12580. SND_SOC_NOPM, 0, 0,
  12581. slimbus_6_rx_voice_mixer_controls,
  12582. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12583. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12584. slimbus_7_rx_voice_mixer_controls,
  12585. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12586. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12587. slimbus_8_rx_voice_mixer_controls,
  12588. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12589. /* port mixer */
  12590. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12591. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12592. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12593. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12594. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12595. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12596. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12597. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12598. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12599. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12600. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12601. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12602. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12603. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12604. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12605. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12606. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12607. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12608. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12609. sbus_1_rx_port_mixer_controls,
  12610. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12611. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12612. bt_sco_rx_port_mixer_controls,
  12613. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12614. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12615. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12616. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12617. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12618. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12619. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12620. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12621. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12622. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12623. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12624. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12625. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12626. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12627. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12628. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12629. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12630. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12631. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12632. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12633. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12634. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12635. primary_mi2s_rx_port_mixer_controls,
  12636. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12637. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12638. sec_mi2s_rx_port_mixer_controls,
  12639. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12640. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12641. tert_mi2s_rx_port_mixer_controls,
  12642. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12643. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12644. quat_mi2s_rx_port_mixer_controls,
  12645. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12646. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12647. quin_mi2s_rx_port_mixer_controls,
  12648. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12649. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12650. pri_tdm_rx_0_port_mixer_controls,
  12651. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12652. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12653. pri_tdm_rx_1_port_mixer_controls,
  12654. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12655. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12656. pri_tdm_rx_2_port_mixer_controls,
  12657. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12658. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12659. pri_tdm_rx_3_port_mixer_controls,
  12660. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12661. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12662. sec_tdm_rx_0_port_mixer_controls,
  12663. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12664. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12665. sec_tdm_rx_1_port_mixer_controls,
  12666. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12667. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12668. sec_tdm_rx_2_port_mixer_controls,
  12669. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12670. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12671. sec_tdm_rx_3_port_mixer_controls,
  12672. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12673. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12674. tert_tdm_rx_0_port_mixer_controls,
  12675. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12676. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12677. tert_tdm_rx_1_port_mixer_controls,
  12678. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12679. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12680. tert_tdm_rx_2_port_mixer_controls,
  12681. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12682. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12683. tert_tdm_rx_3_port_mixer_controls,
  12684. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12685. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12686. quat_tdm_rx_0_port_mixer_controls,
  12687. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12688. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12689. quat_tdm_rx_1_port_mixer_controls,
  12690. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12691. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12692. quat_tdm_rx_2_port_mixer_controls,
  12693. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12694. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12695. quat_tdm_rx_3_port_mixer_controls,
  12696. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12697. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12698. quin_tdm_rx_0_port_mixer_controls,
  12699. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12700. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12701. quin_tdm_rx_1_port_mixer_controls,
  12702. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12703. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12704. quin_tdm_rx_2_port_mixer_controls,
  12705. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12706. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12707. quin_tdm_rx_3_port_mixer_controls,
  12708. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12709. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12710. int0_mi2s_rx_port_mixer_controls,
  12711. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12712. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12713. int4_mi2s_rx_port_mixer_controls,
  12714. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12715. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12716. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12717. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12718. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12719. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12720. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12721. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12722. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12723. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12724. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12725. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12726. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12727. /* lsm mixer definitions */
  12728. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12729. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12730. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12731. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12732. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12733. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12734. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12735. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12736. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12737. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12738. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12739. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12740. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12741. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12742. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12743. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12744. /* Virtual Pins to force backends ON atm */
  12745. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12746. SND_SOC_DAPM_INPUT("BE_IN"),
  12747. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12748. &slim0_rx_vi_fb_lch_mux),
  12749. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12750. &slim0_rx_vi_fb_rch_mux),
  12751. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12752. &mi2s_rx_vi_fb_mux),
  12753. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12754. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12755. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12756. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12757. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12758. &voc_ext_ec_mux),
  12759. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12760. &ext_ec_ref_mux_ul1),
  12761. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12762. &ext_ec_ref_mux_ul2),
  12763. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12764. &ext_ec_ref_mux_ul3),
  12765. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12766. &ext_ec_ref_mux_ul4),
  12767. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12768. &ext_ec_ref_mux_ul5),
  12769. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12770. &ext_ec_ref_mux_ul6),
  12771. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12772. &ext_ec_ref_mux_ul8),
  12773. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12774. &ext_ec_ref_mux_ul9),
  12775. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12776. &ext_ec_ref_mux_ul10),
  12777. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12778. &ext_ec_ref_mux_ul16),
  12779. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12780. &ext_ec_ref_mux_ul17),
  12781. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12782. &ext_ec_ref_mux_ul18),
  12783. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12784. &ext_ec_ref_mux_ul19),
  12785. };
  12786. static const struct snd_soc_dapm_route intercon[] = {
  12787. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12788. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12789. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12790. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12791. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12792. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12793. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12794. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12795. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12796. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12797. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12798. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12799. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12800. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12801. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12802. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12803. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12804. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12805. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12806. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12807. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12808. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12809. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12810. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12811. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12812. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12813. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12814. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12815. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12816. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12817. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12818. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12819. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12820. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12821. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12822. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12823. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12824. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12825. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12826. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12827. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12828. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12829. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12830. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12831. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12832. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12833. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12834. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12835. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12836. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12837. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12838. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12839. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12840. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12841. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12842. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12843. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12844. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12845. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12846. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12847. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12848. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12849. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12850. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12851. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12852. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12853. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12854. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12855. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12856. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12857. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12858. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12859. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12860. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12861. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12862. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12863. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12864. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12865. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12866. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12867. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12868. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12869. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12870. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12871. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12872. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12873. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12874. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12875. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12876. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12877. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12878. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12879. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12880. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12881. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12882. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12883. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12884. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12885. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  12886. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  12887. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  12888. {"HDMI", NULL, "HDMI Mixer"},
  12889. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  12890. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  12891. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  12892. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  12893. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  12894. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  12895. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  12896. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  12897. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  12898. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  12899. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  12900. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  12901. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  12902. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  12903. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  12904. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  12905. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  12906. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12907. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12908. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12909. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12910. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12911. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12912. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12913. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12914. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12915. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12916. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12917. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12918. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12919. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12920. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12921. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12922. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  12923. /* incall */
  12924. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  12925. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  12926. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  12927. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  12928. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  12929. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12930. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12931. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12932. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12933. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  12934. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12935. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12936. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12937. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12938. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  12939. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12940. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12941. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12942. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12943. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12944. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12945. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12946. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12947. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12948. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12955. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  12956. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12957. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12958. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12959. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12960. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12961. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12962. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12963. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12964. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12965. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12972. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  12973. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12974. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12975. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12976. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12977. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12978. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12979. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12980. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12981. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12982. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12983. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12984. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12985. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12986. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12987. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12988. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12989. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  12990. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  12991. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  12992. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  12993. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  12994. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  12995. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  12996. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  12997. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  12998. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  12999. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13000. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13001. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13002. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13003. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13004. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13005. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13006. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13007. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13008. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13009. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13010. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13011. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13012. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13013. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13014. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13015. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13016. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13017. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13018. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13019. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13020. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13021. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13022. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13023. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13024. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13025. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13026. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13027. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13028. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13029. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13030. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13031. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13032. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13033. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13034. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13035. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13036. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13037. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13038. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13039. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13040. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13041. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13042. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13043. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13044. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13045. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13046. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13047. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13048. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13049. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13050. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13051. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13052. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13053. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13054. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13055. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13056. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13057. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13058. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13059. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13060. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13061. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13062. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13063. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13064. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13065. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13066. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13067. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13068. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13069. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13070. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13071. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13072. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13073. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13074. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13075. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13076. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13077. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13078. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13079. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13080. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13081. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13082. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13083. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13084. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13085. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13086. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13087. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13088. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13089. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13090. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13091. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13092. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13093. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13094. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13095. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13096. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13097. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13098. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13099. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13100. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13101. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13102. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13103. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13104. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13105. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13106. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13107. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13108. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13109. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13110. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13111. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13112. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13113. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13114. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13115. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13116. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13117. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13118. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13119. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13120. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13121. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13122. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13123. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13124. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13125. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13126. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13127. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13128. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13129. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13130. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13131. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13132. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13133. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13134. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13135. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13136. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13137. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13138. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13139. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13140. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13141. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13142. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13143. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13144. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13145. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13146. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13147. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13148. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13149. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13150. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13151. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13152. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13153. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13154. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13155. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13156. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13157. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13158. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13159. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13160. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13161. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13162. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13163. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13164. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13171. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13172. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13173. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13174. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13175. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13176. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13177. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13178. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13179. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13180. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13181. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13182. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13183. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13184. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13188. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13189. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13190. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13191. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13192. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13193. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13194. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13195. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13196. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13197. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13198. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13199. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13200. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13201. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13202. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13203. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13204. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13205. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13206. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13207. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13208. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13209. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13210. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13211. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13212. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13213. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13214. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13215. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13216. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13217. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13218. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13219. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13220. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13221. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13222. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13223. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13224. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13225. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13226. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13227. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13228. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13229. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13230. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13231. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13232. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13233. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13234. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13235. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13236. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13237. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13238. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13239. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13240. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13241. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13242. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13243. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13244. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13245. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13246. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13247. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13248. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13249. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13250. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13251. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13252. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13253. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13254. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13255. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13256. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13257. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13258. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13259. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13260. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13261. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13262. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13263. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13264. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13265. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13266. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13267. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13268. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13269. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13270. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13271. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13272. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13273. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13274. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13275. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13276. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13277. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13278. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13279. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13280. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13281. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13282. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13283. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13284. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13285. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13286. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13287. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13288. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13289. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13290. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13291. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13292. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13293. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13294. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13295. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13296. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13297. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13298. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13299. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13300. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13301. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13302. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13303. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13304. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13305. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13306. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13307. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13308. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13309. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13310. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13311. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13312. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13313. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13314. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13315. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13316. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13317. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13318. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13319. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13320. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13321. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13322. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13323. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13324. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13325. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13326. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13327. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13328. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13329. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13330. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13331. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13332. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13333. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13334. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13335. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13336. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13337. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13338. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13339. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13340. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13341. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13342. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13343. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13344. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13345. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13346. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13347. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13348. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13349. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13350. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13351. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13352. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13353. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13354. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13355. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13356. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13357. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13358. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13359. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13360. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13361. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13362. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13363. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13364. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13365. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13366. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13367. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13368. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13369. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13370. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13371. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13372. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13373. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13374. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13375. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13376. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13377. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13378. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13379. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13380. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13381. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13382. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13383. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13384. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13385. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13386. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13387. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13388. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13389. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13390. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13391. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13392. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13393. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13394. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13395. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13396. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13397. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13398. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13399. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13400. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13401. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13402. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13403. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13404. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13405. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13406. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13407. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13408. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13409. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13410. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13411. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13412. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13413. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13414. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13415. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13416. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13417. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13418. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13419. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13420. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13421. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13422. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13423. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13424. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13425. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13426. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13427. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13428. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13429. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13430. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13431. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13432. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13433. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13434. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13435. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13436. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13437. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13438. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13439. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13440. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13441. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13442. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13443. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13444. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13445. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13446. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13447. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13448. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13449. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13450. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13451. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13452. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13453. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13454. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13455. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13456. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13457. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13458. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13459. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13460. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13461. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13462. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13463. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13464. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13465. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13466. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13467. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13468. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13469. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13470. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13471. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13472. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13473. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13474. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13475. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13476. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13477. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13478. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13479. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13480. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13481. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13482. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13483. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13484. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13485. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13486. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13487. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13488. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13489. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13490. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13491. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13492. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13493. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13494. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13495. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13496. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13497. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13498. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13499. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13500. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13501. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13502. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13503. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13504. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13505. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13506. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13507. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13508. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13509. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13510. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13511. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13512. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13513. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13514. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13515. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13516. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13517. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13518. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13519. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13520. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13521. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13522. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13523. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13524. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13525. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13526. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13527. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13528. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13529. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13530. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13531. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13532. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13533. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13534. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13535. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13536. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13537. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13538. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13539. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13540. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13541. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13542. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13543. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13544. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13545. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13546. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13547. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13548. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13549. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13550. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13551. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13552. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13553. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13554. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13555. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13556. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13557. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13558. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13559. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13560. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13561. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13562. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13563. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13564. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13565. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13566. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13567. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13568. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13569. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13570. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13571. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13572. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13573. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13574. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13575. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13576. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13577. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13578. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13579. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13580. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13581. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13582. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13583. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13584. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13585. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13586. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13587. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13588. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13589. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13590. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13591. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13592. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13593. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13594. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13595. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13596. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13597. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13598. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13599. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13600. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13601. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13602. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13603. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13604. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13605. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13606. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13607. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13608. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13609. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13610. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13611. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13612. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13613. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13614. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13615. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13616. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13617. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13618. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13619. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13620. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13621. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13622. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13623. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13624. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13625. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13626. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13627. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13628. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13629. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13630. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13631. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13632. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13633. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13634. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13635. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13636. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13637. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13638. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13639. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13640. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13641. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13642. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13643. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13644. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13645. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13646. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13647. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13648. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13649. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13650. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13651. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13652. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13653. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13654. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13655. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13656. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13657. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13658. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13659. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13660. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13661. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13662. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13663. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13664. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13665. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13666. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13667. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13668. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13669. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13670. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13671. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13672. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13673. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13674. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13675. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13676. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13677. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13678. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13679. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13680. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13681. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13682. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13683. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13684. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13685. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13686. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13687. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13688. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13689. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13690. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13691. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13692. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13693. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13694. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13695. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13696. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13697. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13698. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13699. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13700. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13701. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13702. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13703. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13704. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13705. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13706. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13707. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13708. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13709. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13710. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13711. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13712. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13713. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13714. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13715. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13716. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13717. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13718. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13719. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13720. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13721. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13722. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13723. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13724. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13725. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13726. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13727. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13728. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13729. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13730. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13731. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13732. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13733. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13734. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13735. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13736. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13737. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13738. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13739. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13740. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13741. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13742. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13743. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13744. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13745. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13746. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13747. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13748. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13749. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13750. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13751. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13752. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13753. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13754. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13755. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13756. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13757. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13758. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13759. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13760. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13761. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13762. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13763. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13764. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13765. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13766. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13767. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13768. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13769. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13770. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13771. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13772. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13773. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13774. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13775. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13776. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13777. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13778. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13779. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13780. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13781. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13782. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13783. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13784. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13785. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13786. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13787. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13788. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13789. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13790. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13791. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13792. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13793. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13794. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13795. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13796. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13797. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13798. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13799. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13800. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13801. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13802. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13803. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13804. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13805. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13806. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13807. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13808. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13809. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13810. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13811. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13812. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13813. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13814. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13815. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13816. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13817. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13818. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13819. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13820. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13821. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13822. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13823. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13824. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13825. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13826. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13827. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13828. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13829. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13830. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13831. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13832. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13833. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13834. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13835. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13836. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13837. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13838. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13839. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13840. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13841. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13842. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13843. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13844. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13845. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13846. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13847. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13848. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13849. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13850. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13851. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13852. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13853. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13854. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13855. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13856. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13857. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13858. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13859. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13860. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13861. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13862. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13863. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13864. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13865. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13866. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13867. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13868. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13869. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13870. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13871. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13872. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13873. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13874. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13875. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13876. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13877. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13878. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13879. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13880. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13881. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13882. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13883. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13884. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13885. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13886. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13887. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13888. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13889. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13890. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13891. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13892. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13893. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13894. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13895. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13896. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13897. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13898. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13899. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  13900. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13901. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13902. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13903. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13904. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13905. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13906. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13907. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13908. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13909. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13910. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13911. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13912. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13913. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13914. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13915. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13916. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13917. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  13918. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13919. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13920. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13921. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13922. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13923. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13924. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13925. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13926. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13927. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13928. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13929. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13930. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13931. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13932. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13933. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13934. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  13935. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13936. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13937. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13938. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13939. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13940. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13941. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13942. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13943. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13944. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13945. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13946. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13947. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13948. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13949. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13950. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13951. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  13952. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13953. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13954. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13955. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13956. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13957. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13958. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13959. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13960. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13961. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13962. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13963. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13964. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13965. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13966. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13967. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13968. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13969. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13970. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13971. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13972. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13973. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13974. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13975. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13976. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13977. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13978. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13979. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13980. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13981. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  13982. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13983. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  13984. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  13985. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  13986. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  13987. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  13988. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  13989. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  13990. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  13991. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  13992. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  13993. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  13994. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  13995. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  13996. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13997. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13998. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13999. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14000. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14001. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14002. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14003. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14004. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14005. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14006. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14007. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14008. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14009. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14010. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14011. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14012. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14013. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14014. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14015. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14016. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14017. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14018. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14019. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14020. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14021. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14022. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14023. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14024. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14025. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14026. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14027. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14028. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14029. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14030. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14031. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14032. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14033. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14034. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14035. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14036. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14037. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14038. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14039. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14040. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14041. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14042. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14043. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14044. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14045. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14046. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14047. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14048. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14049. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14050. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14051. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14052. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14053. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14054. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14055. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14056. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14057. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14058. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14059. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14060. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14061. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14062. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14063. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14064. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14065. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14066. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14067. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14068. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14069. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14070. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14071. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14072. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14073. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14074. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14075. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14076. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14077. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14078. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14079. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14080. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14081. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14082. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14083. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14084. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14085. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14086. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14087. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14088. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14089. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14090. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14091. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14092. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14093. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14094. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14095. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14096. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14097. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14098. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14099. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14100. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14101. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14102. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14103. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14104. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14105. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14106. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14107. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14108. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14109. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14110. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14111. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14112. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14113. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14114. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14115. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14116. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14117. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14118. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14119. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14120. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14121. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14122. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14123. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14124. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14125. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14126. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14127. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14128. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14129. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14130. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14131. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14132. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14133. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14134. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14135. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14136. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14137. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14138. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14139. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14140. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14141. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14142. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14143. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14144. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14145. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14146. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14147. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14148. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14149. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14150. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14151. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14152. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14153. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14154. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14155. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14156. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14157. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14158. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14159. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14160. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14161. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14162. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14163. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14164. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14165. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14166. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14167. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14168. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14169. {"HDMI", NULL, "HDMI_DL_HL"},
  14170. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14171. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14172. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14173. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14174. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14175. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14176. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14177. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14178. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14179. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14180. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14181. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14182. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14183. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14184. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14185. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14186. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14187. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14188. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14189. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14190. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14191. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14192. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14193. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14194. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14195. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14196. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14197. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14198. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14199. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14200. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14201. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14202. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14203. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14204. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14205. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14206. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14207. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14208. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14209. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14210. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14211. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14212. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14213. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14214. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14215. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14216. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14217. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14218. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14219. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14220. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14221. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14222. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14223. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14224. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14225. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14226. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14227. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14228. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14229. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14230. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14231. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14232. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14233. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14234. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14235. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14236. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14237. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14238. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14239. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14240. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14241. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14242. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14243. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14244. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14245. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14246. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14247. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14248. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14249. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14250. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14251. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14252. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14253. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14254. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14255. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14256. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14257. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14258. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14259. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14260. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14261. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14262. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14263. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14264. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14265. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14266. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14267. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14268. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14269. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14270. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14271. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14272. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14273. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14274. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14275. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14276. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14277. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14278. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14279. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14280. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14281. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14282. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14283. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14284. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14285. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14286. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14287. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14288. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14289. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14290. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14291. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14292. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14293. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14294. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14295. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14296. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14297. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14298. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14299. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14300. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14301. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14302. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14303. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14304. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14305. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14306. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14307. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14308. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14309. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14310. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14311. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14312. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14313. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14314. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14315. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14316. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14317. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14318. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14319. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14320. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14321. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14322. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14323. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14324. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14325. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14326. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14327. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14328. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14329. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14330. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14331. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14332. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14333. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14334. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14335. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14336. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14337. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14338. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14339. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14340. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14341. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14342. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14343. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14344. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14345. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14346. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14347. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14348. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14349. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14350. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14351. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14352. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14353. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14354. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14355. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14356. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14357. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14358. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14359. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14360. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14361. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14362. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14363. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14364. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14365. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14366. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14367. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14368. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14369. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14370. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14371. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14372. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14373. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14374. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14375. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14376. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14377. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14378. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14379. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14380. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14381. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14382. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14383. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14384. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14385. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14386. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14387. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14388. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14389. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14390. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14391. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14392. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14393. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14394. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14395. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14396. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14397. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14398. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14399. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14400. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14401. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14402. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14403. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14404. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14405. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14406. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14407. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14408. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14409. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14410. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14411. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14412. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14413. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14414. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14415. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14416. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14417. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14418. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14419. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14420. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14421. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14422. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14423. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14424. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14425. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14426. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14427. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14428. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14429. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14430. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14431. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14432. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14433. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14434. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14435. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14436. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14437. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14438. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14439. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14440. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14441. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14442. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14443. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14444. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14445. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14446. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14447. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14448. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14449. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14450. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14451. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14452. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14453. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14454. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14455. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14456. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14457. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14458. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14459. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14460. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14461. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14462. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14463. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14464. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14465. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14466. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14467. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14468. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14469. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14470. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14471. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14472. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14473. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14474. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14475. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14476. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14477. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14478. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14479. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14480. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14481. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14482. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14483. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14484. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14485. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14486. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14487. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14488. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14489. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14490. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14491. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14492. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14493. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14494. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14495. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14496. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14497. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14498. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14499. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14500. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14501. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14502. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14503. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14504. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14505. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14506. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14507. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14508. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14509. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14510. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14511. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14512. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14513. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14514. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14515. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14516. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14517. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14518. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14519. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14520. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14521. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14522. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14523. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14524. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14525. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14526. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14527. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14528. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14529. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14530. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14531. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14532. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14533. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14534. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14535. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14536. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14537. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14538. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14539. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14540. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14541. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14542. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14543. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14544. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14545. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14546. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14547. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14548. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14549. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14550. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14551. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14552. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14553. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14554. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14555. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14556. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14557. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14558. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14559. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14560. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14561. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14562. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14563. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14564. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14565. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14566. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14567. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14568. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14569. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14570. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14571. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14572. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14573. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14574. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14575. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14576. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14577. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14578. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14579. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14580. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14581. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14582. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14583. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14584. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14585. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14586. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14587. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14588. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14589. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14590. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14591. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14592. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14593. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14594. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14595. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14596. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14597. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14598. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14599. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14600. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14601. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14602. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14603. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14604. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14605. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14606. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14607. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14608. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14609. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14610. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14611. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14612. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14613. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14614. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14615. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14616. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14617. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14618. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14619. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14620. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14621. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14622. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14623. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14624. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14625. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14626. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14627. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14628. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14629. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14630. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14631. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14632. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14633. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14634. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14635. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14636. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14637. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14638. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14639. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14640. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14641. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14642. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14643. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14644. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14645. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14646. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14647. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14648. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14649. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14650. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14651. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14652. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14653. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14654. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14655. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14656. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14657. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14658. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14659. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14660. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14661. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14662. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14663. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14664. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14665. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14666. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14667. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14668. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14669. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14670. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14671. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14672. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14673. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14674. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14675. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14676. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14677. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14678. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14679. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14680. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14681. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14682. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14683. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14684. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14685. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14686. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14687. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14688. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14689. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14690. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14691. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14692. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14693. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14694. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14695. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14696. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14697. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14698. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14699. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14700. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14701. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14702. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14703. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14704. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14705. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14706. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14707. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14708. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14709. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14710. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14711. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14712. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14713. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14714. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14715. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14716. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14717. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14718. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14719. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14720. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14721. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14722. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14723. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14724. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14725. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14726. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14727. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14728. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14729. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14730. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14731. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14732. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14733. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14734. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14735. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14736. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14737. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14738. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14739. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14740. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14741. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14742. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14743. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14744. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14745. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14746. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14747. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14748. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14749. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14750. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14751. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14752. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14753. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14754. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14755. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14756. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14757. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14758. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14759. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14760. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14761. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14762. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14763. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14764. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14765. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14766. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14767. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14768. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14769. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14770. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14771. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14772. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14773. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14774. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14775. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14776. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14777. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14778. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14779. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14780. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14781. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14782. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14783. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14784. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14785. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14786. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14787. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14788. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14789. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14790. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14791. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14792. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14793. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14794. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14795. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14796. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14797. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14798. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14799. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14800. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14801. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14802. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14803. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  14804. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14805. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14806. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14807. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14808. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14809. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14810. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14811. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14812. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14813. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14814. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14815. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14816. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14817. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14818. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14819. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14820. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14821. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14822. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14823. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14824. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  14825. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14826. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14827. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14828. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14829. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14830. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14831. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14832. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14833. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14834. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14835. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14836. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14837. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14838. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14839. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14840. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14841. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14842. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14843. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14844. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14845. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  14846. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14847. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14848. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14849. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14850. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14851. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14852. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14853. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14854. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14855. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14856. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14857. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14858. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14859. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14860. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14861. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14862. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14863. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14864. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14865. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14866. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  14867. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14868. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14869. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14870. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14871. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14872. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14873. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14874. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14875. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14876. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14877. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14878. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14879. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14880. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14881. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14882. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14883. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14884. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14885. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14886. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14887. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  14888. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14889. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14890. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14891. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14892. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14893. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14894. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14895. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14896. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14897. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14898. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14899. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14900. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14901. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14902. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14903. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14904. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14905. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14906. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14907. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14908. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  14909. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14910. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14911. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14912. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14913. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14914. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14915. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14916. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14917. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14918. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14919. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14920. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14921. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14922. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14923. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14924. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14925. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14926. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14927. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14928. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14929. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  14930. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14931. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14932. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14933. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14934. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14935. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14936. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14937. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14938. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14939. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14940. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14941. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14942. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14943. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14944. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14945. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14946. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14947. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14948. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14949. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14950. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  14951. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14952. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14953. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14954. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14955. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14956. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14957. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14958. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14959. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14960. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14961. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  14962. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14963. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14964. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14965. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14966. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14967. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14968. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14969. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14970. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14971. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14972. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  14973. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14974. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14975. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14976. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14977. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14978. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14979. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14980. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  14981. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  14982. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  14983. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  14984. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14985. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14986. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14987. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14988. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14989. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14990. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  14991. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14992. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14993. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  14994. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14995. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  14996. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  14997. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  14998. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  14999. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15000. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15001. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15002. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15003. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15004. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15005. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15006. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15007. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15008. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15009. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15010. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15011. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15012. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15013. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15014. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15015. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15016. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15017. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15018. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15019. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15020. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15021. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15022. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15023. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15024. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15025. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15026. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15027. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15028. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15029. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15030. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15031. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15032. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15033. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15034. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15035. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15036. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15037. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15038. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15039. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15040. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15041. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15042. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15043. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15044. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15045. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15046. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15047. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15048. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15049. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15050. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15051. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15052. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15053. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15054. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15055. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15056. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15057. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15058. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15059. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15060. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15061. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15062. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15063. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15064. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15065. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15066. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15067. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15068. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15069. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15070. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15071. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15072. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15073. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15074. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15075. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15076. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15077. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15078. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15079. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15080. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15081. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15082. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15083. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15084. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15085. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15086. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15087. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15088. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15089. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15090. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15091. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15092. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15093. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15094. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15095. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15096. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15097. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15098. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15099. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15100. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15101. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15102. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15103. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15104. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15105. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15106. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15107. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15108. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15109. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15110. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15111. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15112. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15113. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15114. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15115. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15116. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15117. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15118. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15119. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15120. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15121. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15122. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15123. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15124. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15125. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15126. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15127. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15128. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15129. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15130. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15131. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15132. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15133. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15134. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15135. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15136. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15137. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15138. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15139. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15140. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15141. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15142. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15143. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15144. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15145. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15146. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15147. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15148. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15149. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15150. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15151. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15152. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15153. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15154. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15155. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15156. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15157. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15158. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15159. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15160. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15161. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15162. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15163. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15164. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15165. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15166. /* Backend Enablement */
  15167. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15168. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15169. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15170. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15171. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15172. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15173. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15174. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15175. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15176. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15177. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15178. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15179. {"BE_OUT", NULL, "HDMI"},
  15180. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15181. {"BE_OUT", NULL, "SPDIF_RX"},
  15182. {"BE_OUT", NULL, "MI2S_RX"},
  15183. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15184. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15185. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15186. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15187. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15188. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15189. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15190. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15191. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15192. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15193. {"BE_OUT", NULL, "INT_FM_RX"},
  15194. {"BE_OUT", NULL, "PCM_RX"},
  15195. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15196. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15197. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15198. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15199. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15200. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15201. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15202. {"BE_OUT", NULL, "INT_FM_RX"},
  15203. {"BE_OUT", NULL, "PCM_RX"},
  15204. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15205. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15206. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15207. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15208. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15209. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15210. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15211. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15212. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15213. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15214. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15215. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15216. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15217. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15218. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15219. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15220. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15221. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15222. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15223. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15224. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15225. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15226. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15227. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15228. {"PRI_I2S_TX", NULL, "BE_IN"},
  15229. {"MI2S_TX", NULL, "BE_IN"},
  15230. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15231. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15232. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15233. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15234. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15235. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15236. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15237. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15238. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15239. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15240. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15241. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15242. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15243. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15244. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15245. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15246. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15247. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15248. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15249. {"INT_FM_TX", NULL, "BE_IN"},
  15250. {"PCM_TX", NULL, "BE_IN"},
  15251. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15252. {"BE_OUT", NULL, "STUB_RX"},
  15253. {"STUB_TX", NULL, "BE_IN"},
  15254. {"STUB_1_TX", NULL, "BE_IN"},
  15255. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15256. {"AUX_PCM_TX", NULL, "BE_IN"},
  15257. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15258. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15259. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15260. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15261. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15262. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15263. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15264. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15265. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15266. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15267. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15268. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15269. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15270. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15271. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15272. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15273. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15274. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15275. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15276. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15277. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15278. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15279. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15280. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15281. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15282. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15283. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15284. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15285. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15286. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15287. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15288. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15289. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15290. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15291. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15292. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15293. };
  15294. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15295. struct snd_pcm_hw_params *params)
  15296. {
  15297. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15298. unsigned int be_id = rtd->dai_link->id;
  15299. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15300. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15301. return -EINVAL;
  15302. }
  15303. mutex_lock(&routing_lock);
  15304. msm_bedais[be_id].sample_rate = params_rate(params);
  15305. msm_bedais[be_id].channel = params_channels(params);
  15306. msm_bedais[be_id].format = params_format(params);
  15307. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15308. __func__, msm_bedais[be_id].sample_rate,
  15309. msm_bedais[be_id].format, be_id);
  15310. mutex_unlock(&routing_lock);
  15311. return 0;
  15312. }
  15313. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15314. {
  15315. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15316. unsigned int be_id = rtd->dai_link->id;
  15317. int i, session_type, path_type, topology;
  15318. struct msm_pcm_routing_bdai_data *bedai;
  15319. struct msm_pcm_routing_fdai_data *fdai;
  15320. pr_debug("%s: substream->pcm->id:%s\n",
  15321. __func__, substream->pcm->id);
  15322. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15323. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15324. return -EINVAL;
  15325. }
  15326. bedai = &msm_bedais[be_id];
  15327. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15328. 0 : 1);
  15329. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15330. path_type = ADM_PATH_PLAYBACK;
  15331. else
  15332. path_type = ADM_PATH_LIVE_REC;
  15333. mutex_lock(&routing_lock);
  15334. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15335. if (!is_mm_lsm_fe_id(i))
  15336. continue;
  15337. fdai = &fe_dai_map[i][session_type];
  15338. if (fdai->strm_id != INVALID_SESSION) {
  15339. int idx;
  15340. int port_id;
  15341. unsigned long copp =
  15342. session_copp_map[i][session_type][be_id];
  15343. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15344. if (test_bit(idx, &copp))
  15345. break;
  15346. fdai->be_srate = bedai->sample_rate;
  15347. port_id = bedai->port_id;
  15348. topology = adm_get_topology_for_port_copp_idx(port_id,
  15349. idx);
  15350. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15351. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15352. __func__, copp, i, session_type, be_id,
  15353. topology);
  15354. clear_bit(idx,
  15355. &session_copp_map[i][session_type][be_id]);
  15356. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15357. (bedai->passthr_mode[i] == LEGACY_PCM))
  15358. msm_pcm_routing_deinit_pp(bedai->port_id,
  15359. topology);
  15360. }
  15361. }
  15362. bedai->active = 0;
  15363. bedai->sample_rate = 0;
  15364. bedai->channel = 0;
  15365. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15366. if (bedai->passthr_mode[i] != LISTEN)
  15367. bedai->passthr_mode[i] = LEGACY_PCM;
  15368. }
  15369. mutex_unlock(&routing_lock);
  15370. return 0;
  15371. }
  15372. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15373. {
  15374. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15375. unsigned int be_id = rtd->dai_link->id;
  15376. int i, path_type, topology;
  15377. int session_type = INVALID_SESSION;
  15378. struct msm_pcm_routing_bdai_data *bedai;
  15379. u32 channels, sample_rate;
  15380. uint16_t bits_per_sample = 16, voc_path_type;
  15381. struct msm_pcm_routing_fdai_data *fdai;
  15382. u32 session_id;
  15383. struct media_format_info voc_be_media_format;
  15384. bool is_lsm;
  15385. pr_debug("%s: substream->pcm->id:%s\n",
  15386. __func__, substream->pcm->id);
  15387. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15388. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15389. return -EINVAL;
  15390. }
  15391. bedai = &msm_bedais[be_id];
  15392. mutex_lock(&routing_lock);
  15393. if (bedai->active == 1)
  15394. goto done; /* Ignore prepare if back-end already active */
  15395. /* AFE port is not active at this point. However, still
  15396. * go ahead setting active flag under the notion that
  15397. * QDSP6 is able to handle ADM starting before AFE port
  15398. * is started.
  15399. */
  15400. bedai->active = 1;
  15401. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15402. if (!(is_mm_lsm_fe_id(i) &&
  15403. route_check_fe_id_adm_support(i)))
  15404. continue;
  15405. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15406. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15407. path_type = ADM_PATH_COMPRESSED_RX;
  15408. else
  15409. path_type = ADM_PATH_PLAYBACK;
  15410. session_type = SESSION_TYPE_RX;
  15411. } else {
  15412. path_type = ADM_PATH_LIVE_REC;
  15413. session_type = SESSION_TYPE_TX;
  15414. }
  15415. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15416. (i <= MSM_FRONTEND_DAI_LSM8);
  15417. fdai = &fe_dai_map[i][session_type];
  15418. if (fdai->strm_id != INVALID_SESSION) {
  15419. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15420. if (session_type == SESSION_TYPE_TX &&
  15421. fdai->be_srate &&
  15422. (fdai->be_srate != bedai->sample_rate)) {
  15423. pr_debug("%s: flush strm %d diff BE rates\n",
  15424. __func__,
  15425. fdai->strm_id);
  15426. if (fdai->event_info.event_func)
  15427. fdai->event_info.event_func(
  15428. MSM_PCM_RT_EVT_BUF_RECFG,
  15429. fdai->event_info.priv_data);
  15430. fdai->be_srate = 0; /* might not need it */
  15431. }
  15432. bits_per_sample = msm_routing_get_bit_width(
  15433. bedai->format);
  15434. app_type =
  15435. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15436. if (app_type && is_lsm) {
  15437. app_type_idx =
  15438. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15439. sample_rate =
  15440. fe_dai_app_type_cfg[i][session_type][be_id]
  15441. .sample_rate;
  15442. bits_per_sample =
  15443. lsm_app_type_cfg[app_type_idx].bit_width;
  15444. } else if (app_type) {
  15445. app_type_idx =
  15446. msm_pcm_routing_get_app_type_idx(app_type);
  15447. sample_rate =
  15448. fe_dai_app_type_cfg[i][session_type]
  15449. [be_id].sample_rate;
  15450. bits_per_sample =
  15451. app_type_cfg[app_type_idx].bit_width;
  15452. } else
  15453. sample_rate = bedai->sample_rate;
  15454. /*
  15455. * check if ADM needs to be configured with different
  15456. * channel mapping than backend
  15457. */
  15458. if (!bedai->adm_override_ch)
  15459. channels = bedai->channel;
  15460. else
  15461. channels = bedai->adm_override_ch;
  15462. acdb_dev_id =
  15463. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15464. topology = msm_routing_get_adm_topology(i, session_type,
  15465. be_id);
  15466. copp_idx = adm_open(bedai->port_id, path_type,
  15467. sample_rate, channels, topology,
  15468. fdai->perf_mode, bits_per_sample,
  15469. app_type, acdb_dev_id);
  15470. if ((copp_idx < 0) ||
  15471. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15472. pr_err("%s: adm open failed\n", __func__);
  15473. mutex_unlock(&routing_lock);
  15474. return -EINVAL;
  15475. }
  15476. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15477. __func__, i, session_type, be_id);
  15478. set_bit(copp_idx,
  15479. &session_copp_map[i][session_type][be_id]);
  15480. if (msm_is_resample_needed(
  15481. sample_rate,
  15482. bedai->sample_rate))
  15483. adm_copp_mfc_cfg(
  15484. bedai->port_id, copp_idx,
  15485. bedai->sample_rate);
  15486. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15487. fdai->perf_mode,
  15488. bedai->passthr_mode[i]);
  15489. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15490. (bedai->passthr_mode[i] == LEGACY_PCM))
  15491. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15492. topology, channels);
  15493. }
  15494. }
  15495. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15496. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15497. if (session_id) {
  15498. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15499. session_id);
  15500. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15501. voc_path_type = RX_PATH;
  15502. else
  15503. voc_path_type = TX_PATH;
  15504. voc_set_route_flag(session_id, voc_path_type, 1);
  15505. memset(&voc_be_media_format, 0,
  15506. sizeof(struct media_format_info));
  15507. voc_be_media_format.port_id = bedai->port_id;
  15508. voc_be_media_format.num_channels = bedai->channel;
  15509. voc_be_media_format.sample_rate = bedai->sample_rate;
  15510. voc_be_media_format.bits_per_sample = bedai->format;
  15511. /* Defaulting this to 1 for voice call usecases */
  15512. voc_be_media_format.channel_mapping[0] = 1;
  15513. voc_set_device_config(session_id, voc_path_type,
  15514. &voc_be_media_format);
  15515. if (voc_get_route_flag(session_id, RX_PATH) &&
  15516. voc_get_route_flag(session_id, TX_PATH))
  15517. voc_enable_device(session_id);
  15518. }
  15519. }
  15520. /* Check if backend is an external ec ref port and set as needed */
  15521. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15522. memset(&voc_be_media_format, 0,
  15523. sizeof(struct media_format_info));
  15524. /* Get format info for ec ref port from msm_bedais[] */
  15525. voc_be_media_format.port_id = bedai->port_id;
  15526. voc_be_media_format.num_channels = bedai->channel;
  15527. voc_be_media_format.bits_per_sample = bedai->format;
  15528. voc_be_media_format.sample_rate = bedai->sample_rate;
  15529. /* Defaulting this to 1 for voice call usecases */
  15530. voc_be_media_format.channel_mapping[0] = 1;
  15531. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15532. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15533. __func__, voc_be_media_format.port_id,
  15534. voc_be_media_format.num_channels,
  15535. voc_be_media_format.bits_per_sample,
  15536. voc_be_media_format.sample_rate);
  15537. }
  15538. done:
  15539. mutex_unlock(&routing_lock);
  15540. return 0;
  15541. }
  15542. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15543. int fe_id)
  15544. {
  15545. int index, topo_id, be_idx;
  15546. unsigned long pp_config = 0;
  15547. bool mute_on;
  15548. int latency;
  15549. bool compr_passthr_mode = true;
  15550. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15551. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15552. pr_err("%s: Device pp params on invalid port %d\n",
  15553. __func__, port_id);
  15554. return -EINVAL;
  15555. }
  15556. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15557. if (port_id == msm_bedais[be_idx].port_id)
  15558. break;
  15559. }
  15560. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15561. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15562. return -EINVAL;
  15563. }
  15564. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15565. if (msm_bedais_pp_params[index].port_id == port_id)
  15566. break;
  15567. }
  15568. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15569. pr_err("%s: Invalid backend pp params index %d\n",
  15570. __func__, index);
  15571. return -EINVAL;
  15572. }
  15573. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15574. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15575. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15576. __func__, topo_id);
  15577. return -EINVAL;
  15578. }
  15579. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15580. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15581. compr_passthr_mode = false;
  15582. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15583. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15584. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15585. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15586. mute_on = msm_bedais_pp_params[index].mute_on;
  15587. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15588. adm_send_compressed_device_mute(port_id,
  15589. copp_idx,
  15590. mute_on);
  15591. }
  15592. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15593. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15594. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15595. &pp_config);
  15596. latency = msm_bedais_pp_params[index].latency;
  15597. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15598. adm_send_compressed_device_latency(port_id,
  15599. copp_idx,
  15600. latency);
  15601. }
  15602. return 0;
  15603. }
  15604. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15605. struct snd_ctl_elem_value *ucontrol)
  15606. {
  15607. int pp_id = ucontrol->value.integer.value[0];
  15608. int port_id = 0;
  15609. int index, be_idx, i, topo_id, idx;
  15610. bool mute;
  15611. int latency;
  15612. bool compr_passthr_mode = true;
  15613. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15614. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15615. port_id = msm_bedais[be_idx].port_id;
  15616. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15617. break;
  15618. }
  15619. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15620. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15621. return -EINVAL;
  15622. }
  15623. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15624. if (msm_bedais_pp_params[index].port_id == port_id)
  15625. break;
  15626. }
  15627. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15628. pr_err("%s: Invalid pp params backend index %d\n",
  15629. __func__, index);
  15630. return -EINVAL;
  15631. }
  15632. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15633. MSM_FRONTEND_DAI_MM_SIZE) {
  15634. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15635. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15636. compr_passthr_mode = false;
  15637. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15638. unsigned long copp =
  15639. session_copp_map[i]
  15640. [SESSION_TYPE_RX][be_idx];
  15641. if (!test_bit(idx, &copp))
  15642. continue;
  15643. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15644. idx);
  15645. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15646. continue;
  15647. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15648. __func__, port_id, copp, msm_bedais[be_idx].active,
  15649. msm_bedais[be_idx].passthr_mode[i]);
  15650. switch (pp_id) {
  15651. case ADM_PP_PARAM_MUTE_ID:
  15652. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15653. mute = ucontrol->value.integer.value[1] ? true : false;
  15654. msm_bedais_pp_params[index].mute_on = mute;
  15655. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15656. &msm_bedais_pp_params[index].pp_params_config);
  15657. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15658. adm_send_compressed_device_mute(port_id,
  15659. idx, mute);
  15660. break;
  15661. case ADM_PP_PARAM_LATENCY_ID:
  15662. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15663. msm_bedais_pp_params[index].latency =
  15664. ucontrol->value.integer.value[1];
  15665. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15666. &msm_bedais_pp_params[index].pp_params_config);
  15667. latency = msm_bedais_pp_params[index].latency =
  15668. ucontrol->value.integer.value[1];
  15669. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15670. adm_send_compressed_device_latency(port_id,
  15671. idx, latency);
  15672. break;
  15673. default:
  15674. pr_info("%s, device pp param %d not supported\n",
  15675. __func__, pp_id);
  15676. break;
  15677. }
  15678. }
  15679. }
  15680. return 0;
  15681. }
  15682. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15683. struct snd_ctl_elem_value *ucontrol)
  15684. {
  15685. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15686. return 0;
  15687. }
  15688. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15689. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15690. 0, 3, msm_routing_get_device_pp_params_mixer,
  15691. msm_routing_put_device_pp_params_mixer),
  15692. };
  15693. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15694. struct snd_ctl_elem_value *ucontrol)
  15695. {
  15696. ucontrol->value.integer.value[0] =
  15697. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15698. pr_debug("%s: status %ld\n", __func__,
  15699. ucontrol->value.integer.value[0]);
  15700. return 0;
  15701. }
  15702. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15703. struct snd_ctl_elem_value *ucontrol)
  15704. {
  15705. int32_t status = 0;
  15706. status = core_set_license(ucontrol->value.integer.value[0],
  15707. APTX_CLASSIC_DEC_LICENSE_ID);
  15708. pr_debug("%s: status %d\n", __func__, status);
  15709. return status;
  15710. }
  15711. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15712. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15713. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15714. msm_aptx_dec_license_control_put),
  15715. };
  15716. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15717. struct snd_ctl_elem_info *uinfo)
  15718. {
  15719. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15720. uinfo->count = sizeof(be_dai_name_table);
  15721. return 0;
  15722. }
  15723. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15724. unsigned int __user *bytes,
  15725. unsigned int size)
  15726. {
  15727. int i;
  15728. int ret;
  15729. if (size < sizeof(be_dai_name_table)) {
  15730. pr_err("%s: invalid size %d requested, returning\n",
  15731. __func__, size);
  15732. ret = -EINVAL;
  15733. goto done;
  15734. }
  15735. /*
  15736. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15737. * needed when adding new backends
  15738. */
  15739. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15740. be_dai_name_table[i].be_id = i;
  15741. strlcpy(be_dai_name_table[i].be_name,
  15742. msm_bedais[i].name,
  15743. LPASS_BE_NAME_MAX_LENGTH);
  15744. }
  15745. ret = copy_to_user(bytes, &be_dai_name_table,
  15746. sizeof(be_dai_name_table));
  15747. if (ret) {
  15748. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15749. ret = -EFAULT;
  15750. }
  15751. done:
  15752. return ret;
  15753. }
  15754. static const struct snd_kcontrol_new
  15755. msm_routing_be_dai_name_table_mixer_controls[] = {
  15756. {
  15757. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15758. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15759. .info = msm_routing_be_dai_name_table_info,
  15760. .name = "Backend DAI Name Table",
  15761. .tlv.c = snd_soc_bytes_tlv_callback,
  15762. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15763. .max = sizeof(be_dai_name_table),
  15764. .get = msm_routing_be_dai_name_table_tlv_get,
  15765. }
  15766. },
  15767. };
  15768. static int msm_routing_stereo_channel_reverse_control_get(
  15769. struct snd_kcontrol *kcontrol,
  15770. struct snd_ctl_elem_value *ucontrol)
  15771. {
  15772. ucontrol->value.integer.value[0] = swap_ch;
  15773. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15774. ucontrol->value.integer.value[0]);
  15775. return 0;
  15776. }
  15777. static int msm_routing_stereo_channel_reverse_control_put(
  15778. struct snd_kcontrol *kcontrol,
  15779. struct snd_ctl_elem_value *ucontrol)
  15780. {
  15781. int i, idx, be_index, port_id;
  15782. int ret = 0;
  15783. unsigned long copp;
  15784. pr_debug("%s Swap channel value:%ld\n", __func__,
  15785. ucontrol->value.integer.value[0]);
  15786. swap_ch = ucontrol->value.integer.value[0];
  15787. mutex_lock(&routing_lock);
  15788. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15789. port_id = msm_bedais[be_index].port_id;
  15790. if (!msm_bedais[be_index].active)
  15791. continue;
  15792. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15793. MSM_FRONTEND_DAI_MM_SIZE) {
  15794. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  15795. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15796. if (!test_bit(idx, &copp))
  15797. continue;
  15798. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  15799. __func__, port_id, idx);
  15800. ret = adm_swap_speaker_channels(
  15801. port_id, idx,
  15802. msm_bedais[be_index].sample_rate,
  15803. swap_ch);
  15804. if (ret) {
  15805. pr_err("%s:Swap_channel failed, err=%d\n",
  15806. __func__, ret);
  15807. goto done;
  15808. }
  15809. }
  15810. }
  15811. }
  15812. done:
  15813. mutex_unlock(&routing_lock);
  15814. return ret;
  15815. }
  15816. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  15817. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  15818. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  15819. msm_routing_stereo_channel_reverse_control_put),
  15820. };
  15821. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  15822. .hw_params = msm_pcm_routing_hw_params,
  15823. .close = msm_pcm_routing_close,
  15824. .prepare = msm_pcm_routing_prepare,
  15825. };
  15826. /* Not used but frame seems to require it */
  15827. static int msm_routing_probe(struct snd_soc_platform *platform)
  15828. {
  15829. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  15830. ARRAY_SIZE(msm_qdsp6_widgets));
  15831. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  15832. ARRAY_SIZE(intercon));
  15833. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  15834. snd_soc_add_platform_controls(platform, lsm_controls,
  15835. ARRAY_SIZE(lsm_controls));
  15836. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  15837. ARRAY_SIZE(aanc_slim_0_rx_mux));
  15838. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  15839. ARRAY_SIZE(msm_voc_session_controls));
  15840. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  15841. ARRAY_SIZE(app_type_cfg_controls));
  15842. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  15843. ARRAY_SIZE(lsm_app_type_cfg_controls));
  15844. snd_soc_add_platform_controls(platform, module_cfg_controls,
  15845. ARRAY_SIZE(module_cfg_controls));
  15846. snd_soc_add_platform_controls(platform,
  15847. stereo_to_custom_stereo_controls,
  15848. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  15849. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  15850. ARRAY_SIZE(ec_ref_param_controls));
  15851. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  15852. ARRAY_SIZE(channel_mixer_controls));
  15853. msm_qti_pp_add_controls(platform);
  15854. msm_dts_srs_tm_add_controls(platform);
  15855. msm_dolby_dap_add_controls(platform);
  15856. snd_soc_add_platform_controls(platform,
  15857. use_ds1_or_ds2_controls,
  15858. ARRAY_SIZE(use_ds1_or_ds2_controls));
  15859. snd_soc_add_platform_controls(platform,
  15860. device_pp_params_mixer_controls,
  15861. ARRAY_SIZE(device_pp_params_mixer_controls));
  15862. snd_soc_add_platform_controls(platform,
  15863. msm_routing_be_dai_name_table_mixer_controls,
  15864. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  15865. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  15866. ARRAY_SIZE(msm_source_tracking_controls));
  15867. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  15868. ARRAY_SIZE(adm_channel_config_controls));
  15869. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  15870. ARRAY_SIZE(aptx_dec_license_controls));
  15871. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  15872. ARRAY_SIZE(stereo_channel_reverse_control));
  15873. return 0;
  15874. }
  15875. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  15876. {
  15877. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  15878. }
  15879. void msm_routing_pcm_free(struct snd_pcm *pcm)
  15880. {
  15881. msm_pcm_routing_hwdep_free(pcm);
  15882. }
  15883. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  15884. .ops = &msm_routing_pcm_ops,
  15885. .probe = msm_routing_probe,
  15886. .pcm_new = msm_routing_pcm_new,
  15887. .pcm_free = msm_routing_pcm_free,
  15888. };
  15889. static int msm_routing_pcm_probe(struct platform_device *pdev)
  15890. {
  15891. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  15892. return snd_soc_register_platform(&pdev->dev,
  15893. &msm_soc_routing_platform);
  15894. }
  15895. static int msm_routing_pcm_remove(struct platform_device *pdev)
  15896. {
  15897. snd_soc_unregister_platform(&pdev->dev);
  15898. return 0;
  15899. }
  15900. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  15901. {.compatible = "qcom,msm-pcm-routing"},
  15902. {}
  15903. };
  15904. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  15905. static struct platform_driver msm_routing_pcm_driver = {
  15906. .driver = {
  15907. .name = "msm-pcm-routing",
  15908. .owner = THIS_MODULE,
  15909. .of_match_table = msm_pcm_routing_dt_match,
  15910. },
  15911. .probe = msm_routing_pcm_probe,
  15912. .remove = msm_routing_pcm_remove,
  15913. };
  15914. int msm_routing_check_backend_enabled(int fedai_id)
  15915. {
  15916. int i;
  15917. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  15918. /* bad ID assigned in machine driver */
  15919. pr_err("%s: bad MM ID\n", __func__);
  15920. return 0;
  15921. }
  15922. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15923. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  15924. return msm_bedais[i].active;
  15925. }
  15926. return 0;
  15927. }
  15928. static int msm_routing_set_cal(int32_t cal_type,
  15929. size_t data_size, void *data)
  15930. {
  15931. int ret = 0;
  15932. pr_debug("%s\n", __func__);
  15933. ret = cal_utils_set_cal(data_size, data, cal_data, 0, NULL);
  15934. if (ret < 0) {
  15935. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  15936. __func__, ret, cal_type);
  15937. ret = -EINVAL;
  15938. goto done;
  15939. }
  15940. done:
  15941. return ret;
  15942. }
  15943. static void msm_routing_delete_cal_data(void)
  15944. {
  15945. pr_debug("%s\n", __func__);
  15946. cal_utils_destroy_cal_types(1, &cal_data);
  15947. }
  15948. static int msm_routing_init_cal_data(void)
  15949. {
  15950. int ret = 0;
  15951. struct cal_type_info cal_type_info = {
  15952. {ADM_TOPOLOGY_CAL_TYPE,
  15953. {NULL, NULL, NULL,
  15954. msm_routing_set_cal, NULL, NULL} },
  15955. {NULL, NULL, cal_utils_match_buf_num}
  15956. };
  15957. pr_debug("%s\n", __func__);
  15958. ret = cal_utils_create_cal_types(1, &cal_data,
  15959. &cal_type_info);
  15960. if (ret < 0) {
  15961. pr_err("%s: could not create cal type!\n",
  15962. __func__);
  15963. ret = -EINVAL;
  15964. goto err;
  15965. }
  15966. return ret;
  15967. err:
  15968. msm_routing_delete_cal_data();
  15969. return ret;
  15970. }
  15971. int __init msm_soc_routing_platform_init(void)
  15972. {
  15973. mutex_init(&routing_lock);
  15974. if (msm_routing_init_cal_data())
  15975. pr_err("%s: could not init cal data!\n", __func__);
  15976. afe_set_routing_callback(
  15977. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  15978. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  15979. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  15980. return platform_driver_register(&msm_routing_pcm_driver);
  15981. }
  15982. void msm_soc_routing_platform_exit(void)
  15983. {
  15984. msm_routing_delete_cal_data();
  15985. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  15986. mutex_destroy(&routing_lock);
  15987. platform_driver_unregister(&msm_routing_pcm_driver);
  15988. }
  15989. MODULE_DESCRIPTION("MSM routing platform driver");
  15990. MODULE_LICENSE("GPL v2");