msm-pcm-routing-v2.c 712 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069
  1. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* VOIP */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* AFE_RX */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* AFE_TX */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* VOICE_STUB */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* DTMF_RX */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* QCHAT */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* VOLTE_STUB */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* LSM1 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* LSM2 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* LSM3 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM4 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM5 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM6 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM7 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM8 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* VOICE2_STUB */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* VOICEMMODE1 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* VOICEMMODE2 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. };
  673. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  674. [MSM_BACKEND_DAI_MAX];
  675. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  676. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  677. static struct msm_pcm_stream_app_type_cfg
  678. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  679. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  680. /* The caller of this should aqcuire routing lock */
  681. void msm_pcm_routing_get_bedai_info(int be_idx,
  682. struct msm_pcm_routing_bdai_data *be_dai)
  683. {
  684. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  685. memcpy(be_dai, &msm_bedais[be_idx],
  686. sizeof(struct msm_pcm_routing_bdai_data));
  687. }
  688. /* The caller of this should aqcuire routing lock */
  689. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  690. struct msm_pcm_routing_fdai_data *fe_dai)
  691. {
  692. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  693. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  694. sizeof(struct msm_pcm_routing_fdai_data));
  695. }
  696. void msm_pcm_routing_acquire_lock(void)
  697. {
  698. mutex_lock(&routing_lock);
  699. }
  700. void msm_pcm_routing_release_lock(void)
  701. {
  702. mutex_unlock(&routing_lock);
  703. }
  704. static int msm_pcm_routing_get_app_type_idx(int app_type)
  705. {
  706. int idx;
  707. pr_debug("%s: app_type: %d\n", __func__, app_type);
  708. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  709. if (app_type_cfg[idx].app_type == app_type)
  710. return idx;
  711. }
  712. pr_info("%s: App type not available, fallback to default\n", __func__);
  713. return 0;
  714. }
  715. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  716. {
  717. int idx;
  718. pr_debug("%s: app_type: %d\n", __func__, app_type);
  719. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  720. if (lsm_app_type_cfg[idx].app_type == app_type)
  721. return idx;
  722. }
  723. pr_debug("%s: App type not available, fallback to default\n", __func__);
  724. return 0;
  725. }
  726. static bool is_mm_lsm_fe_id(int fe_id)
  727. {
  728. bool rc = true;
  729. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  730. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  731. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  732. rc = false;
  733. }
  734. return rc;
  735. }
  736. int msm_pcm_routing_reg_stream_app_type_cfg(
  737. int fedai_id, int session_type, int be_id,
  738. struct msm_pcm_stream_app_type_cfg *cfg_data)
  739. {
  740. int ret = 0;
  741. if (cfg_data == NULL) {
  742. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  743. ret = -EINVAL;
  744. goto done;
  745. }
  746. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  747. __func__, fedai_id, session_type, be_id,
  748. cfg_data->app_type, cfg_data->acdb_dev_id,
  749. cfg_data->sample_rate);
  750. if (!is_mm_lsm_fe_id(fedai_id)) {
  751. pr_err("%s: Invalid machine driver ID %d\n",
  752. __func__, fedai_id);
  753. ret = -EINVAL;
  754. goto done;
  755. }
  756. if (session_type != SESSION_TYPE_RX &&
  757. session_type != SESSION_TYPE_TX) {
  758. pr_err("%s: Invalid session type %d\n",
  759. __func__, session_type);
  760. ret = -EINVAL;
  761. goto done;
  762. }
  763. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  764. pr_err("%s: Received out of bounds be_id %d\n",
  765. __func__, be_id);
  766. ret = -EINVAL;
  767. goto done;
  768. }
  769. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  770. /*
  771. * Store the BE ID of the configuration information set as the latest so
  772. * the get mixer control knows what to return.
  773. */
  774. last_be_id_configured[fedai_id][session_type] = be_id;
  775. done:
  776. return ret;
  777. }
  778. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  779. /**
  780. * msm_pcm_routing_get_stream_app_type_cfg
  781. *
  782. * Receives fedai_id, session_type, be_id, and populates app_type,
  783. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  784. * -EINVAL and does not alter passed values.
  785. *
  786. * fedai_id - Passed value, front end ID for which app type config is wanted
  787. * session_type - Passed value, session type for which app type config
  788. * is wanted
  789. * be_id - Returned value, back end device id the app type config data is for
  790. * cfg_data - Returned value, configuration data used by app type config
  791. */
  792. int msm_pcm_routing_get_stream_app_type_cfg(
  793. int fedai_id, int session_type, int *bedai_id,
  794. struct msm_pcm_stream_app_type_cfg *cfg_data)
  795. {
  796. int be_id;
  797. int ret = 0;
  798. if (bedai_id == NULL) {
  799. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  800. ret = -EINVAL;
  801. goto done;
  802. } else if (cfg_data == NULL) {
  803. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  804. ret = -EINVAL;
  805. goto done;
  806. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  807. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  808. ret = -EINVAL;
  809. goto done;
  810. } else if (session_type != SESSION_TYPE_RX &&
  811. session_type != SESSION_TYPE_TX) {
  812. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  813. ret = -EINVAL;
  814. goto done;
  815. }
  816. be_id = last_be_id_configured[fedai_id][session_type];
  817. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  818. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  819. ret = -EINVAL;
  820. goto done;
  821. }
  822. *bedai_id = be_id;
  823. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  824. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  825. __func__, fedai_id, session_type, *bedai_id,
  826. cfg_data->app_type, cfg_data->acdb_dev_id,
  827. cfg_data->sample_rate);
  828. done:
  829. return ret;
  830. }
  831. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  832. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  833. int cal_index)
  834. {
  835. struct list_head *ptr, *next;
  836. struct cal_block_data *cal_block = NULL;
  837. pr_debug("%s\n", __func__);
  838. list_for_each_safe(ptr, next,
  839. &cal_data[cal_index]->cal_blocks) {
  840. cal_block = list_entry(ptr,
  841. struct cal_block_data, list);
  842. if (((struct audio_cal_info_adm_top *)cal_block
  843. ->cal_info)->path == path) {
  844. return cal_block;
  845. }
  846. }
  847. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  848. return NULL;
  849. }
  850. static struct cal_block_data *msm_routing_find_topology(int path,
  851. int app_type,
  852. int acdb_id,
  853. int cal_index)
  854. {
  855. struct list_head *ptr, *next;
  856. struct cal_block_data *cal_block = NULL;
  857. struct audio_cal_info_adm_top *cal_info;
  858. pr_debug("%s\n", __func__);
  859. list_for_each_safe(ptr, next,
  860. &cal_data[cal_index]->cal_blocks) {
  861. cal_block = list_entry(ptr,
  862. struct cal_block_data, list);
  863. cal_info = (struct audio_cal_info_adm_top *)
  864. cal_block->cal_info;
  865. if ((cal_info->path == path) &&
  866. (cal_info->app_type == app_type) &&
  867. (cal_info->acdb_id == acdb_id)) {
  868. return cal_block;
  869. }
  870. }
  871. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  872. __func__, path, app_type, acdb_id);
  873. return msm_routing_find_topology_by_path(cal_index, path);
  874. }
  875. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  876. int be_id)
  877. {
  878. int topology = NULL_COPP_TOPOLOGY;
  879. struct cal_block_data *cal_block = NULL;
  880. int app_type = 0, acdb_dev_id = 0;
  881. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  882. __func__, fedai_id, session_type, be_id);
  883. if (cal_data == NULL)
  884. goto done;
  885. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  886. acdb_dev_id =
  887. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  888. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  889. cal_block = msm_routing_find_topology(session_type, app_type,
  890. acdb_dev_id,
  891. ADM_TOPOLOGY_CAL_TYPE_IDX);
  892. if (cal_block != NULL)
  893. topology = ((struct audio_cal_info_adm_top *)
  894. cal_block->cal_info)->topology;
  895. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  896. if (cal_block == NULL) {
  897. pr_debug("%s: Check for LSM topology\n", __func__);
  898. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  899. cal_block = msm_routing_find_topology(session_type, app_type,
  900. acdb_dev_id,
  901. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  902. if (cal_block != NULL)
  903. topology = ((struct audio_cal_info_adm_top *)
  904. cal_block->cal_info)->topology;
  905. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  906. }
  907. done:
  908. pr_debug("%s: Using topology %d\n", __func__, topology);
  909. return topology;
  910. }
  911. static uint8_t is_be_dai_extproc(int be_dai)
  912. {
  913. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  914. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  915. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  916. return 1;
  917. else
  918. return 0;
  919. }
  920. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  921. int path_type, int perf_mode,
  922. uint32_t passthr_mode)
  923. {
  924. int i, port_type, j, num_copps = 0;
  925. struct route_payload payload;
  926. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  927. path_type == ADM_PATH_COMPRESSED_RX) ?
  928. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  929. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  930. if (!is_be_dai_extproc(i) &&
  931. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  932. (msm_bedais[i].active) &&
  933. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  934. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  935. unsigned long copp =
  936. session_copp_map[fedai_id][sess_type][i];
  937. if (test_bit(j, &copp)) {
  938. payload.port_id[num_copps] =
  939. msm_bedais[i].port_id;
  940. payload.copp_idx[num_copps] = j;
  941. payload.app_type[num_copps] =
  942. fe_dai_app_type_cfg
  943. [fedai_id][sess_type][i]
  944. .app_type;
  945. payload.acdb_dev_id[num_copps] =
  946. fe_dai_app_type_cfg
  947. [fedai_id][sess_type][i]
  948. .acdb_dev_id;
  949. payload.sample_rate[num_copps] =
  950. fe_dai_app_type_cfg
  951. [fedai_id][sess_type][i]
  952. .sample_rate;
  953. num_copps++;
  954. }
  955. }
  956. }
  957. }
  958. if (num_copps) {
  959. payload.num_copps = num_copps;
  960. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  961. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  962. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  963. }
  964. }
  965. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  966. int stream_type)
  967. {
  968. int i, session_type, path_type, port_type;
  969. u32 mode = 0;
  970. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  971. /* bad ID assigned in machine driver */
  972. pr_err("%s: bad MM ID\n", __func__);
  973. return;
  974. }
  975. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  976. session_type = SESSION_TYPE_RX;
  977. path_type = ADM_PATH_PLAYBACK;
  978. port_type = MSM_AFE_PORT_TYPE_RX;
  979. } else {
  980. session_type = SESSION_TYPE_TX;
  981. path_type = ADM_PATH_LIVE_REC;
  982. port_type = MSM_AFE_PORT_TYPE_TX;
  983. }
  984. mutex_lock(&routing_lock);
  985. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  986. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  987. if (!is_be_dai_extproc(i) &&
  988. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  989. (msm_bedais[i].active) &&
  990. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  991. mode = afe_get_port_type(msm_bedais[i].port_id);
  992. adm_connect_afe_port(mode, dspst_id,
  993. msm_bedais[i].port_id);
  994. break;
  995. }
  996. }
  997. mutex_unlock(&routing_lock);
  998. }
  999. static bool route_check_fe_id_adm_support(int fe_id)
  1000. {
  1001. bool rc = true;
  1002. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1003. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1004. /* fe id is listen while port is set to afe */
  1005. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1006. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1007. __func__, fe_id, lsm_port_index);
  1008. rc = false;
  1009. }
  1010. }
  1011. return rc;
  1012. }
  1013. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1014. int dspst_id, int stream_type,
  1015. uint32_t passthr_mode)
  1016. {
  1017. int i, j, session_type, path_type, port_type, topology;
  1018. int num_copps = 0;
  1019. struct route_payload payload;
  1020. u32 channels, sample_rate;
  1021. u16 bit_width = 16;
  1022. bool is_lsm;
  1023. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1024. __func__, fe_id, perf_mode, dspst_id,
  1025. stream_type, passthr_mode);
  1026. if (!is_mm_lsm_fe_id(fe_id)) {
  1027. /* bad ID assigned in machine driver */
  1028. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1029. return -EINVAL;
  1030. }
  1031. if (!route_check_fe_id_adm_support(fe_id)) {
  1032. /* ignore adm open if not supported for fe_id */
  1033. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1034. return 0;
  1035. }
  1036. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1037. session_type = SESSION_TYPE_RX;
  1038. if (passthr_mode != LEGACY_PCM)
  1039. path_type = ADM_PATH_COMPRESSED_RX;
  1040. else
  1041. path_type = ADM_PATH_PLAYBACK;
  1042. port_type = MSM_AFE_PORT_TYPE_RX;
  1043. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1044. session_type = SESSION_TYPE_TX;
  1045. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1046. path_type = ADM_PATH_COMPRESSED_TX;
  1047. else
  1048. path_type = ADM_PATH_LIVE_REC;
  1049. port_type = MSM_AFE_PORT_TYPE_TX;
  1050. } else {
  1051. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1052. return -EINVAL;
  1053. }
  1054. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1055. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1056. mutex_lock(&routing_lock);
  1057. payload.num_copps = 0; /* only RX needs to use payload */
  1058. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1059. /* re-enable EQ if active */
  1060. msm_qti_pp_send_eq_values(fe_id);
  1061. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1062. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1063. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1064. if (!is_be_dai_extproc(i) &&
  1065. (afe_get_port_type(msm_bedais[i].port_id) ==
  1066. port_type) &&
  1067. (msm_bedais[i].active) &&
  1068. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1069. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1070. /*
  1071. * check if ADM needs to be configured with different
  1072. * channel mapping than backend
  1073. */
  1074. if (!msm_bedais[i].adm_override_ch)
  1075. channels = msm_bedais[i].channel;
  1076. else
  1077. channels = msm_bedais[i].adm_override_ch;
  1078. bit_width = msm_routing_get_bit_width(
  1079. msm_bedais[i].format);
  1080. app_type =
  1081. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1082. if (app_type && is_lsm) {
  1083. app_type_idx =
  1084. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1085. sample_rate =
  1086. fe_dai_app_type_cfg[fe_id][session_type][i]
  1087. .sample_rate;
  1088. bit_width =
  1089. lsm_app_type_cfg[app_type_idx].bit_width;
  1090. } else if (app_type) {
  1091. app_type_idx =
  1092. msm_pcm_routing_get_app_type_idx(
  1093. app_type);
  1094. sample_rate =
  1095. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1096. bit_width =
  1097. app_type_cfg[app_type_idx].bit_width;
  1098. } else {
  1099. sample_rate = msm_bedais[i].sample_rate;
  1100. }
  1101. acdb_dev_id =
  1102. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1103. topology = msm_routing_get_adm_topology(fe_id,
  1104. session_type,
  1105. i);
  1106. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1107. || (passthr_mode ==
  1108. COMPRESSED_PASSTHROUGH_GEN))
  1109. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1110. pr_debug("%s: Before adm open topology %d\n", __func__,
  1111. topology);
  1112. copp_idx =
  1113. adm_open(msm_bedais[i].port_id,
  1114. path_type, sample_rate, channels,
  1115. topology, perf_mode, bit_width,
  1116. app_type, acdb_dev_id);
  1117. if ((copp_idx < 0) ||
  1118. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1119. pr_err("%s:adm open failed coppid:%d\n",
  1120. __func__, copp_idx);
  1121. mutex_unlock(&routing_lock);
  1122. return -EINVAL;
  1123. }
  1124. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1125. __func__, fe_id, session_type, i);
  1126. set_bit(copp_idx,
  1127. &session_copp_map[fe_id][session_type][i]);
  1128. if (msm_is_resample_needed(
  1129. sample_rate,
  1130. msm_bedais[i].sample_rate))
  1131. adm_copp_mfc_cfg(
  1132. msm_bedais[i].port_id, copp_idx,
  1133. msm_bedais[i].sample_rate);
  1134. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1135. unsigned long copp =
  1136. session_copp_map[fe_id][session_type][i];
  1137. if (test_bit(j, &copp)) {
  1138. payload.port_id[num_copps] =
  1139. msm_bedais[i].port_id;
  1140. payload.copp_idx[num_copps] = j;
  1141. payload.app_type[num_copps] =
  1142. fe_dai_app_type_cfg
  1143. [fe_id][session_type][i]
  1144. .app_type;
  1145. payload.acdb_dev_id[num_copps] =
  1146. fe_dai_app_type_cfg
  1147. [fe_id][session_type][i]
  1148. .acdb_dev_id;
  1149. payload.sample_rate[num_copps] =
  1150. fe_dai_app_type_cfg
  1151. [fe_id][session_type][i]
  1152. .sample_rate;
  1153. num_copps++;
  1154. }
  1155. }
  1156. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1157. && passthr_mode !=
  1158. COMPRESSED_PASSTHROUGH_GEN) {
  1159. msm_routing_send_device_pp_params(
  1160. msm_bedais[i].port_id,
  1161. copp_idx, fe_id);
  1162. }
  1163. }
  1164. }
  1165. if (num_copps) {
  1166. payload.num_copps = num_copps;
  1167. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1168. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1169. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1170. }
  1171. mutex_unlock(&routing_lock);
  1172. return 0;
  1173. }
  1174. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1175. {
  1176. u32 session_id;
  1177. switch (val) {
  1178. case MSM_FRONTEND_DAI_QCHAT:
  1179. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1180. break;
  1181. case MSM_FRONTEND_DAI_VOIP:
  1182. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1183. break;
  1184. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1185. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1186. break;
  1187. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1188. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1189. break;
  1190. default:
  1191. session_id = 0;
  1192. }
  1193. pr_debug("%s session_id 0x%x", __func__, session_id);
  1194. return session_id;
  1195. }
  1196. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1197. int dspst_id, int stream_type)
  1198. {
  1199. int copp_idx = 0;
  1200. int sess_type = 0;
  1201. int i = 0, j = 0, be_id;
  1202. int ret = 0;
  1203. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1204. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1205. return 0;
  1206. }
  1207. if (!(channel_mixer[fe_id].enable)) {
  1208. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1209. __func__, fe_id);
  1210. return 0;
  1211. }
  1212. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1213. sess_type = SESSION_TYPE_RX;
  1214. else
  1215. sess_type = SESSION_TYPE_TX;
  1216. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1217. ++i) {
  1218. be_id = channel_input[fe_id][i] - 1;
  1219. channel_mixer[fe_id].input_channels[i] =
  1220. msm_bedais[be_id].channel;
  1221. if ((msm_bedais[be_id].active) &&
  1222. test_bit(fe_id,
  1223. &msm_bedais[be_id].fe_sessions[0])) {
  1224. unsigned long copp =
  1225. session_copp_map[fe_id][sess_type][be_id];
  1226. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1227. if (test_bit(j, &copp)) {
  1228. copp_idx = j;
  1229. break;
  1230. }
  1231. }
  1232. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1233. __func__,
  1234. fe_id, be_id, msm_bedais[be_id].channel,
  1235. copp_idx);
  1236. ret = adm_programable_channel_mixer(
  1237. msm_bedais[be_id].port_id,
  1238. copp_idx, dspst_id, sess_type,
  1239. channel_mixer + fe_id, i);
  1240. }
  1241. }
  1242. return ret;
  1243. }
  1244. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1245. int dspst_id, int stream_type)
  1246. {
  1247. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1248. struct route_payload payload;
  1249. u32 channels, sample_rate;
  1250. uint16_t bits_per_sample = 16;
  1251. uint32_t passthr_mode = LEGACY_PCM;
  1252. int ret = 0;
  1253. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1254. /* bad ID assigned in machine driver */
  1255. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1256. return -EINVAL;
  1257. }
  1258. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1259. session_type = SESSION_TYPE_RX;
  1260. path_type = ADM_PATH_PLAYBACK;
  1261. port_type = MSM_AFE_PORT_TYPE_RX;
  1262. } else {
  1263. session_type = SESSION_TYPE_TX;
  1264. path_type = ADM_PATH_LIVE_REC;
  1265. port_type = MSM_AFE_PORT_TYPE_TX;
  1266. }
  1267. mutex_lock(&routing_lock);
  1268. payload.num_copps = 0; /* only RX needs to use payload */
  1269. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1270. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1271. /* re-enable EQ if active */
  1272. msm_qti_pp_send_eq_values(fedai_id);
  1273. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1274. if (!is_be_dai_extproc(i) &&
  1275. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1276. (msm_bedais[i].active) &&
  1277. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1278. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1279. /*
  1280. * check if ADM needs to be configured with different
  1281. * channel mapping than backend
  1282. */
  1283. if (!msm_bedais[i].adm_override_ch)
  1284. channels = msm_bedais[i].channel;
  1285. else
  1286. channels = msm_bedais[i].adm_override_ch;
  1287. msm_bedais[i].passthr_mode[fedai_id] =
  1288. LEGACY_PCM;
  1289. bits_per_sample = msm_routing_get_bit_width(
  1290. msm_bedais[i].format);
  1291. app_type =
  1292. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1293. if (app_type) {
  1294. app_type_idx =
  1295. msm_pcm_routing_get_app_type_idx(app_type);
  1296. sample_rate =
  1297. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1298. .sample_rate;
  1299. bits_per_sample =
  1300. app_type_cfg[app_type_idx].bit_width;
  1301. } else
  1302. sample_rate = msm_bedais[i].sample_rate;
  1303. acdb_dev_id =
  1304. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1305. .acdb_dev_id;
  1306. topology = msm_routing_get_adm_topology(fedai_id,
  1307. session_type,
  1308. i);
  1309. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1310. sample_rate, channels, topology,
  1311. perf_mode, bits_per_sample,
  1312. app_type, acdb_dev_id);
  1313. if ((copp_idx < 0) ||
  1314. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1315. pr_err("%s: adm open failed copp_idx:%d\n",
  1316. __func__, copp_idx);
  1317. mutex_unlock(&routing_lock);
  1318. return -EINVAL;
  1319. }
  1320. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1321. __func__, fedai_id, session_type, i);
  1322. set_bit(copp_idx,
  1323. &session_copp_map[fedai_id][session_type][i]);
  1324. if (msm_is_resample_needed(
  1325. sample_rate,
  1326. msm_bedais[i].sample_rate))
  1327. adm_copp_mfc_cfg(
  1328. msm_bedais[i].port_id, copp_idx,
  1329. msm_bedais[i].sample_rate);
  1330. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1331. unsigned long copp =
  1332. session_copp_map[fedai_id][session_type][i];
  1333. if (test_bit(j, &copp)) {
  1334. payload.port_id[num_copps] =
  1335. msm_bedais[i].port_id;
  1336. payload.copp_idx[num_copps] = j;
  1337. payload.app_type[num_copps] =
  1338. fe_dai_app_type_cfg
  1339. [fedai_id][session_type]
  1340. [i].app_type;
  1341. payload.acdb_dev_id[num_copps] =
  1342. fe_dai_app_type_cfg
  1343. [fedai_id][session_type]
  1344. [i].acdb_dev_id;
  1345. payload.sample_rate[num_copps] =
  1346. fe_dai_app_type_cfg
  1347. [fedai_id][session_type]
  1348. [i].sample_rate;
  1349. num_copps++;
  1350. }
  1351. }
  1352. if ((perf_mode == LEGACY_PCM_MODE) &&
  1353. (msm_bedais[i].passthr_mode[fedai_id] ==
  1354. LEGACY_PCM))
  1355. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1356. copp_idx, topology,
  1357. channels);
  1358. }
  1359. }
  1360. if (num_copps) {
  1361. payload.num_copps = num_copps;
  1362. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1363. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1364. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1365. }
  1366. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1367. dspst_id, stream_type);
  1368. mutex_unlock(&routing_lock);
  1369. return ret;
  1370. }
  1371. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1372. int dspst_id, int stream_type,
  1373. struct msm_pcm_routing_evt event_info)
  1374. {
  1375. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1376. stream_type)) {
  1377. pr_err("%s: failed to reg phy stream\n", __func__);
  1378. return -EINVAL;
  1379. }
  1380. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1381. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1382. else
  1383. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1384. return 0;
  1385. }
  1386. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1387. {
  1388. int i, port_type, session_type, path_type, topology;
  1389. struct msm_pcm_routing_fdai_data *fdai;
  1390. if (!is_mm_lsm_fe_id(fedai_id)) {
  1391. /* bad ID assigned in machine driver */
  1392. pr_err("%s: bad MM ID\n", __func__);
  1393. return;
  1394. }
  1395. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1396. port_type = MSM_AFE_PORT_TYPE_RX;
  1397. session_type = SESSION_TYPE_RX;
  1398. path_type = ADM_PATH_PLAYBACK;
  1399. } else {
  1400. port_type = MSM_AFE_PORT_TYPE_TX;
  1401. session_type = SESSION_TYPE_TX;
  1402. path_type = ADM_PATH_LIVE_REC;
  1403. }
  1404. mutex_lock(&routing_lock);
  1405. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1406. if (!is_be_dai_extproc(i) &&
  1407. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1408. (msm_bedais[i].active) &&
  1409. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1410. int idx;
  1411. unsigned long copp =
  1412. session_copp_map[fedai_id][session_type][i];
  1413. fdai = &fe_dai_map[fedai_id][session_type];
  1414. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1415. if (test_bit(idx, &copp))
  1416. break;
  1417. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1418. pr_debug("%s: copp idx is invalid, exiting\n",
  1419. __func__);
  1420. continue;
  1421. }
  1422. topology = adm_get_topology_for_port_copp_idx(
  1423. msm_bedais[i].port_id, idx);
  1424. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1425. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1426. __func__, copp, fedai_id, session_type, i);
  1427. clear_bit(idx,
  1428. &session_copp_map[fedai_id][session_type][i]);
  1429. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1430. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1431. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1432. (msm_bedais[i].passthr_mode[fedai_id] ==
  1433. LEGACY_PCM))
  1434. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1435. topology);
  1436. }
  1437. }
  1438. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1439. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1440. mutex_unlock(&routing_lock);
  1441. }
  1442. /* Check if FE/BE route is set */
  1443. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1444. {
  1445. bool rc = false;
  1446. if (!is_mm_lsm_fe_id(fe_id)) {
  1447. /* recheck FE ID in the mixer control defined in this file */
  1448. pr_err("%s: bad MM ID\n", __func__);
  1449. return rc;
  1450. }
  1451. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1452. rc = true;
  1453. return rc;
  1454. }
  1455. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1456. {
  1457. int session_type, path_type, topology;
  1458. u32 channels, sample_rate;
  1459. uint16_t bits_per_sample = 16;
  1460. struct msm_pcm_routing_fdai_data *fdai;
  1461. uint32_t passthr_mode;
  1462. bool is_lsm;
  1463. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1464. if (!is_mm_lsm_fe_id(val)) {
  1465. /* recheck FE ID in the mixer control defined in this file */
  1466. pr_err("%s: bad MM ID\n", __func__);
  1467. return;
  1468. }
  1469. if (!route_check_fe_id_adm_support(val)) {
  1470. /* ignore adm open if not supported for fe_id */
  1471. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1472. return;
  1473. }
  1474. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1475. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1476. MSM_AFE_PORT_TYPE_RX) {
  1477. session_type = SESSION_TYPE_RX;
  1478. if (passthr_mode != LEGACY_PCM)
  1479. path_type = ADM_PATH_COMPRESSED_RX;
  1480. else
  1481. path_type = ADM_PATH_PLAYBACK;
  1482. } else {
  1483. session_type = SESSION_TYPE_TX;
  1484. if (passthr_mode != LEGACY_PCM)
  1485. path_type = ADM_PATH_COMPRESSED_TX;
  1486. else
  1487. path_type = ADM_PATH_LIVE_REC;
  1488. }
  1489. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1490. (val <= MSM_FRONTEND_DAI_LSM8);
  1491. mutex_lock(&routing_lock);
  1492. if (set) {
  1493. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1494. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1495. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1496. voc_start_playback(set, msm_bedais[reg].port_id);
  1497. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1498. fdai = &fe_dai_map[val][session_type];
  1499. if (msm_bedais[reg].active && fdai->strm_id !=
  1500. INVALID_SESSION) {
  1501. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1502. /*
  1503. * check if ADM needs to be configured with different
  1504. * channel mapping than backend
  1505. */
  1506. if (!msm_bedais[reg].adm_override_ch)
  1507. channels = msm_bedais[reg].channel;
  1508. else
  1509. channels = msm_bedais[reg].adm_override_ch;
  1510. if (session_type == SESSION_TYPE_TX &&
  1511. fdai->be_srate &&
  1512. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1513. pr_debug("%s: flush strm %d diff BE rates\n",
  1514. __func__, fdai->strm_id);
  1515. if (fdai->event_info.event_func)
  1516. fdai->event_info.event_func(
  1517. MSM_PCM_RT_EVT_BUF_RECFG,
  1518. fdai->event_info.priv_data);
  1519. fdai->be_srate = 0; /* might not need it */
  1520. }
  1521. bits_per_sample = msm_routing_get_bit_width(
  1522. msm_bedais[reg].format);
  1523. app_type =
  1524. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1525. if (app_type && is_lsm) {
  1526. app_type_idx =
  1527. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1528. sample_rate =
  1529. fe_dai_app_type_cfg[val][session_type][reg]
  1530. .sample_rate;
  1531. bits_per_sample =
  1532. lsm_app_type_cfg[app_type_idx].bit_width;
  1533. } else if (app_type) {
  1534. app_type_idx =
  1535. msm_pcm_routing_get_app_type_idx(app_type);
  1536. sample_rate =
  1537. fe_dai_app_type_cfg[val][session_type][reg]
  1538. .sample_rate;
  1539. bits_per_sample =
  1540. app_type_cfg[app_type_idx].bit_width;
  1541. } else
  1542. sample_rate = msm_bedais[reg].sample_rate;
  1543. topology = msm_routing_get_adm_topology(val,
  1544. session_type,
  1545. reg);
  1546. acdb_dev_id =
  1547. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1548. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1549. sample_rate, channels, topology,
  1550. fdai->perf_mode, bits_per_sample,
  1551. app_type, acdb_dev_id);
  1552. if ((copp_idx < 0) ||
  1553. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1554. pr_err("%s: adm open failed\n", __func__);
  1555. mutex_unlock(&routing_lock);
  1556. return;
  1557. }
  1558. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1559. __func__, val, session_type, reg);
  1560. set_bit(copp_idx,
  1561. &session_copp_map[val][session_type][reg]);
  1562. if (msm_is_resample_needed(
  1563. sample_rate,
  1564. msm_bedais[reg].sample_rate))
  1565. adm_copp_mfc_cfg(
  1566. msm_bedais[reg].port_id, copp_idx,
  1567. msm_bedais[reg].sample_rate);
  1568. if (session_type == SESSION_TYPE_RX &&
  1569. fdai->event_info.event_func)
  1570. fdai->event_info.event_func(
  1571. MSM_PCM_RT_EVT_DEVSWITCH,
  1572. fdai->event_info.priv_data);
  1573. msm_pcm_routing_build_matrix(val, session_type,
  1574. path_type,
  1575. fdai->perf_mode,
  1576. passthr_mode);
  1577. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1578. (passthr_mode == LEGACY_PCM))
  1579. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1580. copp_idx, topology,
  1581. channels);
  1582. }
  1583. } else {
  1584. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1585. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1586. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1587. voc_start_playback(set, msm_bedais[reg].port_id);
  1588. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1589. fdai = &fe_dai_map[val][session_type];
  1590. if (msm_bedais[reg].active && fdai->strm_id !=
  1591. INVALID_SESSION) {
  1592. int idx;
  1593. int port_id;
  1594. unsigned long copp =
  1595. session_copp_map[val][session_type][reg];
  1596. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1597. if (test_bit(idx, &copp))
  1598. break;
  1599. port_id = msm_bedais[reg].port_id;
  1600. topology = adm_get_topology_for_port_copp_idx(port_id,
  1601. idx);
  1602. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1603. idx);
  1604. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1605. __func__, copp, val, session_type, reg,
  1606. topology);
  1607. clear_bit(idx,
  1608. &session_copp_map[val][session_type][reg]);
  1609. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1610. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1611. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1612. (passthr_mode == LEGACY_PCM))
  1613. msm_pcm_routing_deinit_pp(
  1614. msm_bedais[reg].port_id,
  1615. topology);
  1616. msm_pcm_routing_build_matrix(val, session_type,
  1617. path_type,
  1618. fdai->perf_mode,
  1619. passthr_mode);
  1620. }
  1621. }
  1622. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1623. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1624. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1625. mutex_unlock(&routing_lock);
  1626. }
  1627. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1628. struct snd_ctl_elem_value *ucontrol)
  1629. {
  1630. struct soc_mixer_control *mc =
  1631. (struct soc_mixer_control *)kcontrol->private_value;
  1632. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1633. ucontrol->value.integer.value[0] = 1;
  1634. else
  1635. ucontrol->value.integer.value[0] = 0;
  1636. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1637. ucontrol->value.integer.value[0]);
  1638. return 0;
  1639. }
  1640. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1641. struct snd_ctl_elem_value *ucontrol)
  1642. {
  1643. struct snd_soc_dapm_widget *widget =
  1644. snd_soc_dapm_kcontrol_widget(kcontrol);
  1645. struct soc_mixer_control *mc =
  1646. (struct soc_mixer_control *)kcontrol->private_value;
  1647. struct snd_soc_dapm_update *update = NULL;
  1648. if (ucontrol->value.integer.value[0] &&
  1649. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1650. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1652. update);
  1653. } else if (!ucontrol->value.integer.value[0] &&
  1654. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1655. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1657. update);
  1658. }
  1659. return 1;
  1660. }
  1661. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1662. struct snd_ctl_elem_value *ucontrol)
  1663. {
  1664. struct soc_mixer_control *mc =
  1665. (struct soc_mixer_control *)kcontrol->private_value;
  1666. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1667. ucontrol->value.integer.value[0] = 1;
  1668. else
  1669. ucontrol->value.integer.value[0] = 0;
  1670. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1671. ucontrol->value.integer.value[0]);
  1672. return 0;
  1673. }
  1674. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1675. struct snd_ctl_elem_value *ucontrol)
  1676. {
  1677. struct snd_soc_dapm_widget *widget =
  1678. snd_soc_dapm_kcontrol_widget(kcontrol);
  1679. struct soc_mixer_control *mc =
  1680. (struct soc_mixer_control *)kcontrol->private_value;
  1681. struct snd_soc_dapm_update *update = NULL;
  1682. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1683. ucontrol->value.integer.value[0]);
  1684. if (ucontrol->value.integer.value[0]) {
  1685. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1686. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1687. snd_soc_dapm_mixer_update_power(widget->dapm,
  1688. kcontrol, 1, update);
  1689. } else if (!ucontrol->value.integer.value[0]) {
  1690. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1691. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1692. snd_soc_dapm_mixer_update_power(widget->dapm,
  1693. kcontrol, 0, update);
  1694. }
  1695. return 1;
  1696. }
  1697. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1698. {
  1699. u32 session_id = 0;
  1700. u16 path_type;
  1701. struct media_format_info voc_be_media_format;
  1702. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1703. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1704. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1705. __func__, val, session_id);
  1706. mutex_lock(&routing_lock);
  1707. if (set)
  1708. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1709. else
  1710. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1711. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1712. afe_get_port_type(msm_bedais[reg].port_id) ==
  1713. MSM_AFE_PORT_TYPE_RX) {
  1714. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1715. __func__, set, msm_bedais[reg].port_id);
  1716. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1717. }
  1718. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1719. MSM_AFE_PORT_TYPE_RX)
  1720. path_type = RX_PATH;
  1721. else
  1722. path_type = TX_PATH;
  1723. if (set) {
  1724. if (msm_bedais[reg].active) {
  1725. voc_set_route_flag(session_id, path_type, 1);
  1726. memset(&voc_be_media_format, 0,
  1727. sizeof(struct media_format_info));
  1728. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1729. voc_be_media_format.num_channels =
  1730. msm_bedais[reg].channel;
  1731. voc_be_media_format.sample_rate =
  1732. msm_bedais[reg].sample_rate;
  1733. voc_be_media_format.bits_per_sample =
  1734. msm_bedais[reg].format;
  1735. /* Defaulting this to 1 for voice call usecases */
  1736. voc_be_media_format.channel_mapping[0] = 1;
  1737. voc_set_device_config(session_id, path_type,
  1738. &voc_be_media_format);
  1739. if (voc_get_route_flag(session_id, TX_PATH) &&
  1740. voc_get_route_flag(session_id, RX_PATH))
  1741. voc_enable_device(session_id);
  1742. } else {
  1743. pr_debug("%s BE is not active\n", __func__);
  1744. }
  1745. } else {
  1746. voc_set_route_flag(session_id, path_type, 0);
  1747. voc_disable_device(session_id);
  1748. }
  1749. mutex_unlock(&routing_lock);
  1750. }
  1751. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1752. struct snd_ctl_elem_value *ucontrol)
  1753. {
  1754. struct soc_mixer_control *mc =
  1755. (struct soc_mixer_control *)kcontrol->private_value;
  1756. mutex_lock(&routing_lock);
  1757. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1758. ucontrol->value.integer.value[0] = 1;
  1759. else
  1760. ucontrol->value.integer.value[0] = 0;
  1761. mutex_unlock(&routing_lock);
  1762. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1763. ucontrol->value.integer.value[0]);
  1764. return 0;
  1765. }
  1766. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1767. struct snd_ctl_elem_value *ucontrol)
  1768. {
  1769. struct snd_soc_dapm_widget *widget =
  1770. snd_soc_dapm_kcontrol_widget(kcontrol);
  1771. struct soc_mixer_control *mc =
  1772. (struct soc_mixer_control *)kcontrol->private_value;
  1773. struct snd_soc_dapm_update *update = NULL;
  1774. if (ucontrol->value.integer.value[0]) {
  1775. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1776. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1777. update);
  1778. } else {
  1779. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1780. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1781. update);
  1782. }
  1783. return 1;
  1784. }
  1785. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1786. struct snd_ctl_elem_value *ucontrol)
  1787. {
  1788. struct soc_mixer_control *mc =
  1789. (struct soc_mixer_control *)kcontrol->private_value;
  1790. mutex_lock(&routing_lock);
  1791. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1792. ucontrol->value.integer.value[0] = 1;
  1793. else
  1794. ucontrol->value.integer.value[0] = 0;
  1795. mutex_unlock(&routing_lock);
  1796. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1797. ucontrol->value.integer.value[0]);
  1798. return 0;
  1799. }
  1800. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1801. struct snd_ctl_elem_value *ucontrol)
  1802. {
  1803. struct snd_soc_dapm_widget *widget =
  1804. snd_soc_dapm_kcontrol_widget(kcontrol);
  1805. struct soc_mixer_control *mc =
  1806. (struct soc_mixer_control *)kcontrol->private_value;
  1807. struct snd_soc_dapm_update *update = NULL;
  1808. if (ucontrol->value.integer.value[0]) {
  1809. mutex_lock(&routing_lock);
  1810. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1811. mutex_unlock(&routing_lock);
  1812. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1813. update);
  1814. } else {
  1815. mutex_lock(&routing_lock);
  1816. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1817. mutex_unlock(&routing_lock);
  1818. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1819. update);
  1820. }
  1821. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1822. ucontrol->value.integer.value[0]);
  1823. return 1;
  1824. }
  1825. /*
  1826. * Return the mapping between port ID and backend ID to enable the AFE callback
  1827. * to determine the acdb_dev_id from the port id
  1828. */
  1829. int msm_pcm_get_be_id_from_port_id(int port_id)
  1830. {
  1831. int i;
  1832. int be_id = -EINVAL;
  1833. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1834. if (msm_bedais[i].port_id == port_id) {
  1835. be_id = i;
  1836. break;
  1837. }
  1838. }
  1839. return be_id;
  1840. }
  1841. /*
  1842. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1843. * correct AFE calibration information by comparing the header information.
  1844. */
  1845. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1846. {
  1847. int acdb_id = -EINVAL;
  1848. int i = 0;
  1849. int session;
  1850. int port_type = afe_get_port_type(port_id);
  1851. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1852. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1853. __func__, port_id, be_id, port_type);
  1854. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1855. session = SESSION_TYPE_TX;
  1856. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1857. session = SESSION_TYPE_RX;
  1858. } else {
  1859. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1860. acdb_id = -EINVAL;
  1861. goto exit;
  1862. }
  1863. if (be_id < 0) {
  1864. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1865. goto exit;
  1866. }
  1867. mutex_lock(&routing_lock);
  1868. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1869. MSM_FRONTEND_DAI_MAX);
  1870. if (i < MSM_FRONTEND_DAI_MAX)
  1871. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1872. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1873. __func__, i, session, be_id, acdb_id);
  1874. mutex_unlock(&routing_lock);
  1875. exit:
  1876. return acdb_id;
  1877. }
  1878. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. ucontrol->value.integer.value[0] = fm_switch_enable;
  1882. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1883. ucontrol->value.integer.value[0]);
  1884. return 0;
  1885. }
  1886. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1887. struct snd_ctl_elem_value *ucontrol)
  1888. {
  1889. struct snd_soc_dapm_widget *widget =
  1890. snd_soc_dapm_kcontrol_widget(kcontrol);
  1891. struct snd_soc_dapm_update *update = NULL;
  1892. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1893. ucontrol->value.integer.value[0]);
  1894. if (ucontrol->value.integer.value[0])
  1895. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1896. update);
  1897. else
  1898. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1899. update);
  1900. fm_switch_enable = ucontrol->value.integer.value[0];
  1901. return 1;
  1902. }
  1903. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1904. struct snd_ctl_elem_value *ucontrol)
  1905. {
  1906. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1907. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1908. ucontrol->value.integer.value[0]);
  1909. return 0;
  1910. }
  1911. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1912. struct snd_ctl_elem_value *ucontrol)
  1913. {
  1914. struct snd_soc_dapm_widget *widget =
  1915. snd_soc_dapm_kcontrol_widget(kcontrol);
  1916. struct snd_soc_dapm_update *update = NULL;
  1917. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1918. ucontrol->value.integer.value[0]);
  1919. if (ucontrol->value.integer.value[0])
  1920. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1921. 1, update);
  1922. else
  1923. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1924. 0, update);
  1925. hfp_switch_enable = ucontrol->value.integer.value[0];
  1926. return 1;
  1927. }
  1928. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1929. struct snd_ctl_elem_value *ucontrol)
  1930. {
  1931. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1932. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1933. ucontrol->value.integer.value[0]);
  1934. return 0;
  1935. }
  1936. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1937. struct snd_ctl_elem_value *ucontrol)
  1938. {
  1939. struct snd_soc_dapm_widget *widget =
  1940. snd_soc_dapm_kcontrol_widget(kcontrol);
  1941. struct snd_soc_dapm_update *update = NULL;
  1942. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1943. ucontrol->value.integer.value[0]);
  1944. if (ucontrol->value.integer.value[0])
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1946. update);
  1947. else
  1948. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1949. update);
  1950. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1951. return 1;
  1952. }
  1953. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1954. struct snd_ctl_elem_value *ucontrol)
  1955. {
  1956. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1957. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1958. ucontrol->value.integer.value[0]);
  1959. return 0;
  1960. }
  1961. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1962. struct snd_ctl_elem_value *ucontrol)
  1963. {
  1964. struct snd_soc_dapm_widget *widget =
  1965. snd_soc_dapm_kcontrol_widget(kcontrol);
  1966. struct snd_soc_dapm_update *update = NULL;
  1967. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1968. ucontrol->value.integer.value[0]);
  1969. if (ucontrol->value.integer.value[0])
  1970. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1971. update);
  1972. else
  1973. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1974. update);
  1975. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1976. return 1;
  1977. }
  1978. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. ucontrol->value.integer.value[0] = usb_switch_enable;
  1982. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1983. ucontrol->value.integer.value[0]);
  1984. return 0;
  1985. }
  1986. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1987. struct snd_ctl_elem_value *ucontrol)
  1988. {
  1989. struct snd_soc_dapm_widget *widget =
  1990. snd_soc_dapm_kcontrol_widget(kcontrol);
  1991. struct snd_soc_dapm_update *update = NULL;
  1992. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1993. ucontrol->value.integer.value[0]);
  1994. if (ucontrol->value.integer.value[0])
  1995. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1996. 1, update);
  1997. else
  1998. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1999. 0, update);
  2000. usb_switch_enable = ucontrol->value.integer.value[0];
  2001. return 1;
  2002. }
  2003. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2004. struct snd_ctl_elem_value *ucontrol)
  2005. {
  2006. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2007. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2008. ucontrol->value.integer.value[0]);
  2009. return 0;
  2010. }
  2011. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2012. struct snd_ctl_elem_value *ucontrol)
  2013. {
  2014. struct snd_soc_dapm_widget *widget =
  2015. snd_soc_dapm_kcontrol_widget(kcontrol);
  2016. struct snd_soc_dapm_update *update = NULL;
  2017. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2018. ucontrol->value.integer.value[0]);
  2019. if (ucontrol->value.integer.value[0])
  2020. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2021. update);
  2022. else
  2023. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2024. update);
  2025. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2026. return 1;
  2027. }
  2028. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2029. struct snd_ctl_elem_value *ucontrol)
  2030. {
  2031. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2032. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct snd_soc_dapm_update *update = NULL;
  2042. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2043. ucontrol->value.integer.value[0]);
  2044. if (ucontrol->value.integer.value[0])
  2045. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2046. update);
  2047. else
  2048. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2049. update);
  2050. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2051. return 1;
  2052. }
  2053. static int msm_routing_get_tert_mi2s_switch_mixer(
  2054. struct snd_kcontrol *kcontrol,
  2055. struct snd_ctl_elem_value *ucontrol)
  2056. {
  2057. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2058. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. return 0;
  2061. }
  2062. static int msm_routing_put_tert_mi2s_switch_mixer(
  2063. struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. if (ucontrol->value.integer.value[0])
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2073. update);
  2074. else
  2075. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2076. update);
  2077. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_quat_mi2s_switch_mixer(
  2081. struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2085. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_quat_mi2s_switch_mixer(
  2090. struct snd_kcontrol *kcontrol,
  2091. struct snd_ctl_elem_value *ucontrol)
  2092. {
  2093. struct snd_soc_dapm_widget *widget =
  2094. snd_soc_dapm_kcontrol_widget(kcontrol);
  2095. struct snd_soc_dapm_update *update = NULL;
  2096. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2097. ucontrol->value.integer.value[0]);
  2098. if (ucontrol->value.integer.value[0])
  2099. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2100. update);
  2101. else
  2102. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2103. update);
  2104. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2105. return 1;
  2106. }
  2107. static int msm_routing_get_quin_mi2s_switch_mixer(
  2108. struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2112. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2113. ucontrol->value.integer.value[0]);
  2114. return 0;
  2115. }
  2116. static int msm_routing_put_quin_mi2s_switch_mixer(
  2117. struct snd_kcontrol *kcontrol,
  2118. struct snd_ctl_elem_value *ucontrol)
  2119. {
  2120. struct snd_soc_dapm_widget *widget =
  2121. snd_soc_dapm_kcontrol_widget(kcontrol);
  2122. struct snd_soc_dapm_update *update = NULL;
  2123. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2124. ucontrol->value.integer.value[0]);
  2125. if (ucontrol->value.integer.value[0])
  2126. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2127. update);
  2128. else
  2129. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2130. update);
  2131. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2132. return 1;
  2133. }
  2134. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2135. struct snd_ctl_elem_value *ucontrol)
  2136. {
  2137. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2138. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2139. ucontrol->value.integer.value[0]);
  2140. return 0;
  2141. }
  2142. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2143. struct snd_ctl_elem_value *ucontrol)
  2144. {
  2145. struct snd_soc_dapm_widget *widget =
  2146. snd_soc_dapm_kcontrol_widget(kcontrol);
  2147. struct snd_soc_dapm_update *update = NULL;
  2148. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2149. ucontrol->value.integer.value[0]);
  2150. if (ucontrol->value.integer.value[0])
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2152. update);
  2153. else
  2154. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2155. update);
  2156. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2157. return 1;
  2158. }
  2159. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2160. struct snd_ctl_elem_value *ucontrol)
  2161. {
  2162. ucontrol->value.integer.value[0] = lsm_port_index;
  2163. return 0;
  2164. }
  2165. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2169. int mux = ucontrol->value.enumerated.item[0];
  2170. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2171. if (mux >= e->items) {
  2172. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2173. return -EINVAL;
  2174. }
  2175. pr_debug("%s: LSM enable %ld\n", __func__,
  2176. ucontrol->value.integer.value[0]);
  2177. switch (ucontrol->value.integer.value[0]) {
  2178. case 1:
  2179. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2180. break;
  2181. case 2:
  2182. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2183. break;
  2184. case 3:
  2185. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2186. break;
  2187. case 4:
  2188. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2189. break;
  2190. case 5:
  2191. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2192. break;
  2193. case 6:
  2194. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2195. break;
  2196. case 7:
  2197. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2198. break;
  2199. case 8:
  2200. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2201. break;
  2202. case 9:
  2203. lsm_port = ADM_LSM_PORT_ID;
  2204. break;
  2205. case 10:
  2206. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2207. break;
  2208. default:
  2209. pr_err("Default lsm port");
  2210. break;
  2211. }
  2212. set_lsm_port(lsm_port);
  2213. lsm_port_index = ucontrol->value.integer.value[0];
  2214. return 0;
  2215. }
  2216. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. int i;
  2220. u16 port_id;
  2221. enum afe_mad_type mad_type;
  2222. pr_debug("%s: enter\n", __func__);
  2223. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2224. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2225. strlen(lsm_port_text[i])))
  2226. break;
  2227. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2228. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2229. return -EINVAL;
  2230. }
  2231. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2232. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2233. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2234. strlen(lsm_port_text[7])))
  2235. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2236. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2237. strlen(lsm_port_text[8])))
  2238. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2239. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2240. strlen(lsm_port_text[10])))
  2241. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2242. mad_type = afe_port_get_mad_type(port_id);
  2243. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2244. mad_type);
  2245. switch (mad_type) {
  2246. case MAD_HW_NONE:
  2247. ucontrol->value.integer.value[0] = MADNONE;
  2248. break;
  2249. case MAD_HW_AUDIO:
  2250. ucontrol->value.integer.value[0] = MADAUDIO;
  2251. break;
  2252. case MAD_HW_BEACON:
  2253. ucontrol->value.integer.value[0] = MADBEACON;
  2254. break;
  2255. case MAD_HW_ULTRASOUND:
  2256. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2257. break;
  2258. case MAD_SW_AUDIO:
  2259. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2260. break;
  2261. default:
  2262. WARN(1, "Unknown\n");
  2263. return -EINVAL;
  2264. }
  2265. return 0;
  2266. }
  2267. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2268. struct snd_ctl_elem_value *ucontrol)
  2269. {
  2270. int i;
  2271. u16 port_id;
  2272. enum afe_mad_type mad_type;
  2273. pr_debug("%s: enter\n", __func__);
  2274. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2275. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2276. strlen(lsm_port_text[i])))
  2277. break;
  2278. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2279. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2280. return -EINVAL;
  2281. }
  2282. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2283. switch (ucontrol->value.integer.value[0]) {
  2284. case MADNONE:
  2285. mad_type = MAD_HW_NONE;
  2286. break;
  2287. case MADAUDIO:
  2288. mad_type = MAD_HW_AUDIO;
  2289. break;
  2290. case MADBEACON:
  2291. mad_type = MAD_HW_BEACON;
  2292. break;
  2293. case MADULTRASOUND:
  2294. mad_type = MAD_HW_ULTRASOUND;
  2295. break;
  2296. case MADSWAUDIO:
  2297. mad_type = MAD_SW_AUDIO;
  2298. break;
  2299. default:
  2300. WARN(1, "Unknown\n");
  2301. return -EINVAL;
  2302. }
  2303. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2304. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2305. strlen(lsm_port_text[7])))
  2306. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2307. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2308. strlen(lsm_port_text[8])))
  2309. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2310. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2311. strlen(lsm_port_text[10])))
  2312. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2313. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2314. mad_type);
  2315. return afe_port_set_mad_type(port_id, mad_type);
  2316. }
  2317. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2318. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2319. adm_override_chs_text);
  2320. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2321. {
  2322. int backend_id;
  2323. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2324. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2325. } else {
  2326. pr_err("%s: unsupported backend id: %s",
  2327. __func__, kcontrol->id.name);
  2328. return -EINVAL;
  2329. }
  2330. return backend_id;
  2331. }
  2332. static int msm_routing_adm_channel_config_get(
  2333. struct snd_kcontrol *kcontrol,
  2334. struct snd_ctl_elem_value *ucontrol)
  2335. {
  2336. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2337. if (backend_id >= 0) {
  2338. mutex_lock(&routing_lock);
  2339. ucontrol->value.integer.value[0] =
  2340. msm_bedais[backend_id].adm_override_ch;
  2341. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2342. ucontrol->value.integer.value[0], backend_id);
  2343. mutex_unlock(&routing_lock);
  2344. }
  2345. return 0;
  2346. }
  2347. static int msm_routing_adm_channel_config_put(
  2348. struct snd_kcontrol *kcontrol,
  2349. struct snd_ctl_elem_value *ucontrol)
  2350. {
  2351. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2352. if (backend_id >= 0) {
  2353. mutex_lock(&routing_lock);
  2354. msm_bedais[backend_id].adm_override_ch =
  2355. ucontrol->value.integer.value[0];
  2356. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2357. __func__, backend_id,
  2358. msm_bedais[backend_id].adm_override_ch);
  2359. mutex_unlock(&routing_lock);
  2360. }
  2361. return 0;
  2362. }
  2363. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2364. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2365. msm_routing_adm_channel_config_get,
  2366. msm_routing_adm_channel_config_put),
  2367. };
  2368. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. mutex_lock(&routing_lock);
  2372. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2373. mutex_unlock(&routing_lock);
  2374. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2375. ucontrol->value.integer.value[0]);
  2376. return 0;
  2377. };
  2378. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2379. struct snd_ctl_elem_value *ucontrol)
  2380. {
  2381. struct aanc_data aanc_info;
  2382. mutex_lock(&routing_lock);
  2383. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2384. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2385. ucontrol->value.integer.value[0]);
  2386. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2387. if (ucontrol->value.integer.value[0] == 0) {
  2388. aanc_info.aanc_active = false;
  2389. aanc_info.aanc_tx_port = 0;
  2390. aanc_info.aanc_rx_port = 0;
  2391. } else {
  2392. aanc_info.aanc_active = true;
  2393. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2394. aanc_info.aanc_tx_port =
  2395. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2396. }
  2397. afe_set_aanc_info(&aanc_info);
  2398. mutex_unlock(&routing_lock);
  2399. return 0;
  2400. };
  2401. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2402. struct snd_ctl_elem_value *ucontrol)
  2403. {
  2404. int idx = 0, shift = 0;
  2405. struct soc_mixer_control *mc =
  2406. (struct soc_mixer_control *)kcontrol->private_value;
  2407. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2408. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2409. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2410. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2411. return -EINVAL;
  2412. }
  2413. if (test_bit(shift,
  2414. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2415. ucontrol->value.integer.value[0] = 1;
  2416. else
  2417. ucontrol->value.integer.value[0] = 0;
  2418. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2419. ucontrol->value.integer.value[0]);
  2420. return 0;
  2421. }
  2422. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2423. struct snd_ctl_elem_value *ucontrol)
  2424. {
  2425. int idx = 0, shift = 0;
  2426. struct soc_mixer_control *mc =
  2427. (struct soc_mixer_control *)kcontrol->private_value;
  2428. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2429. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2430. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2431. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2432. return -EINVAL;
  2433. }
  2434. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2435. __func__, mc->reg, mc->shift,
  2436. ucontrol->value.integer.value[0], idx, shift);
  2437. if (ucontrol->value.integer.value[0]) {
  2438. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2439. msm_bedais[mc->shift].port_id);
  2440. set_bit(shift,
  2441. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2442. } else {
  2443. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2444. msm_bedais[mc->shift].port_id);
  2445. clear_bit(shift,
  2446. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2447. }
  2448. return 1;
  2449. }
  2450. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. u16 fe_id = 0;
  2454. fe_id = ((struct soc_mixer_control *)
  2455. kcontrol->private_value)->shift;
  2456. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2457. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2458. return -EINVAL;
  2459. }
  2460. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2461. return 0;
  2462. }
  2463. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2464. struct snd_ctl_elem_value *ucontrol)
  2465. {
  2466. u16 fe_id = 0;
  2467. fe_id = ((struct soc_mixer_control *)
  2468. kcontrol->private_value)->shift;
  2469. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2470. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2471. return -EINVAL;
  2472. }
  2473. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2474. return 1;
  2475. }
  2476. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2477. struct snd_ctl_elem_value *ucontrol)
  2478. {
  2479. u16 fe_id = 0;
  2480. fe_id = ((struct soc_multi_mixer_control *)
  2481. kcontrol->private_value)->shift;
  2482. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2483. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2484. return -EINVAL;
  2485. }
  2486. ucontrol->value.integer.value[0] =
  2487. channel_mixer[fe_id].output_channel;
  2488. return 0;
  2489. }
  2490. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2491. struct snd_ctl_elem_value *ucontrol)
  2492. {
  2493. u16 fe_id = 0;
  2494. fe_id = ((struct soc_multi_mixer_control *)
  2495. kcontrol->private_value)->shift;
  2496. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2497. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2498. return -EINVAL;
  2499. }
  2500. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2501. fe_id,
  2502. (unsigned int)(ucontrol->value.integer.value[0]));
  2503. channel_mixer[fe_id].output_channel =
  2504. (unsigned int)(ucontrol->value.integer.value[0]);
  2505. return 1;
  2506. }
  2507. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2508. /* If new backend is added, need update this array */
  2509. static const char *const be_name[] = {
  2510. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2511. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2512. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2513. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2514. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2515. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2516. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2517. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2518. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2519. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2520. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2521. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2522. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2523. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2524. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2525. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2526. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2527. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2528. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2529. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2530. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2531. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2532. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2533. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2534. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2535. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2536. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2537. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2538. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2539. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2540. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2541. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2542. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2543. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2544. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2545. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2546. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2547. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2548. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2549. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2550. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2551. };
  2552. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2553. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2554. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2555. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2556. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2557. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2558. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2559. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2560. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2561. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2562. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2563. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2564. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2565. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2566. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2567. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2568. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2569. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2570. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2571. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2572. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2573. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2574. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2575. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2576. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2577. unsigned int channels,
  2578. unsigned int items, const char *const names[])
  2579. {
  2580. if (uinfo->value.enumerated.item >= items)
  2581. uinfo->value.enumerated.item = items - 1;
  2582. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2583. sizeof(uinfo->value.enumerated.name),
  2584. "ALSA: too long item name '%s'\n",
  2585. names[uinfo->value.enumerated.item]);
  2586. strlcpy(uinfo->value.enumerated.name,
  2587. names[uinfo->value.enumerated.item],
  2588. sizeof(uinfo->value.enumerated.name));
  2589. return 0;
  2590. }
  2591. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2592. struct snd_ctl_elem_info *uinfo)
  2593. {
  2594. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2595. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2596. uinfo->count = 1;
  2597. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2598. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2599. return 0;
  2600. }
  2601. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. u16 fe_id = 0;
  2605. fe_id = ((struct soc_enum *)
  2606. kcontrol->private_value)->shift_l;
  2607. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2608. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2609. return -EINVAL;
  2610. }
  2611. pr_debug("%s: FE %d %s\n", __func__,
  2612. fe_id,
  2613. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2614. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2615. return 0;
  2616. }
  2617. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2618. struct snd_ctl_elem_value *ucontrol)
  2619. {
  2620. u16 fe_id = 0;
  2621. fe_id = ((struct soc_enum *)
  2622. kcontrol->private_value)->shift_l;
  2623. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2624. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2625. return -EINVAL;
  2626. }
  2627. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2628. pr_debug("%s: %s FE %d\n", __func__,
  2629. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2630. fe_id);
  2631. return 0;
  2632. }
  2633. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_info *uinfo)
  2635. {
  2636. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2637. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2638. uinfo->count = 1;
  2639. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2640. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2641. return 0;
  2642. }
  2643. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2644. struct snd_ctl_elem_value *ucontrol)
  2645. {
  2646. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2647. u16 fe_id = 0, in_ch = 0;
  2648. fe_id = e->shift_l;
  2649. in_ch = e->shift_r;
  2650. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2651. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2652. return -EINVAL;
  2653. }
  2654. if (in_ch >= ADM_MAX_CHANNELS) {
  2655. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2656. return -EINVAL;
  2657. }
  2658. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2659. return 1;
  2660. }
  2661. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2662. struct snd_ctl_elem_value *ucontrol)
  2663. {
  2664. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2665. u16 fe_id = 0, in_ch = 0;
  2666. fe_id = e->shift_l;
  2667. in_ch = e->shift_r;
  2668. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2669. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2670. return -EINVAL;
  2671. }
  2672. if (in_ch >= ADM_MAX_CHANNELS) {
  2673. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2674. return -EINVAL;
  2675. }
  2676. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2677. return 1;
  2678. }
  2679. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2680. struct snd_ctl_elem_info *uinfo)
  2681. {
  2682. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2683. uinfo->count = ADM_MAX_CHANNELS;
  2684. uinfo->value.integer.min = 0;
  2685. uinfo->value.integer.max = WEIGHT_0_DB;
  2686. return 0;
  2687. }
  2688. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2689. struct snd_ctl_elem_value *ucontrol)
  2690. {
  2691. u16 fe_id = 0, out_ch = 0;
  2692. int i, weight;
  2693. fe_id = ((struct soc_multi_mixer_control *)
  2694. kcontrol->private_value)->shift;
  2695. out_ch = ((struct soc_multi_mixer_control *)
  2696. kcontrol->private_value)->rshift;
  2697. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2698. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2699. return -EINVAL;
  2700. }
  2701. if (out_ch >= ADM_MAX_CHANNELS) {
  2702. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2703. return -EINVAL;
  2704. }
  2705. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2706. __func__, fe_id,
  2707. ucontrol->value.integer.value[0],
  2708. ucontrol->value.integer.value[1],
  2709. ucontrol->value.integer.value[2],
  2710. ucontrol->value.integer.value[3],
  2711. ucontrol->value.integer.value[4],
  2712. ucontrol->value.integer.value[5],
  2713. ucontrol->value.integer.value[6],
  2714. ucontrol->value.integer.value[7]);
  2715. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2716. weight = ucontrol->value.integer.value[i];
  2717. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2718. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2719. __func__, fe_id, out_ch, i,
  2720. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2721. }
  2722. return 0;
  2723. }
  2724. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2725. struct snd_ctl_elem_value *ucontrol)
  2726. {
  2727. u16 fe_id = 0, out_ch = 0;
  2728. int i;
  2729. fe_id = ((struct soc_multi_mixer_control *)
  2730. kcontrol->private_value)->shift;
  2731. out_ch = ((struct soc_multi_mixer_control *)
  2732. kcontrol->private_value)->rshift;
  2733. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2734. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2735. return -EINVAL;
  2736. }
  2737. if (out_ch >= ADM_MAX_CHANNELS) {
  2738. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2739. return -EINVAL;
  2740. }
  2741. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2742. ucontrol->value.integer.value[i] =
  2743. channel_mixer[fe_id].channel_weight[out_ch][i];
  2744. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2745. __func__, fe_id,
  2746. ucontrol->value.integer.value[0],
  2747. ucontrol->value.integer.value[1],
  2748. ucontrol->value.integer.value[2],
  2749. ucontrol->value.integer.value[3],
  2750. ucontrol->value.integer.value[4],
  2751. ucontrol->value.integer.value[5],
  2752. ucontrol->value.integer.value[6],
  2753. ucontrol->value.integer.value[7]);
  2754. return 0;
  2755. }
  2756. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2757. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2758. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2759. msm_pcm_get_channel_rule_index,
  2760. msm_pcm_put_channel_rule_index),
  2761. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2762. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2763. msm_pcm_get_channel_rule_index,
  2764. msm_pcm_put_channel_rule_index),
  2765. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2766. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2767. msm_pcm_get_channel_rule_index,
  2768. msm_pcm_put_channel_rule_index),
  2769. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2770. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2771. msm_pcm_get_channel_rule_index,
  2772. msm_pcm_put_channel_rule_index),
  2773. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2774. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2775. msm_pcm_get_channel_rule_index,
  2776. msm_pcm_put_channel_rule_index),
  2777. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2778. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2779. msm_pcm_get_channel_rule_index,
  2780. msm_pcm_put_channel_rule_index),
  2781. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2782. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2783. msm_pcm_get_out_chs,
  2784. msm_pcm_put_out_chs),
  2785. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2786. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2787. msm_pcm_get_out_chs,
  2788. msm_pcm_put_out_chs),
  2789. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2790. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2791. msm_pcm_get_out_chs,
  2792. msm_pcm_put_out_chs),
  2793. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2794. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2795. msm_pcm_get_out_chs,
  2796. msm_pcm_put_out_chs),
  2797. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2798. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2799. msm_pcm_get_out_chs,
  2800. msm_pcm_put_out_chs),
  2801. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2802. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2803. msm_pcm_get_out_chs,
  2804. msm_pcm_put_out_chs),
  2805. {
  2806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2808. .name = "MultiMedia1 Channel Mixer",
  2809. .info = msm_pcm_channel_mixer_info,
  2810. .get = msm_pcm_channel_mixer_get,
  2811. .put = msm_pcm_channel_mixer_put,
  2812. .private_value = (unsigned long)&(mm1_channel_mux)
  2813. },
  2814. {
  2815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2817. .name = "MultiMedia2 Channel Mixer",
  2818. .info = msm_pcm_channel_mixer_info,
  2819. .get = msm_pcm_channel_mixer_get,
  2820. .put = msm_pcm_channel_mixer_put,
  2821. .private_value = (unsigned long)&(mm2_channel_mux)
  2822. },
  2823. {
  2824. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2825. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2826. .name = "MultiMedia3 Channel Mixer",
  2827. .info = msm_pcm_channel_mixer_info,
  2828. .get = msm_pcm_channel_mixer_get,
  2829. .put = msm_pcm_channel_mixer_put,
  2830. .private_value = (unsigned long)&(mm3_channel_mux)
  2831. },
  2832. {
  2833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2834. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2835. .name = "MultiMedia4 Channel Mixer",
  2836. .info = msm_pcm_channel_mixer_info,
  2837. .get = msm_pcm_channel_mixer_get,
  2838. .put = msm_pcm_channel_mixer_put,
  2839. .private_value = (unsigned long)&(mm4_channel_mux)
  2840. },
  2841. {
  2842. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2843. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2844. .name = "MultiMedia1 Output Channel1",
  2845. .info = msm_pcm_channel_weight_info,
  2846. .get = msm_pcm_channel_weight_get,
  2847. .put = msm_pcm_channel_weight_put,
  2848. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2849. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2850. },
  2851. {
  2852. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2853. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2854. .name = "MultiMedia1 Output Channel2",
  2855. .info = msm_pcm_channel_weight_info,
  2856. .get = msm_pcm_channel_weight_get,
  2857. .put = msm_pcm_channel_weight_put,
  2858. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2859. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2860. },
  2861. {
  2862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2864. .name = "MultiMedia1 Output Channel3",
  2865. .info = msm_pcm_channel_weight_info,
  2866. .get = msm_pcm_channel_weight_get,
  2867. .put = msm_pcm_channel_weight_put,
  2868. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2869. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2870. },
  2871. {
  2872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2874. .name = "MultiMedia1 Output Channel4",
  2875. .info = msm_pcm_channel_weight_info,
  2876. .get = msm_pcm_channel_weight_get,
  2877. .put = msm_pcm_channel_weight_put,
  2878. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2879. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2880. },
  2881. {
  2882. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2883. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2884. .name = "MultiMedia1 Output Channel5",
  2885. .info = msm_pcm_channel_weight_info,
  2886. .get = msm_pcm_channel_weight_get,
  2887. .put = msm_pcm_channel_weight_put,
  2888. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2889. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2890. },
  2891. {
  2892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2894. .name = "MultiMedia1 Output Channel6",
  2895. .info = msm_pcm_channel_weight_info,
  2896. .get = msm_pcm_channel_weight_get,
  2897. .put = msm_pcm_channel_weight_put,
  2898. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2899. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2900. },
  2901. {
  2902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2903. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2904. .name = "MultiMedia1 Output Channel7",
  2905. .info = msm_pcm_channel_weight_info,
  2906. .get = msm_pcm_channel_weight_get,
  2907. .put = msm_pcm_channel_weight_put,
  2908. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2909. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2910. },
  2911. {
  2912. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2913. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2914. .name = "MultiMedia1 Output Channel8",
  2915. .info = msm_pcm_channel_weight_info,
  2916. .get = msm_pcm_channel_weight_get,
  2917. .put = msm_pcm_channel_weight_put,
  2918. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2919. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2920. },
  2921. {
  2922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2924. .name = "MultiMedia2 Output Channel1",
  2925. .info = msm_pcm_channel_weight_info,
  2926. .get = msm_pcm_channel_weight_get,
  2927. .put = msm_pcm_channel_weight_put,
  2928. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2929. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2930. },
  2931. {
  2932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2933. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2934. .name = "MultiMedia2 Output Channel2",
  2935. .info = msm_pcm_channel_weight_info,
  2936. .get = msm_pcm_channel_weight_get,
  2937. .put = msm_pcm_channel_weight_put,
  2938. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2939. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2940. },
  2941. {
  2942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2944. .name = "MultiMedia2 Output Channel3",
  2945. .info = msm_pcm_channel_weight_info,
  2946. .get = msm_pcm_channel_weight_get,
  2947. .put = msm_pcm_channel_weight_put,
  2948. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2949. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2950. },
  2951. {
  2952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2954. .name = "MultiMedia3 Output Channel1",
  2955. .info = msm_pcm_channel_weight_info,
  2956. .get = msm_pcm_channel_weight_get,
  2957. .put = msm_pcm_channel_weight_put,
  2958. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2959. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2960. },
  2961. {
  2962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2963. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2964. .name = "MultiMedia3 Output Channel2",
  2965. .info = msm_pcm_channel_weight_info,
  2966. .get = msm_pcm_channel_weight_get,
  2967. .put = msm_pcm_channel_weight_put,
  2968. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2969. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2970. },
  2971. {
  2972. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2973. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2974. .name = "MultiMedia1 Channel1",
  2975. .info = msm_pcm_channel_input_be_info,
  2976. .get = msm_pcm_channel_input_be_get,
  2977. .put = msm_pcm_channel_input_be_put,
  2978. .private_value = (unsigned long)&(mm1_ch1_enum)
  2979. },
  2980. {
  2981. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2982. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2983. .name = "MultiMedia1 Channel2",
  2984. .info = msm_pcm_channel_input_be_info,
  2985. .get = msm_pcm_channel_input_be_get,
  2986. .put = msm_pcm_channel_input_be_put,
  2987. .private_value = (unsigned long)&(mm1_ch2_enum)
  2988. },
  2989. {
  2990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2991. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2992. .name = "MultiMedia1 Channel3",
  2993. .info = msm_pcm_channel_input_be_info,
  2994. .get = msm_pcm_channel_input_be_get,
  2995. .put = msm_pcm_channel_input_be_put,
  2996. .private_value = (unsigned long)&(mm1_ch3_enum)
  2997. },
  2998. {
  2999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3001. .name = "MultiMedia1 Channel4",
  3002. .info = msm_pcm_channel_input_be_info,
  3003. .get = msm_pcm_channel_input_be_get,
  3004. .put = msm_pcm_channel_input_be_put,
  3005. .private_value = (unsigned long)&(mm1_ch4_enum)
  3006. },
  3007. {
  3008. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3009. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3010. .name = "MultiMedia1 Channel5",
  3011. .info = msm_pcm_channel_input_be_info,
  3012. .get = msm_pcm_channel_input_be_get,
  3013. .put = msm_pcm_channel_input_be_put,
  3014. .private_value = (unsigned long)&(mm1_ch5_enum)
  3015. },
  3016. {
  3017. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3018. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3019. .name = "MultiMedia1 Channel6",
  3020. .info = msm_pcm_channel_input_be_info,
  3021. .get = msm_pcm_channel_input_be_get,
  3022. .put = msm_pcm_channel_input_be_put,
  3023. .private_value = (unsigned long)&(mm1_ch6_enum)
  3024. },
  3025. {
  3026. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3027. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3028. .name = "MultiMedia1 Channel7",
  3029. .info = msm_pcm_channel_input_be_info,
  3030. .get = msm_pcm_channel_input_be_get,
  3031. .put = msm_pcm_channel_input_be_put,
  3032. .private_value = (unsigned long)&(mm1_ch7_enum)
  3033. },
  3034. {
  3035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3037. .name = "MultiMedia1 Channel8",
  3038. .info = msm_pcm_channel_input_be_info,
  3039. .get = msm_pcm_channel_input_be_get,
  3040. .put = msm_pcm_channel_input_be_put,
  3041. .private_value = (unsigned long)&(mm1_ch8_enum)
  3042. },
  3043. };
  3044. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3045. struct snd_ctl_elem_value *ucontrol)
  3046. {
  3047. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3048. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3049. ucontrol->value.integer.value[0]);
  3050. return 0;
  3051. }
  3052. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3053. struct snd_ctl_elem_value *ucontrol)
  3054. {
  3055. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3056. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3057. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3058. return 0;
  3059. }
  3060. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3061. "Four", "Five", "Six", "Seven", "Eight"};
  3062. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3063. struct snd_ctl_elem_value *ucontrol)
  3064. {
  3065. switch (msm_ec_ref_bit_format) {
  3066. case SNDRV_PCM_FORMAT_S24_LE:
  3067. ucontrol->value.integer.value[0] = 2;
  3068. break;
  3069. case SNDRV_PCM_FORMAT_S16_LE:
  3070. ucontrol->value.integer.value[0] = 1;
  3071. break;
  3072. default:
  3073. ucontrol->value.integer.value[0] = 0;
  3074. break;
  3075. }
  3076. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3077. __func__, ucontrol->value.integer.value[0]);
  3078. return 0;
  3079. }
  3080. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3081. struct snd_ctl_elem_value *ucontrol)
  3082. {
  3083. u16 bit_width = 0;
  3084. switch (ucontrol->value.integer.value[0]) {
  3085. case 2:
  3086. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3087. break;
  3088. case 1:
  3089. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3090. break;
  3091. default:
  3092. msm_ec_ref_bit_format = 0;
  3093. break;
  3094. }
  3095. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3096. bit_width = 16;
  3097. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3098. bit_width = 24;
  3099. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3100. __func__, msm_ec_ref_bit_format);
  3101. adm_ec_ref_rx_bit_width(bit_width);
  3102. return 0;
  3103. }
  3104. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3105. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3106. struct snd_ctl_elem_value *ucontrol)
  3107. {
  3108. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3109. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3110. __func__, ucontrol->value.integer.value[0]);
  3111. return 0;
  3112. }
  3113. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3114. struct snd_ctl_elem_value *ucontrol)
  3115. {
  3116. switch (ucontrol->value.integer.value[0]) {
  3117. case 0:
  3118. msm_ec_ref_sampling_rate = 0;
  3119. break;
  3120. case 1:
  3121. msm_ec_ref_sampling_rate = 8000;
  3122. break;
  3123. case 2:
  3124. msm_ec_ref_sampling_rate = 16000;
  3125. break;
  3126. case 3:
  3127. msm_ec_ref_sampling_rate = 32000;
  3128. break;
  3129. case 4:
  3130. msm_ec_ref_sampling_rate = 44100;
  3131. break;
  3132. case 5:
  3133. msm_ec_ref_sampling_rate = 48000;
  3134. break;
  3135. case 6:
  3136. msm_ec_ref_sampling_rate = 96000;
  3137. break;
  3138. case 7:
  3139. msm_ec_ref_sampling_rate = 192000;
  3140. break;
  3141. case 8:
  3142. msm_ec_ref_sampling_rate = 384000;
  3143. break;
  3144. default:
  3145. msm_ec_ref_sampling_rate = 48000;
  3146. break;
  3147. }
  3148. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3149. __func__, msm_ec_ref_sampling_rate);
  3150. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3151. return 0;
  3152. }
  3153. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3154. "32000", "44100", "48000", "96000", "192000", "384000"};
  3155. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3156. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3157. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3158. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3159. };
  3160. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3161. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3162. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3163. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3164. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3165. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3166. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3167. };
  3168. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3169. struct snd_ctl_elem_value *ucontrol)
  3170. {
  3171. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3172. mutex_lock(&routing_lock);
  3173. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3174. mutex_unlock(&routing_lock);
  3175. return 0;
  3176. }
  3177. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3178. struct snd_ctl_elem_value *ucontrol)
  3179. {
  3180. int ec_ref_port_id;
  3181. struct snd_soc_dapm_widget *widget =
  3182. snd_soc_dapm_kcontrol_widget(kcontrol);
  3183. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3184. struct snd_soc_dapm_update *update = NULL;
  3185. mutex_lock(&routing_lock);
  3186. switch (ucontrol->value.integer.value[0]) {
  3187. case 0:
  3188. msm_route_ec_ref_rx = 0;
  3189. ec_ref_port_id = AFE_PORT_INVALID;
  3190. break;
  3191. case 1:
  3192. msm_route_ec_ref_rx = 1;
  3193. ec_ref_port_id = SLIMBUS_0_RX;
  3194. break;
  3195. case 2:
  3196. msm_route_ec_ref_rx = 2;
  3197. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3198. break;
  3199. case 3:
  3200. msm_route_ec_ref_rx = 3;
  3201. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3202. break;
  3203. case 4:
  3204. msm_route_ec_ref_rx = 4;
  3205. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3206. break;
  3207. case 5:
  3208. msm_route_ec_ref_rx = 5;
  3209. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3210. break;
  3211. case 6:
  3212. msm_route_ec_ref_rx = 6;
  3213. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3214. break;
  3215. case 7:
  3216. msm_route_ec_ref_rx = 7;
  3217. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3218. break;
  3219. case 9:
  3220. msm_route_ec_ref_rx = 9;
  3221. ec_ref_port_id = SLIMBUS_5_RX;
  3222. break;
  3223. case 10:
  3224. msm_route_ec_ref_rx = 10;
  3225. ec_ref_port_id = SLIMBUS_1_TX;
  3226. break;
  3227. case 11:
  3228. msm_route_ec_ref_rx = 11;
  3229. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3230. break;
  3231. case 12:
  3232. msm_route_ec_ref_rx = 12;
  3233. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3234. break;
  3235. case 13:
  3236. msm_route_ec_ref_rx = 13;
  3237. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3238. break;
  3239. case 14:
  3240. msm_route_ec_ref_rx = 14;
  3241. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3242. break;
  3243. case 15:
  3244. msm_route_ec_ref_rx = 15;
  3245. ec_ref_port_id = SLIMBUS_6_RX;
  3246. break;
  3247. case 16:
  3248. msm_route_ec_ref_rx = 16;
  3249. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3250. break;
  3251. case 17:
  3252. msm_route_ec_ref_rx = 17;
  3253. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3254. break;
  3255. case 18:
  3256. msm_route_ec_ref_rx = 18;
  3257. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3258. break;
  3259. case 19:
  3260. msm_route_ec_ref_rx = 19;
  3261. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3262. break;
  3263. case 20:
  3264. msm_route_ec_ref_rx = 20;
  3265. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3266. break;
  3267. case 21:
  3268. msm_route_ec_ref_rx = 21;
  3269. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3270. break;
  3271. case 22:
  3272. msm_route_ec_ref_rx = 22;
  3273. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3274. break;
  3275. case 23:
  3276. msm_route_ec_ref_rx = 23;
  3277. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3278. break;
  3279. default:
  3280. msm_route_ec_ref_rx = 0; /* NONE */
  3281. pr_err("%s EC ref rx %ld not valid\n",
  3282. __func__, ucontrol->value.integer.value[0]);
  3283. ec_ref_port_id = AFE_PORT_INVALID;
  3284. break;
  3285. }
  3286. adm_ec_ref_rx_id(ec_ref_port_id);
  3287. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3288. __func__, msm_route_ec_ref_rx);
  3289. mutex_unlock(&routing_lock);
  3290. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3291. msm_route_ec_ref_rx, e, update);
  3292. return 0;
  3293. }
  3294. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3295. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3296. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3297. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3298. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3299. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3300. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3301. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3302. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3303. };
  3304. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3305. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 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_ul2 =
  3309. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 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_ul3 =
  3313. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 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_ul4 =
  3317. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 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_ul5 =
  3321. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 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_ul6 =
  3325. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 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_ul8 =
  3329. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 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_ul9 =
  3333. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 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_ul16 =
  3337. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 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_ul10 =
  3341. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 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 const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3345. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3346. msm_route_ec_ref_rx_enum[0],
  3347. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3348. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3349. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3350. msm_route_ec_ref_rx_enum[0],
  3351. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3352. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3353. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3354. msm_route_ec_ref_rx_enum[0],
  3355. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3356. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3357. struct snd_ctl_elem_value *ucontrol)
  3358. {
  3359. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3360. mutex_lock(&routing_lock);
  3361. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3362. mutex_unlock(&routing_lock);
  3363. return 0;
  3364. }
  3365. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3366. struct snd_ctl_elem_value *ucontrol)
  3367. {
  3368. struct snd_soc_dapm_widget *widget =
  3369. snd_soc_dapm_kcontrol_widget(kcontrol);
  3370. int mux = ucontrol->value.enumerated.item[0];
  3371. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3372. int ret = 1;
  3373. bool state = true;
  3374. uint16_t ext_ec_ref_port_id;
  3375. struct snd_soc_dapm_update *update = NULL;
  3376. if (mux >= e->items) {
  3377. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3378. return -EINVAL;
  3379. }
  3380. mutex_lock(&routing_lock);
  3381. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3382. switch (msm_route_ext_ec_ref) {
  3383. case EXT_EC_REF_PRI_MI2S_TX:
  3384. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3385. break;
  3386. case EXT_EC_REF_SEC_MI2S_TX:
  3387. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3388. break;
  3389. case EXT_EC_REF_TERT_MI2S_TX:
  3390. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3391. break;
  3392. case EXT_EC_REF_QUAT_MI2S_TX:
  3393. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3394. break;
  3395. case EXT_EC_REF_QUIN_MI2S_TX:
  3396. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3397. break;
  3398. case EXT_EC_REF_SLIM_1_TX:
  3399. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3400. break;
  3401. case EXT_EC_REF_NONE:
  3402. default:
  3403. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3404. state = false;
  3405. break;
  3406. }
  3407. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3408. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3409. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3410. mutex_unlock(&routing_lock);
  3411. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3412. update);
  3413. } else {
  3414. ret = -EINVAL;
  3415. mutex_unlock(&routing_lock);
  3416. }
  3417. return ret;
  3418. }
  3419. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3420. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3421. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3422. "SLIM_1_TX"};
  3423. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3424. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3425. };
  3426. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3427. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3428. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3429. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3430. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3432. msm_routing_put_audio_mixer),
  3433. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3435. msm_routing_put_audio_mixer),
  3436. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3438. msm_routing_put_audio_mixer),
  3439. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3441. msm_routing_put_audio_mixer),
  3442. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3444. msm_routing_put_audio_mixer),
  3445. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3447. msm_routing_put_audio_mixer),
  3448. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3450. msm_routing_put_audio_mixer),
  3451. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3453. msm_routing_put_audio_mixer),
  3454. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3456. msm_routing_put_audio_mixer),
  3457. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3459. msm_routing_put_audio_mixer),
  3460. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3462. msm_routing_put_audio_mixer),
  3463. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3465. msm_routing_put_audio_mixer),
  3466. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3468. msm_routing_put_audio_mixer),
  3469. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3471. msm_routing_put_audio_mixer),
  3472. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3474. msm_routing_put_audio_mixer),
  3475. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3477. msm_routing_put_audio_mixer),
  3478. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3480. msm_routing_put_audio_mixer),
  3481. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3483. msm_routing_put_audio_mixer),
  3484. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3485. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3486. msm_routing_put_audio_mixer),
  3487. };
  3488. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3489. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3512. msm_routing_put_audio_mixer),
  3513. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3515. msm_routing_put_audio_mixer),
  3516. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3518. msm_routing_put_audio_mixer),
  3519. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3524. msm_routing_put_audio_mixer),
  3525. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3527. msm_routing_put_audio_mixer),
  3528. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3530. msm_routing_put_audio_mixer),
  3531. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3536. msm_routing_put_audio_mixer),
  3537. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3538. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3539. msm_routing_put_audio_mixer),
  3540. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3542. msm_routing_put_audio_mixer),
  3543. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3545. msm_routing_put_audio_mixer),
  3546. };
  3547. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3548. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3574. msm_routing_put_audio_mixer),
  3575. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3576. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3577. msm_routing_put_audio_mixer),
  3578. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3586. msm_routing_put_audio_mixer),
  3587. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3588. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3589. msm_routing_put_audio_mixer),
  3590. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3597. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3598. msm_routing_put_audio_mixer),
  3599. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3601. msm_routing_put_audio_mixer),
  3602. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3603. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3604. msm_routing_put_audio_mixer),
  3605. };
  3606. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3607. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3645. msm_routing_put_audio_mixer),
  3646. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3654. msm_routing_put_audio_mixer),
  3655. };
  3656. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3657. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3710. msm_routing_put_audio_mixer),
  3711. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. };
  3715. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3716. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. };
  3774. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3775. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. };
  3833. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3834. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. };
  3892. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3893. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. };
  3951. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3952. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. };
  4004. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4005. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. };
  4009. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4010. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. };
  4068. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4069. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. };
  4127. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4128. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. };
  4177. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4178. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. };
  4227. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4228. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. };
  4286. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4287. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. };
  4336. /* incall music delivery mixer */
  4337. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4338. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. };
  4351. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4352. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. };
  4365. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4366. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. };
  4379. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4380. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. };
  4429. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4430. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. };
  4479. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4480. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. };
  4529. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4530. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. };
  4588. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4589. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. };
  4638. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4639. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. };
  4697. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4698. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. };
  4756. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4757. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. };
  4815. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4816. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. };
  4874. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4875. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. };
  4924. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4925. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. };
  4974. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4975. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. };
  5024. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5025. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. };
  5074. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5075. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. };
  5124. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5125. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. };
  5174. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5175. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. };
  5224. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5225. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. };
  5274. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5275. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. };
  5324. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5325. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. };
  5374. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5375. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. };
  5424. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5425. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. };
  5474. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5475. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. };
  5524. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5525. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. };
  5574. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5575. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. };
  5624. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5625. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. };
  5674. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5675. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. };
  5724. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5725. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. };
  5774. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5775. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. };
  5824. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5825. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. };
  5877. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5878. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. };
  5927. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5928. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. };
  5980. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5981. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. };
  6033. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6034. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. };
  6086. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6087. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. };
  6139. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6140. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. };
  6189. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6190. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. };
  6242. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6243. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. };
  6295. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6296. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. };
  6348. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6349. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_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("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. };
  6485. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6486. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_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("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. };
  6589. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6590. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. };
  6693. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6694. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_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("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. };
  6794. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6795. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_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("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. };
  6913. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6914. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. };
  7017. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7018. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_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("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. };
  7124. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7125. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. };
  7231. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7232. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. };
  7293. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7294. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. };
  7373. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7374. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. };
  7396. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7397. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. };
  7422. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7423. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. };
  7445. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7446. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_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("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_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("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_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("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_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("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_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("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_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("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. };
  7522. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7523. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7524. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7525. msm_routing_put_voice_mixer),
  7526. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7528. msm_routing_put_voice_mixer),
  7529. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7530. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7531. msm_routing_put_voice_mixer),
  7532. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7533. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7534. msm_routing_put_voice_mixer),
  7535. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7536. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7537. msm_routing_put_voice_mixer),
  7538. };
  7539. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7540. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7541. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7542. msm_routing_put_voice_mixer),
  7543. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7544. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7545. msm_routing_put_voice_mixer),
  7546. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7547. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7548. msm_routing_put_voice_mixer),
  7549. };
  7550. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7551. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7552. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7553. msm_routing_put_voice_mixer),
  7554. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7555. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7556. msm_routing_put_voice_mixer),
  7557. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7558. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7559. msm_routing_put_voice_mixer),
  7560. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7562. msm_routing_put_voice_mixer),
  7563. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7565. msm_routing_put_voice_mixer),
  7566. };
  7567. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7568. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7569. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7570. msm_routing_put_voice_mixer),
  7571. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7572. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7573. msm_routing_put_voice_mixer),
  7574. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7575. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7576. msm_routing_put_voice_mixer),
  7577. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7578. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7579. msm_routing_put_voice_mixer),
  7580. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7581. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7582. msm_routing_put_voice_mixer),
  7583. };
  7584. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7585. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7586. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7587. msm_routing_put_voice_mixer),
  7588. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7590. msm_routing_put_voice_mixer),
  7591. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7592. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7593. msm_routing_put_voice_mixer),
  7594. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7595. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7596. msm_routing_put_voice_mixer),
  7597. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7598. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7599. msm_routing_put_voice_mixer),
  7600. };
  7601. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7602. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7604. msm_routing_put_voice_mixer),
  7605. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7606. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7607. msm_routing_put_voice_mixer),
  7608. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7610. msm_routing_put_voice_mixer),
  7611. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7613. msm_routing_put_voice_mixer),
  7614. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7615. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7616. msm_routing_put_voice_mixer),
  7617. };
  7618. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  7619. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7621. msm_routing_put_voice_mixer),
  7622. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7623. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7624. msm_routing_put_voice_mixer),
  7625. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7626. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7627. msm_routing_put_voice_mixer),
  7628. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7629. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7630. msm_routing_put_voice_mixer),
  7631. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7632. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7633. msm_routing_put_voice_mixer),
  7634. };
  7635. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7636. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7637. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7638. msm_routing_put_voice_mixer),
  7639. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7641. msm_routing_put_voice_mixer),
  7642. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7643. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7644. msm_routing_put_voice_mixer),
  7645. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7647. msm_routing_put_voice_mixer),
  7648. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7649. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7650. msm_routing_put_voice_mixer),
  7651. };
  7652. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7653. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7657. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7658. msm_routing_put_voice_mixer),
  7659. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7660. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7661. msm_routing_put_voice_mixer),
  7662. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7664. msm_routing_put_voice_mixer),
  7665. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7667. msm_routing_put_voice_mixer),
  7668. };
  7669. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7670. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7672. msm_routing_put_voice_mixer),
  7673. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7674. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7675. msm_routing_put_voice_mixer),
  7676. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7677. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7678. msm_routing_put_voice_mixer),
  7679. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7681. msm_routing_put_voice_mixer),
  7682. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7683. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7684. msm_routing_put_voice_mixer),
  7685. };
  7686. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7687. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7688. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7689. msm_routing_put_voice_mixer),
  7690. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7691. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7692. msm_routing_put_voice_mixer),
  7693. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7694. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7695. msm_routing_put_voice_mixer),
  7696. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7697. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7698. msm_routing_put_voice_mixer),
  7699. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7700. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7701. msm_routing_put_voice_mixer),
  7702. };
  7703. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7704. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7705. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7706. msm_routing_put_voice_mixer),
  7707. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7708. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7709. msm_routing_put_voice_mixer),
  7710. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7712. msm_routing_put_voice_mixer),
  7713. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7714. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7715. msm_routing_put_voice_mixer),
  7716. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7717. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7718. msm_routing_put_voice_mixer),
  7719. };
  7720. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7721. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7722. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7723. msm_routing_put_voice_mixer),
  7724. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7725. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7726. msm_routing_put_voice_mixer),
  7727. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7729. msm_routing_put_voice_mixer),
  7730. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7731. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7732. msm_routing_put_voice_mixer),
  7733. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7735. msm_routing_put_voice_mixer),
  7736. };
  7737. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7738. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7739. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7740. msm_routing_put_voice_mixer),
  7741. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7742. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7743. msm_routing_put_voice_mixer),
  7744. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7745. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7746. msm_routing_put_voice_mixer),
  7747. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7748. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7749. msm_routing_put_voice_mixer),
  7750. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7751. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7752. msm_routing_put_voice_mixer),
  7753. };
  7754. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7755. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7757. msm_routing_put_voice_mixer),
  7758. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7759. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7760. msm_routing_put_voice_mixer),
  7761. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7762. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7763. msm_routing_put_voice_mixer),
  7764. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7765. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7766. msm_routing_put_voice_mixer),
  7767. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7768. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7769. msm_routing_put_voice_mixer),
  7770. };
  7771. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7772. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7774. msm_routing_put_voice_mixer),
  7775. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7776. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7777. msm_routing_put_voice_mixer),
  7778. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7779. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7780. msm_routing_put_voice_mixer),
  7781. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7782. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7783. msm_routing_put_voice_mixer),
  7784. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7785. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7786. msm_routing_put_voice_mixer),
  7787. };
  7788. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7789. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7790. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7791. msm_routing_put_voice_mixer),
  7792. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7793. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7794. msm_routing_put_voice_mixer),
  7795. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7796. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7797. msm_routing_put_voice_mixer),
  7798. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7800. msm_routing_put_voice_mixer),
  7801. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7802. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7803. msm_routing_put_voice_mixer),
  7804. };
  7805. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7806. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7808. msm_routing_put_voice_mixer),
  7809. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7810. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7811. msm_routing_put_voice_mixer),
  7812. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7814. msm_routing_put_voice_mixer),
  7815. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7816. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7817. msm_routing_put_voice_mixer),
  7818. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7819. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7820. msm_routing_put_voice_mixer),
  7821. };
  7822. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7823. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7825. msm_routing_put_voice_mixer),
  7826. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7827. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7828. msm_routing_put_voice_mixer),
  7829. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7831. msm_routing_put_voice_mixer),
  7832. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7833. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7834. msm_routing_put_voice_mixer),
  7835. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7836. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7837. msm_routing_put_voice_mixer),
  7838. };
  7839. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7840. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7841. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7842. msm_routing_put_voice_mixer),
  7843. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7844. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7845. msm_routing_put_voice_mixer),
  7846. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7847. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7848. msm_routing_put_voice_mixer),
  7849. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7850. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7851. msm_routing_put_voice_mixer),
  7852. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7854. msm_routing_put_voice_mixer),
  7855. };
  7856. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7857. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7858. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7859. msm_routing_put_voice_mixer),
  7860. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7861. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7862. msm_routing_put_voice_mixer),
  7863. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7864. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7865. msm_routing_put_voice_mixer),
  7866. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7867. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7868. msm_routing_put_voice_mixer),
  7869. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7870. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7871. msm_routing_put_voice_mixer),
  7872. };
  7873. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7874. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7876. msm_routing_put_voice_mixer),
  7877. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7879. msm_routing_put_voice_mixer),
  7880. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7882. msm_routing_put_voice_mixer),
  7883. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7884. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7885. msm_routing_put_voice_mixer),
  7886. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7887. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7888. msm_routing_put_voice_mixer),
  7889. };
  7890. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7891. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7892. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7893. msm_routing_put_voice_mixer),
  7894. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7895. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7896. msm_routing_put_voice_mixer),
  7897. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7899. msm_routing_put_voice_mixer),
  7900. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7902. msm_routing_put_voice_mixer),
  7903. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7904. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7905. msm_routing_put_voice_mixer),
  7906. };
  7907. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7908. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7909. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7910. msm_routing_put_voice_mixer),
  7911. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7912. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7913. msm_routing_put_voice_mixer),
  7914. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7915. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7916. msm_routing_put_voice_mixer),
  7917. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7918. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7919. msm_routing_put_voice_mixer),
  7920. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7921. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7922. msm_routing_put_voice_mixer),
  7923. };
  7924. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  7925. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7927. msm_routing_put_voice_mixer),
  7928. };
  7929. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  7930. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_EXTPROC_RX,
  7931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7932. msm_routing_put_voice_mixer),
  7933. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_EXTPROC_RX,
  7934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7935. msm_routing_put_voice_mixer),
  7936. };
  7937. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  7938. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7939. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7940. msm_routing_put_voice_mixer),
  7941. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7942. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7943. msm_routing_put_voice_mixer),
  7944. };
  7945. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  7946. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7947. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7948. msm_routing_put_voice_mixer),
  7949. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7951. msm_routing_put_voice_mixer),
  7952. };
  7953. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  7954. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  7955. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7956. msm_routing_put_voice_mixer),
  7957. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  7958. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7959. msm_routing_put_voice_mixer),
  7960. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  7961. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7962. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7963. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  7964. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7965. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7966. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  7967. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7968. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7969. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  7970. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7971. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7972. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  7973. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7974. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7975. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  7976. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7977. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7978. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  7979. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7980. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7981. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  7982. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7984. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  7985. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7986. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7987. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  7988. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7989. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7990. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  7991. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7992. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7993. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  7994. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7995. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7996. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  7997. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7998. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7999. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8000. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8001. msm_routing_put_voice_mixer),
  8002. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8003. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8007. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8008. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8009. msm_routing_put_voice_mixer),
  8010. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8011. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8012. msm_routing_put_voice_mixer),
  8013. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8014. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8015. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8016. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8017. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8018. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8019. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8020. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8021. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8022. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8023. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8024. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8025. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8026. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8027. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8028. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8029. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8030. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8031. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8032. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8033. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8034. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8035. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8036. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8037. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8038. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8039. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8040. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8041. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8042. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8043. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8044. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8045. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8046. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8047. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8048. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8049. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8050. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8051. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8052. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8053. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8054. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8055. };
  8056. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8057. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8059. msm_routing_put_voice_mixer),
  8060. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8062. msm_routing_put_voice_mixer),
  8063. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8065. msm_routing_put_voice_mixer),
  8066. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8068. msm_routing_put_voice_mixer),
  8069. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8071. msm_routing_put_voice_mixer),
  8072. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8074. msm_routing_put_voice_mixer),
  8075. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8076. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8077. msm_routing_put_voice_mixer),
  8078. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8079. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8080. msm_routing_put_voice_mixer),
  8081. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8083. msm_routing_put_voice_mixer),
  8084. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8086. msm_routing_put_voice_mixer),
  8087. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8089. msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8091. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8092. msm_routing_put_voice_mixer),
  8093. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8095. msm_routing_put_voice_mixer),
  8096. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8098. msm_routing_put_voice_mixer),
  8099. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8100. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8101. msm_routing_put_voice_mixer),
  8102. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8103. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8104. msm_routing_put_voice_mixer),
  8105. };
  8106. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8107. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_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("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_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("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_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("MI2S_TX", MSM_BACKEND_DAI_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("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_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("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_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("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_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_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_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("AUX_PCM_UL_TX", MSM_BACKEND_DAI_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("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_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("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_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("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_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("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_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_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8151. msm_routing_put_voice_stub_mixer),
  8152. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8153. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8154. msm_routing_put_voice_stub_mixer),
  8155. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8156. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8157. msm_routing_put_voice_stub_mixer),
  8158. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8159. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8160. msm_routing_put_voice_stub_mixer),
  8161. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8163. msm_routing_put_voice_stub_mixer),
  8164. };
  8165. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8166. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_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("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_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("AUX_PCM_UL_TX", MSM_BACKEND_DAI_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("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_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("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_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("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_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("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_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("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_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_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_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("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8197. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8198. msm_routing_put_voice_stub_mixer),
  8199. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8200. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8201. msm_routing_put_voice_stub_mixer),
  8202. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8203. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8204. msm_routing_put_voice_stub_mixer),
  8205. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8206. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8207. msm_routing_put_voice_stub_mixer),
  8208. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8209. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8210. msm_routing_put_voice_stub_mixer),
  8211. };
  8212. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8213. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_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("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_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("AUX_PCM_UL_TX", MSM_BACKEND_DAI_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("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_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("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_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("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_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("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_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("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_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_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_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("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8244. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8245. msm_routing_put_voice_stub_mixer),
  8246. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8247. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8248. msm_routing_put_voice_stub_mixer),
  8249. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8250. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8251. msm_routing_put_voice_stub_mixer),
  8252. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8253. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8254. msm_routing_put_voice_stub_mixer),
  8255. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8256. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8257. msm_routing_put_voice_stub_mixer),
  8258. };
  8259. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8260. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8262. msm_routing_put_voice_mixer),
  8263. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8265. msm_routing_put_voice_mixer),
  8266. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8267. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8268. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8269. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8271. msm_routing_put_voice_mixer),
  8272. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8274. msm_routing_put_voice_mixer),
  8275. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8277. msm_routing_put_voice_mixer),
  8278. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8280. msm_routing_put_voice_mixer),
  8281. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8283. msm_routing_put_voice_mixer),
  8284. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8286. msm_routing_put_voice_mixer),
  8287. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8288. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8289. msm_routing_put_voice_mixer),
  8290. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8292. msm_routing_put_voice_mixer),
  8293. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8295. msm_routing_put_voice_mixer),
  8296. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8297. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8298. msm_routing_put_voice_mixer),
  8299. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8300. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8301. msm_routing_put_voice_mixer),
  8302. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8304. msm_routing_put_voice_mixer),
  8305. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8307. msm_routing_put_voice_mixer),
  8308. };
  8309. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8310. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8311. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8312. msm_routing_put_port_mixer),
  8313. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8315. msm_routing_put_port_mixer),
  8316. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8318. msm_routing_put_port_mixer),
  8319. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8320. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8321. msm_routing_put_port_mixer),
  8322. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8323. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8324. msm_routing_put_port_mixer),
  8325. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8326. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8327. msm_routing_put_port_mixer),
  8328. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8329. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8330. msm_routing_put_port_mixer),
  8331. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8332. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8333. msm_routing_put_port_mixer),
  8334. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8335. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8336. msm_routing_put_port_mixer),
  8337. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8338. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8339. msm_routing_put_port_mixer),
  8340. };
  8341. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8342. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8343. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8344. msm_routing_put_port_mixer),
  8345. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8346. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8347. msm_routing_put_port_mixer),
  8348. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8349. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8350. msm_routing_put_port_mixer),
  8351. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8353. msm_routing_put_port_mixer),
  8354. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8355. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8356. msm_routing_put_port_mixer),
  8357. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8358. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8359. msm_routing_put_port_mixer),
  8360. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8361. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8362. msm_routing_put_port_mixer),
  8363. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8364. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8365. msm_routing_put_port_mixer),
  8366. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8367. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8368. msm_routing_put_port_mixer),
  8369. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8370. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8371. msm_routing_put_port_mixer),
  8372. };
  8373. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8374. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8376. msm_routing_put_port_mixer),
  8377. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8378. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8379. msm_routing_put_port_mixer),
  8380. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8381. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8382. msm_routing_put_port_mixer),
  8383. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8384. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8385. msm_routing_put_port_mixer),
  8386. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8387. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8388. msm_routing_put_port_mixer),
  8389. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8390. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8391. msm_routing_put_port_mixer),
  8392. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8393. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8394. msm_routing_put_port_mixer),
  8395. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8396. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8397. msm_routing_put_port_mixer),
  8398. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8399. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8400. msm_routing_put_port_mixer),
  8401. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8402. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8403. msm_routing_put_port_mixer),
  8404. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8405. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8406. msm_routing_put_port_mixer),
  8407. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8408. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8409. msm_routing_put_port_mixer),
  8410. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8411. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8412. msm_routing_put_port_mixer),
  8413. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8414. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8415. msm_routing_put_port_mixer),
  8416. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8417. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8418. msm_routing_put_port_mixer),
  8419. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8420. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8421. msm_routing_put_port_mixer),
  8422. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8423. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8424. msm_routing_put_port_mixer),
  8425. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8426. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8427. msm_routing_put_port_mixer),
  8428. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8430. msm_routing_put_port_mixer),
  8431. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8433. msm_routing_put_port_mixer),
  8434. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8435. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8436. msm_routing_put_port_mixer),
  8437. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8438. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8439. msm_routing_put_port_mixer),
  8440. };
  8441. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8442. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8443. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8444. msm_routing_put_port_mixer),
  8445. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8446. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8447. msm_routing_put_port_mixer),
  8448. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8449. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8450. msm_routing_put_port_mixer),
  8451. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8452. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8453. msm_routing_put_port_mixer),
  8454. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8455. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8456. msm_routing_put_port_mixer),
  8457. };
  8458. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8459. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8460. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8461. msm_routing_put_port_mixer),
  8462. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8463. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8464. msm_routing_put_port_mixer),
  8465. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8467. msm_routing_put_port_mixer),
  8468. };
  8469. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8470. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8471. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8472. msm_routing_put_port_mixer),
  8473. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8474. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8475. msm_routing_put_port_mixer),
  8476. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8478. msm_routing_put_port_mixer),
  8479. };
  8480. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8481. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8482. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8483. msm_routing_put_port_mixer),
  8484. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8485. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8486. msm_routing_put_port_mixer),
  8487. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8489. msm_routing_put_port_mixer),
  8490. };
  8491. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8492. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8493. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8494. msm_routing_put_port_mixer),
  8495. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8496. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8497. msm_routing_put_port_mixer),
  8498. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8499. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8500. msm_routing_put_port_mixer),
  8501. };
  8502. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8503. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8504. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8505. msm_routing_put_port_mixer),
  8506. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8507. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8508. msm_routing_put_port_mixer),
  8509. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8510. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8511. msm_routing_put_port_mixer),
  8512. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8513. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8514. msm_routing_put_port_mixer),
  8515. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8516. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8517. msm_routing_put_port_mixer),
  8518. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8519. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8520. msm_routing_put_port_mixer),
  8521. };
  8522. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8523. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8524. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8525. msm_routing_put_port_mixer),
  8526. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8527. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8528. msm_routing_put_port_mixer),
  8529. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8530. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8531. msm_routing_put_port_mixer),
  8532. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8533. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8534. msm_routing_put_port_mixer),
  8535. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8536. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8537. msm_routing_put_port_mixer),
  8538. };
  8539. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8540. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8541. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8542. msm_routing_put_port_mixer),
  8543. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8544. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8545. msm_routing_put_port_mixer),
  8546. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8547. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8550. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8551. msm_routing_put_port_mixer),
  8552. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8553. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8554. msm_routing_put_port_mixer),
  8555. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8556. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8557. msm_routing_put_port_mixer),
  8558. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8559. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8560. msm_routing_put_port_mixer),
  8561. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8562. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8563. msm_routing_put_port_mixer),
  8564. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8565. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8566. msm_routing_put_port_mixer),
  8567. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8568. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8569. msm_routing_put_port_mixer),
  8570. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8571. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8572. msm_routing_put_port_mixer),
  8573. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8574. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8575. msm_routing_put_port_mixer),
  8576. };
  8577. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8578. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8579. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8580. msm_routing_put_port_mixer),
  8581. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8582. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8583. msm_routing_put_port_mixer),
  8584. };
  8585. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8586. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8587. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8588. msm_routing_put_port_mixer),
  8589. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8590. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8591. msm_routing_put_port_mixer),
  8592. };
  8593. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8594. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8595. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8596. msm_routing_put_port_mixer),
  8597. };
  8598. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8599. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8600. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8601. msm_routing_put_port_mixer),
  8602. };
  8603. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8604. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8605. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8606. msm_routing_put_port_mixer),
  8607. };
  8608. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8609. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8610. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8611. msm_routing_put_port_mixer),
  8612. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8613. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8614. msm_routing_put_port_mixer),
  8615. };
  8616. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8617. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8618. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8619. msm_routing_put_port_mixer),
  8620. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8622. msm_routing_put_port_mixer),
  8623. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8624. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8625. msm_routing_put_port_mixer),
  8626. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8627. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8628. msm_routing_put_port_mixer),
  8629. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8630. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8631. msm_routing_put_port_mixer),
  8632. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8633. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8634. msm_routing_put_port_mixer),
  8635. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8636. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8637. msm_routing_put_port_mixer),
  8638. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8639. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8640. msm_routing_put_port_mixer),
  8641. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8642. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8643. msm_routing_put_port_mixer),
  8644. };
  8645. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8646. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8647. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8648. msm_routing_put_port_mixer),
  8649. };
  8650. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8651. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8652. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8653. msm_routing_put_port_mixer),
  8654. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8655. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8656. msm_routing_put_port_mixer),
  8657. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8658. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8659. msm_routing_put_port_mixer),
  8660. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8661. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8662. msm_routing_put_port_mixer),
  8663. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8664. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8665. msm_routing_put_port_mixer),
  8666. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8667. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8668. msm_routing_put_port_mixer),
  8669. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8670. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8671. msm_routing_put_port_mixer),
  8672. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8673. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8674. msm_routing_put_port_mixer),
  8675. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8676. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8677. msm_routing_put_port_mixer),
  8678. };
  8679. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8680. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8681. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8682. msm_routing_put_port_mixer),
  8683. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8685. msm_routing_put_port_mixer),
  8686. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8687. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8690. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8691. msm_routing_put_port_mixer),
  8692. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8693. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8694. msm_routing_put_port_mixer),
  8695. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8697. msm_routing_put_port_mixer),
  8698. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8699. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8700. msm_routing_put_port_mixer),
  8701. };
  8702. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8703. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8704. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8705. msm_routing_get_port_mixer,
  8706. msm_routing_put_port_mixer),
  8707. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8709. msm_routing_get_port_mixer,
  8710. msm_routing_put_port_mixer),
  8711. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8713. msm_routing_get_port_mixer,
  8714. msm_routing_put_port_mixer),
  8715. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8716. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8717. msm_routing_get_port_mixer,
  8718. msm_routing_put_port_mixer),
  8719. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8720. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8721. msm_routing_get_port_mixer,
  8722. msm_routing_put_port_mixer),
  8723. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8724. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8725. msm_routing_get_port_mixer,
  8726. msm_routing_put_port_mixer),
  8727. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8728. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8729. msm_routing_get_port_mixer,
  8730. msm_routing_put_port_mixer),
  8731. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8732. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8733. msm_routing_get_port_mixer,
  8734. msm_routing_put_port_mixer),
  8735. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8736. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8737. msm_routing_get_port_mixer,
  8738. msm_routing_put_port_mixer),
  8739. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8740. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8741. msm_routing_get_port_mixer,
  8742. msm_routing_put_port_mixer),
  8743. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8744. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8745. msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8748. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8749. msm_routing_get_port_mixer,
  8750. msm_routing_put_port_mixer),
  8751. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8752. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8753. msm_routing_get_port_mixer,
  8754. msm_routing_put_port_mixer),
  8755. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8756. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8757. msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8760. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8761. msm_routing_get_port_mixer,
  8762. msm_routing_put_port_mixer),
  8763. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8764. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8765. msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8768. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8769. msm_routing_get_port_mixer,
  8770. msm_routing_put_port_mixer),
  8771. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8772. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8773. msm_routing_get_port_mixer,
  8774. msm_routing_put_port_mixer),
  8775. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8776. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8777. msm_routing_get_port_mixer,
  8778. msm_routing_put_port_mixer),
  8779. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8780. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8781. msm_routing_get_port_mixer,
  8782. msm_routing_put_port_mixer),
  8783. };
  8784. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8785. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8786. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8787. msm_routing_get_port_mixer,
  8788. msm_routing_put_port_mixer),
  8789. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8790. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8791. msm_routing_get_port_mixer,
  8792. msm_routing_put_port_mixer),
  8793. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8794. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8795. msm_routing_get_port_mixer,
  8796. msm_routing_put_port_mixer),
  8797. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8798. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8799. msm_routing_get_port_mixer,
  8800. msm_routing_put_port_mixer),
  8801. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8802. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8803. msm_routing_get_port_mixer,
  8804. msm_routing_put_port_mixer),
  8805. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8806. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8807. msm_routing_get_port_mixer,
  8808. msm_routing_put_port_mixer),
  8809. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8810. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8811. msm_routing_get_port_mixer,
  8812. msm_routing_put_port_mixer),
  8813. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8814. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8815. msm_routing_get_port_mixer,
  8816. msm_routing_put_port_mixer),
  8817. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8818. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8819. msm_routing_get_port_mixer,
  8820. msm_routing_put_port_mixer),
  8821. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8822. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8823. msm_routing_get_port_mixer,
  8824. msm_routing_put_port_mixer),
  8825. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8826. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8827. msm_routing_get_port_mixer,
  8828. msm_routing_put_port_mixer),
  8829. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8830. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8831. msm_routing_get_port_mixer,
  8832. msm_routing_put_port_mixer),
  8833. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8834. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8835. msm_routing_get_port_mixer,
  8836. msm_routing_put_port_mixer),
  8837. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8838. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8839. msm_routing_get_port_mixer,
  8840. msm_routing_put_port_mixer),
  8841. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8842. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8843. msm_routing_get_port_mixer,
  8844. msm_routing_put_port_mixer),
  8845. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8846. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8847. msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8850. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8851. msm_routing_get_port_mixer,
  8852. msm_routing_put_port_mixer),
  8853. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8854. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8855. msm_routing_get_port_mixer,
  8856. msm_routing_put_port_mixer),
  8857. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8858. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8859. msm_routing_get_port_mixer,
  8860. msm_routing_put_port_mixer),
  8861. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8862. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8863. msm_routing_get_port_mixer,
  8864. msm_routing_put_port_mixer),
  8865. };
  8866. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8867. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8868. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8869. msm_routing_get_port_mixer,
  8870. msm_routing_put_port_mixer),
  8871. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8872. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8873. msm_routing_get_port_mixer,
  8874. msm_routing_put_port_mixer),
  8875. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8877. msm_routing_get_port_mixer,
  8878. msm_routing_put_port_mixer),
  8879. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8881. msm_routing_get_port_mixer,
  8882. msm_routing_put_port_mixer),
  8883. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8884. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8885. msm_routing_get_port_mixer,
  8886. msm_routing_put_port_mixer),
  8887. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8888. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8889. msm_routing_get_port_mixer,
  8890. msm_routing_put_port_mixer),
  8891. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8892. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8893. msm_routing_get_port_mixer,
  8894. msm_routing_put_port_mixer),
  8895. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8896. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8897. msm_routing_get_port_mixer,
  8898. msm_routing_put_port_mixer),
  8899. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8900. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8901. msm_routing_get_port_mixer,
  8902. msm_routing_put_port_mixer),
  8903. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8904. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8905. msm_routing_get_port_mixer,
  8906. msm_routing_put_port_mixer),
  8907. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8908. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8909. msm_routing_get_port_mixer,
  8910. msm_routing_put_port_mixer),
  8911. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8912. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8913. msm_routing_get_port_mixer,
  8914. msm_routing_put_port_mixer),
  8915. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8916. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8917. msm_routing_get_port_mixer,
  8918. msm_routing_put_port_mixer),
  8919. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8921. msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8925. msm_routing_get_port_mixer,
  8926. msm_routing_put_port_mixer),
  8927. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8928. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8929. msm_routing_get_port_mixer,
  8930. msm_routing_put_port_mixer),
  8931. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8932. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8933. msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8936. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8937. msm_routing_get_port_mixer,
  8938. msm_routing_put_port_mixer),
  8939. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8940. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8941. msm_routing_get_port_mixer,
  8942. msm_routing_put_port_mixer),
  8943. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8944. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8945. msm_routing_get_port_mixer,
  8946. msm_routing_put_port_mixer),
  8947. };
  8948. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  8949. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8950. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8951. msm_routing_get_port_mixer,
  8952. msm_routing_put_port_mixer),
  8953. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8954. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8955. msm_routing_get_port_mixer,
  8956. msm_routing_put_port_mixer),
  8957. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8958. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8959. msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8963. msm_routing_get_port_mixer,
  8964. msm_routing_put_port_mixer),
  8965. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8966. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8967. msm_routing_get_port_mixer,
  8968. msm_routing_put_port_mixer),
  8969. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8970. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8971. msm_routing_get_port_mixer,
  8972. msm_routing_put_port_mixer),
  8973. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8974. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8975. msm_routing_get_port_mixer,
  8976. msm_routing_put_port_mixer),
  8977. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8979. msm_routing_get_port_mixer,
  8980. msm_routing_put_port_mixer),
  8981. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8982. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8983. msm_routing_get_port_mixer,
  8984. msm_routing_put_port_mixer),
  8985. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8986. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8987. msm_routing_get_port_mixer,
  8988. msm_routing_put_port_mixer),
  8989. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8990. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8991. msm_routing_get_port_mixer,
  8992. msm_routing_put_port_mixer),
  8993. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8994. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8995. msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8998. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8999. msm_routing_get_port_mixer,
  9000. msm_routing_put_port_mixer),
  9001. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9002. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9003. msm_routing_get_port_mixer,
  9004. msm_routing_put_port_mixer),
  9005. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9006. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9007. msm_routing_get_port_mixer,
  9008. msm_routing_put_port_mixer),
  9009. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9010. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9011. msm_routing_get_port_mixer,
  9012. msm_routing_put_port_mixer),
  9013. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9014. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9015. msm_routing_get_port_mixer,
  9016. msm_routing_put_port_mixer),
  9017. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9018. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9019. msm_routing_get_port_mixer,
  9020. msm_routing_put_port_mixer),
  9021. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9022. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9023. msm_routing_get_port_mixer,
  9024. msm_routing_put_port_mixer),
  9025. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9026. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9027. msm_routing_get_port_mixer,
  9028. msm_routing_put_port_mixer),
  9029. };
  9030. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9031. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9032. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9033. msm_routing_get_port_mixer,
  9034. msm_routing_put_port_mixer),
  9035. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9036. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9037. msm_routing_get_port_mixer,
  9038. msm_routing_put_port_mixer),
  9039. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9041. msm_routing_get_port_mixer,
  9042. msm_routing_put_port_mixer),
  9043. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9044. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9045. msm_routing_get_port_mixer,
  9046. msm_routing_put_port_mixer),
  9047. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9048. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9049. msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9052. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9053. msm_routing_get_port_mixer,
  9054. msm_routing_put_port_mixer),
  9055. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9056. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9057. msm_routing_get_port_mixer,
  9058. msm_routing_put_port_mixer),
  9059. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9060. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9061. msm_routing_get_port_mixer,
  9062. msm_routing_put_port_mixer),
  9063. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9064. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9065. msm_routing_get_port_mixer,
  9066. msm_routing_put_port_mixer),
  9067. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9068. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9069. msm_routing_get_port_mixer,
  9070. msm_routing_put_port_mixer),
  9071. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9072. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9073. msm_routing_get_port_mixer,
  9074. msm_routing_put_port_mixer),
  9075. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9076. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9077. msm_routing_get_port_mixer,
  9078. msm_routing_put_port_mixer),
  9079. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9080. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9081. msm_routing_get_port_mixer,
  9082. msm_routing_put_port_mixer),
  9083. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9084. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9085. msm_routing_get_port_mixer,
  9086. msm_routing_put_port_mixer),
  9087. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9088. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9089. msm_routing_get_port_mixer,
  9090. msm_routing_put_port_mixer),
  9091. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9092. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9093. msm_routing_get_port_mixer,
  9094. msm_routing_put_port_mixer),
  9095. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9096. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9097. msm_routing_get_port_mixer,
  9098. msm_routing_put_port_mixer),
  9099. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9100. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9101. msm_routing_get_port_mixer,
  9102. msm_routing_put_port_mixer),
  9103. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9104. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9105. msm_routing_get_port_mixer,
  9106. msm_routing_put_port_mixer),
  9107. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9108. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9109. msm_routing_get_port_mixer,
  9110. msm_routing_put_port_mixer),
  9111. };
  9112. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9113. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9114. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9115. msm_routing_get_port_mixer,
  9116. msm_routing_put_port_mixer),
  9117. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9119. msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9123. msm_routing_get_port_mixer,
  9124. msm_routing_put_port_mixer),
  9125. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9126. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9127. msm_routing_get_port_mixer,
  9128. msm_routing_put_port_mixer),
  9129. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9131. msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9135. msm_routing_get_port_mixer,
  9136. msm_routing_put_port_mixer),
  9137. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9138. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9139. msm_routing_get_port_mixer,
  9140. msm_routing_put_port_mixer),
  9141. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9142. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9143. msm_routing_get_port_mixer,
  9144. msm_routing_put_port_mixer),
  9145. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9146. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9147. msm_routing_get_port_mixer,
  9148. msm_routing_put_port_mixer),
  9149. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9150. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9151. msm_routing_get_port_mixer,
  9152. msm_routing_put_port_mixer),
  9153. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9154. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9155. msm_routing_get_port_mixer,
  9156. msm_routing_put_port_mixer),
  9157. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9158. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9159. msm_routing_get_port_mixer,
  9160. msm_routing_put_port_mixer),
  9161. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9162. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9163. msm_routing_get_port_mixer,
  9164. msm_routing_put_port_mixer),
  9165. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9166. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9167. msm_routing_get_port_mixer,
  9168. msm_routing_put_port_mixer),
  9169. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9170. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9171. msm_routing_get_port_mixer,
  9172. msm_routing_put_port_mixer),
  9173. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9174. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9175. msm_routing_get_port_mixer,
  9176. msm_routing_put_port_mixer),
  9177. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9179. msm_routing_get_port_mixer,
  9180. msm_routing_put_port_mixer),
  9181. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9182. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9183. msm_routing_get_port_mixer,
  9184. msm_routing_put_port_mixer),
  9185. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9186. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9187. msm_routing_get_port_mixer,
  9188. msm_routing_put_port_mixer),
  9189. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9190. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9191. msm_routing_get_port_mixer,
  9192. msm_routing_put_port_mixer),
  9193. };
  9194. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9195. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9196. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9197. msm_routing_get_port_mixer,
  9198. msm_routing_put_port_mixer),
  9199. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9200. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9201. msm_routing_get_port_mixer,
  9202. msm_routing_put_port_mixer),
  9203. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9205. msm_routing_get_port_mixer,
  9206. msm_routing_put_port_mixer),
  9207. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9208. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9209. msm_routing_get_port_mixer,
  9210. msm_routing_put_port_mixer),
  9211. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9212. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9213. msm_routing_get_port_mixer,
  9214. msm_routing_put_port_mixer),
  9215. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9216. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9217. msm_routing_get_port_mixer,
  9218. msm_routing_put_port_mixer),
  9219. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9220. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9221. msm_routing_get_port_mixer,
  9222. msm_routing_put_port_mixer),
  9223. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9224. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9225. msm_routing_get_port_mixer,
  9226. msm_routing_put_port_mixer),
  9227. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9228. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9229. msm_routing_get_port_mixer,
  9230. msm_routing_put_port_mixer),
  9231. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9232. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9233. msm_routing_get_port_mixer,
  9234. msm_routing_put_port_mixer),
  9235. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9236. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9237. msm_routing_get_port_mixer,
  9238. msm_routing_put_port_mixer),
  9239. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9240. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9241. msm_routing_get_port_mixer,
  9242. msm_routing_put_port_mixer),
  9243. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9245. msm_routing_get_port_mixer,
  9246. msm_routing_put_port_mixer),
  9247. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9248. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9249. msm_routing_get_port_mixer,
  9250. msm_routing_put_port_mixer),
  9251. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9252. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9253. msm_routing_get_port_mixer,
  9254. msm_routing_put_port_mixer),
  9255. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9256. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9257. msm_routing_get_port_mixer,
  9258. msm_routing_put_port_mixer),
  9259. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9261. msm_routing_get_port_mixer,
  9262. msm_routing_put_port_mixer),
  9263. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9264. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9265. msm_routing_get_port_mixer,
  9266. msm_routing_put_port_mixer),
  9267. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9268. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9269. msm_routing_get_port_mixer,
  9270. msm_routing_put_port_mixer),
  9271. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9272. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9273. msm_routing_get_port_mixer,
  9274. msm_routing_put_port_mixer),
  9275. };
  9276. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9277. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9278. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9279. msm_routing_get_port_mixer,
  9280. msm_routing_put_port_mixer),
  9281. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9282. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9283. msm_routing_get_port_mixer,
  9284. msm_routing_put_port_mixer),
  9285. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9286. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9287. msm_routing_get_port_mixer,
  9288. msm_routing_put_port_mixer),
  9289. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9290. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9291. msm_routing_get_port_mixer,
  9292. msm_routing_put_port_mixer),
  9293. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9294. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9295. msm_routing_get_port_mixer,
  9296. msm_routing_put_port_mixer),
  9297. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9298. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9299. msm_routing_get_port_mixer,
  9300. msm_routing_put_port_mixer),
  9301. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9302. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9303. msm_routing_get_port_mixer,
  9304. msm_routing_put_port_mixer),
  9305. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9306. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9307. msm_routing_get_port_mixer,
  9308. msm_routing_put_port_mixer),
  9309. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9310. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9311. msm_routing_get_port_mixer,
  9312. msm_routing_put_port_mixer),
  9313. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9314. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9315. msm_routing_get_port_mixer,
  9316. msm_routing_put_port_mixer),
  9317. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9318. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9319. msm_routing_get_port_mixer,
  9320. msm_routing_put_port_mixer),
  9321. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9322. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9323. msm_routing_get_port_mixer,
  9324. msm_routing_put_port_mixer),
  9325. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9326. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9327. msm_routing_get_port_mixer,
  9328. msm_routing_put_port_mixer),
  9329. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9330. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9331. msm_routing_get_port_mixer,
  9332. msm_routing_put_port_mixer),
  9333. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9334. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9335. msm_routing_get_port_mixer,
  9336. msm_routing_put_port_mixer),
  9337. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9338. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9339. msm_routing_get_port_mixer,
  9340. msm_routing_put_port_mixer),
  9341. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9342. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9343. msm_routing_get_port_mixer,
  9344. msm_routing_put_port_mixer),
  9345. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9346. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9347. msm_routing_get_port_mixer,
  9348. msm_routing_put_port_mixer),
  9349. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9350. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9351. msm_routing_get_port_mixer,
  9352. msm_routing_put_port_mixer),
  9353. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9354. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9355. msm_routing_get_port_mixer,
  9356. msm_routing_put_port_mixer),
  9357. };
  9358. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9359. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9360. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9361. msm_routing_get_port_mixer,
  9362. msm_routing_put_port_mixer),
  9363. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9364. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9365. msm_routing_get_port_mixer,
  9366. msm_routing_put_port_mixer),
  9367. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9368. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9369. msm_routing_get_port_mixer,
  9370. msm_routing_put_port_mixer),
  9371. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9372. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9373. msm_routing_get_port_mixer,
  9374. msm_routing_put_port_mixer),
  9375. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9376. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9377. msm_routing_get_port_mixer,
  9378. msm_routing_put_port_mixer),
  9379. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9381. msm_routing_get_port_mixer,
  9382. msm_routing_put_port_mixer),
  9383. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9385. msm_routing_get_port_mixer,
  9386. msm_routing_put_port_mixer),
  9387. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9388. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9389. msm_routing_get_port_mixer,
  9390. msm_routing_put_port_mixer),
  9391. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9392. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9393. msm_routing_get_port_mixer,
  9394. msm_routing_put_port_mixer),
  9395. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9396. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9397. msm_routing_get_port_mixer,
  9398. msm_routing_put_port_mixer),
  9399. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9400. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9401. msm_routing_get_port_mixer,
  9402. msm_routing_put_port_mixer),
  9403. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9404. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9405. msm_routing_get_port_mixer,
  9406. msm_routing_put_port_mixer),
  9407. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9408. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9409. msm_routing_get_port_mixer,
  9410. msm_routing_put_port_mixer),
  9411. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9412. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9413. msm_routing_get_port_mixer,
  9414. msm_routing_put_port_mixer),
  9415. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9416. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9417. msm_routing_get_port_mixer,
  9418. msm_routing_put_port_mixer),
  9419. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9420. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9421. msm_routing_get_port_mixer,
  9422. msm_routing_put_port_mixer),
  9423. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9424. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9425. msm_routing_get_port_mixer,
  9426. msm_routing_put_port_mixer),
  9427. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9428. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9429. msm_routing_get_port_mixer,
  9430. msm_routing_put_port_mixer),
  9431. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9432. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9433. msm_routing_get_port_mixer,
  9434. msm_routing_put_port_mixer),
  9435. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9436. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9437. msm_routing_get_port_mixer,
  9438. msm_routing_put_port_mixer),
  9439. };
  9440. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9441. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9442. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9443. msm_routing_get_port_mixer,
  9444. msm_routing_put_port_mixer),
  9445. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9446. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9447. msm_routing_get_port_mixer,
  9448. msm_routing_put_port_mixer),
  9449. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9451. msm_routing_get_port_mixer,
  9452. msm_routing_put_port_mixer),
  9453. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9454. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9455. msm_routing_get_port_mixer,
  9456. msm_routing_put_port_mixer),
  9457. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9458. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9459. msm_routing_get_port_mixer,
  9460. msm_routing_put_port_mixer),
  9461. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9462. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9463. msm_routing_get_port_mixer,
  9464. msm_routing_put_port_mixer),
  9465. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9467. msm_routing_get_port_mixer,
  9468. msm_routing_put_port_mixer),
  9469. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9470. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9471. msm_routing_get_port_mixer,
  9472. msm_routing_put_port_mixer),
  9473. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9474. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9475. msm_routing_get_port_mixer,
  9476. msm_routing_put_port_mixer),
  9477. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9478. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9479. msm_routing_get_port_mixer,
  9480. msm_routing_put_port_mixer),
  9481. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9482. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9483. msm_routing_get_port_mixer,
  9484. msm_routing_put_port_mixer),
  9485. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9486. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9487. msm_routing_get_port_mixer,
  9488. msm_routing_put_port_mixer),
  9489. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9490. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9491. msm_routing_get_port_mixer,
  9492. msm_routing_put_port_mixer),
  9493. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9494. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9495. msm_routing_get_port_mixer,
  9496. msm_routing_put_port_mixer),
  9497. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9498. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9499. msm_routing_get_port_mixer,
  9500. msm_routing_put_port_mixer),
  9501. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9502. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9503. msm_routing_get_port_mixer,
  9504. msm_routing_put_port_mixer),
  9505. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9506. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9507. msm_routing_get_port_mixer,
  9508. msm_routing_put_port_mixer),
  9509. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9510. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9511. msm_routing_get_port_mixer,
  9512. msm_routing_put_port_mixer),
  9513. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9514. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9515. msm_routing_get_port_mixer,
  9516. msm_routing_put_port_mixer),
  9517. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9518. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9519. msm_routing_get_port_mixer,
  9520. msm_routing_put_port_mixer),
  9521. };
  9522. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9523. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9524. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9525. msm_routing_get_port_mixer,
  9526. msm_routing_put_port_mixer),
  9527. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9528. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9529. msm_routing_get_port_mixer,
  9530. msm_routing_put_port_mixer),
  9531. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9533. msm_routing_get_port_mixer,
  9534. msm_routing_put_port_mixer),
  9535. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9536. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9537. msm_routing_get_port_mixer,
  9538. msm_routing_put_port_mixer),
  9539. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9540. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9541. msm_routing_get_port_mixer,
  9542. msm_routing_put_port_mixer),
  9543. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9544. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9545. msm_routing_get_port_mixer,
  9546. msm_routing_put_port_mixer),
  9547. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9548. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9549. msm_routing_get_port_mixer,
  9550. msm_routing_put_port_mixer),
  9551. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9552. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9553. msm_routing_get_port_mixer,
  9554. msm_routing_put_port_mixer),
  9555. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9557. msm_routing_get_port_mixer,
  9558. msm_routing_put_port_mixer),
  9559. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9560. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9561. msm_routing_get_port_mixer,
  9562. msm_routing_put_port_mixer),
  9563. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9564. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9565. msm_routing_get_port_mixer,
  9566. msm_routing_put_port_mixer),
  9567. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9568. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9569. msm_routing_get_port_mixer,
  9570. msm_routing_put_port_mixer),
  9571. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9572. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9573. msm_routing_get_port_mixer,
  9574. msm_routing_put_port_mixer),
  9575. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9576. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9577. msm_routing_get_port_mixer,
  9578. msm_routing_put_port_mixer),
  9579. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9580. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9581. msm_routing_get_port_mixer,
  9582. msm_routing_put_port_mixer),
  9583. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9584. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9585. msm_routing_get_port_mixer,
  9586. msm_routing_put_port_mixer),
  9587. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9588. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9589. msm_routing_get_port_mixer,
  9590. msm_routing_put_port_mixer),
  9591. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9592. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9593. msm_routing_get_port_mixer,
  9594. msm_routing_put_port_mixer),
  9595. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9596. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9597. msm_routing_get_port_mixer,
  9598. msm_routing_put_port_mixer),
  9599. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9600. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9601. msm_routing_get_port_mixer,
  9602. msm_routing_put_port_mixer),
  9603. };
  9604. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9605. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9606. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9607. msm_routing_get_port_mixer,
  9608. msm_routing_put_port_mixer),
  9609. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9611. msm_routing_get_port_mixer,
  9612. msm_routing_put_port_mixer),
  9613. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9614. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9615. msm_routing_get_port_mixer,
  9616. msm_routing_put_port_mixer),
  9617. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9618. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9619. msm_routing_get_port_mixer,
  9620. msm_routing_put_port_mixer),
  9621. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9622. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9623. msm_routing_get_port_mixer,
  9624. msm_routing_put_port_mixer),
  9625. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9626. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9627. msm_routing_get_port_mixer,
  9628. msm_routing_put_port_mixer),
  9629. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9630. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9631. msm_routing_get_port_mixer,
  9632. msm_routing_put_port_mixer),
  9633. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9634. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9635. msm_routing_get_port_mixer,
  9636. msm_routing_put_port_mixer),
  9637. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9638. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9639. msm_routing_get_port_mixer,
  9640. msm_routing_put_port_mixer),
  9641. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9642. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9643. msm_routing_get_port_mixer,
  9644. msm_routing_put_port_mixer),
  9645. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9646. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9647. msm_routing_get_port_mixer,
  9648. msm_routing_put_port_mixer),
  9649. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9650. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9651. msm_routing_get_port_mixer,
  9652. msm_routing_put_port_mixer),
  9653. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9654. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9655. msm_routing_get_port_mixer,
  9656. msm_routing_put_port_mixer),
  9657. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9658. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9659. msm_routing_get_port_mixer,
  9660. msm_routing_put_port_mixer),
  9661. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9663. msm_routing_get_port_mixer,
  9664. msm_routing_put_port_mixer),
  9665. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9666. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9667. msm_routing_get_port_mixer,
  9668. msm_routing_put_port_mixer),
  9669. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9670. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9671. msm_routing_get_port_mixer,
  9672. msm_routing_put_port_mixer),
  9673. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9674. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9675. msm_routing_get_port_mixer,
  9676. msm_routing_put_port_mixer),
  9677. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9678. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9679. msm_routing_get_port_mixer,
  9680. msm_routing_put_port_mixer),
  9681. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9682. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9683. msm_routing_get_port_mixer,
  9684. msm_routing_put_port_mixer),
  9685. };
  9686. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9687. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9688. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9689. msm_routing_get_port_mixer,
  9690. msm_routing_put_port_mixer),
  9691. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9692. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9693. msm_routing_get_port_mixer,
  9694. msm_routing_put_port_mixer),
  9695. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9697. msm_routing_get_port_mixer,
  9698. msm_routing_put_port_mixer),
  9699. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9700. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9701. msm_routing_get_port_mixer,
  9702. msm_routing_put_port_mixer),
  9703. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9705. msm_routing_get_port_mixer,
  9706. msm_routing_put_port_mixer),
  9707. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9708. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9709. msm_routing_get_port_mixer,
  9710. msm_routing_put_port_mixer),
  9711. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9712. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9713. msm_routing_get_port_mixer,
  9714. msm_routing_put_port_mixer),
  9715. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9716. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9717. msm_routing_get_port_mixer,
  9718. msm_routing_put_port_mixer),
  9719. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9720. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9721. msm_routing_get_port_mixer,
  9722. msm_routing_put_port_mixer),
  9723. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9724. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9725. msm_routing_get_port_mixer,
  9726. msm_routing_put_port_mixer),
  9727. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9728. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9729. msm_routing_get_port_mixer,
  9730. msm_routing_put_port_mixer),
  9731. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9732. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9733. msm_routing_get_port_mixer,
  9734. msm_routing_put_port_mixer),
  9735. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9736. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9737. msm_routing_get_port_mixer,
  9738. msm_routing_put_port_mixer),
  9739. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9740. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9741. msm_routing_get_port_mixer,
  9742. msm_routing_put_port_mixer),
  9743. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9745. msm_routing_get_port_mixer,
  9746. msm_routing_put_port_mixer),
  9747. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9748. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9749. msm_routing_get_port_mixer,
  9750. msm_routing_put_port_mixer),
  9751. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9752. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9753. msm_routing_get_port_mixer,
  9754. msm_routing_put_port_mixer),
  9755. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9756. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9757. msm_routing_get_port_mixer,
  9758. msm_routing_put_port_mixer),
  9759. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9760. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9761. msm_routing_get_port_mixer,
  9762. msm_routing_put_port_mixer),
  9763. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9764. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9765. msm_routing_get_port_mixer,
  9766. msm_routing_put_port_mixer),
  9767. };
  9768. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9769. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9770. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9771. msm_routing_get_port_mixer,
  9772. msm_routing_put_port_mixer),
  9773. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9774. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9775. msm_routing_get_port_mixer,
  9776. msm_routing_put_port_mixer),
  9777. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9778. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9779. msm_routing_get_port_mixer,
  9780. msm_routing_put_port_mixer),
  9781. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9783. msm_routing_get_port_mixer,
  9784. msm_routing_put_port_mixer),
  9785. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9786. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9787. msm_routing_get_port_mixer,
  9788. msm_routing_put_port_mixer),
  9789. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9790. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9791. msm_routing_get_port_mixer,
  9792. msm_routing_put_port_mixer),
  9793. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9794. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9795. msm_routing_get_port_mixer,
  9796. msm_routing_put_port_mixer),
  9797. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9798. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9799. msm_routing_get_port_mixer,
  9800. msm_routing_put_port_mixer),
  9801. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9802. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9803. msm_routing_get_port_mixer,
  9804. msm_routing_put_port_mixer),
  9805. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9806. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9807. msm_routing_get_port_mixer,
  9808. msm_routing_put_port_mixer),
  9809. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9810. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9811. msm_routing_get_port_mixer,
  9812. msm_routing_put_port_mixer),
  9813. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9814. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9815. msm_routing_get_port_mixer,
  9816. msm_routing_put_port_mixer),
  9817. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9818. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9819. msm_routing_get_port_mixer,
  9820. msm_routing_put_port_mixer),
  9821. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9822. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9823. msm_routing_get_port_mixer,
  9824. msm_routing_put_port_mixer),
  9825. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9826. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9827. msm_routing_get_port_mixer,
  9828. msm_routing_put_port_mixer),
  9829. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9830. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9831. msm_routing_get_port_mixer,
  9832. msm_routing_put_port_mixer),
  9833. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9834. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9835. msm_routing_get_port_mixer,
  9836. msm_routing_put_port_mixer),
  9837. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9838. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9839. msm_routing_get_port_mixer,
  9840. msm_routing_put_port_mixer),
  9841. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9842. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9843. msm_routing_get_port_mixer,
  9844. msm_routing_put_port_mixer),
  9845. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9846. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9847. msm_routing_get_port_mixer,
  9848. msm_routing_put_port_mixer),
  9849. };
  9850. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9851. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9852. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9853. msm_routing_get_port_mixer,
  9854. msm_routing_put_port_mixer),
  9855. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9856. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9857. msm_routing_get_port_mixer,
  9858. msm_routing_put_port_mixer),
  9859. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9860. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9861. msm_routing_get_port_mixer,
  9862. msm_routing_put_port_mixer),
  9863. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9864. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9865. msm_routing_get_port_mixer,
  9866. msm_routing_put_port_mixer),
  9867. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9869. msm_routing_get_port_mixer,
  9870. msm_routing_put_port_mixer),
  9871. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9872. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9873. msm_routing_get_port_mixer,
  9874. msm_routing_put_port_mixer),
  9875. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9876. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9877. msm_routing_get_port_mixer,
  9878. msm_routing_put_port_mixer),
  9879. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9880. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9881. msm_routing_get_port_mixer,
  9882. msm_routing_put_port_mixer),
  9883. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9885. msm_routing_get_port_mixer,
  9886. msm_routing_put_port_mixer),
  9887. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9888. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9889. msm_routing_get_port_mixer,
  9890. msm_routing_put_port_mixer),
  9891. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9892. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9893. msm_routing_get_port_mixer,
  9894. msm_routing_put_port_mixer),
  9895. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9896. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9897. msm_routing_get_port_mixer,
  9898. msm_routing_put_port_mixer),
  9899. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9900. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9901. msm_routing_get_port_mixer,
  9902. msm_routing_put_port_mixer),
  9903. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9904. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9905. msm_routing_get_port_mixer,
  9906. msm_routing_put_port_mixer),
  9907. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9908. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9909. msm_routing_get_port_mixer,
  9910. msm_routing_put_port_mixer),
  9911. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9912. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9913. msm_routing_get_port_mixer,
  9914. msm_routing_put_port_mixer),
  9915. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9917. msm_routing_get_port_mixer,
  9918. msm_routing_put_port_mixer),
  9919. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9920. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9921. msm_routing_get_port_mixer,
  9922. msm_routing_put_port_mixer),
  9923. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9924. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9925. msm_routing_get_port_mixer,
  9926. msm_routing_put_port_mixer),
  9927. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9928. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9929. msm_routing_get_port_mixer,
  9930. msm_routing_put_port_mixer),
  9931. };
  9932. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  9933. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9934. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9935. msm_routing_get_port_mixer,
  9936. msm_routing_put_port_mixer),
  9937. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9938. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9939. msm_routing_get_port_mixer,
  9940. msm_routing_put_port_mixer),
  9941. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9942. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9943. msm_routing_get_port_mixer,
  9944. msm_routing_put_port_mixer),
  9945. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9946. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9947. msm_routing_get_port_mixer,
  9948. msm_routing_put_port_mixer),
  9949. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9951. msm_routing_get_port_mixer,
  9952. msm_routing_put_port_mixer),
  9953. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9955. msm_routing_get_port_mixer,
  9956. msm_routing_put_port_mixer),
  9957. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9959. msm_routing_get_port_mixer,
  9960. msm_routing_put_port_mixer),
  9961. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9962. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9963. msm_routing_get_port_mixer,
  9964. msm_routing_put_port_mixer),
  9965. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9966. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9967. msm_routing_get_port_mixer,
  9968. msm_routing_put_port_mixer),
  9969. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9970. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9971. msm_routing_get_port_mixer,
  9972. msm_routing_put_port_mixer),
  9973. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9974. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9975. msm_routing_get_port_mixer,
  9976. msm_routing_put_port_mixer),
  9977. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9978. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9979. msm_routing_get_port_mixer,
  9980. msm_routing_put_port_mixer),
  9981. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9982. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9983. msm_routing_get_port_mixer,
  9984. msm_routing_put_port_mixer),
  9985. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9986. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9987. msm_routing_get_port_mixer,
  9988. msm_routing_put_port_mixer),
  9989. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9991. msm_routing_get_port_mixer,
  9992. msm_routing_put_port_mixer),
  9993. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9994. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9995. msm_routing_get_port_mixer,
  9996. msm_routing_put_port_mixer),
  9997. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9998. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9999. msm_routing_get_port_mixer,
  10000. msm_routing_put_port_mixer),
  10001. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10002. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10003. msm_routing_get_port_mixer,
  10004. msm_routing_put_port_mixer),
  10005. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10006. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10007. msm_routing_get_port_mixer,
  10008. msm_routing_put_port_mixer),
  10009. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10010. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10011. msm_routing_get_port_mixer,
  10012. msm_routing_put_port_mixer),
  10013. };
  10014. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10015. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10016. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10017. msm_routing_get_port_mixer,
  10018. msm_routing_put_port_mixer),
  10019. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10020. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10021. msm_routing_get_port_mixer,
  10022. msm_routing_put_port_mixer),
  10023. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10024. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10025. msm_routing_get_port_mixer,
  10026. msm_routing_put_port_mixer),
  10027. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10028. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10029. msm_routing_get_port_mixer,
  10030. msm_routing_put_port_mixer),
  10031. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10032. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10033. msm_routing_get_port_mixer,
  10034. msm_routing_put_port_mixer),
  10035. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10037. msm_routing_get_port_mixer,
  10038. msm_routing_put_port_mixer),
  10039. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10040. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10041. msm_routing_get_port_mixer,
  10042. msm_routing_put_port_mixer),
  10043. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10044. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10045. msm_routing_get_port_mixer,
  10046. msm_routing_put_port_mixer),
  10047. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10048. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10049. msm_routing_get_port_mixer,
  10050. msm_routing_put_port_mixer),
  10051. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10052. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10053. msm_routing_get_port_mixer,
  10054. msm_routing_put_port_mixer),
  10055. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10056. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10057. msm_routing_get_port_mixer,
  10058. msm_routing_put_port_mixer),
  10059. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10060. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10061. msm_routing_get_port_mixer,
  10062. msm_routing_put_port_mixer),
  10063. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10064. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10065. msm_routing_get_port_mixer,
  10066. msm_routing_put_port_mixer),
  10067. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10068. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10069. msm_routing_get_port_mixer,
  10070. msm_routing_put_port_mixer),
  10071. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10072. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10073. msm_routing_get_port_mixer,
  10074. msm_routing_put_port_mixer),
  10075. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10076. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10077. msm_routing_get_port_mixer,
  10078. msm_routing_put_port_mixer),
  10079. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10080. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10081. msm_routing_get_port_mixer,
  10082. msm_routing_put_port_mixer),
  10083. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10084. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10085. msm_routing_get_port_mixer,
  10086. msm_routing_put_port_mixer),
  10087. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10088. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10089. msm_routing_get_port_mixer,
  10090. msm_routing_put_port_mixer),
  10091. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10092. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10093. msm_routing_get_port_mixer,
  10094. msm_routing_put_port_mixer),
  10095. };
  10096. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10097. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10099. msm_routing_get_port_mixer,
  10100. msm_routing_put_port_mixer),
  10101. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10102. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10103. msm_routing_get_port_mixer,
  10104. msm_routing_put_port_mixer),
  10105. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10106. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10107. msm_routing_get_port_mixer,
  10108. msm_routing_put_port_mixer),
  10109. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10110. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10111. msm_routing_get_port_mixer,
  10112. msm_routing_put_port_mixer),
  10113. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10114. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10115. msm_routing_get_port_mixer,
  10116. msm_routing_put_port_mixer),
  10117. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10118. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10119. msm_routing_get_port_mixer,
  10120. msm_routing_put_port_mixer),
  10121. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10123. msm_routing_get_port_mixer,
  10124. msm_routing_put_port_mixer),
  10125. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10126. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10127. msm_routing_get_port_mixer,
  10128. msm_routing_put_port_mixer),
  10129. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10130. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10131. msm_routing_get_port_mixer,
  10132. msm_routing_put_port_mixer),
  10133. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10134. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10135. msm_routing_get_port_mixer,
  10136. msm_routing_put_port_mixer),
  10137. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10138. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10139. msm_routing_get_port_mixer,
  10140. msm_routing_put_port_mixer),
  10141. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10142. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10143. msm_routing_get_port_mixer,
  10144. msm_routing_put_port_mixer),
  10145. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10146. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10147. msm_routing_get_port_mixer,
  10148. msm_routing_put_port_mixer),
  10149. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10150. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10151. msm_routing_get_port_mixer,
  10152. msm_routing_put_port_mixer),
  10153. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10154. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10155. msm_routing_get_port_mixer,
  10156. msm_routing_put_port_mixer),
  10157. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10158. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10159. msm_routing_get_port_mixer,
  10160. msm_routing_put_port_mixer),
  10161. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10162. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10163. msm_routing_get_port_mixer,
  10164. msm_routing_put_port_mixer),
  10165. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10166. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10167. msm_routing_get_port_mixer,
  10168. msm_routing_put_port_mixer),
  10169. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10170. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10171. msm_routing_get_port_mixer,
  10172. msm_routing_put_port_mixer),
  10173. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10174. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10175. msm_routing_get_port_mixer,
  10176. msm_routing_put_port_mixer),
  10177. };
  10178. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10179. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10180. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10181. msm_routing_get_port_mixer,
  10182. msm_routing_put_port_mixer),
  10183. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10184. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10185. msm_routing_get_port_mixer,
  10186. msm_routing_put_port_mixer),
  10187. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10188. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10189. msm_routing_get_port_mixer,
  10190. msm_routing_put_port_mixer),
  10191. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10192. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10193. msm_routing_get_port_mixer,
  10194. msm_routing_put_port_mixer),
  10195. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10196. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10197. msm_routing_get_port_mixer,
  10198. msm_routing_put_port_mixer),
  10199. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10200. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10201. msm_routing_get_port_mixer,
  10202. msm_routing_put_port_mixer),
  10203. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10204. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10205. msm_routing_get_port_mixer,
  10206. msm_routing_put_port_mixer),
  10207. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10208. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10209. msm_routing_get_port_mixer,
  10210. msm_routing_put_port_mixer),
  10211. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10212. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10213. msm_routing_get_port_mixer,
  10214. msm_routing_put_port_mixer),
  10215. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10216. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10217. msm_routing_get_port_mixer,
  10218. msm_routing_put_port_mixer),
  10219. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10220. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10221. msm_routing_get_port_mixer,
  10222. msm_routing_put_port_mixer),
  10223. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10224. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10225. msm_routing_get_port_mixer,
  10226. msm_routing_put_port_mixer),
  10227. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10229. msm_routing_get_port_mixer,
  10230. msm_routing_put_port_mixer),
  10231. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10233. msm_routing_get_port_mixer,
  10234. msm_routing_put_port_mixer),
  10235. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10237. msm_routing_get_port_mixer,
  10238. msm_routing_put_port_mixer),
  10239. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10241. msm_routing_get_port_mixer,
  10242. msm_routing_put_port_mixer),
  10243. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10244. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10245. msm_routing_get_port_mixer,
  10246. msm_routing_put_port_mixer),
  10247. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10248. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10249. msm_routing_get_port_mixer,
  10250. msm_routing_put_port_mixer),
  10251. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10252. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10253. msm_routing_get_port_mixer,
  10254. msm_routing_put_port_mixer),
  10255. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10256. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10257. msm_routing_get_port_mixer,
  10258. msm_routing_put_port_mixer),
  10259. };
  10260. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10261. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10262. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10263. msm_routing_get_port_mixer,
  10264. msm_routing_put_port_mixer),
  10265. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10267. msm_routing_get_port_mixer,
  10268. msm_routing_put_port_mixer),
  10269. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10270. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10271. msm_routing_get_port_mixer,
  10272. msm_routing_put_port_mixer),
  10273. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10274. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10275. msm_routing_get_port_mixer,
  10276. msm_routing_put_port_mixer),
  10277. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10278. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10279. msm_routing_get_port_mixer,
  10280. msm_routing_put_port_mixer),
  10281. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10282. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10283. msm_routing_get_port_mixer,
  10284. msm_routing_put_port_mixer),
  10285. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10286. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10287. msm_routing_get_port_mixer,
  10288. msm_routing_put_port_mixer),
  10289. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10291. msm_routing_get_port_mixer,
  10292. msm_routing_put_port_mixer),
  10293. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10294. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10295. msm_routing_get_port_mixer,
  10296. msm_routing_put_port_mixer),
  10297. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10298. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10299. msm_routing_get_port_mixer,
  10300. msm_routing_put_port_mixer),
  10301. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10302. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10303. msm_routing_get_port_mixer,
  10304. msm_routing_put_port_mixer),
  10305. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10306. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10307. msm_routing_get_port_mixer,
  10308. msm_routing_put_port_mixer),
  10309. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10310. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10311. msm_routing_get_port_mixer,
  10312. msm_routing_put_port_mixer),
  10313. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10314. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10315. msm_routing_get_port_mixer,
  10316. msm_routing_put_port_mixer),
  10317. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10318. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10319. msm_routing_get_port_mixer,
  10320. msm_routing_put_port_mixer),
  10321. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10322. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10323. msm_routing_get_port_mixer,
  10324. msm_routing_put_port_mixer),
  10325. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10326. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10327. msm_routing_get_port_mixer,
  10328. msm_routing_put_port_mixer),
  10329. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10330. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10331. msm_routing_get_port_mixer,
  10332. msm_routing_put_port_mixer),
  10333. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10334. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10335. msm_routing_get_port_mixer,
  10336. msm_routing_put_port_mixer),
  10337. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10338. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10339. msm_routing_get_port_mixer,
  10340. msm_routing_put_port_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10343. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10344. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10345. msm_routing_put_port_mixer),
  10346. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10347. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10350. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10351. msm_routing_put_port_mixer),
  10352. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10353. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10354. msm_routing_put_port_mixer),
  10355. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10356. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10357. msm_routing_put_port_mixer),
  10358. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10360. msm_routing_put_port_mixer),
  10361. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10362. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10363. msm_routing_put_port_mixer),
  10364. };
  10365. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10366. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10367. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10371. msm_routing_put_port_mixer),
  10372. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10373. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10374. msm_routing_put_port_mixer),
  10375. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10376. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10377. msm_routing_put_port_mixer),
  10378. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10379. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10380. msm_routing_put_port_mixer),
  10381. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10382. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10383. msm_routing_put_port_mixer),
  10384. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10385. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10386. msm_routing_put_port_mixer),
  10387. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10388. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10389. msm_routing_put_port_mixer),
  10390. };
  10391. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10392. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10393. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10394. msm_routing_put_listen_mixer),
  10395. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10396. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10397. msm_routing_put_listen_mixer),
  10398. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10399. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10400. msm_routing_put_listen_mixer),
  10401. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10402. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10403. msm_routing_put_listen_mixer),
  10404. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10405. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10406. msm_routing_put_listen_mixer),
  10407. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10408. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10409. msm_routing_put_listen_mixer),
  10410. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10411. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10412. msm_routing_put_listen_mixer),
  10413. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10414. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10415. msm_routing_put_listen_mixer),
  10416. };
  10417. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10418. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10420. msm_routing_put_listen_mixer),
  10421. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10422. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10423. msm_routing_put_listen_mixer),
  10424. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10425. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10426. msm_routing_put_listen_mixer),
  10427. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10428. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10429. msm_routing_put_listen_mixer),
  10430. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10431. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10432. msm_routing_put_listen_mixer),
  10433. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10434. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10435. msm_routing_put_listen_mixer),
  10436. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10437. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10438. msm_routing_put_listen_mixer),
  10439. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10440. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10441. msm_routing_put_listen_mixer),
  10442. };
  10443. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10444. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10446. msm_routing_put_listen_mixer),
  10447. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10448. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10449. msm_routing_put_listen_mixer),
  10450. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10451. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10452. msm_routing_put_listen_mixer),
  10453. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10455. msm_routing_put_listen_mixer),
  10456. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10457. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10458. msm_routing_put_listen_mixer),
  10459. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10460. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10461. msm_routing_put_listen_mixer),
  10462. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10463. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10464. msm_routing_put_listen_mixer),
  10465. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10466. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10467. msm_routing_put_listen_mixer),
  10468. };
  10469. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10470. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10471. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10472. msm_routing_put_listen_mixer),
  10473. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10474. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10475. msm_routing_put_listen_mixer),
  10476. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10477. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10478. msm_routing_put_listen_mixer),
  10479. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10481. msm_routing_put_listen_mixer),
  10482. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10483. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10484. msm_routing_put_listen_mixer),
  10485. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10486. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10487. msm_routing_put_listen_mixer),
  10488. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10489. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10490. msm_routing_put_listen_mixer),
  10491. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10492. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10493. msm_routing_put_listen_mixer),
  10494. };
  10495. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10496. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10497. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10498. msm_routing_put_listen_mixer),
  10499. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10501. msm_routing_put_listen_mixer),
  10502. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10503. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10504. msm_routing_put_listen_mixer),
  10505. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10506. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10507. msm_routing_put_listen_mixer),
  10508. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10509. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10510. msm_routing_put_listen_mixer),
  10511. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10512. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10513. msm_routing_put_listen_mixer),
  10514. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10515. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10516. msm_routing_put_listen_mixer),
  10517. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10518. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10519. msm_routing_put_listen_mixer),
  10520. };
  10521. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10522. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10523. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10524. msm_routing_put_listen_mixer),
  10525. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10527. msm_routing_put_listen_mixer),
  10528. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10529. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10530. msm_routing_put_listen_mixer),
  10531. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10532. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10533. msm_routing_put_listen_mixer),
  10534. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10535. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10536. msm_routing_put_listen_mixer),
  10537. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10539. msm_routing_put_listen_mixer),
  10540. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10541. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10542. msm_routing_put_listen_mixer),
  10543. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10544. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10545. msm_routing_put_listen_mixer),
  10546. };
  10547. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10548. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10549. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10550. msm_routing_put_listen_mixer),
  10551. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10552. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10553. msm_routing_put_listen_mixer),
  10554. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10555. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10556. msm_routing_put_listen_mixer),
  10557. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10558. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10559. msm_routing_put_listen_mixer),
  10560. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10561. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10562. msm_routing_put_listen_mixer),
  10563. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10564. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10565. msm_routing_put_listen_mixer),
  10566. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10567. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10568. msm_routing_put_listen_mixer),
  10569. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10570. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10571. msm_routing_put_listen_mixer),
  10572. };
  10573. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10574. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10575. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10576. msm_routing_put_listen_mixer),
  10577. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10578. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10579. msm_routing_put_listen_mixer),
  10580. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10581. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10582. msm_routing_put_listen_mixer),
  10583. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10584. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10585. msm_routing_put_listen_mixer),
  10586. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10587. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10588. msm_routing_put_listen_mixer),
  10589. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10590. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10591. msm_routing_put_listen_mixer),
  10592. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10593. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10594. msm_routing_put_listen_mixer),
  10595. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10596. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10597. msm_routing_put_listen_mixer),
  10598. };
  10599. static const struct snd_kcontrol_new slim_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 slim1_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 slim3_fm_switch_mixer_controls =
  10608. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10609. 0, 1, 0, msm_routing_get_switch_mixer,
  10610. msm_routing_put_switch_mixer);
  10611. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10612. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10613. 0, 1, 0, msm_routing_get_switch_mixer,
  10614. msm_routing_put_switch_mixer);
  10615. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10616. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10617. 0, 1, 0, msm_routing_get_switch_mixer,
  10618. msm_routing_put_switch_mixer);
  10619. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10620. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10621. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10622. msm_routing_put_fm_pcmrx_switch_mixer);
  10623. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10624. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10625. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10626. msm_routing_put_int0_mi2s_switch_mixer);
  10627. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10628. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10629. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10630. msm_routing_put_int4_mi2s_switch_mixer);
  10631. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10632. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10633. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10634. msm_routing_put_pri_mi2s_switch_mixer);
  10635. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10636. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10637. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10638. msm_routing_put_sec_mi2s_switch_mixer);
  10639. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10640. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10641. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10642. msm_routing_put_tert_mi2s_switch_mixer);
  10643. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10644. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10645. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10646. msm_routing_put_quat_mi2s_switch_mixer);
  10647. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10648. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10649. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10650. msm_routing_put_quin_mi2s_switch_mixer);
  10651. static const struct snd_kcontrol_new hfp_pri_aux_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 hfp_aux_switch_mixer_controls =
  10656. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10657. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10658. msm_routing_put_hfp_switch_mixer);
  10659. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10660. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10661. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10662. msm_routing_put_hfp_switch_mixer);
  10663. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10664. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10665. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10666. msm_routing_put_hfp_switch_mixer);
  10667. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10668. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10669. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10670. msm_routing_put_usb_switch_mixer);
  10671. static const struct soc_enum lsm_port_enum =
  10672. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10673. static const char * const lsm_func_text[] = {
  10674. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10675. };
  10676. static const struct soc_enum lsm_func_enum =
  10677. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10678. static const struct snd_kcontrol_new lsm_controls[] = {
  10679. /* kcontrol of lsm_function */
  10680. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10681. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10682. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10683. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10684. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10685. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10686. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10687. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10688. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10689. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10690. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10691. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10692. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10693. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10694. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10695. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10696. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10697. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10698. /* kcontrol of lsm_port */
  10699. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10700. msm_routing_lsm_port_get,
  10701. msm_routing_lsm_port_put),
  10702. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10703. msm_routing_lsm_port_get,
  10704. msm_routing_lsm_port_put),
  10705. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10706. msm_routing_lsm_port_get,
  10707. msm_routing_lsm_port_put),
  10708. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10709. msm_routing_lsm_port_get,
  10710. msm_routing_lsm_port_put),
  10711. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10712. msm_routing_lsm_port_get,
  10713. msm_routing_lsm_port_put),
  10714. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10715. msm_routing_lsm_port_get,
  10716. msm_routing_lsm_port_put),
  10717. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10718. msm_routing_lsm_port_get,
  10719. msm_routing_lsm_port_put),
  10720. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10721. msm_routing_lsm_port_get,
  10722. msm_routing_lsm_port_put),
  10723. };
  10724. static const char * const aanc_slim_0_rx_text[] = {
  10725. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10726. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10727. };
  10728. static const struct soc_enum aanc_slim_0_rx_enum =
  10729. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10730. aanc_slim_0_rx_text);
  10731. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10732. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10733. msm_routing_slim_0_rx_aanc_mux_get,
  10734. msm_routing_slim_0_rx_aanc_mux_put)
  10735. };
  10736. static int msm_routing_get_stereo_to_custom_stereo_control(
  10737. struct snd_kcontrol *kcontrol,
  10738. struct snd_ctl_elem_value *ucontrol)
  10739. {
  10740. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10741. return 0;
  10742. }
  10743. static int msm_routing_put_stereo_to_custom_stereo_control(
  10744. struct snd_kcontrol *kcontrol,
  10745. struct snd_ctl_elem_value *ucontrol)
  10746. {
  10747. int flag = 0, i = 0, rc = 0, idx = 0;
  10748. int be_index = 0, port_id, topo_id;
  10749. unsigned int session_id = 0;
  10750. uint16_t op_FL_ip_FL_weight = 0;
  10751. uint16_t op_FL_ip_FR_weight = 0;
  10752. uint16_t op_FR_ip_FL_weight = 0;
  10753. uint16_t op_FR_ip_FR_weight = 0;
  10754. flag = ucontrol->value.integer.value[0];
  10755. pr_debug("%s E flag %d\n", __func__, flag);
  10756. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10757. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10758. __func__, is_custom_stereo_on, flag);
  10759. return 0;
  10760. }
  10761. is_custom_stereo_on = flag ? true : false;
  10762. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10763. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10764. port_id = msm_bedais[be_index].port_id;
  10765. if (!msm_bedais[be_index].active)
  10766. continue;
  10767. if ((port_id != SLIMBUS_0_RX) &&
  10768. (port_id != RT_PROXY_PORT_001_RX) &&
  10769. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10770. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10771. continue;
  10772. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10773. MSM_FRONTEND_DAI_MM_SIZE) {
  10774. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10775. LEGACY_PCM_MODE)
  10776. goto skip_send_custom_stereo;
  10777. session_id =
  10778. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10779. if (is_custom_stereo_on) {
  10780. op_FL_ip_FL_weight =
  10781. Q14_GAIN_ZERO_POINT_FIVE;
  10782. op_FL_ip_FR_weight =
  10783. Q14_GAIN_ZERO_POINT_FIVE;
  10784. op_FR_ip_FL_weight =
  10785. Q14_GAIN_ZERO_POINT_FIVE;
  10786. op_FR_ip_FR_weight =
  10787. Q14_GAIN_ZERO_POINT_FIVE;
  10788. } else {
  10789. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10790. op_FL_ip_FR_weight = 0;
  10791. op_FR_ip_FL_weight = 0;
  10792. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10793. }
  10794. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10795. unsigned long copp =
  10796. session_copp_map[i]
  10797. [SESSION_TYPE_RX][be_index];
  10798. if (!test_bit(idx, &copp))
  10799. goto skip_send_custom_stereo;
  10800. topo_id = adm_get_topology_for_port_copp_idx(
  10801. msm_bedais[be_index].port_id, idx);
  10802. if (topo_id < 0)
  10803. pr_debug("%s:Err:custom stereo topo %d",
  10804. __func__, topo_id);
  10805. pr_debug("idx %d\n", idx);
  10806. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10807. rc = msm_ds2_dap_set_custom_stereo_onoff
  10808. (msm_bedais[be_index].port_id,
  10809. idx, is_custom_stereo_on);
  10810. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10811. rc = dolby_dap_set_custom_stereo_onoff(
  10812. msm_bedais[be_index].port_id,
  10813. idx, is_custom_stereo_on);
  10814. else
  10815. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10816. (msm_bedais[be_index].port_id,
  10817. idx, session_id,
  10818. op_FL_ip_FL_weight,
  10819. op_FL_ip_FR_weight,
  10820. op_FR_ip_FL_weight,
  10821. op_FR_ip_FR_weight);
  10822. if (rc < 0)
  10823. skip_send_custom_stereo:
  10824. pr_err("%s: err setting custom stereo\n",
  10825. __func__);
  10826. }
  10827. }
  10828. }
  10829. return 0;
  10830. }
  10831. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10832. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10833. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10834. msm_routing_put_stereo_to_custom_stereo_control),
  10835. };
  10836. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10837. struct snd_ctl_elem_value *ucontrol)
  10838. {
  10839. return 0;
  10840. }
  10841. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10842. struct snd_ctl_elem_value *ucontrol)
  10843. {
  10844. int i = 0, j;
  10845. int num_app_types = ucontrol->value.integer.value[i++];
  10846. pr_debug("%s\n", __func__);
  10847. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10848. sizeof(struct msm_pcm_routing_app_type_data));
  10849. if (num_app_types > MAX_APP_TYPES) {
  10850. pr_err("%s: number of app types exceed the max supported\n",
  10851. __func__);
  10852. return -EINVAL;
  10853. }
  10854. for (j = 0; j < num_app_types; j++) {
  10855. app_type_cfg[j].app_type =
  10856. ucontrol->value.integer.value[i++];
  10857. app_type_cfg[j].sample_rate =
  10858. ucontrol->value.integer.value[i++];
  10859. app_type_cfg[j].bit_width =
  10860. ucontrol->value.integer.value[i++];
  10861. }
  10862. return 0;
  10863. }
  10864. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10865. struct snd_ctl_elem_value *ucontrol)
  10866. {
  10867. int j, fe_id, be_id, port_type;
  10868. int ret = 0;
  10869. unsigned long copp;
  10870. struct msm_pcm_routing_bdai_data *bedai;
  10871. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10872. SESSION_TYPE_RX;
  10873. int app_type = ucontrol->value.integer.value[1];
  10874. int gain = (ucontrol->value.integer.value[2] +
  10875. ucontrol->value.integer.value[3])/2;
  10876. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10877. MSM_AFE_PORT_TYPE_TX;
  10878. mutex_lock(&routing_lock);
  10879. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10880. if (is_be_dai_extproc(be_id))
  10881. continue;
  10882. bedai = &msm_bedais[be_id];
  10883. if (afe_get_port_type(bedai->port_id) != port_type)
  10884. continue;
  10885. if (!bedai->active)
  10886. continue;
  10887. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10888. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10889. continue;
  10890. if (app_type !=
  10891. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10892. continue;
  10893. copp = session_copp_map[fe_id][dir][be_id];
  10894. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  10895. if (!test_bit(j, &copp))
  10896. continue;
  10897. ret |= adm_set_volume(bedai->port_id, j, gain);
  10898. }
  10899. }
  10900. }
  10901. mutex_unlock(&routing_lock);
  10902. return ret ? -EINVAL : 0;
  10903. }
  10904. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  10905. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  10906. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  10907. msm_routing_put_app_type_cfg_control),
  10908. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  10909. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  10910. };
  10911. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  10912. struct snd_ctl_elem_value *ucontrol)
  10913. {
  10914. int copp_idx, fe_id, be_id, port_type;
  10915. int ret = 0;
  10916. unsigned long copp;
  10917. struct msm_pcm_routing_bdai_data *bedai;
  10918. char *param_data = NULL;
  10919. uint32_t *update_param_data = NULL;
  10920. uint32_t param_size = sizeof(uint32_t) +
  10921. sizeof(struct adm_param_data_v5);
  10922. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10923. SESSION_TYPE_RX;
  10924. int app_type = ucontrol->value.integer.value[1];
  10925. int module_id = ucontrol->value.integer.value[2];
  10926. int instance_id = ucontrol->value.integer.value[3];
  10927. int param_id = ucontrol->value.integer.value[4];
  10928. int param_value = ucontrol->value.integer.value[5];
  10929. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10930. MSM_AFE_PORT_TYPE_TX;
  10931. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  10932. __func__, app_type, module_id,
  10933. instance_id, param_id, param_value);
  10934. param_data = kzalloc(param_size, GFP_KERNEL);
  10935. if (!param_data)
  10936. return -ENOMEM;
  10937. update_param_data = (uint32_t *)param_data;
  10938. *update_param_data++ = module_id;
  10939. *update_param_data++ = param_id;
  10940. *update_param_data++ = sizeof(uint32_t);
  10941. *update_param_data++ = param_value;
  10942. mutex_lock(&routing_lock);
  10943. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10944. if (is_be_dai_extproc(be_id))
  10945. continue;
  10946. bedai = &msm_bedais[be_id];
  10947. if (afe_get_port_type(bedai->port_id) != port_type)
  10948. continue;
  10949. if (!bedai->active)
  10950. continue;
  10951. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10952. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10953. continue;
  10954. if (app_type !=
  10955. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10956. continue;
  10957. copp = session_copp_map[fe_id][dir][be_id];
  10958. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  10959. copp_idx++) {
  10960. if (!test_bit(copp_idx, &copp))
  10961. continue;
  10962. ret = adm_send_params_v5(bedai->port_id,
  10963. copp_idx,
  10964. param_data,
  10965. param_size);
  10966. if (ret) {
  10967. pr_err("%s: Setting param failed with err=%d\n",
  10968. __func__, ret);
  10969. ret = -EINVAL;
  10970. goto done;
  10971. }
  10972. }
  10973. }
  10974. }
  10975. done:
  10976. mutex_unlock(&routing_lock);
  10977. kfree(param_data);
  10978. return ret;
  10979. }
  10980. static const struct snd_kcontrol_new module_cfg_controls[] = {
  10981. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  10982. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  10983. };
  10984. static int msm_routing_get_lsm_app_type_cfg_control(
  10985. struct snd_kcontrol *kcontrol,
  10986. struct snd_ctl_elem_value *ucontrol)
  10987. {
  10988. return 0;
  10989. }
  10990. static int msm_routing_put_lsm_app_type_cfg_control(
  10991. struct snd_kcontrol *kcontrol,
  10992. struct snd_ctl_elem_value *ucontrol)
  10993. {
  10994. int i = 0, j;
  10995. int num_app_types = ucontrol->value.integer.value[i++];
  10996. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  10997. sizeof(struct msm_pcm_routing_app_type_data));
  10998. if (num_app_types > MAX_APP_TYPES) {
  10999. pr_err("%s: number of app types exceed the max supported\n",
  11000. __func__);
  11001. return -EINVAL;
  11002. }
  11003. for (j = 0; j < num_app_types; j++) {
  11004. lsm_app_type_cfg[j].app_type =
  11005. ucontrol->value.integer.value[i++];
  11006. lsm_app_type_cfg[j].sample_rate =
  11007. ucontrol->value.integer.value[i++];
  11008. lsm_app_type_cfg[j].bit_width =
  11009. ucontrol->value.integer.value[i++];
  11010. }
  11011. return 0;
  11012. }
  11013. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11014. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11015. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11016. msm_routing_put_lsm_app_type_cfg_control),
  11017. };
  11018. static int msm_routing_get_use_ds1_or_ds2_control(
  11019. struct snd_kcontrol *kcontrol,
  11020. struct snd_ctl_elem_value *ucontrol)
  11021. {
  11022. ucontrol->value.integer.value[0] = is_ds2_on;
  11023. return 0;
  11024. }
  11025. static int msm_routing_put_use_ds1_or_ds2_control(
  11026. struct snd_kcontrol *kcontrol,
  11027. struct snd_ctl_elem_value *ucontrol)
  11028. {
  11029. is_ds2_on = ucontrol->value.integer.value[0];
  11030. return 0;
  11031. }
  11032. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11033. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11034. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11035. msm_routing_put_use_ds1_or_ds2_control),
  11036. };
  11037. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11038. struct snd_ctl_elem_value *ucontrol) {
  11039. int rc = 0;
  11040. int be_idx = 0;
  11041. char *param_value;
  11042. int *update_param_value;
  11043. uint32_t param_length = sizeof(uint32_t);
  11044. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11045. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11046. if (!param_value)
  11047. return -ENOMEM;
  11048. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11049. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11050. break;
  11051. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11052. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11053. RMS_MODULEID_APPI_PASSTHRU,
  11054. RMS_PARAM_FIRST_SAMPLE,
  11055. param_length + param_payload_len,
  11056. param_value);
  11057. if (rc) {
  11058. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11059. kfree(param_value);
  11060. return -EINVAL;
  11061. }
  11062. update_param_value = (int *)param_value;
  11063. ucontrol->value.integer.value[0] = update_param_value[0];
  11064. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11065. __func__, update_param_value[0]);
  11066. }
  11067. kfree(param_value);
  11068. return 0;
  11069. }
  11070. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11071. struct snd_ctl_elem_value *ucontrol)
  11072. {
  11073. voc_session_id = ucontrol->value.integer.value[0];
  11074. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11075. return 0;
  11076. }
  11077. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11078. struct snd_ctl_elem_value *ucontrol)
  11079. {
  11080. ucontrol->value.integer.value[0] = voc_session_id;
  11081. return 0;
  11082. }
  11083. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11084. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11085. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11086. msm_voc_session_id_put),
  11087. };
  11088. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11089. struct snd_ctl_elem_info *uinfo)
  11090. {
  11091. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11092. uinfo->count = sizeof(struct sound_focus_param);
  11093. return 0;
  11094. }
  11095. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11096. struct snd_ctl_elem_value *ucontrol)
  11097. {
  11098. int ret = 0;
  11099. struct sound_focus_param soundFocusData;
  11100. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11101. sizeof(struct sound_focus_param));
  11102. ret = voc_set_sound_focus(soundFocusData);
  11103. if (ret) {
  11104. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11105. __func__, ret);
  11106. ret = -EINVAL;
  11107. }
  11108. return ret;
  11109. }
  11110. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11111. struct snd_ctl_elem_value *ucontrol)
  11112. {
  11113. int ret = 0;
  11114. struct sound_focus_param soundFocusData;
  11115. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11116. ret = voc_get_sound_focus(&soundFocusData);
  11117. if (ret) {
  11118. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11119. __func__, ret);
  11120. ret = -EINVAL;
  11121. goto done;
  11122. }
  11123. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11124. sizeof(struct sound_focus_param));
  11125. done:
  11126. return ret;
  11127. }
  11128. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11129. struct snd_ctl_elem_info *uinfo)
  11130. {
  11131. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11132. uinfo->count = sizeof(struct source_tracking_param);
  11133. return 0;
  11134. }
  11135. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11136. struct snd_ctl_elem_value *ucontrol)
  11137. {
  11138. int ret = 0;
  11139. struct source_tracking_param sourceTrackingData;
  11140. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11141. ret = voc_get_source_tracking(&sourceTrackingData);
  11142. if (ret) {
  11143. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11144. __func__, ret);
  11145. ret = -EINVAL;
  11146. goto done;
  11147. }
  11148. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11149. sizeof(struct source_tracking_param));
  11150. done:
  11151. return ret;
  11152. }
  11153. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11154. int *copp_idx)
  11155. {
  11156. int i, idx, be_idx;
  11157. int ret = 0;
  11158. unsigned long copp;
  11159. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11160. ret = q6audio_validate_port(port_id);
  11161. if (ret < 0) {
  11162. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11163. __func__, port_id, ret);
  11164. ret = -EINVAL;
  11165. goto done;
  11166. }
  11167. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11168. if (msm_bedais[be_idx].port_id == port_id)
  11169. break;
  11170. }
  11171. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11172. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11173. ret = -EINVAL;
  11174. goto done;
  11175. }
  11176. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11177. MSM_FRONTEND_DAI_MM_SIZE) {
  11178. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11179. copp = session_copp_map[i]
  11180. [session_type][be_idx];
  11181. if (test_bit(idx, &copp))
  11182. break;
  11183. }
  11184. if (idx >= MAX_COPPS_PER_PORT)
  11185. continue;
  11186. else
  11187. break;
  11188. }
  11189. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11190. pr_err("%s: Invalid FE, exiting\n", __func__);
  11191. ret = -EINVAL;
  11192. goto done;
  11193. }
  11194. *copp_idx = idx;
  11195. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11196. done:
  11197. return ret;
  11198. }
  11199. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11200. const char *prefix, int *port_id)
  11201. {
  11202. int ret = 0;
  11203. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11204. /*
  11205. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11206. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11207. * and compare the string with the backend name to derive the port id.
  11208. */
  11209. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11210. "SLIMBUS_0")) {
  11211. *port_id = SLIMBUS_0_TX;
  11212. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11213. "TERT_MI2S")) {
  11214. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11215. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11216. "INT3_MI2S")) {
  11217. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11218. } else {
  11219. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11220. __func__, kcontrol->id.name);
  11221. ret = -EINVAL;
  11222. goto done;
  11223. }
  11224. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11225. __func__, kcontrol->id.name, *port_id);
  11226. done:
  11227. return ret;
  11228. }
  11229. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11230. struct snd_ctl_elem_value *ucontrol)
  11231. {
  11232. int ret = 0;
  11233. struct sound_focus_param soundFocusData;
  11234. int port_id, copp_idx;
  11235. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11236. "Sound Focus Audio Tx ", &port_id);
  11237. if (ret != 0) {
  11238. pr_err("%s: Error in deriving port id, err=%d\n",
  11239. __func__, ret);
  11240. ret = -EINVAL;
  11241. goto done;
  11242. }
  11243. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11244. &copp_idx);
  11245. if (ret) {
  11246. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11247. __func__, port_id);
  11248. ret = -EINVAL;
  11249. goto done;
  11250. }
  11251. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11252. sizeof(struct sound_focus_param));
  11253. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11254. if (ret) {
  11255. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11256. __func__, ret);
  11257. ret = -EINVAL;
  11258. goto done;
  11259. }
  11260. done:
  11261. return ret;
  11262. }
  11263. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11264. struct snd_ctl_elem_value *ucontrol)
  11265. {
  11266. int ret = 0;
  11267. struct sound_focus_param soundFocusData;
  11268. int port_id, copp_idx;
  11269. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11270. "Sound Focus Audio Tx ", &port_id);
  11271. if (ret) {
  11272. pr_err("%s: Error in deriving port id, err=%d\n",
  11273. __func__, ret);
  11274. ret = -EINVAL;
  11275. goto done;
  11276. }
  11277. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11278. &copp_idx);
  11279. if (ret) {
  11280. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11281. __func__, port_id);
  11282. ret = -EINVAL;
  11283. goto done;
  11284. }
  11285. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11286. if (ret) {
  11287. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11288. __func__, ret);
  11289. ret = -EINVAL;
  11290. goto done;
  11291. }
  11292. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11293. sizeof(struct sound_focus_param));
  11294. done:
  11295. return ret;
  11296. }
  11297. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11298. struct snd_ctl_elem_value *ucontrol)
  11299. {
  11300. int ret = 0;
  11301. struct source_tracking_param sourceTrackingData;
  11302. int port_id, copp_idx;
  11303. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11304. "Source Tracking Audio Tx ", &port_id);
  11305. if (ret) {
  11306. pr_err("%s: Error in deriving port id, err=%d\n",
  11307. __func__, ret);
  11308. ret = -EINVAL;
  11309. goto done;
  11310. }
  11311. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11312. &copp_idx);
  11313. if (ret) {
  11314. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11315. __func__, port_id);
  11316. ret = -EINVAL;
  11317. goto done;
  11318. }
  11319. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11320. if (ret) {
  11321. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11322. __func__, ret);
  11323. ret = -EINVAL;
  11324. goto done;
  11325. }
  11326. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11327. sizeof(struct source_tracking_param));
  11328. done:
  11329. return ret;
  11330. }
  11331. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11332. {
  11333. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11334. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11335. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11336. .info = msm_sound_focus_info,
  11337. .get = msm_voice_sound_focus_get,
  11338. .put = msm_voice_sound_focus_put,
  11339. },
  11340. {
  11341. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11342. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11343. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11344. .info = msm_source_tracking_info,
  11345. .get = msm_voice_source_tracking_get,
  11346. },
  11347. {
  11348. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11350. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11351. .info = msm_sound_focus_info,
  11352. .get = msm_audio_sound_focus_get,
  11353. .put = msm_audio_sound_focus_put,
  11354. },
  11355. {
  11356. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11357. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11358. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11359. .info = msm_source_tracking_info,
  11360. .get = msm_audio_source_tracking_get,
  11361. },
  11362. {
  11363. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11364. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11365. .name = "Sound Focus Voice Tx TERT_MI2S",
  11366. .info = msm_sound_focus_info,
  11367. .get = msm_voice_sound_focus_get,
  11368. .put = msm_voice_sound_focus_put,
  11369. },
  11370. {
  11371. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11372. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11373. .name = "Source Tracking Voice Tx TERT_MI2S",
  11374. .info = msm_source_tracking_info,
  11375. .get = msm_voice_source_tracking_get,
  11376. },
  11377. {
  11378. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11380. .name = "Sound Focus Audio Tx TERT_MI2S",
  11381. .info = msm_sound_focus_info,
  11382. .get = msm_audio_sound_focus_get,
  11383. .put = msm_audio_sound_focus_put,
  11384. },
  11385. {
  11386. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11387. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11388. .name = "Source Tracking Audio Tx TERT_MI2S",
  11389. .info = msm_source_tracking_info,
  11390. .get = msm_audio_source_tracking_get,
  11391. },
  11392. {
  11393. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11394. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11395. .name = "Sound Focus Voice Tx INT3_MI2S",
  11396. .info = msm_sound_focus_info,
  11397. .get = msm_voice_sound_focus_get,
  11398. .put = msm_voice_sound_focus_put,
  11399. },
  11400. {
  11401. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11403. .name = "Source Tracking Voice Tx INT3_MI2S",
  11404. .info = msm_source_tracking_info,
  11405. .get = msm_voice_source_tracking_get,
  11406. },
  11407. {
  11408. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11410. .name = "Sound Focus Audio Tx INT3_MI2S",
  11411. .info = msm_sound_focus_info,
  11412. .get = msm_audio_sound_focus_get,
  11413. .put = msm_audio_sound_focus_put,
  11414. },
  11415. {
  11416. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11417. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11418. .name = "Source Tracking Audio Tx INT3_MI2S",
  11419. .info = msm_source_tracking_info,
  11420. .get = msm_audio_source_tracking_get,
  11421. },
  11422. };
  11423. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11424. struct snd_ctl_elem_value *ucontrol)
  11425. {
  11426. int ret = 0;
  11427. int item;
  11428. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11429. pr_debug("%s item is %d\n", __func__,
  11430. ucontrol->value.enumerated.item[0]);
  11431. mutex_lock(&routing_lock);
  11432. item = ucontrol->value.enumerated.item[0];
  11433. if (item < e->items) {
  11434. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11435. __func__, e->shift_l, e->values[item]);
  11436. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11437. e->values[item] < MSM_BACKEND_DAI_MAX)
  11438. /* Enable feedback TX path */
  11439. ret = afe_spk_prot_feed_back_cfg(
  11440. msm_bedais[e->values[item]].port_id,
  11441. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11442. else {
  11443. pr_debug("%s values are out of range item %d\n",
  11444. __func__, e->values[item]);
  11445. /* Disable feedback TX path */
  11446. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11447. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11448. else
  11449. ret = -EINVAL;
  11450. }
  11451. } else {
  11452. pr_err("%s item value is out of range item\n", __func__);
  11453. ret = -EINVAL;
  11454. }
  11455. mutex_unlock(&routing_lock);
  11456. return ret;
  11457. }
  11458. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11459. struct snd_ctl_elem_value *ucontrol)
  11460. {
  11461. int ret = 0;
  11462. int item;
  11463. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11464. pr_debug("%s item is %d\n", __func__,
  11465. ucontrol->value.enumerated.item[0]);
  11466. mutex_lock(&routing_lock);
  11467. item = ucontrol->value.enumerated.item[0];
  11468. if (item < e->items) {
  11469. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11470. __func__, e->shift_l, e->values[item]);
  11471. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11472. e->values[item] < MSM_BACKEND_DAI_MAX)
  11473. /* Enable feedback TX path */
  11474. ret = afe_spk_prot_feed_back_cfg(
  11475. msm_bedais[e->values[item]].port_id,
  11476. msm_bedais[e->shift_l].port_id,
  11477. 1, 1, 1);
  11478. else {
  11479. pr_debug("%s values are out of range item %d\n",
  11480. __func__, e->values[item]);
  11481. /* Disable feedback TX path */
  11482. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11483. ret = afe_spk_prot_feed_back_cfg(0,
  11484. 0, 0, 0, 0);
  11485. else
  11486. ret = -EINVAL;
  11487. }
  11488. } else {
  11489. pr_err("%s item value is out of range item\n", __func__);
  11490. ret = -EINVAL;
  11491. }
  11492. mutex_unlock(&routing_lock);
  11493. return ret;
  11494. }
  11495. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11496. struct snd_ctl_elem_value *ucontrol)
  11497. {
  11498. pr_debug("%s\n", __func__);
  11499. return 0;
  11500. }
  11501. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11502. struct snd_ctl_elem_value *ucontrol)
  11503. {
  11504. pr_debug("%s\n", __func__);
  11505. ucontrol->value.enumerated.item[0] = 0;
  11506. return 0;
  11507. }
  11508. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11509. "ZERO", "SLIM4_TX"
  11510. };
  11511. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11512. "ZERO", "SLIM4_TX"
  11513. };
  11514. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11515. "ZERO", "SENARY_TX"
  11516. };
  11517. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11518. "ZERO", "INT5_MI2S_TX"
  11519. };
  11520. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11521. "ZERO", "INT5_MI2S_TX"
  11522. };
  11523. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11524. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11525. };
  11526. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11527. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11528. };
  11529. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11530. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11531. };
  11532. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11533. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11534. };
  11535. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11536. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11537. };
  11538. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11539. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11540. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11541. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11542. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11543. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11544. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11545. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11546. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11547. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11548. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11549. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11550. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11551. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11552. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11553. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11554. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11555. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11556. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11557. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11558. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11559. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11560. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11561. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11562. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11563. spkr_prot_put_vi_lch_port);
  11564. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11565. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11566. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11567. spkr_prot_put_vi_rch_port);
  11568. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11569. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11570. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11571. spkr_prot_put_vi_lch_port);
  11572. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11573. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11574. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11575. spkr_prot_put_vi_lch_port);
  11576. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11577. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11578. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11579. spkr_prot_put_vi_rch_port);
  11580. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11581. /* Frontend AIF */
  11582. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11583. * Stream name must contains substring of front-end dai name
  11584. */
  11585. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11586. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11587. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11588. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11589. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11590. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11591. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11592. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11593. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11594. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11595. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11596. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11597. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11598. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11599. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11600. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11601. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11602. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11603. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11604. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11605. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11606. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11607. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11608. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11609. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11610. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11611. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11612. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11613. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11614. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11615. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11616. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11617. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11618. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11619. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11620. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11621. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11622. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11623. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11624. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11625. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11626. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11627. 0, 0, 0, 0),
  11628. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11629. 0, 0, 0, 0),
  11630. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11631. 0, 0, 0, 0),
  11632. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11633. 0, 0, 0, 0),
  11634. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11635. 0, 0, 0, 0),
  11636. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11637. 0, 0, 0, 0),
  11638. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11639. 0, 0, 0, 0),
  11640. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11641. 0, 0, 0, 0),
  11642. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11643. 0, 0, 0, 0),
  11644. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11645. 0, 0, 0, 0),
  11646. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11647. 0, 0, 0, 0),
  11648. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11649. 0, 0, 0, 0),
  11650. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11651. 0, 0, 0, 0),
  11652. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11653. 0, 0, 0, 0),
  11654. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11655. 0, 0, 0, 0),
  11656. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11657. 0, 0, 0, 0),
  11658. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11659. 0, 0, 0, 0),
  11660. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11661. 0, 0, 0, 0),
  11662. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11663. 0, 0, 0, 0),
  11664. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11665. 0, 0, 0, 0),
  11666. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11667. 0, 0, 0, 0),
  11668. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11669. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11670. 0, 0, 0, 0),
  11671. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11672. "INT0 MI2S_RX Hostless Playback",
  11673. 0, 0, 0, 0),
  11674. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11675. "INT4 MI2S_RX Hostless Playback",
  11676. 0, 0, 0, 0),
  11677. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11678. "Primary MI2S_RX Hostless Playback",
  11679. 0, 0, 0, 0),
  11680. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11681. "Secondary MI2S_RX Hostless Playback",
  11682. 0, 0, 0, 0),
  11683. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11684. "Tertiary MI2S_RX Hostless Playback",
  11685. 0, 0, 0, 0),
  11686. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11687. "Quaternary MI2S_RX Hostless Playback",
  11688. 0, 0, 0, 0),
  11689. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11690. "Quinary MI2S_RX Hostless Playback",
  11691. 0, 0, 0, 0),
  11692. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11693. 0, 0, 0, 0),
  11694. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11695. 0, 0, 0, 0),
  11696. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11697. 0, 0, 0, 0),
  11698. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11699. "INT3 MI2S_TX Hostless Capture",
  11700. 0, 0, 0, 0),
  11701. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11702. "Tertiary MI2S_TX Hostless Capture",
  11703. 0, 0, 0, 0),
  11704. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11705. "Secondary MI2S_TX Hostless Capture",
  11706. 0, 0, 0, 0),
  11707. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11708. "Primary MI2S_TX Hostless Capture",
  11709. 0, 0, 0, 0),
  11710. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11711. 0, 0, 0, 0),
  11712. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11713. 0, 0, 0, 0),
  11714. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11715. "Quaternary MI2S_TX Hostless Capture",
  11716. 0, 0, 0, 0),
  11717. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11718. "Quinary MI2S_TX Hostless Capture",
  11719. 0, 0, 0, 0),
  11720. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11721. "Primary TDM0 Hostless Playback",
  11722. 0, 0, 0, 0),
  11723. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11724. "Primary TDM0 Hostless Capture",
  11725. 0, 0, 0, 0),
  11726. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11727. "Primary TDM1 Hostless Playback",
  11728. 0, 0, 0, 0),
  11729. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11730. "Primary TDM1 Hostless Capture",
  11731. 0, 0, 0, 0),
  11732. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11733. "Primary TDM2 Hostless Playback",
  11734. 0, 0, 0, 0),
  11735. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11736. "Primary TDM2 Hostless Capture",
  11737. 0, 0, 0, 0),
  11738. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11739. "Primary TDM3 Hostless Playback",
  11740. 0, 0, 0, 0),
  11741. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11742. "Primary TDM3 Hostless Capture",
  11743. 0, 0, 0, 0),
  11744. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11745. "Primary TDM4 Hostless Playback",
  11746. 0, 0, 0, 0),
  11747. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11748. "Primary TDM4 Hostless Capture",
  11749. 0, 0, 0, 0),
  11750. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11751. "Primary TDM5 Hostless Playback",
  11752. 0, 0, 0, 0),
  11753. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11754. "Primary TDM5 Hostless Capture",
  11755. 0, 0, 0, 0),
  11756. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11757. "Primary TDM6 Hostless Playback",
  11758. 0, 0, 0, 0),
  11759. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11760. "Primary TDM6 Hostless Capture",
  11761. 0, 0, 0, 0),
  11762. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11763. "Primary TDM7 Hostless Playback",
  11764. 0, 0, 0, 0),
  11765. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11766. "Primary TDM7 Hostless Capture",
  11767. 0, 0, 0, 0),
  11768. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11769. "Secondary TDM0 Hostless Playback",
  11770. 0, 0, 0, 0),
  11771. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11772. "Secondary TDM0 Hostless Capture",
  11773. 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11775. "Secondary TDM1 Hostless Playback",
  11776. 0, 0, 0, 0),
  11777. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11778. "Secondary TDM1 Hostless Capture",
  11779. 0, 0, 0, 0),
  11780. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11781. "Secondary TDM2 Hostless Playback",
  11782. 0, 0, 0, 0),
  11783. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11784. "Secondary TDM2 Hostless Capture",
  11785. 0, 0, 0, 0),
  11786. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11787. "Secondary TDM3 Hostless Playback",
  11788. 0, 0, 0, 0),
  11789. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11790. "Secondary TDM3 Hostless Capture",
  11791. 0, 0, 0, 0),
  11792. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11793. "Secondary TDM4 Hostless Playback",
  11794. 0, 0, 0, 0),
  11795. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11796. "Secondary TDM4 Hostless Capture",
  11797. 0, 0, 0, 0),
  11798. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11799. "Secondary TDM5 Hostless Playback",
  11800. 0, 0, 0, 0),
  11801. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11802. "Secondary TDM5 Hostless Capture",
  11803. 0, 0, 0, 0),
  11804. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11805. "Secondary TDM6 Hostless Playback",
  11806. 0, 0, 0, 0),
  11807. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11808. "Secondary TDM6 Hostless Capture",
  11809. 0, 0, 0, 0),
  11810. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11811. "Secondary TDM7 Hostless Playback",
  11812. 0, 0, 0, 0),
  11813. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11814. "Secondary TDM7 Hostless Capture",
  11815. 0, 0, 0, 0),
  11816. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11817. "Tertiary TDM0 Hostless Playback",
  11818. 0, 0, 0, 0),
  11819. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11820. "Tertiary TDM0 Hostless Capture",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11823. "Tertiary TDM1 Hostless Playback",
  11824. 0, 0, 0, 0),
  11825. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11826. "Tertiary TDM1 Hostless Capture",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11829. "Tertiary TDM2 Hostless Playback",
  11830. 0, 0, 0, 0),
  11831. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11832. "Tertiary TDM2 Hostless Capture",
  11833. 0, 0, 0, 0),
  11834. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11835. "Tertiary TDM3 Hostless Playback",
  11836. 0, 0, 0, 0),
  11837. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11838. "Tertiary TDM3 Hostless Capture",
  11839. 0, 0, 0, 0),
  11840. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11841. "Tertiary TDM4 Hostless Playback",
  11842. 0, 0, 0, 0),
  11843. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11844. "Tertiary TDM4 Hostless Capture",
  11845. 0, 0, 0, 0),
  11846. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11847. "Tertiary TDM5 Hostless Playback",
  11848. 0, 0, 0, 0),
  11849. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11850. "Tertiary TDM5 Hostless Capture",
  11851. 0, 0, 0, 0),
  11852. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11853. "Tertiary TDM6 Hostless Playback",
  11854. 0, 0, 0, 0),
  11855. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11856. "Tertiary TDM6 Hostless Capture",
  11857. 0, 0, 0, 0),
  11858. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11859. "Tertiary TDM7 Hostless Playback",
  11860. 0, 0, 0, 0),
  11861. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11862. "Tertiary TDM7 Hostless Capture",
  11863. 0, 0, 0, 0),
  11864. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11865. "Quaternary TDM0 Hostless Playback",
  11866. 0, 0, 0, 0),
  11867. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11868. "Quaternary TDM0 Hostless Capture",
  11869. 0, 0, 0, 0),
  11870. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11871. "Quaternary TDM1 Hostless Playback",
  11872. 0, 0, 0, 0),
  11873. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11874. "Quaternary TDM1 Hostless Capture",
  11875. 0, 0, 0, 0),
  11876. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11877. "Quaternary TDM2 Hostless Playback",
  11878. 0, 0, 0, 0),
  11879. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11880. "Quaternary TDM2 Hostless Capture",
  11881. 0, 0, 0, 0),
  11882. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11883. "Quaternary TDM3 Hostless Playback",
  11884. 0, 0, 0, 0),
  11885. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11886. "Quaternary TDM3 Hostless Capture",
  11887. 0, 0, 0, 0),
  11888. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11889. "Quaternary TDM4 Hostless Playback",
  11890. 0, 0, 0, 0),
  11891. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11892. "Quaternary TDM4 Hostless Capture",
  11893. 0, 0, 0, 0),
  11894. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11895. "Quaternary TDM5 Hostless Playback",
  11896. 0, 0, 0, 0),
  11897. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11898. "Quaternary TDM5 Hostless Capture",
  11899. 0, 0, 0, 0),
  11900. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11901. "Quaternary TDM6 Hostless Playback",
  11902. 0, 0, 0, 0),
  11903. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11904. "Quaternary TDM6 Hostless Capture",
  11905. 0, 0, 0, 0),
  11906. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11907. "Quaternary TDM7 Hostless Playback",
  11908. 0, 0, 0, 0),
  11909. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11910. "Quaternary TDM7 Hostless Capture",
  11911. 0, 0, 0, 0),
  11912. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  11913. "Quinary TDM0 Hostless Playback",
  11914. 0, 0, 0, 0),
  11915. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  11916. "Quinary TDM0 Hostless Capture",
  11917. 0, 0, 0, 0),
  11918. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  11919. "Quinary TDM1 Hostless Playback",
  11920. 0, 0, 0, 0),
  11921. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  11922. "Quinary TDM1 Hostless Capture",
  11923. 0, 0, 0, 0),
  11924. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  11925. "Quinary TDM2 Hostless Playback",
  11926. 0, 0, 0, 0),
  11927. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  11928. "Quinary TDM2 Hostless Capture",
  11929. 0, 0, 0, 0),
  11930. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  11931. "Quinary TDM3 Hostless Playback",
  11932. 0, 0, 0, 0),
  11933. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  11934. "Quinary TDM3 Hostless Capture",
  11935. 0, 0, 0, 0),
  11936. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  11937. "Quinary TDM4 Hostless Playback",
  11938. 0, 0, 0, 0),
  11939. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  11940. "Quinary TDM4 Hostless Capture",
  11941. 0, 0, 0, 0),
  11942. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  11943. "Quinary TDM5 Hostless Playback",
  11944. 0, 0, 0, 0),
  11945. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  11946. "Quinary TDM5 Hostless Capture",
  11947. 0, 0, 0, 0),
  11948. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  11949. "Quinary TDM6 Hostless Playback",
  11950. 0, 0, 0, 0),
  11951. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  11952. "Quinary TDM6 Hostless Capture",
  11953. 0, 0, 0, 0),
  11954. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  11955. "Quinary TDM7 Hostless Playback",
  11956. 0, 0, 0, 0),
  11957. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  11958. "Quinary TDM7 Hostless Capture",
  11959. 0, 0, 0, 0),
  11960. /* LSM */
  11961. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11962. 0, 0, 0, 0),
  11963. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11964. 0, 0, 0, 0),
  11965. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11966. 0, 0, 0, 0),
  11967. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11968. 0, 0, 0, 0),
  11969. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11970. 0, 0, 0, 0),
  11971. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11972. 0, 0, 0, 0),
  11973. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11974. 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11976. 0, 0, 0, 0),
  11977. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11978. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11979. /* Backend AIF */
  11980. /* Stream name equals to backend dai link stream name */
  11981. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11982. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11983. 0, 0, 0, 0),
  11984. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11985. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11986. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11987. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11988. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11989. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11990. 0, 0, 0, 0),
  11991. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11992. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11993. 0, 0, 0, 0),
  11994. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11995. 0, 0, 0, 0),
  11996. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11997. 0, 0, 0, 0),
  11998. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  11999. "Secondary MI2S Playback SD1",
  12000. 0, 0, 0, 0),
  12001. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12002. 0, 0, 0, 0),
  12003. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12004. 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  12006. 0, 0, 0, 0),
  12007. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  12008. 0, 0, 0, 0),
  12009. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  12010. 0, 0, 0, 0),
  12011. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12012. 0, 0, 0, 0),
  12013. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  12014. 0, 0, 0, 0),
  12015. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12016. 0, 0, 0, 0),
  12017. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12018. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12019. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12020. 0, 0, 0, 0),
  12021. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12022. 0, 0, 0, 0),
  12023. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12024. 0, 0, 0, 0),
  12025. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  12026. 0, 0, 0, 0),
  12027. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12028. 0, 0, 0, 0),
  12029. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12030. 0, 0, 0, 0),
  12031. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12032. 0, 0, 0, 0),
  12033. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12034. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12036. 0, 0, 0, 0),
  12037. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12038. 0, 0, 0, 0),
  12039. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12040. 0, 0, 0, 0),
  12041. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12042. 0, 0, 0, 0),
  12043. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12044. 0, 0, 0, 0),
  12045. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12046. 0, 0, 0, 0),
  12047. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12048. 0, 0, 0, 0),
  12049. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12050. 0, 0, 0, 0),
  12051. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12052. 0, 0, 0, 0),
  12053. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12054. 0, 0, 0, 0),
  12055. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12056. 0, 0, 0, 0),
  12057. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12058. 0, 0, 0, 0),
  12059. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12060. 0, 0, 0, 0),
  12061. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12062. 0, 0, 0, 0),
  12063. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12064. 0, 0, 0, 0),
  12065. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12066. 0, 0, 0, 0),
  12067. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12068. 0, 0, 0, 0),
  12069. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12070. 0, 0, 0, 0),
  12071. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12072. 0, 0, 0, 0),
  12073. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12074. 0, 0, 0, 0),
  12075. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12076. 0, 0, 0, 0),
  12077. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12078. 0, 0, 0, 0),
  12079. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12080. 0, 0, 0, 0),
  12081. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12082. 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12084. 0, 0, 0, 0),
  12085. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12086. 0, 0, 0, 0),
  12087. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12090. 0, 0, 0, 0),
  12091. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12092. 0, 0, 0, 0),
  12093. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12094. 0, 0, 0, 0),
  12095. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12096. 0, 0, 0, 0),
  12097. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12098. 0, 0, 0, 0),
  12099. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12100. 0, 0, 0, 0),
  12101. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12102. 0, 0, 0, 0),
  12103. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12104. 0, 0, 0, 0),
  12105. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12106. 0, 0, 0, 0),
  12107. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12108. 0, 0, 0, 0),
  12109. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12110. 0, 0, 0, 0),
  12111. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12112. 0, 0, 0, 0),
  12113. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12114. 0, 0, 0, 0),
  12115. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12116. 0, 0, 0, 0),
  12117. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12118. 0, 0, 0, 0),
  12119. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12120. 0, 0, 0, 0),
  12121. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12122. 0, 0, 0, 0),
  12123. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12124. 0, 0, 0, 0),
  12125. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12126. 0, 0, 0, 0),
  12127. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12128. 0, 0, 0, 0),
  12129. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12130. 0, 0, 0, 0),
  12131. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12132. 0, 0, 0, 0),
  12133. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12134. 0, 0, 0, 0),
  12135. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12136. 0, 0, 0, 0),
  12137. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12138. 0, 0, 0, 0),
  12139. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12140. 0, 0, 0, 0),
  12141. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12142. 0, 0, 0, 0),
  12143. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12144. 0, 0, 0, 0),
  12145. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12146. 0, 0, 0, 0),
  12147. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12148. 0, 0, 0, 0),
  12149. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12150. 0, 0, 0, 0),
  12151. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12152. 0, 0, 0, 0),
  12153. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12154. 0, 0, 0, 0),
  12155. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12156. 0, 0, 0, 0),
  12157. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12158. 0, 0, 0, 0),
  12159. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12160. 0, 0, 0, 0),
  12161. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12162. 0, 0, 0, 0),
  12163. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12164. 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12166. 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12168. 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12170. 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12172. 0, 0, 0, 0),
  12173. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12174. 0, 0, 0, 0),
  12175. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12176. 0, 0, 0, 0),
  12177. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12178. 0, 0, 0, 0),
  12179. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12180. 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12182. 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12184. 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12186. 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12188. 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12190. 0, 0, 0, 0),
  12191. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12192. 0, 0, 0, 0),
  12193. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12194. 0, 0, 0, 0),
  12195. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12196. 0, 0, 0, 0),
  12197. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12198. 0, 0, 0, 0),
  12199. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12200. 0, 0, 0, 0),
  12201. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12202. 0, 0, 0, 0),
  12203. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12204. 0, 0, 0, 0),
  12205. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12206. 0, 0, 0, 0),
  12207. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12208. 0, 0, 0, 0),
  12209. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12210. 0, 0, 0, 0),
  12211. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12212. 0, 0, 0, 0),
  12213. /* incall */
  12214. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12215. 0, 0, 0, 0),
  12216. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12217. 0, 0, 0, 0),
  12218. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12219. 0, 0, 0, 0),
  12220. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12221. 0, 0, 0, 0),
  12222. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12223. 0, 0, 0, 0),
  12224. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12225. 0, 0, 0, 0),
  12226. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12227. 0, 0, 0, 0),
  12228. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12229. 0, 0, 0, 0),
  12230. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12232. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12234. 0, 0, 0, 0),
  12235. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12236. 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12238. 0, 0, 0, 0),
  12239. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12240. 0, 0, 0, 0),
  12241. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12242. 0, 0, 0, 0),
  12243. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12244. 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12246. 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12248. 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12252. 0, 0, 0, 0),
  12253. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12254. 0, 0, 0, 0),
  12255. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12256. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12258. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12260. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12261. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12262. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12263. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12264. /* In- call recording */
  12265. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12266. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12267. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12268. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12269. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12270. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12271. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12272. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12273. /* Switch Definitions */
  12274. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12275. &slim_fm_switch_mixer_controls),
  12276. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12277. &slim1_fm_switch_mixer_controls),
  12278. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12279. &slim3_fm_switch_mixer_controls),
  12280. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12281. &slim4_fm_switch_mixer_controls),
  12282. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12283. &slim6_fm_switch_mixer_controls),
  12284. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12285. &pcm_rx_switch_mixer_controls),
  12286. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12287. &int0_mi2s_rx_switch_mixer_controls),
  12288. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12289. &int4_mi2s_rx_switch_mixer_controls),
  12290. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12291. &pri_mi2s_rx_switch_mixer_controls),
  12292. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12293. &sec_mi2s_rx_switch_mixer_controls),
  12294. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12295. &tert_mi2s_rx_switch_mixer_controls),
  12296. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12297. &quat_mi2s_rx_switch_mixer_controls),
  12298. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12299. &quin_mi2s_rx_switch_mixer_controls),
  12300. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12301. &hfp_pri_aux_switch_mixer_controls),
  12302. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12303. &hfp_aux_switch_mixer_controls),
  12304. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12305. &hfp_int_switch_mixer_controls),
  12306. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12307. &hfp_slim7_switch_mixer_controls),
  12308. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12309. &usb_switch_mixer_controls),
  12310. /* Mixer definitions */
  12311. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12312. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12313. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12314. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12315. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12316. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12317. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12318. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12319. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12320. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12321. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12322. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12323. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12324. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12325. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12326. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12327. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12328. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12329. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12330. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12331. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12332. quaternary_mi2s_rx_mixer_controls,
  12333. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12334. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12335. tertiary_mi2s_rx_mixer_controls,
  12336. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12337. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12338. secondary_mi2s_rx_mixer_controls,
  12339. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12340. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12341. secondary_mi2s_rx2_mixer_controls,
  12342. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12343. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12344. primary_mi2s_rx_mixer_controls,
  12345. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12346. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12347. int0_mi2s_rx_mixer_controls,
  12348. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12349. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12350. int4_mi2s_rx_mixer_controls,
  12351. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12352. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12353. quinary_mi2s_rx_mixer_controls,
  12354. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12355. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12356. pri_tdm_rx_0_mixer_controls,
  12357. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12358. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12359. pri_tdm_rx_1_mixer_controls,
  12360. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12361. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12362. pri_tdm_rx_2_mixer_controls,
  12363. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12364. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12365. pri_tdm_rx_3_mixer_controls,
  12366. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12367. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12368. pri_tdm_tx_0_mixer_controls,
  12369. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12370. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12371. sec_tdm_rx_0_mixer_controls,
  12372. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12373. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12374. sec_tdm_rx_1_mixer_controls,
  12375. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12376. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12377. sec_tdm_rx_2_mixer_controls,
  12378. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12379. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12380. sec_tdm_rx_3_mixer_controls,
  12381. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12382. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12383. sec_tdm_tx_0_mixer_controls,
  12384. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12385. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12386. tert_tdm_rx_0_mixer_controls,
  12387. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12388. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12389. tert_tdm_tx_0_mixer_controls,
  12390. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12391. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12392. tert_tdm_rx_1_mixer_controls,
  12393. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12394. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12395. tert_tdm_rx_2_mixer_controls,
  12396. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12397. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12398. tert_tdm_rx_3_mixer_controls,
  12399. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12400. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12401. tert_tdm_rx_4_mixer_controls,
  12402. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12403. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12404. quat_tdm_rx_0_mixer_controls,
  12405. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12406. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12407. quat_tdm_tx_0_mixer_controls,
  12408. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12409. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12410. quat_tdm_rx_1_mixer_controls,
  12411. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12412. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12413. quat_tdm_rx_2_mixer_controls,
  12414. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12415. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12416. quat_tdm_rx_3_mixer_controls,
  12417. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12418. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12419. quin_tdm_rx_0_mixer_controls,
  12420. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12421. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12422. quin_tdm_tx_0_mixer_controls,
  12423. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12424. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12425. quin_tdm_rx_1_mixer_controls,
  12426. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12427. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12428. quin_tdm_rx_2_mixer_controls,
  12429. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12430. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12431. quin_tdm_rx_3_mixer_controls,
  12432. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12433. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12434. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12435. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12436. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12437. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12438. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12439. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12440. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12441. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12442. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12443. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12444. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12445. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12446. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12447. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12448. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12449. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12450. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12451. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12452. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12453. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12454. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12455. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12456. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12457. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12458. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12459. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12460. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12461. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12462. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12463. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12464. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12465. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12466. tert_auxpcm_rx_mixer_controls,
  12467. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12468. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12469. quat_auxpcm_rx_mixer_controls,
  12470. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12471. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12472. quin_auxpcm_rx_mixer_controls,
  12473. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12474. /* incall */
  12475. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12476. incall_music_delivery_mixer_controls,
  12477. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12478. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12479. incall_music2_delivery_mixer_controls,
  12480. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12481. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12482. slimbus_4_rx_mixer_controls,
  12483. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12484. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12485. slimbus_6_rx_mixer_controls,
  12486. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12487. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12488. usb_audio_rx_mixer_controls,
  12489. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12490. /* Voice Mixer */
  12491. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12492. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12493. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12494. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12495. SND_SOC_NOPM, 0, 0,
  12496. sec_i2s_rx_voice_mixer_controls,
  12497. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12498. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12499. SND_SOC_NOPM, 0, 0,
  12500. sec_mi2s_rx_voice_mixer_controls,
  12501. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12502. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12503. SND_SOC_NOPM, 0, 0,
  12504. slimbus_rx_voice_mixer_controls,
  12505. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12506. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12507. SND_SOC_NOPM, 0, 0,
  12508. bt_sco_rx_voice_mixer_controls,
  12509. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12510. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12511. SND_SOC_NOPM, 0, 0,
  12512. afe_pcm_rx_voice_mixer_controls,
  12513. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12514. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12515. SND_SOC_NOPM, 0, 0,
  12516. aux_pcm_rx_voice_mixer_controls,
  12517. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12518. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12519. SND_SOC_NOPM, 0, 0,
  12520. sec_aux_pcm_rx_voice_mixer_controls,
  12521. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12522. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12523. SND_SOC_NOPM, 0, 0,
  12524. tert_aux_pcm_rx_voice_mixer_controls,
  12525. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12526. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12527. SND_SOC_NOPM, 0, 0,
  12528. quat_aux_pcm_rx_voice_mixer_controls,
  12529. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12530. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12531. SND_SOC_NOPM, 0, 0,
  12532. quin_aux_pcm_rx_voice_mixer_controls,
  12533. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12534. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12535. SND_SOC_NOPM, 0, 0,
  12536. hdmi_rx_voice_mixer_controls,
  12537. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12538. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12539. SND_SOC_NOPM, 0, 0,
  12540. mi2s_rx_voice_mixer_controls,
  12541. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12542. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12543. SND_SOC_NOPM, 0, 0,
  12544. pri_mi2s_rx_voice_mixer_controls,
  12545. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12546. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12547. SND_SOC_NOPM, 0, 0,
  12548. int0_mi2s_rx_voice_mixer_controls,
  12549. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12550. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12551. SND_SOC_NOPM, 0, 0,
  12552. int4_mi2s_rx_voice_mixer_controls,
  12553. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12554. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12555. SND_SOC_NOPM, 0, 0,
  12556. tert_mi2s_rx_voice_mixer_controls,
  12557. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12558. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12559. SND_SOC_NOPM, 0, 0,
  12560. quat_mi2s_rx_voice_mixer_controls,
  12561. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12562. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12563. SND_SOC_NOPM, 0, 0,
  12564. quin_mi2s_rx_voice_mixer_controls,
  12565. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12566. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12567. SND_SOC_NOPM, 0, 0,
  12568. quat_tdm_rx_2_voice_mixer_controls,
  12569. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12570. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12571. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12572. ARRAY_SIZE(tx_voip_mixer_controls)),
  12573. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12574. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12575. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12576. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12577. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12578. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12579. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12580. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12581. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12582. int_bt_a2dp_rx_mixer_controls,
  12583. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12584. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12585. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12586. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12587. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12588. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12589. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12590. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12591. tx_voice2_stub_mixer_controls,
  12592. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12593. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12594. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12595. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12596. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12597. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12598. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12599. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12600. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12601. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12602. SND_SOC_NOPM, 0, 0,
  12603. slimbus_6_rx_voice_mixer_controls,
  12604. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12605. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12606. slimbus_7_rx_voice_mixer_controls,
  12607. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12608. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12609. slimbus_8_rx_voice_mixer_controls,
  12610. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12611. /* port mixer */
  12612. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12613. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12614. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12615. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12616. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12617. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12618. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12619. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12620. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12621. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12622. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12623. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12624. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12625. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12626. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12627. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12628. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12629. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12630. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12631. sbus_1_rx_port_mixer_controls,
  12632. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12633. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12634. bt_sco_rx_port_mixer_controls,
  12635. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12636. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12637. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12638. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12639. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12640. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12641. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12642. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12643. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12644. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12645. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12646. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12647. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12648. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12649. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12650. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12651. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12652. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12653. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12654. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12655. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12656. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12657. primary_mi2s_rx_port_mixer_controls,
  12658. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12659. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12660. sec_mi2s_rx_port_mixer_controls,
  12661. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12662. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12663. tert_mi2s_rx_port_mixer_controls,
  12664. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12665. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12666. quat_mi2s_rx_port_mixer_controls,
  12667. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12668. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12669. quin_mi2s_rx_port_mixer_controls,
  12670. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12671. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12672. pri_tdm_rx_0_port_mixer_controls,
  12673. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12674. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12675. pri_tdm_rx_1_port_mixer_controls,
  12676. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12677. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12678. pri_tdm_rx_2_port_mixer_controls,
  12679. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12680. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12681. pri_tdm_rx_3_port_mixer_controls,
  12682. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12683. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12684. sec_tdm_rx_0_port_mixer_controls,
  12685. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12686. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12687. sec_tdm_rx_1_port_mixer_controls,
  12688. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12689. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12690. sec_tdm_rx_2_port_mixer_controls,
  12691. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12692. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12693. sec_tdm_rx_3_port_mixer_controls,
  12694. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12695. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12696. tert_tdm_rx_0_port_mixer_controls,
  12697. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12698. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12699. tert_tdm_rx_1_port_mixer_controls,
  12700. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12701. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12702. tert_tdm_rx_2_port_mixer_controls,
  12703. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12704. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12705. tert_tdm_rx_3_port_mixer_controls,
  12706. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12707. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12708. quat_tdm_rx_0_port_mixer_controls,
  12709. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12710. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12711. quat_tdm_rx_1_port_mixer_controls,
  12712. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12713. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12714. quat_tdm_rx_2_port_mixer_controls,
  12715. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12716. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12717. quat_tdm_rx_3_port_mixer_controls,
  12718. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12719. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12720. quin_tdm_rx_0_port_mixer_controls,
  12721. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12722. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12723. quin_tdm_rx_1_port_mixer_controls,
  12724. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12725. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12726. quin_tdm_rx_2_port_mixer_controls,
  12727. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12728. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12729. quin_tdm_rx_3_port_mixer_controls,
  12730. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12731. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12732. int0_mi2s_rx_port_mixer_controls,
  12733. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12734. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12735. int4_mi2s_rx_port_mixer_controls,
  12736. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12737. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12738. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12739. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12740. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12741. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12742. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12743. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12744. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12745. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12746. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12747. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12748. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12749. /* lsm mixer definitions */
  12750. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12751. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12752. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12753. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12754. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12755. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12756. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12757. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12758. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12759. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12760. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12761. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12762. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12763. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12764. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12765. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12766. /* Virtual Pins to force backends ON atm */
  12767. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12768. SND_SOC_DAPM_INPUT("BE_IN"),
  12769. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12770. &slim0_rx_vi_fb_lch_mux),
  12771. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12772. &slim0_rx_vi_fb_rch_mux),
  12773. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12774. &mi2s_rx_vi_fb_mux),
  12775. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12776. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12777. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12778. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12779. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12780. &voc_ext_ec_mux),
  12781. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12782. &ext_ec_ref_mux_ul1),
  12783. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12784. &ext_ec_ref_mux_ul2),
  12785. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12786. &ext_ec_ref_mux_ul3),
  12787. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12788. &ext_ec_ref_mux_ul4),
  12789. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12790. &ext_ec_ref_mux_ul5),
  12791. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12792. &ext_ec_ref_mux_ul6),
  12793. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12794. &ext_ec_ref_mux_ul8),
  12795. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12796. &ext_ec_ref_mux_ul9),
  12797. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12798. &ext_ec_ref_mux_ul10),
  12799. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12800. &ext_ec_ref_mux_ul16),
  12801. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12802. &ext_ec_ref_mux_ul17),
  12803. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12804. &ext_ec_ref_mux_ul18),
  12805. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12806. &ext_ec_ref_mux_ul19),
  12807. };
  12808. static const struct snd_soc_dapm_route intercon[] = {
  12809. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12810. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12811. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12812. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12813. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12814. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12815. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12816. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12817. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12818. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12819. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12820. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12821. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12822. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12823. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12824. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12825. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12826. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12827. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12828. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12829. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12830. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12831. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12832. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12833. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12834. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12835. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12836. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12837. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12838. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12839. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12840. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12841. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12842. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12843. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12844. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12845. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12846. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12847. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12848. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12849. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12850. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12851. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12852. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12853. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12854. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12855. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12856. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12857. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12858. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12859. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12860. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12861. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12862. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12863. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12864. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12865. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12866. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12867. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12868. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12869. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12870. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12871. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12872. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12873. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12874. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12875. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12876. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12877. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12878. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12879. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12880. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12881. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12882. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12883. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12884. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12885. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12886. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12887. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12888. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12889. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12890. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12891. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12892. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12893. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12894. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12895. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12896. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12897. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12898. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12899. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12900. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12901. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12902. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12903. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12904. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12905. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12906. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12907. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  12908. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  12909. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  12910. {"HDMI", NULL, "HDMI Mixer"},
  12911. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  12912. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  12913. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  12914. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  12915. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  12916. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  12917. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  12918. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  12919. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  12920. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  12921. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  12922. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  12923. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  12924. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  12925. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  12926. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  12927. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  12928. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12929. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12930. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12931. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12932. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12933. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12934. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12935. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12936. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12937. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12938. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12939. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12940. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12941. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12942. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12943. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12944. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  12945. /* incall */
  12946. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  12947. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  12948. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  12949. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  12950. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  12951. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12952. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12953. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12954. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12955. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  12956. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12957. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12958. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12959. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12960. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  12961. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12962. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12963. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12964. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12965. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12966. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12967. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12968. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12969. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12970. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12971. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12972. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12973. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12974. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12975. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12976. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12977. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  12978. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12979. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12980. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12981. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12982. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12983. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12984. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12985. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12986. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12987. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12988. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12989. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12990. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12991. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12992. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12993. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12994. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  12995. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12999. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13000. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13001. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13002. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13003. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13004. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13005. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13008. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13009. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13010. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13011. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13012. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13013. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13014. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13015. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13016. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13017. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13018. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13019. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13020. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13021. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13022. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13023. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13024. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13025. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13026. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13027. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13028. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13029. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13030. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13031. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13032. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13033. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13034. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13035. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13036. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13037. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13038. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13039. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13040. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13041. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13042. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13043. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13044. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13045. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13046. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13047. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13048. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13049. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13050. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13051. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13052. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13053. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13054. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13055. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13056. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13057. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13058. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13059. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13060. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13061. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13062. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13063. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13064. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13065. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13066. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13067. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13068. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13069. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13070. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13071. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13072. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13073. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13074. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13075. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13076. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13077. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13078. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13079. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13080. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13081. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13082. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13083. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13084. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13085. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13086. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13087. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13088. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13089. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13090. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13091. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13092. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13093. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13094. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13095. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13096. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13097. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13098. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13099. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13100. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13101. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13102. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13103. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13104. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13105. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13106. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13107. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13108. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13109. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13110. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13111. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13112. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13113. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13114. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13115. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13116. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13117. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13118. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13119. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13120. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13121. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13122. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13123. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13124. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13125. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13126. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13127. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13128. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13129. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13130. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13131. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13132. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13133. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13134. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13135. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13136. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13137. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13138. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13139. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13140. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13141. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13142. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13143. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13144. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13145. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13146. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13147. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13148. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13149. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13150. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13151. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13152. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13153. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13154. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13155. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13156. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13157. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13158. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13159. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13160. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13161. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13162. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13163. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13164. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13165. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13166. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13167. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13168. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13169. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13170. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13171. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13172. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13173. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13174. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13175. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13176. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13182. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13183. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13184. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13185. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13186. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13187. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13188. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13189. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13190. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13191. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13192. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13193. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13200. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13201. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13202. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13203. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13204. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13205. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13206. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13207. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13208. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13209. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13210. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13218. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13219. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13220. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13221. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13222. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13223. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13224. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13225. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13226. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13227. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13228. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13236. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13237. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13238. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13239. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13240. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13241. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13242. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13243. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13244. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13245. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13246. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13247. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13248. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13249. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13250. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13253. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13254. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13255. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13256. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13257. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13258. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13259. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13260. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13261. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13262. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13265. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13266. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13267. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13268. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13269. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13270. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13271. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13272. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13273. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13274. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13275. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13276. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13277. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13278. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13279. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13282. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13283. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13284. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13285. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13286. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13287. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13288. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13289. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13290. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13291. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13292. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13293. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13294. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13295. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13296. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13299. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13300. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13301. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13302. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13303. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13304. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13305. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13306. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13307. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13308. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13309. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13310. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13311. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13312. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13313. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13316. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13317. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13318. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13319. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13320. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13321. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13322. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13323. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13324. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13325. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13326. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13327. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13328. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13329. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13330. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13331. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13332. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13333. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13334. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13335. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13336. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13337. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13338. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13339. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13340. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13341. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13342. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13343. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13344. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13345. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13346. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13347. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13348. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13349. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13350. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13351. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13352. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13353. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13354. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13355. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13356. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13357. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13358. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13359. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13360. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13361. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13362. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13363. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13364. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13365. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13366. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13367. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13368. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13369. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13370. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13371. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13372. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13373. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13374. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13375. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13376. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13377. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13378. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13379. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13380. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13381. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13382. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13383. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13384. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13385. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13386. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13387. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13388. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13389. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13390. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13391. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13392. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13393. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13394. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13395. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13396. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13397. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13398. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13399. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13400. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13401. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13402. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13403. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13404. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13405. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13406. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13407. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13408. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13409. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13410. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13411. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13412. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13413. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13414. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13415. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13416. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13417. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13418. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13419. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13420. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13421. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13422. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13423. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13424. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13425. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13426. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13427. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13428. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13429. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13430. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13431. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13432. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13433. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13434. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13435. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13436. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13437. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13438. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13439. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13440. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13441. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13442. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13443. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13444. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13445. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13446. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13447. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13448. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13449. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13450. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13451. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13452. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13453. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13454. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13455. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13456. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13457. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13458. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13459. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13460. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13461. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13462. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13463. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13464. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13465. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13466. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13467. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13468. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13470. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13471. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13472. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13473. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13474. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13475. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13476. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13477. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13478. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13479. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13480. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13481. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13482. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13483. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13484. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13485. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13488. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13489. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13490. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13491. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13492. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13493. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13494. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13495. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13496. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13497. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13498. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13499. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13500. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13501. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13502. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13503. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13504. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13506. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13507. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13508. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13509. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13510. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13511. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13512. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13513. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13514. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13515. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13516. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13517. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13518. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13519. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13520. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13521. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13522. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13523. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13524. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13525. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13526. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13527. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13528. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13529. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13530. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13531. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13532. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13533. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13534. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13535. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13536. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13537. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13538. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13539. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13540. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13541. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13542. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13543. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13544. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13545. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13546. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13547. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13548. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13549. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13550. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13551. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13552. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13553. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13554. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13555. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13556. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13557. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13558. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13559. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13560. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13561. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13562. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13563. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13564. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13565. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13566. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13567. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13568. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13569. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13570. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13571. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13572. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13573. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13574. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13575. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13576. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13577. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13578. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13579. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13580. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13581. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13582. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13583. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13584. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13585. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13586. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13587. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13588. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13589. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13590. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13591. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13592. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13593. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13594. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13595. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13596. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13597. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13598. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13599. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13600. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13601. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13602. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13603. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13604. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13605. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13606. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13607. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13608. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13609. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13610. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13611. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13612. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13613. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13614. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13615. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13616. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13617. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13618. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13619. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13620. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13621. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13622. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13623. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13624. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13625. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13626. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13627. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13628. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13629. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13630. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13631. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13632. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13633. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13634. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13635. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13636. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13637. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13638. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13639. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13640. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13641. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13642. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13643. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13644. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13645. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13646. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13647. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13648. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13649. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13650. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13651. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13652. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13653. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13654. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13655. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13656. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13657. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13658. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13659. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13660. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13661. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13662. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13663. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13664. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13665. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13666. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13667. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13668. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13669. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13670. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13671. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13672. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13673. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13674. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13675. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13676. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13677. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13678. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13679. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13680. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13681. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13682. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13683. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13684. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13685. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13686. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13687. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13688. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13689. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13690. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13691. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13692. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13693. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13694. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13695. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13696. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13697. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13698. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13699. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13700. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13701. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13702. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13703. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13704. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13705. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13706. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13707. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13708. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13709. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13710. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13711. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13712. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13713. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13714. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13715. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13716. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13717. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13718. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13719. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13720. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13721. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13722. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13723. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13724. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13725. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13726. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13727. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13728. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13729. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13730. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13731. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13732. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13733. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13734. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13735. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13736. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13737. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13738. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13739. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13740. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13741. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13742. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13743. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13744. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13745. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13746. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13747. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13748. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13749. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13750. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13751. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13752. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13753. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13754. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13755. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13756. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13757. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13758. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13759. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13760. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13761. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13762. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13763. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13764. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13765. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13766. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13767. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13768. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13769. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13770. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13771. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13772. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13773. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13774. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13775. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13776. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13777. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13778. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13779. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13780. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13781. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13782. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13783. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13784. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13785. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13786. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13787. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13788. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13789. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13790. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13791. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13792. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13793. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13794. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13795. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13796. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13797. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13798. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13799. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13800. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13801. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13802. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13803. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13804. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13805. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13806. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13807. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13808. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13809. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13810. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13811. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13812. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13813. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13814. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13815. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13816. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13817. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13818. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13819. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13820. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13821. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13822. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13823. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13824. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13825. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13826. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13827. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13828. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13829. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13830. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13831. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13832. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13833. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13834. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13835. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13836. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13837. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13838. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13839. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13840. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13841. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13842. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13843. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13844. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13845. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13846. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13847. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13848. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13849. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13850. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13851. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13852. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13853. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13854. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13855. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13856. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13857. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13858. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13859. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13860. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13861. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13862. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13863. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13864. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13865. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13866. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13867. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13868. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13869. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13870. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13871. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13872. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13873. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13874. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13875. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13876. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13877. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13878. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13879. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13880. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13881. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13882. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13883. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13884. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13885. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13886. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13887. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13888. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13889. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13890. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13891. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13892. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13893. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13894. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13895. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13896. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13897. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13898. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13899. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13900. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13901. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13902. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13903. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13904. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13905. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13906. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13907. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13908. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13909. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13910. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13911. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13912. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13913. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13914. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13915. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13916. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13917. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13918. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13919. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13920. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13921. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  13922. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13923. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13924. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13925. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13926. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13927. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13928. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13929. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13930. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13931. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13932. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13933. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13934. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13935. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13936. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13937. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13938. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13939. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  13940. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13941. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13942. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13943. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13944. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13945. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13946. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13947. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13948. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13949. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13950. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13951. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13952. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13953. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13954. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13955. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13956. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  13957. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13958. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13959. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13960. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13961. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13962. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13963. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13964. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13965. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13966. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13967. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13968. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13969. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13970. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13971. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13972. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13973. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  13974. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13975. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13976. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13977. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13978. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13979. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13980. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13981. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13982. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13983. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13984. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13985. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13986. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13987. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13988. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13989. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13990. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13991. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13992. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13993. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13994. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13995. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13996. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13997. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13998. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13999. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14000. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14001. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14002. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14003. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14004. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14005. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14006. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14007. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14008. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14009. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14010. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14011. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14012. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14013. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14014. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14015. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14016. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14017. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14018. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14019. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14020. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14021. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14022. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14023. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14024. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14025. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14026. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14027. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14028. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14029. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14030. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14031. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14032. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14033. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14034. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14035. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14036. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14037. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14038. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14039. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14040. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14041. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14042. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14043. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14044. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14045. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14046. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14047. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14048. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14049. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14050. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14051. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14052. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14053. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14054. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14055. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14056. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14057. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14058. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14059. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14060. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14061. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14062. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14063. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14064. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14065. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14066. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14067. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14068. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14069. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14070. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14071. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14072. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14073. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14074. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14075. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14076. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14077. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14078. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14079. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14080. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14081. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14082. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14083. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14084. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14085. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14086. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14087. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14088. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14089. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14090. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14091. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14092. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14093. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14094. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14095. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14096. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14097. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14098. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14099. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14100. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14101. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14102. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14103. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14104. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14105. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14106. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14107. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14108. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14109. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14110. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14111. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14112. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14113. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14114. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14115. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14116. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14117. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14118. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14119. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14120. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14121. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14122. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14123. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14124. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14125. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14126. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14127. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14128. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14129. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14130. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14131. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14132. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14133. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14134. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14135. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14136. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14137. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14138. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14139. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14140. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14141. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14142. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14143. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14144. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14145. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14146. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14147. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14148. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14149. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14150. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14151. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14152. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14153. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14154. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14155. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14156. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14157. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14158. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14159. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14160. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14161. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14162. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14163. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14164. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14165. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14166. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14167. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14168. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14169. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14170. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14171. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14172. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14173. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14174. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14175. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14176. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14177. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14178. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14179. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14180. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14181. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14182. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14183. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14184. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14185. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14186. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14187. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14188. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14189. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14190. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14191. {"HDMI", NULL, "HDMI_DL_HL"},
  14192. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14193. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14194. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14195. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14196. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14197. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14198. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14199. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14200. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14201. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14202. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14203. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14204. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14205. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14206. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14207. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14208. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14209. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14210. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14211. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14212. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14213. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14214. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14215. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14216. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14217. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14218. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14219. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14220. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14221. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14222. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14223. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14224. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14225. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14226. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14227. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14228. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14229. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14230. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14231. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14232. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14233. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14234. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14235. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14236. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14237. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14238. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14239. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14240. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14241. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14242. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14243. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14244. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14245. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14246. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14247. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14248. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14249. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14250. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14251. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14252. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14253. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14254. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14255. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14256. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14257. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14258. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14259. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14260. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14261. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14262. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14263. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14264. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14265. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14266. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14267. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14268. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14269. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14270. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14271. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14272. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14273. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14274. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14275. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14276. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14277. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14278. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14279. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14280. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14281. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14282. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14283. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14284. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14285. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14286. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14287. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14288. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14289. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14290. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14291. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14292. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14293. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14294. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14295. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14296. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14297. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14298. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14299. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14300. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14301. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14302. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14303. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14304. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14305. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14306. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14307. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14308. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14309. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14310. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14311. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14312. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14313. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14314. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14315. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14316. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14317. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14318. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14319. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14320. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14321. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14322. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14323. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14324. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14325. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14326. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14327. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14328. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14329. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14330. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14331. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14332. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14333. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14334. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14335. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14336. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14337. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14338. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14339. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14340. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14341. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14342. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14343. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14344. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14345. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14346. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14347. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14348. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14349. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14350. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14351. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14352. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14353. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14354. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14355. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14356. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14357. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14358. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14359. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14360. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14361. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14362. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14363. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14364. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14365. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14366. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14367. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14368. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14369. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14370. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14371. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14372. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14373. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14374. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14375. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14376. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14377. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14378. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14379. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14380. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14381. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14382. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14383. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14384. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14385. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14386. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14387. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14388. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14389. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14390. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14391. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14392. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14393. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14394. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14395. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14396. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14397. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14398. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14399. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14400. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14401. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14402. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14403. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14404. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14405. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14406. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14407. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14408. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14409. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14410. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14411. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14412. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14413. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14414. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14415. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14416. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14417. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14418. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14419. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14420. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14421. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14422. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14423. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14424. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14425. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14426. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14427. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14428. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14429. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14430. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14431. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14432. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14433. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14434. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14435. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14436. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14437. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14438. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14439. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14440. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14441. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14442. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14443. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14444. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14445. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14446. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14447. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14448. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14449. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14450. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14451. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14452. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14453. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14454. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14455. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14456. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14457. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14458. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14459. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14460. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14461. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14462. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14463. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14464. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14465. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14466. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14467. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14468. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14469. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14470. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14471. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14472. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14473. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14474. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14475. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14476. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14477. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14478. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14479. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14480. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14481. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14482. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14483. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14484. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14485. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14486. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14487. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14488. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14489. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14490. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14491. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14492. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14493. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14494. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14495. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14496. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14497. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14498. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14499. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14500. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14501. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14502. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14503. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14504. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14505. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14506. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14507. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14508. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14509. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14510. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14511. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14512. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14513. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14514. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14515. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14516. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14517. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14518. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14519. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14520. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14521. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14522. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14523. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14524. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14525. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14526. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14527. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14528. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14529. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14530. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14531. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14532. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14533. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14534. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14535. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14536. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14537. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14538. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14539. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14540. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14541. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14542. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14543. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14544. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14545. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14546. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14547. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14548. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14549. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14550. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14551. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14552. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14553. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14554. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14555. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14556. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14557. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14558. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14559. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14560. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14561. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14562. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14563. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14564. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14565. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14566. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14567. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14568. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14569. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14570. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14571. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14572. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14573. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14574. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14575. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14576. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14577. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14578. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14579. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14580. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14581. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14582. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14583. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14584. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14585. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14586. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14587. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14588. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14589. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14590. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14591. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14592. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14593. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14594. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14595. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14596. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14597. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14598. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14599. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14600. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14601. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14602. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14603. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14604. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14605. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14606. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14607. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14608. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14609. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14610. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14611. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14612. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14613. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14614. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14615. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14616. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14617. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14618. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14619. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14620. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14621. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14622. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14623. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14624. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14625. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14626. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14627. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14628. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14629. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14630. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14631. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14632. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14633. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14634. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14635. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14636. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14637. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14638. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14639. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14640. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14641. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14642. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14643. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14644. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14645. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14646. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14647. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14648. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14649. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14650. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14651. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14652. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14653. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14654. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14655. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14656. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14657. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14658. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14659. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14660. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14661. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14662. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14663. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14664. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14665. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14666. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14667. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14668. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14669. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14670. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14671. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14672. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14673. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14674. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14675. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14676. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14677. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14678. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14679. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14680. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14681. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14682. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14683. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14684. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14685. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14686. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14687. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14688. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14689. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14690. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14691. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14692. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14693. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14694. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14695. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14696. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14697. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14698. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14699. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14700. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14701. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14702. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14703. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14704. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14705. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14706. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14707. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14708. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14709. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14710. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14711. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14712. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14713. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14714. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14715. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14716. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14717. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14718. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14719. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14720. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14721. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14722. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14723. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14724. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14725. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14726. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14727. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14728. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14729. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14730. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14731. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14732. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14733. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14734. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14735. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14736. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14737. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14738. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14739. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14740. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14741. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14742. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14743. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14744. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14745. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14746. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14747. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14748. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14749. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14750. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14751. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14752. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14753. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14754. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14755. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14756. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14757. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14758. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14759. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14760. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14761. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14762. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14763. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14764. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14765. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14766. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14767. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14768. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14769. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14770. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14771. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14772. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14773. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14774. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14775. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14776. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14777. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14778. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14779. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14780. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14781. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14782. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14783. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14784. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14785. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14786. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14787. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14788. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14789. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14790. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14791. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14792. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14793. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14794. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14795. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14796. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14797. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14798. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14799. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14800. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14801. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14802. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14803. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14804. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14805. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14806. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14807. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14808. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14809. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14810. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14811. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14812. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14813. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14814. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14815. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14816. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14817. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14818. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14819. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14820. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14821. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14822. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14823. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14824. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14825. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14826. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14827. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14828. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14829. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14830. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14831. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14832. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14833. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  14834. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14835. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14836. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14837. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14838. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14839. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14840. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14841. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14842. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14843. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14844. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14845. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14846. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14847. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14848. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14849. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14850. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14851. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14852. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14853. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14854. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  14855. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14856. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14857. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14858. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14859. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14860. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14861. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14862. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14863. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14864. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14865. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14866. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14867. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14868. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14869. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14870. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14871. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14872. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14873. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14874. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14875. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  14876. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14877. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14878. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14879. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14880. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14881. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14882. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14883. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14884. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14885. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14886. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14887. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14888. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14889. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14890. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14891. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14892. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14893. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14894. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14895. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14896. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  14897. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14898. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14899. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14900. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14901. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14902. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14903. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14904. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14905. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14906. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14907. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14908. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14909. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14910. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14911. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14912. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14913. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14914. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14915. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14916. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14917. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  14918. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14919. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14920. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14921. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14922. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14923. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14924. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14925. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14926. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14927. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14928. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14929. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14930. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14931. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14932. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14933. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14934. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14935. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14936. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14937. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14938. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  14939. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14940. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14941. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14942. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14943. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14944. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14945. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14946. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14947. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14948. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14949. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14950. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14951. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14952. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14953. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14954. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14955. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14956. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14957. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14958. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14959. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  14960. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14961. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14962. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14963. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14964. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14965. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14966. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14967. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14968. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14969. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14970. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14971. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14972. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14973. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14974. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14975. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14976. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14977. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14978. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14979. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14980. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  14981. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14982. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14983. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14984. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14985. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14986. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14987. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14988. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14989. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14990. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14991. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  14992. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14993. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14994. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14995. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14996. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14997. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14998. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14999. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15000. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15001. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15002. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15003. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15004. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15005. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15006. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15007. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15008. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15009. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15010. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15011. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15012. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15013. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15014. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15015. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15016. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15017. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15018. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15019. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15020. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15021. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15022. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15023. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15024. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15025. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15026. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15027. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15028. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15029. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15030. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15031. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15032. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15033. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15034. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15035. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15036. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15037. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15038. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15039. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15040. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15041. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15042. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15043. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15044. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15045. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15046. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15047. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15048. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15049. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15050. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15051. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15052. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15053. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15054. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15055. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15056. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15057. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15058. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15059. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15060. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15061. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15062. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15063. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15064. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15065. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15066. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15067. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15068. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15069. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15070. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15071. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15072. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15073. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15074. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15075. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15076. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15077. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15078. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15079. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15080. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15081. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15082. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15083. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15084. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15085. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15086. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15087. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15088. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15089. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15090. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15091. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15092. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15093. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15094. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15095. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15096. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15097. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15098. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15099. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15100. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15101. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15102. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15103. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15104. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15105. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15106. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15107. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15108. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15109. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15110. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15111. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15112. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15113. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15114. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15115. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15116. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15117. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15118. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15119. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15120. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15121. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15122. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15123. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15124. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15125. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15126. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15127. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15128. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15129. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15130. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15131. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15132. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15133. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15134. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15135. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15136. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15137. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15138. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15139. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15140. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15141. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15142. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15143. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15144. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15145. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15146. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15147. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15148. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15149. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15150. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15151. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15152. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15153. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15154. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15155. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15156. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15157. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15158. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15159. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15160. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15161. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15162. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15163. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15164. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15165. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15166. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15167. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15168. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15169. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15170. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15171. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15172. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15173. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15174. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15175. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15176. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15177. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15178. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15179. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15180. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15181. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15182. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15183. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15184. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15185. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15186. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15187. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15188. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15189. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15190. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15191. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15192. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15193. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15194. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15195. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15196. /* Backend Enablement */
  15197. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15198. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15199. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15200. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15201. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15202. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15203. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15204. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15205. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15206. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15207. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15208. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15209. {"BE_OUT", NULL, "HDMI"},
  15210. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15211. {"BE_OUT", NULL, "SPDIF_RX"},
  15212. {"BE_OUT", NULL, "MI2S_RX"},
  15213. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15214. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15215. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15216. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15217. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15218. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15219. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15220. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15221. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  15222. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  15223. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  15224. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15225. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15226. {"BE_OUT", NULL, "INT_FM_RX"},
  15227. {"BE_OUT", NULL, "PCM_RX"},
  15228. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15229. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15230. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15231. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15232. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15233. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15234. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15235. {"BE_OUT", NULL, "INT_FM_RX"},
  15236. {"BE_OUT", NULL, "PCM_RX"},
  15237. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15238. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15239. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15240. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15241. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15242. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15243. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15244. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15245. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15246. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15247. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15248. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15249. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15250. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15251. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15252. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15253. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15254. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15255. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15256. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15257. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15258. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15259. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15260. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15261. {"PRI_I2S_TX", NULL, "BE_IN"},
  15262. {"MI2S_TX", NULL, "BE_IN"},
  15263. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15264. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15265. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15266. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15267. {"INT0_MI2S_TX", NULL, "BE_IN"},
  15268. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15269. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15270. {"INT4_MI2S_TX", NULL, "BE_IN"},
  15271. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15272. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15273. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15274. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15275. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15276. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15277. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15278. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15279. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15280. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15281. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15282. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15283. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15284. {"INT_FM_TX", NULL, "BE_IN"},
  15285. {"PCM_TX", NULL, "BE_IN"},
  15286. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15287. {"BE_OUT", NULL, "STUB_RX"},
  15288. {"STUB_TX", NULL, "BE_IN"},
  15289. {"STUB_1_TX", NULL, "BE_IN"},
  15290. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15291. {"AUX_PCM_TX", NULL, "BE_IN"},
  15292. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15293. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15294. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15295. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15296. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15297. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15298. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15299. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15300. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15301. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15302. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15303. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15304. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15305. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15306. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15307. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15308. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15309. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15310. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15311. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15312. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15313. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15314. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15315. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15316. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15317. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15318. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15319. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15320. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15321. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15322. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15323. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15324. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15325. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15326. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15327. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15328. };
  15329. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15330. struct snd_pcm_hw_params *params)
  15331. {
  15332. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15333. unsigned int be_id = rtd->dai_link->id;
  15334. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15335. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15336. return -EINVAL;
  15337. }
  15338. mutex_lock(&routing_lock);
  15339. msm_bedais[be_id].sample_rate = params_rate(params);
  15340. msm_bedais[be_id].channel = params_channels(params);
  15341. msm_bedais[be_id].format = params_format(params);
  15342. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15343. __func__, msm_bedais[be_id].sample_rate,
  15344. msm_bedais[be_id].format, be_id);
  15345. mutex_unlock(&routing_lock);
  15346. return 0;
  15347. }
  15348. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15349. {
  15350. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15351. unsigned int be_id = rtd->dai_link->id;
  15352. int i, session_type, path_type, topology;
  15353. struct msm_pcm_routing_bdai_data *bedai;
  15354. struct msm_pcm_routing_fdai_data *fdai;
  15355. pr_debug("%s: substream->pcm->id:%s\n",
  15356. __func__, substream->pcm->id);
  15357. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15358. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15359. return -EINVAL;
  15360. }
  15361. bedai = &msm_bedais[be_id];
  15362. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15363. 0 : 1);
  15364. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15365. path_type = ADM_PATH_PLAYBACK;
  15366. else
  15367. path_type = ADM_PATH_LIVE_REC;
  15368. mutex_lock(&routing_lock);
  15369. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15370. if (!is_mm_lsm_fe_id(i))
  15371. continue;
  15372. fdai = &fe_dai_map[i][session_type];
  15373. if (fdai->strm_id != INVALID_SESSION) {
  15374. int idx;
  15375. int port_id;
  15376. unsigned long copp =
  15377. session_copp_map[i][session_type][be_id];
  15378. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15379. if (test_bit(idx, &copp))
  15380. break;
  15381. fdai->be_srate = bedai->sample_rate;
  15382. port_id = bedai->port_id;
  15383. topology = adm_get_topology_for_port_copp_idx(port_id,
  15384. idx);
  15385. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15386. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15387. __func__, copp, i, session_type, be_id,
  15388. topology);
  15389. clear_bit(idx,
  15390. &session_copp_map[i][session_type][be_id]);
  15391. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15392. (bedai->passthr_mode[i] == LEGACY_PCM))
  15393. msm_pcm_routing_deinit_pp(bedai->port_id,
  15394. topology);
  15395. }
  15396. }
  15397. bedai->active = 0;
  15398. bedai->sample_rate = 0;
  15399. bedai->channel = 0;
  15400. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15401. if (bedai->passthr_mode[i] != LISTEN)
  15402. bedai->passthr_mode[i] = LEGACY_PCM;
  15403. }
  15404. mutex_unlock(&routing_lock);
  15405. return 0;
  15406. }
  15407. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15408. {
  15409. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15410. unsigned int be_id = rtd->dai_link->id;
  15411. int i, path_type, topology;
  15412. int session_type = INVALID_SESSION;
  15413. struct msm_pcm_routing_bdai_data *bedai;
  15414. u32 channels, sample_rate;
  15415. uint16_t bits_per_sample = 16, voc_path_type;
  15416. struct msm_pcm_routing_fdai_data *fdai;
  15417. u32 session_id;
  15418. struct media_format_info voc_be_media_format;
  15419. bool is_lsm;
  15420. pr_debug("%s: substream->pcm->id:%s\n",
  15421. __func__, substream->pcm->id);
  15422. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15423. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15424. return -EINVAL;
  15425. }
  15426. bedai = &msm_bedais[be_id];
  15427. mutex_lock(&routing_lock);
  15428. if (bedai->active == 1)
  15429. goto done; /* Ignore prepare if back-end already active */
  15430. /* AFE port is not active at this point. However, still
  15431. * go ahead setting active flag under the notion that
  15432. * QDSP6 is able to handle ADM starting before AFE port
  15433. * is started.
  15434. */
  15435. bedai->active = 1;
  15436. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15437. if (!(is_mm_lsm_fe_id(i) &&
  15438. route_check_fe_id_adm_support(i)))
  15439. continue;
  15440. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15441. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15442. path_type = ADM_PATH_COMPRESSED_RX;
  15443. else
  15444. path_type = ADM_PATH_PLAYBACK;
  15445. session_type = SESSION_TYPE_RX;
  15446. } else {
  15447. path_type = ADM_PATH_LIVE_REC;
  15448. session_type = SESSION_TYPE_TX;
  15449. }
  15450. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15451. (i <= MSM_FRONTEND_DAI_LSM8);
  15452. fdai = &fe_dai_map[i][session_type];
  15453. if (fdai->strm_id != INVALID_SESSION) {
  15454. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15455. if (session_type == SESSION_TYPE_TX &&
  15456. fdai->be_srate &&
  15457. (fdai->be_srate != bedai->sample_rate)) {
  15458. pr_debug("%s: flush strm %d diff BE rates\n",
  15459. __func__,
  15460. fdai->strm_id);
  15461. if (fdai->event_info.event_func)
  15462. fdai->event_info.event_func(
  15463. MSM_PCM_RT_EVT_BUF_RECFG,
  15464. fdai->event_info.priv_data);
  15465. fdai->be_srate = 0; /* might not need it */
  15466. }
  15467. bits_per_sample = msm_routing_get_bit_width(
  15468. bedai->format);
  15469. app_type =
  15470. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15471. if (app_type && is_lsm) {
  15472. app_type_idx =
  15473. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15474. sample_rate =
  15475. fe_dai_app_type_cfg[i][session_type][be_id]
  15476. .sample_rate;
  15477. bits_per_sample =
  15478. lsm_app_type_cfg[app_type_idx].bit_width;
  15479. } else if (app_type) {
  15480. app_type_idx =
  15481. msm_pcm_routing_get_app_type_idx(app_type);
  15482. sample_rate =
  15483. fe_dai_app_type_cfg[i][session_type]
  15484. [be_id].sample_rate;
  15485. bits_per_sample =
  15486. app_type_cfg[app_type_idx].bit_width;
  15487. } else
  15488. sample_rate = bedai->sample_rate;
  15489. /*
  15490. * check if ADM needs to be configured with different
  15491. * channel mapping than backend
  15492. */
  15493. if (!bedai->adm_override_ch)
  15494. channels = bedai->channel;
  15495. else
  15496. channels = bedai->adm_override_ch;
  15497. acdb_dev_id =
  15498. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15499. topology = msm_routing_get_adm_topology(i, session_type,
  15500. be_id);
  15501. copp_idx = adm_open(bedai->port_id, path_type,
  15502. sample_rate, channels, topology,
  15503. fdai->perf_mode, bits_per_sample,
  15504. app_type, acdb_dev_id);
  15505. if ((copp_idx < 0) ||
  15506. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15507. pr_err("%s: adm open failed\n", __func__);
  15508. mutex_unlock(&routing_lock);
  15509. return -EINVAL;
  15510. }
  15511. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15512. __func__, i, session_type, be_id);
  15513. set_bit(copp_idx,
  15514. &session_copp_map[i][session_type][be_id]);
  15515. if (msm_is_resample_needed(
  15516. sample_rate,
  15517. bedai->sample_rate))
  15518. adm_copp_mfc_cfg(
  15519. bedai->port_id, copp_idx,
  15520. bedai->sample_rate);
  15521. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15522. fdai->perf_mode,
  15523. bedai->passthr_mode[i]);
  15524. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15525. (bedai->passthr_mode[i] == LEGACY_PCM))
  15526. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15527. topology, channels);
  15528. }
  15529. }
  15530. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15531. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15532. if (session_id) {
  15533. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15534. session_id);
  15535. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15536. voc_path_type = RX_PATH;
  15537. else
  15538. voc_path_type = TX_PATH;
  15539. voc_set_route_flag(session_id, voc_path_type, 1);
  15540. memset(&voc_be_media_format, 0,
  15541. sizeof(struct media_format_info));
  15542. voc_be_media_format.port_id = bedai->port_id;
  15543. voc_be_media_format.num_channels = bedai->channel;
  15544. voc_be_media_format.sample_rate = bedai->sample_rate;
  15545. voc_be_media_format.bits_per_sample = bedai->format;
  15546. /* Defaulting this to 1 for voice call usecases */
  15547. voc_be_media_format.channel_mapping[0] = 1;
  15548. voc_set_device_config(session_id, voc_path_type,
  15549. &voc_be_media_format);
  15550. if (voc_get_route_flag(session_id, RX_PATH) &&
  15551. voc_get_route_flag(session_id, TX_PATH))
  15552. voc_enable_device(session_id);
  15553. }
  15554. }
  15555. /* Check if backend is an external ec ref port and set as needed */
  15556. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15557. memset(&voc_be_media_format, 0,
  15558. sizeof(struct media_format_info));
  15559. /* Get format info for ec ref port from msm_bedais[] */
  15560. voc_be_media_format.port_id = bedai->port_id;
  15561. voc_be_media_format.num_channels = bedai->channel;
  15562. voc_be_media_format.bits_per_sample = bedai->format;
  15563. voc_be_media_format.sample_rate = bedai->sample_rate;
  15564. /* Defaulting this to 1 for voice call usecases */
  15565. voc_be_media_format.channel_mapping[0] = 1;
  15566. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15567. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15568. __func__, voc_be_media_format.port_id,
  15569. voc_be_media_format.num_channels,
  15570. voc_be_media_format.bits_per_sample,
  15571. voc_be_media_format.sample_rate);
  15572. }
  15573. done:
  15574. mutex_unlock(&routing_lock);
  15575. return 0;
  15576. }
  15577. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15578. int fe_id)
  15579. {
  15580. int index, topo_id, be_idx;
  15581. unsigned long pp_config = 0;
  15582. bool mute_on;
  15583. int latency;
  15584. bool compr_passthr_mode = true;
  15585. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15586. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15587. pr_err("%s: Device pp params on invalid port %d\n",
  15588. __func__, port_id);
  15589. return -EINVAL;
  15590. }
  15591. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15592. if (port_id == msm_bedais[be_idx].port_id)
  15593. break;
  15594. }
  15595. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15596. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15597. return -EINVAL;
  15598. }
  15599. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15600. if (msm_bedais_pp_params[index].port_id == port_id)
  15601. break;
  15602. }
  15603. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15604. pr_err("%s: Invalid backend pp params index %d\n",
  15605. __func__, index);
  15606. return -EINVAL;
  15607. }
  15608. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15609. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15610. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15611. __func__, topo_id);
  15612. return -EINVAL;
  15613. }
  15614. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15615. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15616. compr_passthr_mode = false;
  15617. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15618. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15619. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15620. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15621. mute_on = msm_bedais_pp_params[index].mute_on;
  15622. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15623. adm_send_compressed_device_mute(port_id,
  15624. copp_idx,
  15625. mute_on);
  15626. }
  15627. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15628. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15629. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15630. &pp_config);
  15631. latency = msm_bedais_pp_params[index].latency;
  15632. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15633. adm_send_compressed_device_latency(port_id,
  15634. copp_idx,
  15635. latency);
  15636. }
  15637. return 0;
  15638. }
  15639. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15640. struct snd_ctl_elem_value *ucontrol)
  15641. {
  15642. int pp_id = ucontrol->value.integer.value[0];
  15643. int port_id = 0;
  15644. int index, be_idx, i, topo_id, idx;
  15645. bool mute;
  15646. int latency;
  15647. bool compr_passthr_mode = true;
  15648. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15649. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15650. port_id = msm_bedais[be_idx].port_id;
  15651. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15652. break;
  15653. }
  15654. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15655. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15656. return -EINVAL;
  15657. }
  15658. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15659. if (msm_bedais_pp_params[index].port_id == port_id)
  15660. break;
  15661. }
  15662. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15663. pr_err("%s: Invalid pp params backend index %d\n",
  15664. __func__, index);
  15665. return -EINVAL;
  15666. }
  15667. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15668. MSM_FRONTEND_DAI_MM_SIZE) {
  15669. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15670. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15671. compr_passthr_mode = false;
  15672. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15673. unsigned long copp =
  15674. session_copp_map[i]
  15675. [SESSION_TYPE_RX][be_idx];
  15676. if (!test_bit(idx, &copp))
  15677. continue;
  15678. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15679. idx);
  15680. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15681. continue;
  15682. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15683. __func__, port_id, copp, msm_bedais[be_idx].active,
  15684. msm_bedais[be_idx].passthr_mode[i]);
  15685. switch (pp_id) {
  15686. case ADM_PP_PARAM_MUTE_ID:
  15687. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15688. mute = ucontrol->value.integer.value[1] ? true : false;
  15689. msm_bedais_pp_params[index].mute_on = mute;
  15690. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15691. &msm_bedais_pp_params[index].pp_params_config);
  15692. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15693. adm_send_compressed_device_mute(port_id,
  15694. idx, mute);
  15695. break;
  15696. case ADM_PP_PARAM_LATENCY_ID:
  15697. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15698. msm_bedais_pp_params[index].latency =
  15699. ucontrol->value.integer.value[1];
  15700. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15701. &msm_bedais_pp_params[index].pp_params_config);
  15702. latency = msm_bedais_pp_params[index].latency =
  15703. ucontrol->value.integer.value[1];
  15704. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15705. adm_send_compressed_device_latency(port_id,
  15706. idx, latency);
  15707. break;
  15708. default:
  15709. pr_info("%s, device pp param %d not supported\n",
  15710. __func__, pp_id);
  15711. break;
  15712. }
  15713. }
  15714. }
  15715. return 0;
  15716. }
  15717. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15718. struct snd_ctl_elem_value *ucontrol)
  15719. {
  15720. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15721. return 0;
  15722. }
  15723. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15724. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15725. 0, 3, msm_routing_get_device_pp_params_mixer,
  15726. msm_routing_put_device_pp_params_mixer),
  15727. };
  15728. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15729. struct snd_ctl_elem_value *ucontrol)
  15730. {
  15731. ucontrol->value.integer.value[0] =
  15732. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15733. pr_debug("%s: status %ld\n", __func__,
  15734. ucontrol->value.integer.value[0]);
  15735. return 0;
  15736. }
  15737. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15738. struct snd_ctl_elem_value *ucontrol)
  15739. {
  15740. int32_t status = 0;
  15741. status = core_set_license(ucontrol->value.integer.value[0],
  15742. APTX_CLASSIC_DEC_LICENSE_ID);
  15743. pr_debug("%s: status %d\n", __func__, status);
  15744. return status;
  15745. }
  15746. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15747. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15748. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15749. msm_aptx_dec_license_control_put),
  15750. };
  15751. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15752. struct snd_ctl_elem_info *uinfo)
  15753. {
  15754. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15755. uinfo->count = sizeof(be_dai_name_table);
  15756. return 0;
  15757. }
  15758. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15759. unsigned int __user *bytes,
  15760. unsigned int size)
  15761. {
  15762. int i;
  15763. int ret;
  15764. if (size < sizeof(be_dai_name_table)) {
  15765. pr_err("%s: invalid size %d requested, returning\n",
  15766. __func__, size);
  15767. ret = -EINVAL;
  15768. goto done;
  15769. }
  15770. /*
  15771. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15772. * needed when adding new backends
  15773. */
  15774. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15775. be_dai_name_table[i].be_id = i;
  15776. strlcpy(be_dai_name_table[i].be_name,
  15777. msm_bedais[i].name,
  15778. LPASS_BE_NAME_MAX_LENGTH);
  15779. }
  15780. ret = copy_to_user(bytes, &be_dai_name_table,
  15781. sizeof(be_dai_name_table));
  15782. if (ret) {
  15783. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15784. ret = -EFAULT;
  15785. }
  15786. done:
  15787. return ret;
  15788. }
  15789. static const struct snd_kcontrol_new
  15790. msm_routing_be_dai_name_table_mixer_controls[] = {
  15791. {
  15792. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15793. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15794. .info = msm_routing_be_dai_name_table_info,
  15795. .name = "Backend DAI Name Table",
  15796. .tlv.c = snd_soc_bytes_tlv_callback,
  15797. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15798. .max = sizeof(be_dai_name_table),
  15799. .get = msm_routing_be_dai_name_table_tlv_get,
  15800. }
  15801. },
  15802. };
  15803. static int msm_routing_stereo_channel_reverse_control_get(
  15804. struct snd_kcontrol *kcontrol,
  15805. struct snd_ctl_elem_value *ucontrol)
  15806. {
  15807. ucontrol->value.integer.value[0] = swap_ch;
  15808. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15809. ucontrol->value.integer.value[0]);
  15810. return 0;
  15811. }
  15812. static int msm_routing_stereo_channel_reverse_control_put(
  15813. struct snd_kcontrol *kcontrol,
  15814. struct snd_ctl_elem_value *ucontrol)
  15815. {
  15816. int i, idx, be_index, port_id;
  15817. int ret = 0;
  15818. unsigned long copp;
  15819. pr_debug("%s Swap channel value:%ld\n", __func__,
  15820. ucontrol->value.integer.value[0]);
  15821. swap_ch = ucontrol->value.integer.value[0];
  15822. mutex_lock(&routing_lock);
  15823. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15824. port_id = msm_bedais[be_index].port_id;
  15825. if (!msm_bedais[be_index].active)
  15826. continue;
  15827. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15828. MSM_FRONTEND_DAI_MM_SIZE) {
  15829. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  15830. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15831. if (!test_bit(idx, &copp))
  15832. continue;
  15833. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  15834. __func__, port_id, idx);
  15835. ret = adm_swap_speaker_channels(
  15836. port_id, idx,
  15837. msm_bedais[be_index].sample_rate,
  15838. swap_ch);
  15839. if (ret) {
  15840. pr_err("%s:Swap_channel failed, err=%d\n",
  15841. __func__, ret);
  15842. goto done;
  15843. }
  15844. }
  15845. }
  15846. }
  15847. done:
  15848. mutex_unlock(&routing_lock);
  15849. return ret;
  15850. }
  15851. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  15852. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  15853. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  15854. msm_routing_stereo_channel_reverse_control_put),
  15855. };
  15856. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  15857. .hw_params = msm_pcm_routing_hw_params,
  15858. .close = msm_pcm_routing_close,
  15859. .prepare = msm_pcm_routing_prepare,
  15860. };
  15861. /* Not used but frame seems to require it */
  15862. static int msm_routing_probe(struct snd_soc_platform *platform)
  15863. {
  15864. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  15865. ARRAY_SIZE(msm_qdsp6_widgets));
  15866. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  15867. ARRAY_SIZE(intercon));
  15868. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  15869. snd_soc_add_platform_controls(platform, lsm_controls,
  15870. ARRAY_SIZE(lsm_controls));
  15871. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  15872. ARRAY_SIZE(aanc_slim_0_rx_mux));
  15873. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  15874. ARRAY_SIZE(msm_voc_session_controls));
  15875. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  15876. ARRAY_SIZE(app_type_cfg_controls));
  15877. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  15878. ARRAY_SIZE(lsm_app_type_cfg_controls));
  15879. snd_soc_add_platform_controls(platform, module_cfg_controls,
  15880. ARRAY_SIZE(module_cfg_controls));
  15881. snd_soc_add_platform_controls(platform,
  15882. stereo_to_custom_stereo_controls,
  15883. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  15884. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  15885. ARRAY_SIZE(ec_ref_param_controls));
  15886. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  15887. ARRAY_SIZE(channel_mixer_controls));
  15888. msm_qti_pp_add_controls(platform);
  15889. msm_dts_srs_tm_add_controls(platform);
  15890. msm_dolby_dap_add_controls(platform);
  15891. snd_soc_add_platform_controls(platform,
  15892. use_ds1_or_ds2_controls,
  15893. ARRAY_SIZE(use_ds1_or_ds2_controls));
  15894. snd_soc_add_platform_controls(platform,
  15895. device_pp_params_mixer_controls,
  15896. ARRAY_SIZE(device_pp_params_mixer_controls));
  15897. snd_soc_add_platform_controls(platform,
  15898. msm_routing_be_dai_name_table_mixer_controls,
  15899. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  15900. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  15901. ARRAY_SIZE(msm_source_tracking_controls));
  15902. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  15903. ARRAY_SIZE(adm_channel_config_controls));
  15904. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  15905. ARRAY_SIZE(aptx_dec_license_controls));
  15906. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  15907. ARRAY_SIZE(stereo_channel_reverse_control));
  15908. return 0;
  15909. }
  15910. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  15911. {
  15912. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  15913. }
  15914. void msm_routing_pcm_free(struct snd_pcm *pcm)
  15915. {
  15916. msm_pcm_routing_hwdep_free(pcm);
  15917. }
  15918. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  15919. .ops = &msm_routing_pcm_ops,
  15920. .probe = msm_routing_probe,
  15921. .pcm_new = msm_routing_pcm_new,
  15922. .pcm_free = msm_routing_pcm_free,
  15923. };
  15924. static int msm_routing_pcm_probe(struct platform_device *pdev)
  15925. {
  15926. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  15927. return snd_soc_register_platform(&pdev->dev,
  15928. &msm_soc_routing_platform);
  15929. }
  15930. static int msm_routing_pcm_remove(struct platform_device *pdev)
  15931. {
  15932. snd_soc_unregister_platform(&pdev->dev);
  15933. return 0;
  15934. }
  15935. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  15936. {.compatible = "qcom,msm-pcm-routing"},
  15937. {}
  15938. };
  15939. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  15940. static struct platform_driver msm_routing_pcm_driver = {
  15941. .driver = {
  15942. .name = "msm-pcm-routing",
  15943. .owner = THIS_MODULE,
  15944. .of_match_table = msm_pcm_routing_dt_match,
  15945. },
  15946. .probe = msm_routing_pcm_probe,
  15947. .remove = msm_routing_pcm_remove,
  15948. };
  15949. int msm_routing_check_backend_enabled(int fedai_id)
  15950. {
  15951. int i;
  15952. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  15953. /* bad ID assigned in machine driver */
  15954. pr_err("%s: bad MM ID\n", __func__);
  15955. return 0;
  15956. }
  15957. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15958. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  15959. return msm_bedais[i].active;
  15960. }
  15961. return 0;
  15962. }
  15963. static int get_cal_type_index(int32_t cal_type)
  15964. {
  15965. int ret = -EINVAL;
  15966. switch (cal_type) {
  15967. case ADM_TOPOLOGY_CAL_TYPE:
  15968. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  15969. break;
  15970. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  15971. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  15972. break;
  15973. default:
  15974. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  15975. }
  15976. return ret;
  15977. }
  15978. static int msm_routing_set_cal(int32_t cal_type,
  15979. size_t data_size, void *data)
  15980. {
  15981. int ret = 0;
  15982. int cal_index;
  15983. pr_debug("%s\n", __func__);
  15984. cal_index = get_cal_type_index(cal_type);
  15985. if (cal_index < 0) {
  15986. pr_err("%s: Could not get cal index %d\n",
  15987. __func__, cal_index);
  15988. ret = -EINVAL;
  15989. goto done;
  15990. }
  15991. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  15992. if (ret < 0) {
  15993. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  15994. __func__, ret, cal_type);
  15995. ret = -EINVAL;
  15996. goto done;
  15997. }
  15998. done:
  15999. return ret;
  16000. }
  16001. static void msm_routing_delete_cal_data(void)
  16002. {
  16003. pr_debug("%s\n", __func__);
  16004. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  16005. }
  16006. static int msm_routing_init_cal_data(void)
  16007. {
  16008. int ret = 0;
  16009. struct cal_type_info cal_type_info[] = {
  16010. {{ADM_TOPOLOGY_CAL_TYPE,
  16011. {NULL, NULL, NULL,
  16012. msm_routing_set_cal, NULL, NULL} },
  16013. {NULL, NULL, cal_utils_match_buf_num} },
  16014. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16015. {NULL, NULL, NULL,
  16016. msm_routing_set_cal, NULL, NULL} },
  16017. {NULL, NULL, cal_utils_match_buf_num} },
  16018. };
  16019. pr_debug("%s\n", __func__);
  16020. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16021. &cal_type_info[0]);
  16022. if (ret < 0) {
  16023. pr_err("%s: could not create cal type!\n",
  16024. __func__);
  16025. ret = -EINVAL;
  16026. goto err;
  16027. }
  16028. return ret;
  16029. err:
  16030. msm_routing_delete_cal_data();
  16031. return ret;
  16032. }
  16033. int __init msm_soc_routing_platform_init(void)
  16034. {
  16035. mutex_init(&routing_lock);
  16036. if (msm_routing_init_cal_data())
  16037. pr_err("%s: could not init cal data!\n", __func__);
  16038. afe_set_routing_callback(
  16039. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16040. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16041. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16042. return platform_driver_register(&msm_routing_pcm_driver);
  16043. }
  16044. void msm_soc_routing_platform_exit(void)
  16045. {
  16046. msm_routing_delete_cal_data();
  16047. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16048. mutex_destroy(&routing_lock);
  16049. platform_driver_unregister(&msm_routing_pcm_driver);
  16050. }
  16051. MODULE_DESCRIPTION("MSM routing platform driver");
  16052. MODULE_LICENSE("GPL v2");