msm-pcm-routing-v2.c 724 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265
  1. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* VOIP */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* AFE_RX */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* AFE_TX */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* VOICE_STUB */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* DTMF_RX */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* QCHAT */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* VOLTE_STUB */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* LSM1 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* LSM2 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* LSM3 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM4 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM5 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM6 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM7 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM8 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* VOICE2_STUB */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* VOICEMMODE1 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* VOICEMMODE2 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. };
  673. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  674. [MSM_BACKEND_DAI_MAX];
  675. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  676. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  677. static struct msm_pcm_stream_app_type_cfg
  678. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  679. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  680. /* The caller of this should aqcuire routing lock */
  681. void msm_pcm_routing_get_bedai_info(int be_idx,
  682. struct msm_pcm_routing_bdai_data *be_dai)
  683. {
  684. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  685. memcpy(be_dai, &msm_bedais[be_idx],
  686. sizeof(struct msm_pcm_routing_bdai_data));
  687. }
  688. /* The caller of this should aqcuire routing lock */
  689. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  690. struct msm_pcm_routing_fdai_data *fe_dai)
  691. {
  692. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  693. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  694. sizeof(struct msm_pcm_routing_fdai_data));
  695. }
  696. void msm_pcm_routing_acquire_lock(void)
  697. {
  698. mutex_lock(&routing_lock);
  699. }
  700. void msm_pcm_routing_release_lock(void)
  701. {
  702. mutex_unlock(&routing_lock);
  703. }
  704. static int msm_pcm_routing_get_app_type_idx(int app_type)
  705. {
  706. int idx;
  707. pr_debug("%s: app_type: %d\n", __func__, app_type);
  708. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  709. if (app_type_cfg[idx].app_type == app_type)
  710. return idx;
  711. }
  712. pr_info("%s: App type not available, fallback to default\n", __func__);
  713. return 0;
  714. }
  715. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  716. {
  717. int idx;
  718. pr_debug("%s: app_type: %d\n", __func__, app_type);
  719. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  720. if (lsm_app_type_cfg[idx].app_type == app_type)
  721. return idx;
  722. }
  723. pr_debug("%s: App type not available, fallback to default\n", __func__);
  724. return 0;
  725. }
  726. static bool is_mm_lsm_fe_id(int fe_id)
  727. {
  728. bool rc = true;
  729. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  730. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  731. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  732. rc = false;
  733. }
  734. return rc;
  735. }
  736. int msm_pcm_routing_reg_stream_app_type_cfg(
  737. int fedai_id, int session_type, int be_id,
  738. struct msm_pcm_stream_app_type_cfg *cfg_data)
  739. {
  740. int ret = 0;
  741. if (cfg_data == NULL) {
  742. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  743. ret = -EINVAL;
  744. goto done;
  745. }
  746. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  747. __func__, fedai_id, session_type, be_id,
  748. cfg_data->app_type, cfg_data->acdb_dev_id,
  749. cfg_data->sample_rate);
  750. if (!is_mm_lsm_fe_id(fedai_id)) {
  751. pr_err("%s: Invalid machine driver ID %d\n",
  752. __func__, fedai_id);
  753. ret = -EINVAL;
  754. goto done;
  755. }
  756. if (session_type != SESSION_TYPE_RX &&
  757. session_type != SESSION_TYPE_TX) {
  758. pr_err("%s: Invalid session type %d\n",
  759. __func__, session_type);
  760. ret = -EINVAL;
  761. goto done;
  762. }
  763. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  764. pr_err("%s: Received out of bounds be_id %d\n",
  765. __func__, be_id);
  766. ret = -EINVAL;
  767. goto done;
  768. }
  769. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  770. /*
  771. * Store the BE ID of the configuration information set as the latest so
  772. * the get mixer control knows what to return.
  773. */
  774. last_be_id_configured[fedai_id][session_type] = be_id;
  775. done:
  776. return ret;
  777. }
  778. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  779. /**
  780. * msm_pcm_routing_get_stream_app_type_cfg
  781. *
  782. * Receives fedai_id, session_type, be_id, and populates app_type,
  783. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  784. * -EINVAL and does not alter passed values.
  785. *
  786. * fedai_id - Passed value, front end ID for which app type config is wanted
  787. * session_type - Passed value, session type for which app type config
  788. * is wanted
  789. * be_id - Returned value, back end device id the app type config data is for
  790. * cfg_data - Returned value, configuration data used by app type config
  791. */
  792. int msm_pcm_routing_get_stream_app_type_cfg(
  793. int fedai_id, int session_type, int *bedai_id,
  794. struct msm_pcm_stream_app_type_cfg *cfg_data)
  795. {
  796. int be_id;
  797. int ret = 0;
  798. if (bedai_id == NULL) {
  799. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  800. ret = -EINVAL;
  801. goto done;
  802. } else if (cfg_data == NULL) {
  803. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  804. ret = -EINVAL;
  805. goto done;
  806. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  807. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  808. ret = -EINVAL;
  809. goto done;
  810. } else if (session_type != SESSION_TYPE_RX &&
  811. session_type != SESSION_TYPE_TX) {
  812. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  813. ret = -EINVAL;
  814. goto done;
  815. }
  816. be_id = last_be_id_configured[fedai_id][session_type];
  817. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  818. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  819. ret = -EINVAL;
  820. goto done;
  821. }
  822. *bedai_id = be_id;
  823. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  824. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  825. __func__, fedai_id, session_type, *bedai_id,
  826. cfg_data->app_type, cfg_data->acdb_dev_id,
  827. cfg_data->sample_rate);
  828. done:
  829. return ret;
  830. }
  831. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  832. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  833. int cal_index)
  834. {
  835. struct list_head *ptr, *next;
  836. struct cal_block_data *cal_block = NULL;
  837. pr_debug("%s\n", __func__);
  838. list_for_each_safe(ptr, next,
  839. &cal_data[cal_index]->cal_blocks) {
  840. cal_block = list_entry(ptr,
  841. struct cal_block_data, list);
  842. if (((struct audio_cal_info_adm_top *)cal_block
  843. ->cal_info)->path == path) {
  844. return cal_block;
  845. }
  846. }
  847. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  848. return NULL;
  849. }
  850. static struct cal_block_data *msm_routing_find_topology(int path,
  851. int app_type,
  852. int acdb_id,
  853. int cal_index)
  854. {
  855. struct list_head *ptr, *next;
  856. struct cal_block_data *cal_block = NULL;
  857. struct audio_cal_info_adm_top *cal_info;
  858. pr_debug("%s\n", __func__);
  859. list_for_each_safe(ptr, next,
  860. &cal_data[cal_index]->cal_blocks) {
  861. cal_block = list_entry(ptr,
  862. struct cal_block_data, list);
  863. cal_info = (struct audio_cal_info_adm_top *)
  864. cal_block->cal_info;
  865. if ((cal_info->path == path) &&
  866. (cal_info->app_type == app_type) &&
  867. (cal_info->acdb_id == acdb_id)) {
  868. return cal_block;
  869. }
  870. }
  871. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  872. __func__, path, app_type, acdb_id);
  873. return msm_routing_find_topology_by_path(cal_index, path);
  874. }
  875. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  876. int be_id)
  877. {
  878. int topology = NULL_COPP_TOPOLOGY;
  879. struct cal_block_data *cal_block = NULL;
  880. int app_type = 0, acdb_dev_id = 0;
  881. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  882. __func__, fedai_id, session_type, be_id);
  883. if (cal_data == NULL)
  884. goto done;
  885. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  886. acdb_dev_id =
  887. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  888. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  889. cal_block = msm_routing_find_topology(session_type, app_type,
  890. acdb_dev_id,
  891. ADM_TOPOLOGY_CAL_TYPE_IDX);
  892. if (cal_block != NULL)
  893. topology = ((struct audio_cal_info_adm_top *)
  894. cal_block->cal_info)->topology;
  895. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  896. if (cal_block == NULL) {
  897. pr_debug("%s: Check for LSM topology\n", __func__);
  898. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  899. cal_block = msm_routing_find_topology(session_type, app_type,
  900. acdb_dev_id,
  901. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  902. if (cal_block != NULL)
  903. topology = ((struct audio_cal_info_adm_top *)
  904. cal_block->cal_info)->topology;
  905. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  906. }
  907. done:
  908. pr_debug("%s: Using topology %d\n", __func__, topology);
  909. return topology;
  910. }
  911. static uint8_t is_be_dai_extproc(int be_dai)
  912. {
  913. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  914. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  915. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  916. return 1;
  917. else
  918. return 0;
  919. }
  920. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  921. int path_type, int perf_mode,
  922. uint32_t passthr_mode)
  923. {
  924. int i, port_type, j, num_copps = 0;
  925. struct route_payload payload;
  926. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  927. path_type == ADM_PATH_COMPRESSED_RX) ?
  928. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  929. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  930. if (!is_be_dai_extproc(i) &&
  931. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  932. (msm_bedais[i].active) &&
  933. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  934. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  935. unsigned long copp =
  936. session_copp_map[fedai_id][sess_type][i];
  937. if (test_bit(j, &copp)) {
  938. payload.port_id[num_copps] =
  939. msm_bedais[i].port_id;
  940. payload.copp_idx[num_copps] = j;
  941. payload.app_type[num_copps] =
  942. fe_dai_app_type_cfg
  943. [fedai_id][sess_type][i]
  944. .app_type;
  945. payload.acdb_dev_id[num_copps] =
  946. fe_dai_app_type_cfg
  947. [fedai_id][sess_type][i]
  948. .acdb_dev_id;
  949. payload.sample_rate[num_copps] =
  950. fe_dai_app_type_cfg
  951. [fedai_id][sess_type][i]
  952. .sample_rate;
  953. num_copps++;
  954. }
  955. }
  956. }
  957. }
  958. if (num_copps) {
  959. payload.num_copps = num_copps;
  960. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  961. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  962. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  963. }
  964. }
  965. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  966. int stream_type)
  967. {
  968. int i, session_type, path_type, port_type;
  969. u32 mode = 0;
  970. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  971. /* bad ID assigned in machine driver */
  972. pr_err("%s: bad MM ID\n", __func__);
  973. return;
  974. }
  975. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  976. session_type = SESSION_TYPE_RX;
  977. path_type = ADM_PATH_PLAYBACK;
  978. port_type = MSM_AFE_PORT_TYPE_RX;
  979. } else {
  980. session_type = SESSION_TYPE_TX;
  981. path_type = ADM_PATH_LIVE_REC;
  982. port_type = MSM_AFE_PORT_TYPE_TX;
  983. }
  984. mutex_lock(&routing_lock);
  985. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  986. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  987. if (!is_be_dai_extproc(i) &&
  988. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  989. (msm_bedais[i].active) &&
  990. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  991. mode = afe_get_port_type(msm_bedais[i].port_id);
  992. adm_connect_afe_port(mode, dspst_id,
  993. msm_bedais[i].port_id);
  994. break;
  995. }
  996. }
  997. mutex_unlock(&routing_lock);
  998. }
  999. static bool route_check_fe_id_adm_support(int fe_id)
  1000. {
  1001. bool rc = true;
  1002. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1003. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1004. /* fe id is listen while port is set to afe */
  1005. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1006. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1007. __func__, fe_id, lsm_port_index);
  1008. rc = false;
  1009. }
  1010. }
  1011. return rc;
  1012. }
  1013. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1014. int dspst_id, int stream_type,
  1015. uint32_t passthr_mode)
  1016. {
  1017. int i, j, session_type, path_type, port_type, topology;
  1018. int num_copps = 0;
  1019. struct route_payload payload;
  1020. u32 channels, sample_rate;
  1021. u16 bit_width = 16;
  1022. bool is_lsm;
  1023. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1024. __func__, fe_id, perf_mode, dspst_id,
  1025. stream_type, passthr_mode);
  1026. if (!is_mm_lsm_fe_id(fe_id)) {
  1027. /* bad ID assigned in machine driver */
  1028. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1029. return -EINVAL;
  1030. }
  1031. if (!route_check_fe_id_adm_support(fe_id)) {
  1032. /* ignore adm open if not supported for fe_id */
  1033. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1034. return 0;
  1035. }
  1036. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1037. session_type = SESSION_TYPE_RX;
  1038. if (passthr_mode != LEGACY_PCM)
  1039. path_type = ADM_PATH_COMPRESSED_RX;
  1040. else
  1041. path_type = ADM_PATH_PLAYBACK;
  1042. port_type = MSM_AFE_PORT_TYPE_RX;
  1043. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1044. session_type = SESSION_TYPE_TX;
  1045. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1046. path_type = ADM_PATH_COMPRESSED_TX;
  1047. else
  1048. path_type = ADM_PATH_LIVE_REC;
  1049. port_type = MSM_AFE_PORT_TYPE_TX;
  1050. } else {
  1051. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1052. return -EINVAL;
  1053. }
  1054. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1055. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1056. mutex_lock(&routing_lock);
  1057. payload.num_copps = 0; /* only RX needs to use payload */
  1058. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1059. /* re-enable EQ if active */
  1060. msm_qti_pp_send_eq_values(fe_id);
  1061. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1062. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1063. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1064. if (!is_be_dai_extproc(i) &&
  1065. (afe_get_port_type(msm_bedais[i].port_id) ==
  1066. port_type) &&
  1067. (msm_bedais[i].active) &&
  1068. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1069. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1070. /*
  1071. * check if ADM needs to be configured with different
  1072. * channel mapping than backend
  1073. */
  1074. if (!msm_bedais[i].adm_override_ch)
  1075. channels = msm_bedais[i].channel;
  1076. else
  1077. channels = msm_bedais[i].adm_override_ch;
  1078. bit_width = msm_routing_get_bit_width(
  1079. msm_bedais[i].format);
  1080. app_type =
  1081. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1082. if (app_type && is_lsm) {
  1083. app_type_idx =
  1084. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1085. sample_rate =
  1086. fe_dai_app_type_cfg[fe_id][session_type][i]
  1087. .sample_rate;
  1088. bit_width =
  1089. lsm_app_type_cfg[app_type_idx].bit_width;
  1090. } else if (app_type) {
  1091. app_type_idx =
  1092. msm_pcm_routing_get_app_type_idx(
  1093. app_type);
  1094. sample_rate =
  1095. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1096. bit_width =
  1097. app_type_cfg[app_type_idx].bit_width;
  1098. } else {
  1099. sample_rate = msm_bedais[i].sample_rate;
  1100. }
  1101. acdb_dev_id =
  1102. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1103. topology = msm_routing_get_adm_topology(fe_id,
  1104. session_type,
  1105. i);
  1106. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1107. || (passthr_mode ==
  1108. COMPRESSED_PASSTHROUGH_GEN))
  1109. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1110. pr_debug("%s: Before adm open topology %d\n", __func__,
  1111. topology);
  1112. copp_idx =
  1113. adm_open(msm_bedais[i].port_id,
  1114. path_type, sample_rate, channels,
  1115. topology, perf_mode, bit_width,
  1116. app_type, acdb_dev_id);
  1117. if ((copp_idx < 0) ||
  1118. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1119. pr_err("%s:adm open failed coppid:%d\n",
  1120. __func__, copp_idx);
  1121. mutex_unlock(&routing_lock);
  1122. return -EINVAL;
  1123. }
  1124. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1125. __func__, fe_id, session_type, i);
  1126. set_bit(copp_idx,
  1127. &session_copp_map[fe_id][session_type][i]);
  1128. if (msm_is_resample_needed(
  1129. sample_rate,
  1130. msm_bedais[i].sample_rate))
  1131. adm_copp_mfc_cfg(
  1132. msm_bedais[i].port_id, copp_idx,
  1133. msm_bedais[i].sample_rate);
  1134. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1135. unsigned long copp =
  1136. session_copp_map[fe_id][session_type][i];
  1137. if (test_bit(j, &copp)) {
  1138. payload.port_id[num_copps] =
  1139. msm_bedais[i].port_id;
  1140. payload.copp_idx[num_copps] = j;
  1141. payload.app_type[num_copps] =
  1142. fe_dai_app_type_cfg
  1143. [fe_id][session_type][i]
  1144. .app_type;
  1145. payload.acdb_dev_id[num_copps] =
  1146. fe_dai_app_type_cfg
  1147. [fe_id][session_type][i]
  1148. .acdb_dev_id;
  1149. payload.sample_rate[num_copps] =
  1150. fe_dai_app_type_cfg
  1151. [fe_id][session_type][i]
  1152. .sample_rate;
  1153. num_copps++;
  1154. }
  1155. }
  1156. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1157. && passthr_mode !=
  1158. COMPRESSED_PASSTHROUGH_GEN) {
  1159. msm_routing_send_device_pp_params(
  1160. msm_bedais[i].port_id,
  1161. copp_idx, fe_id);
  1162. }
  1163. }
  1164. }
  1165. if (num_copps) {
  1166. payload.num_copps = num_copps;
  1167. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1168. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1169. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1170. }
  1171. mutex_unlock(&routing_lock);
  1172. return 0;
  1173. }
  1174. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1175. {
  1176. u32 session_id;
  1177. switch (val) {
  1178. case MSM_FRONTEND_DAI_QCHAT:
  1179. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1180. break;
  1181. case MSM_FRONTEND_DAI_VOIP:
  1182. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1183. break;
  1184. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1185. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1186. break;
  1187. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1188. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1189. break;
  1190. default:
  1191. session_id = 0;
  1192. }
  1193. pr_debug("%s session_id 0x%x", __func__, session_id);
  1194. return session_id;
  1195. }
  1196. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1197. int dspst_id, int stream_type)
  1198. {
  1199. int copp_idx = 0;
  1200. int sess_type = 0;
  1201. int i = 0, j = 0, be_id;
  1202. int ret = 0;
  1203. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1204. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1205. return 0;
  1206. }
  1207. if (!(channel_mixer[fe_id].enable)) {
  1208. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1209. __func__, fe_id);
  1210. return 0;
  1211. }
  1212. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1213. sess_type = SESSION_TYPE_RX;
  1214. else
  1215. sess_type = SESSION_TYPE_TX;
  1216. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1217. ++i) {
  1218. be_id = channel_input[fe_id][i] - 1;
  1219. channel_mixer[fe_id].input_channels[i] =
  1220. msm_bedais[be_id].channel;
  1221. if ((msm_bedais[be_id].active) &&
  1222. test_bit(fe_id,
  1223. &msm_bedais[be_id].fe_sessions[0])) {
  1224. unsigned long copp =
  1225. session_copp_map[fe_id][sess_type][be_id];
  1226. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1227. if (test_bit(j, &copp)) {
  1228. copp_idx = j;
  1229. break;
  1230. }
  1231. }
  1232. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1233. __func__,
  1234. fe_id, be_id, msm_bedais[be_id].channel,
  1235. copp_idx);
  1236. ret = adm_programable_channel_mixer(
  1237. msm_bedais[be_id].port_id,
  1238. copp_idx, dspst_id, sess_type,
  1239. channel_mixer + fe_id, i);
  1240. }
  1241. }
  1242. return ret;
  1243. }
  1244. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1245. int dspst_id, int stream_type)
  1246. {
  1247. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1248. struct route_payload payload;
  1249. u32 channels, sample_rate;
  1250. uint16_t bits_per_sample = 16;
  1251. uint32_t passthr_mode = LEGACY_PCM;
  1252. int ret = 0;
  1253. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1254. /* bad ID assigned in machine driver */
  1255. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1256. return -EINVAL;
  1257. }
  1258. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1259. session_type = SESSION_TYPE_RX;
  1260. path_type = ADM_PATH_PLAYBACK;
  1261. port_type = MSM_AFE_PORT_TYPE_RX;
  1262. } else {
  1263. session_type = SESSION_TYPE_TX;
  1264. path_type = ADM_PATH_LIVE_REC;
  1265. port_type = MSM_AFE_PORT_TYPE_TX;
  1266. }
  1267. mutex_lock(&routing_lock);
  1268. payload.num_copps = 0; /* only RX needs to use payload */
  1269. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1270. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1271. /* re-enable EQ if active */
  1272. msm_qti_pp_send_eq_values(fedai_id);
  1273. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1274. if (!is_be_dai_extproc(i) &&
  1275. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1276. (msm_bedais[i].active) &&
  1277. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1278. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1279. /*
  1280. * check if ADM needs to be configured with different
  1281. * channel mapping than backend
  1282. */
  1283. if (!msm_bedais[i].adm_override_ch)
  1284. channels = msm_bedais[i].channel;
  1285. else
  1286. channels = msm_bedais[i].adm_override_ch;
  1287. msm_bedais[i].passthr_mode[fedai_id] =
  1288. LEGACY_PCM;
  1289. bits_per_sample = msm_routing_get_bit_width(
  1290. msm_bedais[i].format);
  1291. app_type =
  1292. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1293. if (app_type) {
  1294. app_type_idx =
  1295. msm_pcm_routing_get_app_type_idx(app_type);
  1296. sample_rate =
  1297. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1298. .sample_rate;
  1299. bits_per_sample =
  1300. app_type_cfg[app_type_idx].bit_width;
  1301. } else
  1302. sample_rate = msm_bedais[i].sample_rate;
  1303. acdb_dev_id =
  1304. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1305. .acdb_dev_id;
  1306. topology = msm_routing_get_adm_topology(fedai_id,
  1307. session_type,
  1308. i);
  1309. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1310. sample_rate, channels, topology,
  1311. perf_mode, bits_per_sample,
  1312. app_type, acdb_dev_id);
  1313. if ((copp_idx < 0) ||
  1314. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1315. pr_err("%s: adm open failed copp_idx:%d\n",
  1316. __func__, copp_idx);
  1317. mutex_unlock(&routing_lock);
  1318. return -EINVAL;
  1319. }
  1320. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1321. __func__, fedai_id, session_type, i);
  1322. set_bit(copp_idx,
  1323. &session_copp_map[fedai_id][session_type][i]);
  1324. if (msm_is_resample_needed(
  1325. sample_rate,
  1326. msm_bedais[i].sample_rate))
  1327. adm_copp_mfc_cfg(
  1328. msm_bedais[i].port_id, copp_idx,
  1329. msm_bedais[i].sample_rate);
  1330. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1331. unsigned long copp =
  1332. session_copp_map[fedai_id][session_type][i];
  1333. if (test_bit(j, &copp)) {
  1334. payload.port_id[num_copps] =
  1335. msm_bedais[i].port_id;
  1336. payload.copp_idx[num_copps] = j;
  1337. payload.app_type[num_copps] =
  1338. fe_dai_app_type_cfg
  1339. [fedai_id][session_type]
  1340. [i].app_type;
  1341. payload.acdb_dev_id[num_copps] =
  1342. fe_dai_app_type_cfg
  1343. [fedai_id][session_type]
  1344. [i].acdb_dev_id;
  1345. payload.sample_rate[num_copps] =
  1346. fe_dai_app_type_cfg
  1347. [fedai_id][session_type]
  1348. [i].sample_rate;
  1349. num_copps++;
  1350. }
  1351. }
  1352. if ((perf_mode == LEGACY_PCM_MODE) &&
  1353. (msm_bedais[i].passthr_mode[fedai_id] ==
  1354. LEGACY_PCM))
  1355. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1356. copp_idx, topology,
  1357. channels);
  1358. }
  1359. }
  1360. if (num_copps) {
  1361. payload.num_copps = num_copps;
  1362. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1363. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1364. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1365. }
  1366. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1367. dspst_id, stream_type);
  1368. mutex_unlock(&routing_lock);
  1369. return ret;
  1370. }
  1371. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1372. int dspst_id, int stream_type,
  1373. struct msm_pcm_routing_evt event_info)
  1374. {
  1375. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1376. stream_type)) {
  1377. pr_err("%s: failed to reg phy stream\n", __func__);
  1378. return -EINVAL;
  1379. }
  1380. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1381. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1382. else
  1383. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1384. return 0;
  1385. }
  1386. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1387. {
  1388. int i, port_type, session_type, path_type, topology;
  1389. struct msm_pcm_routing_fdai_data *fdai;
  1390. if (!is_mm_lsm_fe_id(fedai_id)) {
  1391. /* bad ID assigned in machine driver */
  1392. pr_err("%s: bad MM ID\n", __func__);
  1393. return;
  1394. }
  1395. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1396. port_type = MSM_AFE_PORT_TYPE_RX;
  1397. session_type = SESSION_TYPE_RX;
  1398. path_type = ADM_PATH_PLAYBACK;
  1399. } else {
  1400. port_type = MSM_AFE_PORT_TYPE_TX;
  1401. session_type = SESSION_TYPE_TX;
  1402. path_type = ADM_PATH_LIVE_REC;
  1403. }
  1404. mutex_lock(&routing_lock);
  1405. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1406. if (!is_be_dai_extproc(i) &&
  1407. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1408. (msm_bedais[i].active) &&
  1409. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1410. int idx;
  1411. unsigned long copp =
  1412. session_copp_map[fedai_id][session_type][i];
  1413. fdai = &fe_dai_map[fedai_id][session_type];
  1414. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1415. if (test_bit(idx, &copp))
  1416. break;
  1417. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1418. pr_debug("%s: copp idx is invalid, exiting\n",
  1419. __func__);
  1420. continue;
  1421. }
  1422. topology = adm_get_topology_for_port_copp_idx(
  1423. msm_bedais[i].port_id, idx);
  1424. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1425. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1426. __func__, copp, fedai_id, session_type, i);
  1427. clear_bit(idx,
  1428. &session_copp_map[fedai_id][session_type][i]);
  1429. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1430. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1431. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1432. (msm_bedais[i].passthr_mode[fedai_id] ==
  1433. LEGACY_PCM))
  1434. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1435. topology);
  1436. }
  1437. }
  1438. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1439. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1440. mutex_unlock(&routing_lock);
  1441. }
  1442. /* Check if FE/BE route is set */
  1443. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1444. {
  1445. bool rc = false;
  1446. if (!is_mm_lsm_fe_id(fe_id)) {
  1447. /* recheck FE ID in the mixer control defined in this file */
  1448. pr_err("%s: bad MM ID\n", __func__);
  1449. return rc;
  1450. }
  1451. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1452. rc = true;
  1453. return rc;
  1454. }
  1455. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1456. {
  1457. int session_type, path_type, topology;
  1458. u32 channels, sample_rate;
  1459. uint16_t bits_per_sample = 16;
  1460. struct msm_pcm_routing_fdai_data *fdai;
  1461. uint32_t passthr_mode;
  1462. bool is_lsm;
  1463. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1464. if (!is_mm_lsm_fe_id(val)) {
  1465. /* recheck FE ID in the mixer control defined in this file */
  1466. pr_err("%s: bad MM ID\n", __func__);
  1467. return;
  1468. }
  1469. if (!route_check_fe_id_adm_support(val)) {
  1470. /* ignore adm open if not supported for fe_id */
  1471. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1472. return;
  1473. }
  1474. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1475. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1476. MSM_AFE_PORT_TYPE_RX) {
  1477. session_type = SESSION_TYPE_RX;
  1478. if (passthr_mode != LEGACY_PCM)
  1479. path_type = ADM_PATH_COMPRESSED_RX;
  1480. else
  1481. path_type = ADM_PATH_PLAYBACK;
  1482. } else {
  1483. session_type = SESSION_TYPE_TX;
  1484. if (passthr_mode != LEGACY_PCM)
  1485. path_type = ADM_PATH_COMPRESSED_TX;
  1486. else
  1487. path_type = ADM_PATH_LIVE_REC;
  1488. }
  1489. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1490. (val <= MSM_FRONTEND_DAI_LSM8);
  1491. mutex_lock(&routing_lock);
  1492. if (set) {
  1493. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1494. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1495. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1496. voc_start_playback(set, msm_bedais[reg].port_id);
  1497. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1498. fdai = &fe_dai_map[val][session_type];
  1499. if (msm_bedais[reg].active && fdai->strm_id !=
  1500. INVALID_SESSION) {
  1501. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1502. /*
  1503. * check if ADM needs to be configured with different
  1504. * channel mapping than backend
  1505. */
  1506. if (!msm_bedais[reg].adm_override_ch)
  1507. channels = msm_bedais[reg].channel;
  1508. else
  1509. channels = msm_bedais[reg].adm_override_ch;
  1510. if (session_type == SESSION_TYPE_TX &&
  1511. fdai->be_srate &&
  1512. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1513. pr_debug("%s: flush strm %d diff BE rates\n",
  1514. __func__, fdai->strm_id);
  1515. if (fdai->event_info.event_func)
  1516. fdai->event_info.event_func(
  1517. MSM_PCM_RT_EVT_BUF_RECFG,
  1518. fdai->event_info.priv_data);
  1519. fdai->be_srate = 0; /* might not need it */
  1520. }
  1521. bits_per_sample = msm_routing_get_bit_width(
  1522. msm_bedais[reg].format);
  1523. app_type =
  1524. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1525. if (app_type && is_lsm) {
  1526. app_type_idx =
  1527. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1528. sample_rate =
  1529. fe_dai_app_type_cfg[val][session_type][reg]
  1530. .sample_rate;
  1531. bits_per_sample =
  1532. lsm_app_type_cfg[app_type_idx].bit_width;
  1533. } else if (app_type) {
  1534. app_type_idx =
  1535. msm_pcm_routing_get_app_type_idx(app_type);
  1536. sample_rate =
  1537. fe_dai_app_type_cfg[val][session_type][reg]
  1538. .sample_rate;
  1539. bits_per_sample =
  1540. app_type_cfg[app_type_idx].bit_width;
  1541. } else
  1542. sample_rate = msm_bedais[reg].sample_rate;
  1543. topology = msm_routing_get_adm_topology(val,
  1544. session_type,
  1545. reg);
  1546. acdb_dev_id =
  1547. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1548. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1549. sample_rate, channels, topology,
  1550. fdai->perf_mode, bits_per_sample,
  1551. app_type, acdb_dev_id);
  1552. if ((copp_idx < 0) ||
  1553. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1554. pr_err("%s: adm open failed\n", __func__);
  1555. mutex_unlock(&routing_lock);
  1556. return;
  1557. }
  1558. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1559. __func__, val, session_type, reg);
  1560. set_bit(copp_idx,
  1561. &session_copp_map[val][session_type][reg]);
  1562. if (msm_is_resample_needed(
  1563. sample_rate,
  1564. msm_bedais[reg].sample_rate))
  1565. adm_copp_mfc_cfg(
  1566. msm_bedais[reg].port_id, copp_idx,
  1567. msm_bedais[reg].sample_rate);
  1568. if (session_type == SESSION_TYPE_RX &&
  1569. fdai->event_info.event_func)
  1570. fdai->event_info.event_func(
  1571. MSM_PCM_RT_EVT_DEVSWITCH,
  1572. fdai->event_info.priv_data);
  1573. msm_pcm_routing_build_matrix(val, session_type,
  1574. path_type,
  1575. fdai->perf_mode,
  1576. passthr_mode);
  1577. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1578. (passthr_mode == LEGACY_PCM))
  1579. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1580. copp_idx, topology,
  1581. channels);
  1582. }
  1583. } else {
  1584. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1585. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1586. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1587. voc_start_playback(set, msm_bedais[reg].port_id);
  1588. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1589. fdai = &fe_dai_map[val][session_type];
  1590. if (msm_bedais[reg].active && fdai->strm_id !=
  1591. INVALID_SESSION) {
  1592. int idx;
  1593. int port_id;
  1594. unsigned long copp =
  1595. session_copp_map[val][session_type][reg];
  1596. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1597. if (test_bit(idx, &copp))
  1598. break;
  1599. port_id = msm_bedais[reg].port_id;
  1600. topology = adm_get_topology_for_port_copp_idx(port_id,
  1601. idx);
  1602. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1603. idx);
  1604. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1605. __func__, copp, val, session_type, reg,
  1606. topology);
  1607. clear_bit(idx,
  1608. &session_copp_map[val][session_type][reg]);
  1609. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1610. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1611. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1612. (passthr_mode == LEGACY_PCM))
  1613. msm_pcm_routing_deinit_pp(
  1614. msm_bedais[reg].port_id,
  1615. topology);
  1616. msm_pcm_routing_build_matrix(val, session_type,
  1617. path_type,
  1618. fdai->perf_mode,
  1619. passthr_mode);
  1620. }
  1621. }
  1622. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1623. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1624. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1625. mutex_unlock(&routing_lock);
  1626. }
  1627. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1628. struct snd_ctl_elem_value *ucontrol)
  1629. {
  1630. struct soc_mixer_control *mc =
  1631. (struct soc_mixer_control *)kcontrol->private_value;
  1632. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1633. ucontrol->value.integer.value[0] = 1;
  1634. else
  1635. ucontrol->value.integer.value[0] = 0;
  1636. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1637. ucontrol->value.integer.value[0]);
  1638. return 0;
  1639. }
  1640. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1641. struct snd_ctl_elem_value *ucontrol)
  1642. {
  1643. struct snd_soc_dapm_widget *widget =
  1644. snd_soc_dapm_kcontrol_widget(kcontrol);
  1645. struct soc_mixer_control *mc =
  1646. (struct soc_mixer_control *)kcontrol->private_value;
  1647. struct snd_soc_dapm_update *update = NULL;
  1648. if (ucontrol->value.integer.value[0] &&
  1649. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1650. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1652. update);
  1653. } else if (!ucontrol->value.integer.value[0] &&
  1654. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1655. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1657. update);
  1658. }
  1659. return 1;
  1660. }
  1661. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1662. struct snd_ctl_elem_value *ucontrol)
  1663. {
  1664. struct soc_mixer_control *mc =
  1665. (struct soc_mixer_control *)kcontrol->private_value;
  1666. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1667. ucontrol->value.integer.value[0] = 1;
  1668. else
  1669. ucontrol->value.integer.value[0] = 0;
  1670. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1671. ucontrol->value.integer.value[0]);
  1672. return 0;
  1673. }
  1674. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1675. struct snd_ctl_elem_value *ucontrol)
  1676. {
  1677. struct snd_soc_dapm_widget *widget =
  1678. snd_soc_dapm_kcontrol_widget(kcontrol);
  1679. struct soc_mixer_control *mc =
  1680. (struct soc_mixer_control *)kcontrol->private_value;
  1681. struct snd_soc_dapm_update *update = NULL;
  1682. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1683. ucontrol->value.integer.value[0]);
  1684. if (ucontrol->value.integer.value[0]) {
  1685. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1686. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1687. snd_soc_dapm_mixer_update_power(widget->dapm,
  1688. kcontrol, 1, update);
  1689. } else if (!ucontrol->value.integer.value[0]) {
  1690. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1691. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1692. snd_soc_dapm_mixer_update_power(widget->dapm,
  1693. kcontrol, 0, update);
  1694. }
  1695. return 1;
  1696. }
  1697. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1698. {
  1699. u32 session_id = 0;
  1700. u16 path_type;
  1701. struct media_format_info voc_be_media_format;
  1702. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1703. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1704. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1705. __func__, val, session_id);
  1706. mutex_lock(&routing_lock);
  1707. if (set)
  1708. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1709. else
  1710. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1711. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1712. afe_get_port_type(msm_bedais[reg].port_id) ==
  1713. MSM_AFE_PORT_TYPE_RX) {
  1714. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1715. __func__, set, msm_bedais[reg].port_id);
  1716. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1717. }
  1718. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1719. MSM_AFE_PORT_TYPE_RX)
  1720. path_type = RX_PATH;
  1721. else
  1722. path_type = TX_PATH;
  1723. if (set) {
  1724. if (msm_bedais[reg].active) {
  1725. voc_set_route_flag(session_id, path_type, 1);
  1726. memset(&voc_be_media_format, 0,
  1727. sizeof(struct media_format_info));
  1728. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1729. voc_be_media_format.num_channels =
  1730. msm_bedais[reg].channel;
  1731. voc_be_media_format.sample_rate =
  1732. msm_bedais[reg].sample_rate;
  1733. voc_be_media_format.bits_per_sample =
  1734. msm_bedais[reg].format;
  1735. /* Defaulting this to 1 for voice call usecases */
  1736. voc_be_media_format.channel_mapping[0] = 1;
  1737. voc_set_device_config(session_id, path_type,
  1738. &voc_be_media_format);
  1739. if (voc_get_route_flag(session_id, TX_PATH) &&
  1740. voc_get_route_flag(session_id, RX_PATH))
  1741. voc_enable_device(session_id);
  1742. } else {
  1743. pr_debug("%s BE is not active\n", __func__);
  1744. }
  1745. } else {
  1746. voc_set_route_flag(session_id, path_type, 0);
  1747. voc_disable_device(session_id);
  1748. }
  1749. mutex_unlock(&routing_lock);
  1750. }
  1751. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1752. struct snd_ctl_elem_value *ucontrol)
  1753. {
  1754. struct soc_mixer_control *mc =
  1755. (struct soc_mixer_control *)kcontrol->private_value;
  1756. mutex_lock(&routing_lock);
  1757. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1758. ucontrol->value.integer.value[0] = 1;
  1759. else
  1760. ucontrol->value.integer.value[0] = 0;
  1761. mutex_unlock(&routing_lock);
  1762. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1763. ucontrol->value.integer.value[0]);
  1764. return 0;
  1765. }
  1766. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1767. struct snd_ctl_elem_value *ucontrol)
  1768. {
  1769. struct snd_soc_dapm_widget *widget =
  1770. snd_soc_dapm_kcontrol_widget(kcontrol);
  1771. struct soc_mixer_control *mc =
  1772. (struct soc_mixer_control *)kcontrol->private_value;
  1773. struct snd_soc_dapm_update *update = NULL;
  1774. if (ucontrol->value.integer.value[0]) {
  1775. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1776. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1777. update);
  1778. } else {
  1779. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1780. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1781. update);
  1782. }
  1783. return 1;
  1784. }
  1785. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1786. struct snd_ctl_elem_value *ucontrol)
  1787. {
  1788. struct soc_mixer_control *mc =
  1789. (struct soc_mixer_control *)kcontrol->private_value;
  1790. mutex_lock(&routing_lock);
  1791. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1792. ucontrol->value.integer.value[0] = 1;
  1793. else
  1794. ucontrol->value.integer.value[0] = 0;
  1795. mutex_unlock(&routing_lock);
  1796. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1797. ucontrol->value.integer.value[0]);
  1798. return 0;
  1799. }
  1800. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1801. struct snd_ctl_elem_value *ucontrol)
  1802. {
  1803. struct snd_soc_dapm_widget *widget =
  1804. snd_soc_dapm_kcontrol_widget(kcontrol);
  1805. struct soc_mixer_control *mc =
  1806. (struct soc_mixer_control *)kcontrol->private_value;
  1807. struct snd_soc_dapm_update *update = NULL;
  1808. if (ucontrol->value.integer.value[0]) {
  1809. mutex_lock(&routing_lock);
  1810. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1811. mutex_unlock(&routing_lock);
  1812. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1813. update);
  1814. } else {
  1815. mutex_lock(&routing_lock);
  1816. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1817. mutex_unlock(&routing_lock);
  1818. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1819. update);
  1820. }
  1821. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1822. ucontrol->value.integer.value[0]);
  1823. return 1;
  1824. }
  1825. /*
  1826. * Return the mapping between port ID and backend ID to enable the AFE callback
  1827. * to determine the acdb_dev_id from the port id
  1828. */
  1829. int msm_pcm_get_be_id_from_port_id(int port_id)
  1830. {
  1831. int i;
  1832. int be_id = -EINVAL;
  1833. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1834. if (msm_bedais[i].port_id == port_id) {
  1835. be_id = i;
  1836. break;
  1837. }
  1838. }
  1839. return be_id;
  1840. }
  1841. /*
  1842. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1843. * correct AFE calibration information by comparing the header information.
  1844. */
  1845. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1846. {
  1847. int acdb_id = -EINVAL;
  1848. int i = 0;
  1849. int session;
  1850. int port_type = afe_get_port_type(port_id);
  1851. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1852. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1853. __func__, port_id, be_id, port_type);
  1854. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1855. session = SESSION_TYPE_TX;
  1856. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1857. session = SESSION_TYPE_RX;
  1858. } else {
  1859. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1860. acdb_id = -EINVAL;
  1861. goto exit;
  1862. }
  1863. if (be_id < 0) {
  1864. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1865. goto exit;
  1866. }
  1867. mutex_lock(&routing_lock);
  1868. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1869. MSM_FRONTEND_DAI_MAX);
  1870. if (i < MSM_FRONTEND_DAI_MAX)
  1871. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1872. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1873. __func__, i, session, be_id, acdb_id);
  1874. mutex_unlock(&routing_lock);
  1875. exit:
  1876. return acdb_id;
  1877. }
  1878. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. ucontrol->value.integer.value[0] = fm_switch_enable;
  1882. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1883. ucontrol->value.integer.value[0]);
  1884. return 0;
  1885. }
  1886. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1887. struct snd_ctl_elem_value *ucontrol)
  1888. {
  1889. struct snd_soc_dapm_widget *widget =
  1890. snd_soc_dapm_kcontrol_widget(kcontrol);
  1891. struct snd_soc_dapm_update *update = NULL;
  1892. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1893. ucontrol->value.integer.value[0]);
  1894. if (ucontrol->value.integer.value[0])
  1895. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1896. update);
  1897. else
  1898. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1899. update);
  1900. fm_switch_enable = ucontrol->value.integer.value[0];
  1901. return 1;
  1902. }
  1903. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1904. struct snd_ctl_elem_value *ucontrol)
  1905. {
  1906. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1907. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1908. ucontrol->value.integer.value[0]);
  1909. return 0;
  1910. }
  1911. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1912. struct snd_ctl_elem_value *ucontrol)
  1913. {
  1914. struct snd_soc_dapm_widget *widget =
  1915. snd_soc_dapm_kcontrol_widget(kcontrol);
  1916. struct snd_soc_dapm_update *update = NULL;
  1917. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1918. ucontrol->value.integer.value[0]);
  1919. if (ucontrol->value.integer.value[0])
  1920. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1921. 1, update);
  1922. else
  1923. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1924. 0, update);
  1925. hfp_switch_enable = ucontrol->value.integer.value[0];
  1926. return 1;
  1927. }
  1928. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1929. struct snd_ctl_elem_value *ucontrol)
  1930. {
  1931. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1932. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1933. ucontrol->value.integer.value[0]);
  1934. return 0;
  1935. }
  1936. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1937. struct snd_ctl_elem_value *ucontrol)
  1938. {
  1939. struct snd_soc_dapm_widget *widget =
  1940. snd_soc_dapm_kcontrol_widget(kcontrol);
  1941. struct snd_soc_dapm_update *update = NULL;
  1942. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1943. ucontrol->value.integer.value[0]);
  1944. if (ucontrol->value.integer.value[0])
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1946. update);
  1947. else
  1948. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1949. update);
  1950. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1951. return 1;
  1952. }
  1953. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1954. struct snd_ctl_elem_value *ucontrol)
  1955. {
  1956. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1957. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1958. ucontrol->value.integer.value[0]);
  1959. return 0;
  1960. }
  1961. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1962. struct snd_ctl_elem_value *ucontrol)
  1963. {
  1964. struct snd_soc_dapm_widget *widget =
  1965. snd_soc_dapm_kcontrol_widget(kcontrol);
  1966. struct snd_soc_dapm_update *update = NULL;
  1967. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1968. ucontrol->value.integer.value[0]);
  1969. if (ucontrol->value.integer.value[0])
  1970. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1971. update);
  1972. else
  1973. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1974. update);
  1975. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1976. return 1;
  1977. }
  1978. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. ucontrol->value.integer.value[0] = usb_switch_enable;
  1982. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1983. ucontrol->value.integer.value[0]);
  1984. return 0;
  1985. }
  1986. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1987. struct snd_ctl_elem_value *ucontrol)
  1988. {
  1989. struct snd_soc_dapm_widget *widget =
  1990. snd_soc_dapm_kcontrol_widget(kcontrol);
  1991. struct snd_soc_dapm_update *update = NULL;
  1992. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1993. ucontrol->value.integer.value[0]);
  1994. if (ucontrol->value.integer.value[0])
  1995. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1996. 1, update);
  1997. else
  1998. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1999. 0, update);
  2000. usb_switch_enable = ucontrol->value.integer.value[0];
  2001. return 1;
  2002. }
  2003. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2004. struct snd_ctl_elem_value *ucontrol)
  2005. {
  2006. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2007. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2008. ucontrol->value.integer.value[0]);
  2009. return 0;
  2010. }
  2011. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2012. struct snd_ctl_elem_value *ucontrol)
  2013. {
  2014. struct snd_soc_dapm_widget *widget =
  2015. snd_soc_dapm_kcontrol_widget(kcontrol);
  2016. struct snd_soc_dapm_update *update = NULL;
  2017. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2018. ucontrol->value.integer.value[0]);
  2019. if (ucontrol->value.integer.value[0])
  2020. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2021. update);
  2022. else
  2023. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2024. update);
  2025. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2026. return 1;
  2027. }
  2028. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2029. struct snd_ctl_elem_value *ucontrol)
  2030. {
  2031. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2032. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct snd_soc_dapm_update *update = NULL;
  2042. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2043. ucontrol->value.integer.value[0]);
  2044. if (ucontrol->value.integer.value[0])
  2045. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2046. update);
  2047. else
  2048. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2049. update);
  2050. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2051. return 1;
  2052. }
  2053. static int msm_routing_get_tert_mi2s_switch_mixer(
  2054. struct snd_kcontrol *kcontrol,
  2055. struct snd_ctl_elem_value *ucontrol)
  2056. {
  2057. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2058. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. return 0;
  2061. }
  2062. static int msm_routing_put_tert_mi2s_switch_mixer(
  2063. struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. if (ucontrol->value.integer.value[0])
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2073. update);
  2074. else
  2075. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2076. update);
  2077. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_quat_mi2s_switch_mixer(
  2081. struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2085. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_quat_mi2s_switch_mixer(
  2090. struct snd_kcontrol *kcontrol,
  2091. struct snd_ctl_elem_value *ucontrol)
  2092. {
  2093. struct snd_soc_dapm_widget *widget =
  2094. snd_soc_dapm_kcontrol_widget(kcontrol);
  2095. struct snd_soc_dapm_update *update = NULL;
  2096. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2097. ucontrol->value.integer.value[0]);
  2098. if (ucontrol->value.integer.value[0])
  2099. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2100. update);
  2101. else
  2102. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2103. update);
  2104. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2105. return 1;
  2106. }
  2107. static int msm_routing_get_quin_mi2s_switch_mixer(
  2108. struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2112. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2113. ucontrol->value.integer.value[0]);
  2114. return 0;
  2115. }
  2116. static int msm_routing_put_quin_mi2s_switch_mixer(
  2117. struct snd_kcontrol *kcontrol,
  2118. struct snd_ctl_elem_value *ucontrol)
  2119. {
  2120. struct snd_soc_dapm_widget *widget =
  2121. snd_soc_dapm_kcontrol_widget(kcontrol);
  2122. struct snd_soc_dapm_update *update = NULL;
  2123. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2124. ucontrol->value.integer.value[0]);
  2125. if (ucontrol->value.integer.value[0])
  2126. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2127. update);
  2128. else
  2129. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2130. update);
  2131. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2132. return 1;
  2133. }
  2134. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2135. struct snd_ctl_elem_value *ucontrol)
  2136. {
  2137. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2138. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2139. ucontrol->value.integer.value[0]);
  2140. return 0;
  2141. }
  2142. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2143. struct snd_ctl_elem_value *ucontrol)
  2144. {
  2145. struct snd_soc_dapm_widget *widget =
  2146. snd_soc_dapm_kcontrol_widget(kcontrol);
  2147. struct snd_soc_dapm_update *update = NULL;
  2148. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2149. ucontrol->value.integer.value[0]);
  2150. if (ucontrol->value.integer.value[0])
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2152. update);
  2153. else
  2154. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2155. update);
  2156. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2157. return 1;
  2158. }
  2159. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2160. struct snd_ctl_elem_value *ucontrol)
  2161. {
  2162. ucontrol->value.integer.value[0] = lsm_port_index;
  2163. return 0;
  2164. }
  2165. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2169. int mux = ucontrol->value.enumerated.item[0];
  2170. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2171. if (mux >= e->items) {
  2172. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2173. return -EINVAL;
  2174. }
  2175. pr_debug("%s: LSM enable %ld\n", __func__,
  2176. ucontrol->value.integer.value[0]);
  2177. switch (ucontrol->value.integer.value[0]) {
  2178. case 1:
  2179. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2180. break;
  2181. case 2:
  2182. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2183. break;
  2184. case 3:
  2185. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2186. break;
  2187. case 4:
  2188. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2189. break;
  2190. case 5:
  2191. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2192. break;
  2193. case 6:
  2194. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2195. break;
  2196. case 7:
  2197. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2198. break;
  2199. case 8:
  2200. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2201. break;
  2202. case 9:
  2203. lsm_port = ADM_LSM_PORT_ID;
  2204. break;
  2205. case 10:
  2206. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2207. break;
  2208. default:
  2209. pr_err("Default lsm port");
  2210. break;
  2211. }
  2212. set_lsm_port(lsm_port);
  2213. lsm_port_index = ucontrol->value.integer.value[0];
  2214. return 0;
  2215. }
  2216. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. int i;
  2220. u16 port_id;
  2221. enum afe_mad_type mad_type;
  2222. pr_debug("%s: enter\n", __func__);
  2223. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2224. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2225. strlen(lsm_port_text[i])))
  2226. break;
  2227. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2228. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2229. return -EINVAL;
  2230. }
  2231. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2232. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2233. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2234. strlen(lsm_port_text[7])))
  2235. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2236. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2237. strlen(lsm_port_text[8])))
  2238. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2239. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2240. strlen(lsm_port_text[10])))
  2241. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2242. mad_type = afe_port_get_mad_type(port_id);
  2243. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2244. mad_type);
  2245. switch (mad_type) {
  2246. case MAD_HW_NONE:
  2247. ucontrol->value.integer.value[0] = MADNONE;
  2248. break;
  2249. case MAD_HW_AUDIO:
  2250. ucontrol->value.integer.value[0] = MADAUDIO;
  2251. break;
  2252. case MAD_HW_BEACON:
  2253. ucontrol->value.integer.value[0] = MADBEACON;
  2254. break;
  2255. case MAD_HW_ULTRASOUND:
  2256. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2257. break;
  2258. case MAD_SW_AUDIO:
  2259. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2260. break;
  2261. default:
  2262. WARN(1, "Unknown\n");
  2263. return -EINVAL;
  2264. }
  2265. return 0;
  2266. }
  2267. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2268. struct snd_ctl_elem_value *ucontrol)
  2269. {
  2270. int i;
  2271. u16 port_id;
  2272. enum afe_mad_type mad_type;
  2273. pr_debug("%s: enter\n", __func__);
  2274. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2275. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2276. strlen(lsm_port_text[i])))
  2277. break;
  2278. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2279. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2280. return -EINVAL;
  2281. }
  2282. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2283. switch (ucontrol->value.integer.value[0]) {
  2284. case MADNONE:
  2285. mad_type = MAD_HW_NONE;
  2286. break;
  2287. case MADAUDIO:
  2288. mad_type = MAD_HW_AUDIO;
  2289. break;
  2290. case MADBEACON:
  2291. mad_type = MAD_HW_BEACON;
  2292. break;
  2293. case MADULTRASOUND:
  2294. mad_type = MAD_HW_ULTRASOUND;
  2295. break;
  2296. case MADSWAUDIO:
  2297. mad_type = MAD_SW_AUDIO;
  2298. break;
  2299. default:
  2300. WARN(1, "Unknown\n");
  2301. return -EINVAL;
  2302. }
  2303. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2304. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2305. strlen(lsm_port_text[7])))
  2306. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2307. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2308. strlen(lsm_port_text[8])))
  2309. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2310. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2311. strlen(lsm_port_text[10])))
  2312. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2313. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2314. mad_type);
  2315. adm_set_lsm_port_id(port_id);
  2316. return afe_port_set_mad_type(port_id, mad_type);
  2317. }
  2318. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2319. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2320. adm_override_chs_text);
  2321. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2322. {
  2323. int backend_id;
  2324. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2325. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2326. } else {
  2327. pr_err("%s: unsupported backend id: %s",
  2328. __func__, kcontrol->id.name);
  2329. return -EINVAL;
  2330. }
  2331. return backend_id;
  2332. }
  2333. static int msm_routing_adm_channel_config_get(
  2334. struct snd_kcontrol *kcontrol,
  2335. struct snd_ctl_elem_value *ucontrol)
  2336. {
  2337. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2338. if (backend_id >= 0) {
  2339. mutex_lock(&routing_lock);
  2340. ucontrol->value.integer.value[0] =
  2341. msm_bedais[backend_id].adm_override_ch;
  2342. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2343. ucontrol->value.integer.value[0], backend_id);
  2344. mutex_unlock(&routing_lock);
  2345. }
  2346. return 0;
  2347. }
  2348. static int msm_routing_adm_channel_config_put(
  2349. struct snd_kcontrol *kcontrol,
  2350. struct snd_ctl_elem_value *ucontrol)
  2351. {
  2352. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2353. if (backend_id >= 0) {
  2354. mutex_lock(&routing_lock);
  2355. msm_bedais[backend_id].adm_override_ch =
  2356. ucontrol->value.integer.value[0];
  2357. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2358. __func__, backend_id,
  2359. msm_bedais[backend_id].adm_override_ch);
  2360. mutex_unlock(&routing_lock);
  2361. }
  2362. return 0;
  2363. }
  2364. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2365. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2366. msm_routing_adm_channel_config_get,
  2367. msm_routing_adm_channel_config_put),
  2368. };
  2369. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2370. struct snd_ctl_elem_value *ucontrol)
  2371. {
  2372. mutex_lock(&routing_lock);
  2373. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2374. mutex_unlock(&routing_lock);
  2375. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2376. ucontrol->value.integer.value[0]);
  2377. return 0;
  2378. };
  2379. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2380. struct snd_ctl_elem_value *ucontrol)
  2381. {
  2382. struct aanc_data aanc_info;
  2383. mutex_lock(&routing_lock);
  2384. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2385. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2388. if (ucontrol->value.integer.value[0] == 0) {
  2389. aanc_info.aanc_active = false;
  2390. aanc_info.aanc_tx_port = 0;
  2391. aanc_info.aanc_rx_port = 0;
  2392. } else {
  2393. aanc_info.aanc_active = true;
  2394. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2395. aanc_info.aanc_tx_port =
  2396. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2397. }
  2398. afe_set_aanc_info(&aanc_info);
  2399. mutex_unlock(&routing_lock);
  2400. return 0;
  2401. };
  2402. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. int idx = 0, shift = 0;
  2406. struct soc_mixer_control *mc =
  2407. (struct soc_mixer_control *)kcontrol->private_value;
  2408. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2409. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2410. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2411. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2412. return -EINVAL;
  2413. }
  2414. if (test_bit(shift,
  2415. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2416. ucontrol->value.integer.value[0] = 1;
  2417. else
  2418. ucontrol->value.integer.value[0] = 0;
  2419. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2420. ucontrol->value.integer.value[0]);
  2421. return 0;
  2422. }
  2423. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. int idx = 0, shift = 0;
  2427. struct soc_mixer_control *mc =
  2428. (struct soc_mixer_control *)kcontrol->private_value;
  2429. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2430. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2431. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2432. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2433. return -EINVAL;
  2434. }
  2435. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2436. __func__, mc->reg, mc->shift,
  2437. ucontrol->value.integer.value[0], idx, shift);
  2438. if (ucontrol->value.integer.value[0]) {
  2439. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2440. msm_bedais[mc->shift].port_id);
  2441. set_bit(shift,
  2442. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2443. } else {
  2444. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2445. msm_bedais[mc->shift].port_id);
  2446. clear_bit(shift,
  2447. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2448. }
  2449. return 1;
  2450. }
  2451. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2452. struct snd_ctl_elem_value *ucontrol)
  2453. {
  2454. u16 fe_id = 0;
  2455. fe_id = ((struct soc_mixer_control *)
  2456. kcontrol->private_value)->shift;
  2457. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2458. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2459. return -EINVAL;
  2460. }
  2461. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2462. return 0;
  2463. }
  2464. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. u16 fe_id = 0;
  2468. fe_id = ((struct soc_mixer_control *)
  2469. kcontrol->private_value)->shift;
  2470. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2471. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2472. return -EINVAL;
  2473. }
  2474. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. u16 fe_id = 0;
  2481. fe_id = ((struct soc_multi_mixer_control *)
  2482. kcontrol->private_value)->shift;
  2483. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2484. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2485. return -EINVAL;
  2486. }
  2487. ucontrol->value.integer.value[0] =
  2488. channel_mixer[fe_id].output_channel;
  2489. return 0;
  2490. }
  2491. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2492. struct snd_ctl_elem_value *ucontrol)
  2493. {
  2494. u16 fe_id = 0;
  2495. fe_id = ((struct soc_multi_mixer_control *)
  2496. kcontrol->private_value)->shift;
  2497. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2498. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2499. return -EINVAL;
  2500. }
  2501. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2502. fe_id,
  2503. (unsigned int)(ucontrol->value.integer.value[0]));
  2504. channel_mixer[fe_id].output_channel =
  2505. (unsigned int)(ucontrol->value.integer.value[0]);
  2506. return 1;
  2507. }
  2508. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2509. /* If new backend is added, need update this array */
  2510. static const char *const be_name[] = {
  2511. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2512. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2513. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2514. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2515. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2516. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2517. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2518. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2519. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2520. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2521. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2522. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2523. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2524. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2525. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2526. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2527. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2528. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2529. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2530. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2531. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2532. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2533. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2534. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2535. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2536. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2537. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2538. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2539. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2540. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2541. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2542. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2543. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2544. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2545. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2546. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2547. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2548. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2549. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2550. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2551. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2552. };
  2553. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2554. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2555. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2556. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2557. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2558. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2559. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2560. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2561. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2562. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2563. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2564. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2565. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2566. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2567. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2568. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2569. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2570. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2571. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2572. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2573. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2574. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2575. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2576. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2577. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2578. unsigned int channels,
  2579. unsigned int items, const char *const names[])
  2580. {
  2581. if (uinfo->value.enumerated.item >= items)
  2582. uinfo->value.enumerated.item = items - 1;
  2583. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2584. sizeof(uinfo->value.enumerated.name),
  2585. "ALSA: too long item name '%s'\n",
  2586. names[uinfo->value.enumerated.item]);
  2587. strlcpy(uinfo->value.enumerated.name,
  2588. names[uinfo->value.enumerated.item],
  2589. sizeof(uinfo->value.enumerated.name));
  2590. return 0;
  2591. }
  2592. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2593. struct snd_ctl_elem_info *uinfo)
  2594. {
  2595. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2596. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2597. uinfo->count = 1;
  2598. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2599. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2600. return 0;
  2601. }
  2602. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2603. struct snd_ctl_elem_value *ucontrol)
  2604. {
  2605. u16 fe_id = 0;
  2606. fe_id = ((struct soc_enum *)
  2607. kcontrol->private_value)->shift_l;
  2608. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2609. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2610. return -EINVAL;
  2611. }
  2612. pr_debug("%s: FE %d %s\n", __func__,
  2613. fe_id,
  2614. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2615. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2616. return 0;
  2617. }
  2618. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. u16 fe_id = 0;
  2622. fe_id = ((struct soc_enum *)
  2623. kcontrol->private_value)->shift_l;
  2624. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2625. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2626. return -EINVAL;
  2627. }
  2628. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2629. pr_debug("%s: %s FE %d\n", __func__,
  2630. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2631. fe_id);
  2632. return 0;
  2633. }
  2634. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_info *uinfo)
  2636. {
  2637. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2638. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2639. uinfo->count = 1;
  2640. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2641. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2642. return 0;
  2643. }
  2644. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2645. struct snd_ctl_elem_value *ucontrol)
  2646. {
  2647. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2648. u16 fe_id = 0, in_ch = 0;
  2649. fe_id = e->shift_l;
  2650. in_ch = e->shift_r;
  2651. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2652. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2653. return -EINVAL;
  2654. }
  2655. if (in_ch >= ADM_MAX_CHANNELS) {
  2656. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2657. return -EINVAL;
  2658. }
  2659. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2660. return 1;
  2661. }
  2662. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2663. struct snd_ctl_elem_value *ucontrol)
  2664. {
  2665. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2666. u16 fe_id = 0, in_ch = 0;
  2667. fe_id = e->shift_l;
  2668. in_ch = e->shift_r;
  2669. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2670. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2671. return -EINVAL;
  2672. }
  2673. if (in_ch >= ADM_MAX_CHANNELS) {
  2674. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2675. return -EINVAL;
  2676. }
  2677. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2678. return 1;
  2679. }
  2680. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2681. struct snd_ctl_elem_info *uinfo)
  2682. {
  2683. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2684. uinfo->count = ADM_MAX_CHANNELS;
  2685. uinfo->value.integer.min = 0;
  2686. uinfo->value.integer.max = WEIGHT_0_DB;
  2687. return 0;
  2688. }
  2689. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. u16 fe_id = 0, out_ch = 0;
  2693. int i, weight;
  2694. fe_id = ((struct soc_multi_mixer_control *)
  2695. kcontrol->private_value)->shift;
  2696. out_ch = ((struct soc_multi_mixer_control *)
  2697. kcontrol->private_value)->rshift;
  2698. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2699. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2700. return -EINVAL;
  2701. }
  2702. if (out_ch >= ADM_MAX_CHANNELS) {
  2703. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2704. return -EINVAL;
  2705. }
  2706. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2707. __func__, fe_id,
  2708. ucontrol->value.integer.value[0],
  2709. ucontrol->value.integer.value[1],
  2710. ucontrol->value.integer.value[2],
  2711. ucontrol->value.integer.value[3],
  2712. ucontrol->value.integer.value[4],
  2713. ucontrol->value.integer.value[5],
  2714. ucontrol->value.integer.value[6],
  2715. ucontrol->value.integer.value[7]);
  2716. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2717. weight = ucontrol->value.integer.value[i];
  2718. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2719. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2720. __func__, fe_id, out_ch, i,
  2721. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2722. }
  2723. return 0;
  2724. }
  2725. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2726. struct snd_ctl_elem_value *ucontrol)
  2727. {
  2728. u16 fe_id = 0, out_ch = 0;
  2729. int i;
  2730. fe_id = ((struct soc_multi_mixer_control *)
  2731. kcontrol->private_value)->shift;
  2732. out_ch = ((struct soc_multi_mixer_control *)
  2733. kcontrol->private_value)->rshift;
  2734. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2735. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2736. return -EINVAL;
  2737. }
  2738. if (out_ch >= ADM_MAX_CHANNELS) {
  2739. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2740. return -EINVAL;
  2741. }
  2742. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2743. ucontrol->value.integer.value[i] =
  2744. channel_mixer[fe_id].channel_weight[out_ch][i];
  2745. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2746. __func__, fe_id,
  2747. ucontrol->value.integer.value[0],
  2748. ucontrol->value.integer.value[1],
  2749. ucontrol->value.integer.value[2],
  2750. ucontrol->value.integer.value[3],
  2751. ucontrol->value.integer.value[4],
  2752. ucontrol->value.integer.value[5],
  2753. ucontrol->value.integer.value[6],
  2754. ucontrol->value.integer.value[7]);
  2755. return 0;
  2756. }
  2757. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2758. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2759. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2760. msm_pcm_get_channel_rule_index,
  2761. msm_pcm_put_channel_rule_index),
  2762. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2763. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2764. msm_pcm_get_channel_rule_index,
  2765. msm_pcm_put_channel_rule_index),
  2766. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2767. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2768. msm_pcm_get_channel_rule_index,
  2769. msm_pcm_put_channel_rule_index),
  2770. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2771. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2772. msm_pcm_get_channel_rule_index,
  2773. msm_pcm_put_channel_rule_index),
  2774. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2775. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2776. msm_pcm_get_channel_rule_index,
  2777. msm_pcm_put_channel_rule_index),
  2778. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2779. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2780. msm_pcm_get_channel_rule_index,
  2781. msm_pcm_put_channel_rule_index),
  2782. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2783. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2784. msm_pcm_get_out_chs,
  2785. msm_pcm_put_out_chs),
  2786. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2787. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2788. msm_pcm_get_out_chs,
  2789. msm_pcm_put_out_chs),
  2790. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2791. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2792. msm_pcm_get_out_chs,
  2793. msm_pcm_put_out_chs),
  2794. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2795. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2796. msm_pcm_get_out_chs,
  2797. msm_pcm_put_out_chs),
  2798. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2799. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2800. msm_pcm_get_out_chs,
  2801. msm_pcm_put_out_chs),
  2802. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2803. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2804. msm_pcm_get_out_chs,
  2805. msm_pcm_put_out_chs),
  2806. {
  2807. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2808. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2809. .name = "MultiMedia1 Channel Mixer",
  2810. .info = msm_pcm_channel_mixer_info,
  2811. .get = msm_pcm_channel_mixer_get,
  2812. .put = msm_pcm_channel_mixer_put,
  2813. .private_value = (unsigned long)&(mm1_channel_mux)
  2814. },
  2815. {
  2816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2817. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2818. .name = "MultiMedia2 Channel Mixer",
  2819. .info = msm_pcm_channel_mixer_info,
  2820. .get = msm_pcm_channel_mixer_get,
  2821. .put = msm_pcm_channel_mixer_put,
  2822. .private_value = (unsigned long)&(mm2_channel_mux)
  2823. },
  2824. {
  2825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2827. .name = "MultiMedia3 Channel Mixer",
  2828. .info = msm_pcm_channel_mixer_info,
  2829. .get = msm_pcm_channel_mixer_get,
  2830. .put = msm_pcm_channel_mixer_put,
  2831. .private_value = (unsigned long)&(mm3_channel_mux)
  2832. },
  2833. {
  2834. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2835. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2836. .name = "MultiMedia4 Channel Mixer",
  2837. .info = msm_pcm_channel_mixer_info,
  2838. .get = msm_pcm_channel_mixer_get,
  2839. .put = msm_pcm_channel_mixer_put,
  2840. .private_value = (unsigned long)&(mm4_channel_mux)
  2841. },
  2842. {
  2843. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2845. .name = "MultiMedia1 Output Channel1",
  2846. .info = msm_pcm_channel_weight_info,
  2847. .get = msm_pcm_channel_weight_get,
  2848. .put = msm_pcm_channel_weight_put,
  2849. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2850. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2851. },
  2852. {
  2853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2854. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2855. .name = "MultiMedia1 Output Channel2",
  2856. .info = msm_pcm_channel_weight_info,
  2857. .get = msm_pcm_channel_weight_get,
  2858. .put = msm_pcm_channel_weight_put,
  2859. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2860. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2861. },
  2862. {
  2863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2864. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2865. .name = "MultiMedia1 Output Channel3",
  2866. .info = msm_pcm_channel_weight_info,
  2867. .get = msm_pcm_channel_weight_get,
  2868. .put = msm_pcm_channel_weight_put,
  2869. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2870. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2871. },
  2872. {
  2873. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2875. .name = "MultiMedia1 Output Channel4",
  2876. .info = msm_pcm_channel_weight_info,
  2877. .get = msm_pcm_channel_weight_get,
  2878. .put = msm_pcm_channel_weight_put,
  2879. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2880. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2881. },
  2882. {
  2883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2885. .name = "MultiMedia1 Output Channel5",
  2886. .info = msm_pcm_channel_weight_info,
  2887. .get = msm_pcm_channel_weight_get,
  2888. .put = msm_pcm_channel_weight_put,
  2889. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2890. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2891. },
  2892. {
  2893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2894. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2895. .name = "MultiMedia1 Output Channel6",
  2896. .info = msm_pcm_channel_weight_info,
  2897. .get = msm_pcm_channel_weight_get,
  2898. .put = msm_pcm_channel_weight_put,
  2899. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2900. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2901. },
  2902. {
  2903. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2905. .name = "MultiMedia1 Output Channel7",
  2906. .info = msm_pcm_channel_weight_info,
  2907. .get = msm_pcm_channel_weight_get,
  2908. .put = msm_pcm_channel_weight_put,
  2909. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2910. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2911. },
  2912. {
  2913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2915. .name = "MultiMedia1 Output Channel8",
  2916. .info = msm_pcm_channel_weight_info,
  2917. .get = msm_pcm_channel_weight_get,
  2918. .put = msm_pcm_channel_weight_put,
  2919. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2920. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2921. },
  2922. {
  2923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2924. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2925. .name = "MultiMedia2 Output Channel1",
  2926. .info = msm_pcm_channel_weight_info,
  2927. .get = msm_pcm_channel_weight_get,
  2928. .put = msm_pcm_channel_weight_put,
  2929. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2930. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2931. },
  2932. {
  2933. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2935. .name = "MultiMedia2 Output Channel2",
  2936. .info = msm_pcm_channel_weight_info,
  2937. .get = msm_pcm_channel_weight_get,
  2938. .put = msm_pcm_channel_weight_put,
  2939. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2940. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2941. },
  2942. {
  2943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2945. .name = "MultiMedia2 Output Channel3",
  2946. .info = msm_pcm_channel_weight_info,
  2947. .get = msm_pcm_channel_weight_get,
  2948. .put = msm_pcm_channel_weight_put,
  2949. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2950. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2951. },
  2952. {
  2953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2954. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2955. .name = "MultiMedia3 Output Channel1",
  2956. .info = msm_pcm_channel_weight_info,
  2957. .get = msm_pcm_channel_weight_get,
  2958. .put = msm_pcm_channel_weight_put,
  2959. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2960. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2961. },
  2962. {
  2963. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2964. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2965. .name = "MultiMedia3 Output Channel2",
  2966. .info = msm_pcm_channel_weight_info,
  2967. .get = msm_pcm_channel_weight_get,
  2968. .put = msm_pcm_channel_weight_put,
  2969. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2970. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2971. },
  2972. {
  2973. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2975. .name = "MultiMedia1 Channel1",
  2976. .info = msm_pcm_channel_input_be_info,
  2977. .get = msm_pcm_channel_input_be_get,
  2978. .put = msm_pcm_channel_input_be_put,
  2979. .private_value = (unsigned long)&(mm1_ch1_enum)
  2980. },
  2981. {
  2982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2984. .name = "MultiMedia1 Channel2",
  2985. .info = msm_pcm_channel_input_be_info,
  2986. .get = msm_pcm_channel_input_be_get,
  2987. .put = msm_pcm_channel_input_be_put,
  2988. .private_value = (unsigned long)&(mm1_ch2_enum)
  2989. },
  2990. {
  2991. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2992. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2993. .name = "MultiMedia1 Channel3",
  2994. .info = msm_pcm_channel_input_be_info,
  2995. .get = msm_pcm_channel_input_be_get,
  2996. .put = msm_pcm_channel_input_be_put,
  2997. .private_value = (unsigned long)&(mm1_ch3_enum)
  2998. },
  2999. {
  3000. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3001. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3002. .name = "MultiMedia1 Channel4",
  3003. .info = msm_pcm_channel_input_be_info,
  3004. .get = msm_pcm_channel_input_be_get,
  3005. .put = msm_pcm_channel_input_be_put,
  3006. .private_value = (unsigned long)&(mm1_ch4_enum)
  3007. },
  3008. {
  3009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3011. .name = "MultiMedia1 Channel5",
  3012. .info = msm_pcm_channel_input_be_info,
  3013. .get = msm_pcm_channel_input_be_get,
  3014. .put = msm_pcm_channel_input_be_put,
  3015. .private_value = (unsigned long)&(mm1_ch5_enum)
  3016. },
  3017. {
  3018. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3020. .name = "MultiMedia1 Channel6",
  3021. .info = msm_pcm_channel_input_be_info,
  3022. .get = msm_pcm_channel_input_be_get,
  3023. .put = msm_pcm_channel_input_be_put,
  3024. .private_value = (unsigned long)&(mm1_ch6_enum)
  3025. },
  3026. {
  3027. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3029. .name = "MultiMedia1 Channel7",
  3030. .info = msm_pcm_channel_input_be_info,
  3031. .get = msm_pcm_channel_input_be_get,
  3032. .put = msm_pcm_channel_input_be_put,
  3033. .private_value = (unsigned long)&(mm1_ch7_enum)
  3034. },
  3035. {
  3036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3037. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3038. .name = "MultiMedia1 Channel8",
  3039. .info = msm_pcm_channel_input_be_info,
  3040. .get = msm_pcm_channel_input_be_get,
  3041. .put = msm_pcm_channel_input_be_put,
  3042. .private_value = (unsigned long)&(mm1_ch8_enum)
  3043. },
  3044. };
  3045. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3046. struct snd_ctl_elem_value *ucontrol)
  3047. {
  3048. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3049. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3050. ucontrol->value.integer.value[0]);
  3051. return 0;
  3052. }
  3053. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3054. struct snd_ctl_elem_value *ucontrol)
  3055. {
  3056. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3057. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3058. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3059. return 0;
  3060. }
  3061. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3062. "Four", "Five", "Six", "Seven", "Eight"};
  3063. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3064. struct snd_ctl_elem_value *ucontrol)
  3065. {
  3066. switch (msm_ec_ref_bit_format) {
  3067. case SNDRV_PCM_FORMAT_S24_LE:
  3068. ucontrol->value.integer.value[0] = 2;
  3069. break;
  3070. case SNDRV_PCM_FORMAT_S16_LE:
  3071. ucontrol->value.integer.value[0] = 1;
  3072. break;
  3073. default:
  3074. ucontrol->value.integer.value[0] = 0;
  3075. break;
  3076. }
  3077. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3078. __func__, ucontrol->value.integer.value[0]);
  3079. return 0;
  3080. }
  3081. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3082. struct snd_ctl_elem_value *ucontrol)
  3083. {
  3084. u16 bit_width = 0;
  3085. switch (ucontrol->value.integer.value[0]) {
  3086. case 2:
  3087. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3088. break;
  3089. case 1:
  3090. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3091. break;
  3092. default:
  3093. msm_ec_ref_bit_format = 0;
  3094. break;
  3095. }
  3096. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3097. bit_width = 16;
  3098. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3099. bit_width = 24;
  3100. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3101. __func__, msm_ec_ref_bit_format);
  3102. adm_ec_ref_rx_bit_width(bit_width);
  3103. return 0;
  3104. }
  3105. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3106. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3107. struct snd_ctl_elem_value *ucontrol)
  3108. {
  3109. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3110. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3111. __func__, ucontrol->value.integer.value[0]);
  3112. return 0;
  3113. }
  3114. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3115. struct snd_ctl_elem_value *ucontrol)
  3116. {
  3117. switch (ucontrol->value.integer.value[0]) {
  3118. case 0:
  3119. msm_ec_ref_sampling_rate = 0;
  3120. break;
  3121. case 1:
  3122. msm_ec_ref_sampling_rate = 8000;
  3123. break;
  3124. case 2:
  3125. msm_ec_ref_sampling_rate = 16000;
  3126. break;
  3127. case 3:
  3128. msm_ec_ref_sampling_rate = 32000;
  3129. break;
  3130. case 4:
  3131. msm_ec_ref_sampling_rate = 44100;
  3132. break;
  3133. case 5:
  3134. msm_ec_ref_sampling_rate = 48000;
  3135. break;
  3136. case 6:
  3137. msm_ec_ref_sampling_rate = 96000;
  3138. break;
  3139. case 7:
  3140. msm_ec_ref_sampling_rate = 192000;
  3141. break;
  3142. case 8:
  3143. msm_ec_ref_sampling_rate = 384000;
  3144. break;
  3145. default:
  3146. msm_ec_ref_sampling_rate = 48000;
  3147. break;
  3148. }
  3149. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3150. __func__, msm_ec_ref_sampling_rate);
  3151. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3152. return 0;
  3153. }
  3154. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3155. "32000", "44100", "48000", "96000", "192000", "384000"};
  3156. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3157. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3158. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3159. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3160. };
  3161. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3162. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3163. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3164. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3165. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3166. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3167. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3168. };
  3169. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3170. struct snd_ctl_elem_value *ucontrol)
  3171. {
  3172. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3173. mutex_lock(&routing_lock);
  3174. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3175. mutex_unlock(&routing_lock);
  3176. return 0;
  3177. }
  3178. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3179. struct snd_ctl_elem_value *ucontrol)
  3180. {
  3181. int ec_ref_port_id;
  3182. struct snd_soc_dapm_widget *widget =
  3183. snd_soc_dapm_kcontrol_widget(kcontrol);
  3184. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3185. struct snd_soc_dapm_update *update = NULL;
  3186. mutex_lock(&routing_lock);
  3187. switch (ucontrol->value.integer.value[0]) {
  3188. case 0:
  3189. msm_route_ec_ref_rx = 0;
  3190. ec_ref_port_id = AFE_PORT_INVALID;
  3191. break;
  3192. case 1:
  3193. msm_route_ec_ref_rx = 1;
  3194. ec_ref_port_id = SLIMBUS_0_RX;
  3195. break;
  3196. case 2:
  3197. msm_route_ec_ref_rx = 2;
  3198. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3199. break;
  3200. case 3:
  3201. msm_route_ec_ref_rx = 3;
  3202. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3203. break;
  3204. case 4:
  3205. msm_route_ec_ref_rx = 4;
  3206. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3207. break;
  3208. case 5:
  3209. msm_route_ec_ref_rx = 5;
  3210. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3211. break;
  3212. case 6:
  3213. msm_route_ec_ref_rx = 6;
  3214. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3215. break;
  3216. case 7:
  3217. msm_route_ec_ref_rx = 7;
  3218. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3219. break;
  3220. case 9:
  3221. msm_route_ec_ref_rx = 9;
  3222. ec_ref_port_id = SLIMBUS_5_RX;
  3223. break;
  3224. case 10:
  3225. msm_route_ec_ref_rx = 10;
  3226. ec_ref_port_id = SLIMBUS_1_TX;
  3227. break;
  3228. case 11:
  3229. msm_route_ec_ref_rx = 11;
  3230. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3231. break;
  3232. case 12:
  3233. msm_route_ec_ref_rx = 12;
  3234. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3235. break;
  3236. case 13:
  3237. msm_route_ec_ref_rx = 13;
  3238. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3239. break;
  3240. case 14:
  3241. msm_route_ec_ref_rx = 14;
  3242. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3243. break;
  3244. case 15:
  3245. msm_route_ec_ref_rx = 15;
  3246. ec_ref_port_id = SLIMBUS_6_RX;
  3247. break;
  3248. case 16:
  3249. msm_route_ec_ref_rx = 16;
  3250. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3251. break;
  3252. case 17:
  3253. msm_route_ec_ref_rx = 17;
  3254. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3255. break;
  3256. case 18:
  3257. msm_route_ec_ref_rx = 18;
  3258. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3259. break;
  3260. case 19:
  3261. msm_route_ec_ref_rx = 19;
  3262. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3263. break;
  3264. case 20:
  3265. msm_route_ec_ref_rx = 20;
  3266. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3267. break;
  3268. case 21:
  3269. msm_route_ec_ref_rx = 21;
  3270. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3271. break;
  3272. case 22:
  3273. msm_route_ec_ref_rx = 22;
  3274. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3275. break;
  3276. default:
  3277. msm_route_ec_ref_rx = 0; /* NONE */
  3278. pr_err("%s EC ref rx %ld not valid\n",
  3279. __func__, ucontrol->value.integer.value[0]);
  3280. ec_ref_port_id = AFE_PORT_INVALID;
  3281. break;
  3282. }
  3283. adm_ec_ref_rx_id(ec_ref_port_id);
  3284. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3285. __func__, msm_route_ec_ref_rx);
  3286. mutex_unlock(&routing_lock);
  3287. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3288. msm_route_ec_ref_rx, e, update);
  3289. return 0;
  3290. }
  3291. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3292. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3293. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3294. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3295. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3296. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3297. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX"};
  3298. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3299. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3300. };
  3301. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3302. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3303. msm_route_ec_ref_rx_enum[0],
  3304. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3305. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3306. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3307. msm_route_ec_ref_rx_enum[0],
  3308. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3309. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3310. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3311. msm_route_ec_ref_rx_enum[0],
  3312. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3313. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3314. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3315. msm_route_ec_ref_rx_enum[0],
  3316. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3317. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3318. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3319. msm_route_ec_ref_rx_enum[0],
  3320. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3321. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3322. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3323. msm_route_ec_ref_rx_enum[0],
  3324. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3325. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3326. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3327. msm_route_ec_ref_rx_enum[0],
  3328. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3329. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3330. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3331. msm_route_ec_ref_rx_enum[0],
  3332. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3333. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3334. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3335. msm_route_ec_ref_rx_enum[0],
  3336. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3337. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3338. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3339. msm_route_ec_ref_rx_enum[0],
  3340. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3341. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3342. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3343. msm_route_ec_ref_rx_enum[0],
  3344. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3345. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3346. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3347. msm_route_ec_ref_rx_enum[0],
  3348. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3349. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3350. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3351. msm_route_ec_ref_rx_enum[0],
  3352. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3353. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3354. struct snd_ctl_elem_value *ucontrol)
  3355. {
  3356. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3357. mutex_lock(&routing_lock);
  3358. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3359. mutex_unlock(&routing_lock);
  3360. return 0;
  3361. }
  3362. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3363. struct snd_ctl_elem_value *ucontrol)
  3364. {
  3365. struct snd_soc_dapm_widget *widget =
  3366. snd_soc_dapm_kcontrol_widget(kcontrol);
  3367. int mux = ucontrol->value.enumerated.item[0];
  3368. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3369. int ret = 1;
  3370. bool state = true;
  3371. uint16_t ext_ec_ref_port_id;
  3372. struct snd_soc_dapm_update *update = NULL;
  3373. if (mux >= e->items) {
  3374. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3375. return -EINVAL;
  3376. }
  3377. mutex_lock(&routing_lock);
  3378. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3379. switch (msm_route_ext_ec_ref) {
  3380. case EXT_EC_REF_PRI_MI2S_TX:
  3381. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3382. break;
  3383. case EXT_EC_REF_SEC_MI2S_TX:
  3384. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3385. break;
  3386. case EXT_EC_REF_TERT_MI2S_TX:
  3387. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3388. break;
  3389. case EXT_EC_REF_QUAT_MI2S_TX:
  3390. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3391. break;
  3392. case EXT_EC_REF_QUIN_MI2S_TX:
  3393. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3394. break;
  3395. case EXT_EC_REF_SLIM_1_TX:
  3396. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3397. break;
  3398. case EXT_EC_REF_NONE:
  3399. default:
  3400. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3401. state = false;
  3402. break;
  3403. }
  3404. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3405. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3406. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3407. mutex_unlock(&routing_lock);
  3408. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3409. update);
  3410. } else {
  3411. ret = -EINVAL;
  3412. mutex_unlock(&routing_lock);
  3413. }
  3414. return ret;
  3415. }
  3416. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3417. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3418. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3419. "SLIM_1_TX"};
  3420. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3421. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3422. };
  3423. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3424. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3425. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3426. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3427. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3429. msm_routing_put_audio_mixer),
  3430. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3432. msm_routing_put_audio_mixer),
  3433. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3435. msm_routing_put_audio_mixer),
  3436. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3438. msm_routing_put_audio_mixer),
  3439. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3441. msm_routing_put_audio_mixer),
  3442. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3444. msm_routing_put_audio_mixer),
  3445. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3447. msm_routing_put_audio_mixer),
  3448. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3450. msm_routing_put_audio_mixer),
  3451. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3453. msm_routing_put_audio_mixer),
  3454. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3456. msm_routing_put_audio_mixer),
  3457. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3459. msm_routing_put_audio_mixer),
  3460. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3462. msm_routing_put_audio_mixer),
  3463. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3465. msm_routing_put_audio_mixer),
  3466. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3468. msm_routing_put_audio_mixer),
  3469. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3471. msm_routing_put_audio_mixer),
  3472. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3474. msm_routing_put_audio_mixer),
  3475. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3477. msm_routing_put_audio_mixer),
  3478. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3480. msm_routing_put_audio_mixer),
  3481. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3483. msm_routing_put_audio_mixer),
  3484. };
  3485. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3486. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3488. msm_routing_put_audio_mixer),
  3489. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3512. msm_routing_put_audio_mixer),
  3513. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3515. msm_routing_put_audio_mixer),
  3516. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3518. msm_routing_put_audio_mixer),
  3519. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3524. msm_routing_put_audio_mixer),
  3525. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3527. msm_routing_put_audio_mixer),
  3528. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3530. msm_routing_put_audio_mixer),
  3531. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3536. msm_routing_put_audio_mixer),
  3537. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3538. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3539. msm_routing_put_audio_mixer),
  3540. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3542. msm_routing_put_audio_mixer),
  3543. };
  3544. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3545. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3546. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3547. msm_routing_put_audio_mixer),
  3548. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3574. msm_routing_put_audio_mixer),
  3575. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3576. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3577. msm_routing_put_audio_mixer),
  3578. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3586. msm_routing_put_audio_mixer),
  3587. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3588. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3589. msm_routing_put_audio_mixer),
  3590. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3598. msm_routing_put_audio_mixer),
  3599. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3601. msm_routing_put_audio_mixer),
  3602. };
  3603. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3604. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3606. msm_routing_put_audio_mixer),
  3607. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3644. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3645. msm_routing_put_audio_mixer),
  3646. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. };
  3653. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3654. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3710. msm_routing_put_audio_mixer),
  3711. };
  3712. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3713. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3715. msm_routing_put_audio_mixer),
  3716. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. };
  3771. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3772. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. };
  3830. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3831. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. };
  3889. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3890. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. };
  3948. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3949. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. };
  4001. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4002. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. };
  4006. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4007. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. };
  4065. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4066. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. };
  4124. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4125. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. };
  4174. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4175. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. };
  4224. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4225. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. };
  4283. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4284. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. };
  4333. /* incall music delivery mixer */
  4334. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4335. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. };
  4348. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4349. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. };
  4362. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4363. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. };
  4376. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4377. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. };
  4426. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4427. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. };
  4476. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4477. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. };
  4526. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4527. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. };
  4585. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4586. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. };
  4635. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4636. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. };
  4694. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4695. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. };
  4753. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4754. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. };
  4812. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4813. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. };
  4871. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4872. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. };
  4921. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4922. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. };
  4971. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4972. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. };
  5021. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5022. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. };
  5071. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5072. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. };
  5121. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5122. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. };
  5171. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5172. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. };
  5221. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5222. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. };
  5271. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5272. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. };
  5321. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5322. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. };
  5371. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5372. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. };
  5421. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5422. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. };
  5471. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5472. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. };
  5521. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5522. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. };
  5571. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5572. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. };
  5621. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5622. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. };
  5671. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5672. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. };
  5721. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5722. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. };
  5771. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5772. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. };
  5821. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5822. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. };
  5874. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5875. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. };
  5924. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5925. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. };
  5977. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5978. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. };
  6030. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6031. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. };
  6083. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6084. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. };
  6136. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6137. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. };
  6186. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6187. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. };
  6239. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6240. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. };
  6292. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6293. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. };
  6345. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6346. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. };
  6482. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6483. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. };
  6586. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6587. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. };
  6690. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6691. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. };
  6791. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6792. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. };
  6910. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6911. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. };
  7014. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7015. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. };
  7121. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7122. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. };
  7228. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7229. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. };
  7290. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7291. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. };
  7370. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7371. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. };
  7393. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7394. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. };
  7419. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7420. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. };
  7442. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7443. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  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_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  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_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. };
  7519. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7520. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7521. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7522. msm_routing_put_voice_mixer),
  7523. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7524. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7525. msm_routing_put_voice_mixer),
  7526. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7527. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7528. msm_routing_put_voice_mixer),
  7529. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7531. msm_routing_put_voice_mixer),
  7532. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7533. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7534. msm_routing_put_voice_mixer),
  7535. };
  7536. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7537. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7538. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7539. msm_routing_put_voice_mixer),
  7540. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7541. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7542. msm_routing_put_voice_mixer),
  7543. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7544. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7545. msm_routing_put_voice_mixer),
  7546. };
  7547. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7548. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7549. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7550. msm_routing_put_voice_mixer),
  7551. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7552. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7553. msm_routing_put_voice_mixer),
  7554. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7555. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7556. msm_routing_put_voice_mixer),
  7557. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7558. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7559. msm_routing_put_voice_mixer),
  7560. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7561. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7562. msm_routing_put_voice_mixer),
  7563. };
  7564. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7565. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7566. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7567. msm_routing_put_voice_mixer),
  7568. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7569. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7570. msm_routing_put_voice_stub_mixer),
  7571. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7572. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7573. msm_routing_put_voice_stub_mixer),
  7574. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7575. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7576. msm_routing_put_voice_stub_mixer),
  7577. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7578. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7579. msm_routing_put_voice_mixer),
  7580. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7581. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7582. msm_routing_put_voice_mixer),
  7583. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7584. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7585. msm_routing_put_voice_mixer),
  7586. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7587. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7588. msm_routing_put_voice_mixer),
  7589. };
  7590. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7591. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7593. msm_routing_put_voice_mixer),
  7594. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7595. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7596. msm_routing_put_voice_stub_mixer),
  7597. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7598. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7599. msm_routing_put_voice_stub_mixer),
  7600. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7601. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7602. msm_routing_put_voice_stub_mixer),
  7603. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7604. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7605. msm_routing_put_voice_mixer),
  7606. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7607. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7608. msm_routing_put_voice_mixer),
  7609. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7610. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7611. msm_routing_put_voice_mixer),
  7612. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7614. msm_routing_put_voice_mixer),
  7615. };
  7616. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7617. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7618. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7619. msm_routing_put_voice_mixer),
  7620. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_USB_RX,
  7621. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7622. msm_routing_put_voice_stub_mixer),
  7623. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_USB_RX,
  7624. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7625. msm_routing_put_voice_stub_mixer),
  7626. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_USB_RX,
  7627. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7628. msm_routing_put_voice_stub_mixer),
  7629. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7630. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7631. msm_routing_put_voice_mixer),
  7632. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7634. msm_routing_put_voice_mixer),
  7635. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7636. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7637. msm_routing_put_voice_mixer),
  7638. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7639. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7640. msm_routing_put_voice_mixer),
  7641. };
  7642. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7643. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7644. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7645. msm_routing_put_voice_mixer),
  7646. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7647. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7648. msm_routing_put_voice_stub_mixer),
  7649. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7650. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7651. msm_routing_put_voice_stub_mixer),
  7652. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7653. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7654. msm_routing_put_voice_mixer),
  7655. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7656. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7657. msm_routing_put_voice_mixer),
  7658. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7659. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7660. msm_routing_put_voice_mixer),
  7661. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7662. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7663. msm_routing_put_voice_mixer),
  7664. };
  7665. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7666. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7667. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7668. msm_routing_put_voice_mixer),
  7669. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_MI2S_RX,
  7670. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7671. msm_routing_put_voice_stub_mixer),
  7672. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7673. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7674. msm_routing_put_voice_mixer),
  7675. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7677. msm_routing_put_voice_mixer),
  7678. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7679. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7680. msm_routing_put_voice_mixer),
  7681. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7682. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7683. msm_routing_put_voice_mixer),
  7684. };
  7685. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7686. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7687. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7688. msm_routing_put_voice_mixer),
  7689. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7690. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7691. msm_routing_put_voice_stub_mixer),
  7692. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7693. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7694. msm_routing_put_voice_stub_mixer),
  7695. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7696. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7697. msm_routing_put_voice_mixer),
  7698. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7699. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7700. msm_routing_put_voice_mixer),
  7701. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7702. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7703. msm_routing_put_voice_mixer),
  7704. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7705. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7706. msm_routing_put_voice_mixer),
  7707. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7708. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7709. msm_routing_put_voice_mixer),
  7710. };
  7711. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7712. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7713. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7714. msm_routing_put_voice_mixer),
  7715. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7717. msm_routing_put_voice_mixer),
  7718. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7719. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7720. msm_routing_put_voice_mixer),
  7721. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7722. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7723. msm_routing_put_voice_mixer),
  7724. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7725. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7726. msm_routing_put_voice_mixer),
  7727. };
  7728. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7729. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7730. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7731. msm_routing_put_voice_mixer),
  7732. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7733. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7734. msm_routing_put_voice_mixer),
  7735. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7736. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7737. msm_routing_put_voice_mixer),
  7738. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7739. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7740. msm_routing_put_voice_mixer),
  7741. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7742. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7743. msm_routing_put_voice_mixer),
  7744. };
  7745. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7746. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7747. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7748. msm_routing_put_voice_mixer),
  7749. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7750. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7751. msm_routing_put_voice_stub_mixer),
  7752. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7753. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7754. msm_routing_put_voice_stub_mixer),
  7755. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7756. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7757. msm_routing_put_voice_mixer),
  7758. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_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_TERTIARY_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_TERTIARY_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_TERTIARY_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 quat_mi2s_rx_voice_mixer_controls[] = {
  7772. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7774. msm_routing_put_voice_mixer),
  7775. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7776. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7777. msm_routing_put_voice_stub_mixer),
  7778. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7779. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7780. msm_routing_put_voice_stub_mixer),
  7781. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7782. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7783. msm_routing_put_voice_mixer),
  7784. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7785. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7786. msm_routing_put_voice_mixer),
  7787. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7788. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7789. msm_routing_put_voice_mixer),
  7790. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7791. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7792. msm_routing_put_voice_mixer),
  7793. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7794. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7795. msm_routing_put_voice_mixer),
  7796. };
  7797. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7798. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7799. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7800. msm_routing_put_voice_mixer),
  7801. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7802. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7803. msm_routing_put_voice_stub_mixer),
  7804. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7805. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7806. msm_routing_put_voice_stub_mixer),
  7807. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7808. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7809. msm_routing_put_voice_mixer),
  7810. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7811. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7812. msm_routing_put_voice_mixer),
  7813. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7814. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7815. msm_routing_put_voice_mixer),
  7816. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7818. msm_routing_put_voice_mixer),
  7819. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7820. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7821. msm_routing_put_voice_mixer),
  7822. };
  7823. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7824. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7825. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7826. msm_routing_put_voice_mixer),
  7827. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7828. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7829. msm_routing_put_voice_stub_mixer),
  7830. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7831. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7832. msm_routing_put_voice_stub_mixer),
  7833. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7834. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7835. msm_routing_put_voice_stub_mixer),
  7836. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7837. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7838. msm_routing_put_voice_mixer),
  7839. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7841. msm_routing_put_voice_mixer),
  7842. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7843. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7844. msm_routing_put_voice_mixer),
  7845. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7846. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7847. msm_routing_put_voice_mixer),
  7848. };
  7849. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7850. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7851. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7852. msm_routing_put_voice_mixer),
  7853. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7854. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7855. msm_routing_put_voice_stub_mixer),
  7856. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7857. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7858. msm_routing_put_voice_stub_mixer),
  7859. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7860. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7861. msm_routing_put_voice_stub_mixer),
  7862. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7863. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7864. msm_routing_put_voice_mixer),
  7865. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7866. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7867. msm_routing_put_voice_mixer),
  7868. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7869. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7870. msm_routing_put_voice_mixer),
  7871. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7872. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7873. msm_routing_put_voice_mixer),
  7874. };
  7875. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7876. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7878. msm_routing_put_voice_mixer),
  7879. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7880. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7881. msm_routing_put_voice_stub_mixer),
  7882. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7883. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7884. msm_routing_put_voice_mixer),
  7885. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7886. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7887. msm_routing_put_voice_mixer),
  7888. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7889. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7890. msm_routing_put_voice_mixer),
  7891. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7893. msm_routing_put_voice_mixer),
  7894. };
  7895. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7896. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7898. msm_routing_put_voice_mixer),
  7899. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7900. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7901. msm_routing_put_voice_stub_mixer),
  7902. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7903. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7904. msm_routing_put_voice_mixer),
  7905. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7907. msm_routing_put_voice_mixer),
  7908. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7910. msm_routing_put_voice_mixer),
  7911. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7912. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7913. msm_routing_put_voice_mixer),
  7914. };
  7915. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7916. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7917. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7918. msm_routing_put_voice_mixer),
  7919. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7920. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7921. msm_routing_put_voice_stub_mixer),
  7922. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7924. msm_routing_put_voice_mixer),
  7925. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7926. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7927. msm_routing_put_voice_mixer),
  7928. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7929. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7930. msm_routing_put_voice_mixer),
  7931. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7932. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7933. msm_routing_put_voice_mixer),
  7934. };
  7935. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7936. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7938. msm_routing_put_voice_mixer),
  7939. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7941. msm_routing_put_voice_stub_mixer),
  7942. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7943. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7944. msm_routing_put_voice_mixer),
  7945. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7946. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7947. msm_routing_put_voice_mixer),
  7948. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7949. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7950. msm_routing_put_voice_mixer),
  7951. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7952. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7953. msm_routing_put_voice_mixer),
  7954. };
  7955. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7956. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7957. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7958. msm_routing_put_voice_mixer),
  7959. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_HDMI_RX,
  7960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7961. msm_routing_put_voice_stub_mixer),
  7962. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_HDMI_RX,
  7963. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7964. msm_routing_put_voice_stub_mixer),
  7965. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_HDMI_RX,
  7966. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7967. msm_routing_put_voice_stub_mixer),
  7968. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7969. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7970. msm_routing_put_voice_mixer),
  7971. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7973. msm_routing_put_voice_mixer),
  7974. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7976. msm_routing_put_voice_mixer),
  7977. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7979. msm_routing_put_voice_mixer),
  7980. };
  7981. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7982. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7983. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7984. msm_routing_put_voice_mixer),
  7985. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7986. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7987. msm_routing_put_voice_stub_mixer),
  7988. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7990. msm_routing_put_voice_stub_mixer),
  7991. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7992. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7993. msm_routing_put_voice_stub_mixer),
  7994. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7995. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7996. msm_routing_put_voice_mixer),
  7997. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7998. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7999. msm_routing_put_voice_mixer),
  8000. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8001. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8002. msm_routing_put_voice_mixer),
  8003. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8004. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8005. msm_routing_put_voice_mixer),
  8006. };
  8007. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  8008. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8009. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8010. msm_routing_put_voice_mixer),
  8011. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8012. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8013. msm_routing_put_voice_stub_mixer),
  8014. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8015. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8016. msm_routing_put_voice_stub_mixer),
  8017. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8018. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8019. msm_routing_put_voice_stub_mixer),
  8020. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8021. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8022. msm_routing_put_voice_mixer),
  8023. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8024. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8025. msm_routing_put_voice_mixer),
  8026. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8027. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8028. msm_routing_put_voice_mixer),
  8029. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8030. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8031. msm_routing_put_voice_mixer),
  8032. };
  8033. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  8034. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8035. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8036. msm_routing_put_voice_mixer),
  8037. };
  8038. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  8039. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8040. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8041. msm_routing_put_voice_stub_mixer),
  8042. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8043. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8044. msm_routing_put_voice_stub_mixer),
  8045. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8046. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8047. msm_routing_put_voice_stub_mixer),
  8048. };
  8049. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  8050. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8051. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8052. msm_routing_put_voice_stub_mixer),
  8053. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8054. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8055. msm_routing_put_voice_stub_mixer),
  8056. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8057. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8058. msm_routing_put_voice_stub_mixer),
  8059. };
  8060. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  8061. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8062. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8063. msm_routing_put_voice_stub_mixer),
  8064. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8065. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8066. msm_routing_put_voice_stub_mixer),
  8067. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8068. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8069. msm_routing_put_voice_stub_mixer),
  8070. };
  8071. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  8072. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  8073. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8074. msm_routing_put_voice_mixer),
  8075. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  8076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8077. msm_routing_put_voice_mixer),
  8078. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  8079. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8080. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8081. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  8082. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8083. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8084. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  8085. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8086. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8087. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  8088. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8089. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  8091. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8092. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8093. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  8094. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8095. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8096. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  8097. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8098. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8099. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  8100. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8101. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8102. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  8103. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8104. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8105. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  8106. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8107. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8108. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  8109. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8111. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  8112. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8113. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8114. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  8115. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8116. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8117. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8118. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8119. msm_routing_put_voice_mixer),
  8120. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8121. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8122. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8123. };
  8124. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8125. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8126. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8127. msm_routing_put_voice_mixer),
  8128. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8129. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8130. msm_routing_put_voice_mixer),
  8131. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8132. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8133. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8134. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8135. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8136. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8137. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8138. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8139. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8140. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8141. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8142. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8143. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8145. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8146. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8147. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8148. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8149. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8150. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8151. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8152. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8153. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8154. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8155. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8156. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8157. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8158. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8159. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8160. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8161. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8162. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8163. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8164. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8165. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8166. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8167. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8168. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8169. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8170. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8171. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8172. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8173. };
  8174. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8175. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8176. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8177. msm_routing_put_voice_mixer),
  8178. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8179. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8180. msm_routing_put_voice_mixer),
  8181. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8182. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8183. msm_routing_put_voice_mixer),
  8184. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8185. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8186. msm_routing_put_voice_mixer),
  8187. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8188. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8189. msm_routing_put_voice_mixer),
  8190. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8191. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8192. msm_routing_put_voice_mixer),
  8193. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8194. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8195. msm_routing_put_voice_mixer),
  8196. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8197. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8198. msm_routing_put_voice_mixer),
  8199. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8200. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8201. msm_routing_put_voice_mixer),
  8202. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8203. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8204. msm_routing_put_voice_mixer),
  8205. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8206. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8207. msm_routing_put_voice_mixer),
  8208. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8209. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8210. msm_routing_put_voice_mixer),
  8211. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8212. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8213. msm_routing_put_voice_mixer),
  8214. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8215. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8216. msm_routing_put_voice_mixer),
  8217. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8218. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8219. msm_routing_put_voice_mixer),
  8220. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8221. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8222. msm_routing_put_voice_mixer),
  8223. };
  8224. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8225. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8226. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8227. msm_routing_put_voice_stub_mixer),
  8228. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8229. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8230. msm_routing_put_voice_stub_mixer),
  8231. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8232. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8233. msm_routing_put_voice_stub_mixer),
  8234. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8235. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8236. msm_routing_put_voice_stub_mixer),
  8237. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8238. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8239. msm_routing_put_voice_stub_mixer),
  8240. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8241. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8242. msm_routing_put_voice_stub_mixer),
  8243. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8244. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8245. msm_routing_put_voice_stub_mixer),
  8246. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8247. MSM_FRONTEND_DAI_VOICE_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_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8251. msm_routing_put_voice_stub_mixer),
  8252. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8253. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8254. msm_routing_put_voice_stub_mixer),
  8255. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8256. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8257. msm_routing_put_voice_stub_mixer),
  8258. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8259. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8260. msm_routing_put_voice_stub_mixer),
  8261. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8262. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8263. msm_routing_put_voice_stub_mixer),
  8264. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8265. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8266. msm_routing_put_voice_stub_mixer),
  8267. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8268. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8269. msm_routing_put_voice_stub_mixer),
  8270. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8271. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8272. msm_routing_put_voice_stub_mixer),
  8273. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8274. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8275. msm_routing_put_voice_stub_mixer),
  8276. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8277. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8278. msm_routing_put_voice_stub_mixer),
  8279. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8280. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8281. msm_routing_put_voice_stub_mixer),
  8282. };
  8283. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8284. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8285. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8286. msm_routing_put_voice_stub_mixer),
  8287. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8289. msm_routing_put_voice_stub_mixer),
  8290. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8291. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8292. msm_routing_put_voice_stub_mixer),
  8293. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8294. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8295. msm_routing_put_voice_stub_mixer),
  8296. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8297. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8298. msm_routing_put_voice_stub_mixer),
  8299. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8300. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8301. msm_routing_put_voice_stub_mixer),
  8302. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8303. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8304. msm_routing_put_voice_stub_mixer),
  8305. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8306. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8307. msm_routing_put_voice_stub_mixer),
  8308. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8309. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8310. msm_routing_put_voice_stub_mixer),
  8311. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8312. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8313. msm_routing_put_voice_stub_mixer),
  8314. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8315. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8316. msm_routing_put_voice_stub_mixer),
  8317. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8318. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8319. msm_routing_put_voice_stub_mixer),
  8320. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8321. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8322. msm_routing_put_voice_stub_mixer),
  8323. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8324. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8325. msm_routing_put_voice_stub_mixer),
  8326. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8327. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8328. msm_routing_put_voice_stub_mixer),
  8329. };
  8330. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8331. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8332. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8333. msm_routing_put_voice_stub_mixer),
  8334. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8335. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8336. msm_routing_put_voice_stub_mixer),
  8337. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8338. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8339. msm_routing_put_voice_stub_mixer),
  8340. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8341. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8342. msm_routing_put_voice_stub_mixer),
  8343. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8344. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8345. msm_routing_put_voice_stub_mixer),
  8346. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8347. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8348. msm_routing_put_voice_stub_mixer),
  8349. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8350. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8351. msm_routing_put_voice_stub_mixer),
  8352. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8353. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8354. msm_routing_put_voice_stub_mixer),
  8355. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8356. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8357. msm_routing_put_voice_stub_mixer),
  8358. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8359. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8360. msm_routing_put_voice_stub_mixer),
  8361. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8362. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8363. msm_routing_put_voice_stub_mixer),
  8364. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8365. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8366. msm_routing_put_voice_stub_mixer),
  8367. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8368. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8369. msm_routing_put_voice_stub_mixer),
  8370. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8371. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8372. msm_routing_put_voice_stub_mixer),
  8373. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8374. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8375. msm_routing_put_voice_stub_mixer),
  8376. };
  8377. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8378. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8379. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8380. msm_routing_put_voice_mixer),
  8381. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8382. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8383. msm_routing_put_voice_mixer),
  8384. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8385. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8386. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8387. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8388. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8389. msm_routing_put_voice_mixer),
  8390. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8392. msm_routing_put_voice_mixer),
  8393. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8394. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8395. msm_routing_put_voice_mixer),
  8396. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8397. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8398. msm_routing_put_voice_mixer),
  8399. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8400. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8401. msm_routing_put_voice_mixer),
  8402. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8403. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8404. msm_routing_put_voice_mixer),
  8405. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8406. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8407. msm_routing_put_voice_mixer),
  8408. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8409. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8410. msm_routing_put_voice_mixer),
  8411. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8412. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8413. msm_routing_put_voice_mixer),
  8414. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8415. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8416. msm_routing_put_voice_mixer),
  8417. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8418. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8419. msm_routing_put_voice_mixer),
  8420. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8421. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8422. msm_routing_put_voice_mixer),
  8423. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8425. msm_routing_put_voice_mixer),
  8426. };
  8427. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8428. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8429. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8430. msm_routing_put_port_mixer),
  8431. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8432. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8433. msm_routing_put_port_mixer),
  8434. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8436. msm_routing_put_port_mixer),
  8437. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8438. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8439. msm_routing_put_port_mixer),
  8440. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8441. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8442. msm_routing_put_port_mixer),
  8443. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8444. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8445. msm_routing_put_port_mixer),
  8446. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8447. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8448. msm_routing_put_port_mixer),
  8449. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8450. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8451. msm_routing_put_port_mixer),
  8452. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8453. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8454. msm_routing_put_port_mixer),
  8455. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8456. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8457. msm_routing_put_port_mixer),
  8458. };
  8459. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8460. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8461. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8462. msm_routing_put_port_mixer),
  8463. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8465. msm_routing_put_port_mixer),
  8466. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8467. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8468. msm_routing_put_port_mixer),
  8469. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8470. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8471. msm_routing_put_port_mixer),
  8472. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8473. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8474. msm_routing_put_port_mixer),
  8475. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8476. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8477. msm_routing_put_port_mixer),
  8478. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8479. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8480. msm_routing_put_port_mixer),
  8481. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8482. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8483. msm_routing_put_port_mixer),
  8484. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8485. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8486. msm_routing_put_port_mixer),
  8487. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8488. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8489. msm_routing_put_port_mixer),
  8490. };
  8491. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8492. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8493. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8494. msm_routing_put_port_mixer),
  8495. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_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("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8499. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8500. msm_routing_put_port_mixer),
  8501. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8502. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8503. msm_routing_put_port_mixer),
  8504. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8505. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8506. msm_routing_put_port_mixer),
  8507. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8508. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8509. msm_routing_put_port_mixer),
  8510. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8512. msm_routing_put_port_mixer),
  8513. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8514. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8515. msm_routing_put_port_mixer),
  8516. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8517. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8518. msm_routing_put_port_mixer),
  8519. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8520. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8521. msm_routing_put_port_mixer),
  8522. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8523. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8524. msm_routing_put_port_mixer),
  8525. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8526. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8527. msm_routing_put_port_mixer),
  8528. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8529. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8530. msm_routing_put_port_mixer),
  8531. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8532. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8533. msm_routing_put_port_mixer),
  8534. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8535. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8536. msm_routing_put_port_mixer),
  8537. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8538. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8539. msm_routing_put_port_mixer),
  8540. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8541. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8542. msm_routing_put_port_mixer),
  8543. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8544. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8545. msm_routing_put_port_mixer),
  8546. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8547. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8550. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8551. msm_routing_put_port_mixer),
  8552. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8553. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8554. msm_routing_put_port_mixer),
  8555. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8556. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8557. msm_routing_put_port_mixer),
  8558. };
  8559. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8560. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8561. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8562. msm_routing_put_port_mixer),
  8563. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8564. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8565. msm_routing_put_port_mixer),
  8566. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8568. msm_routing_put_port_mixer),
  8569. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8570. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8571. msm_routing_put_port_mixer),
  8572. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8574. msm_routing_put_port_mixer),
  8575. };
  8576. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8577. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8578. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8579. msm_routing_put_port_mixer),
  8580. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8581. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8582. msm_routing_put_port_mixer),
  8583. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8584. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8585. msm_routing_put_port_mixer),
  8586. };
  8587. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8588. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8589. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8590. msm_routing_put_port_mixer),
  8591. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8592. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8593. msm_routing_put_port_mixer),
  8594. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8595. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8596. msm_routing_put_port_mixer),
  8597. };
  8598. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8599. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8600. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8601. msm_routing_put_port_mixer),
  8602. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8603. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8604. msm_routing_put_port_mixer),
  8605. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8606. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8607. msm_routing_put_port_mixer),
  8608. };
  8609. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8610. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8611. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8612. msm_routing_put_port_mixer),
  8613. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8614. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8615. msm_routing_put_port_mixer),
  8616. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8617. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8618. msm_routing_put_port_mixer),
  8619. };
  8620. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8621. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8622. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8623. msm_routing_put_port_mixer),
  8624. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8625. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8626. msm_routing_put_port_mixer),
  8627. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8629. msm_routing_put_port_mixer),
  8630. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8631. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8632. msm_routing_put_port_mixer),
  8633. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8634. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8635. msm_routing_put_port_mixer),
  8636. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8637. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8638. msm_routing_put_port_mixer),
  8639. };
  8640. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8641. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8642. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8643. msm_routing_put_port_mixer),
  8644. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8645. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8646. msm_routing_put_port_mixer),
  8647. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8648. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8649. msm_routing_put_port_mixer),
  8650. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8651. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8652. msm_routing_put_port_mixer),
  8653. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8654. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8655. msm_routing_put_port_mixer),
  8656. };
  8657. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8658. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8659. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8660. msm_routing_put_port_mixer),
  8661. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8662. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8663. msm_routing_put_port_mixer),
  8664. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8665. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8666. msm_routing_put_port_mixer),
  8667. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8668. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8669. msm_routing_put_port_mixer),
  8670. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8671. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8672. msm_routing_put_port_mixer),
  8673. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8674. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8675. msm_routing_put_port_mixer),
  8676. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8677. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8678. msm_routing_put_port_mixer),
  8679. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8680. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8681. msm_routing_put_port_mixer),
  8682. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8683. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8684. msm_routing_put_port_mixer),
  8685. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8686. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8687. msm_routing_put_port_mixer),
  8688. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8689. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8690. msm_routing_put_port_mixer),
  8691. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8692. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8693. msm_routing_put_port_mixer),
  8694. };
  8695. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8696. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8697. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8698. msm_routing_put_port_mixer),
  8699. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8700. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8701. msm_routing_put_port_mixer),
  8702. };
  8703. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8704. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8705. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8706. msm_routing_put_port_mixer),
  8707. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8708. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8709. msm_routing_put_port_mixer),
  8710. };
  8711. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8712. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8713. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8714. msm_routing_put_port_mixer),
  8715. };
  8716. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8717. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8718. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8719. msm_routing_put_port_mixer),
  8720. };
  8721. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8722. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8723. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8724. msm_routing_put_port_mixer),
  8725. };
  8726. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8727. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8728. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8729. msm_routing_put_port_mixer),
  8730. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8731. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8732. msm_routing_put_port_mixer),
  8733. };
  8734. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8735. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8736. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8737. msm_routing_put_port_mixer),
  8738. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8739. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8740. msm_routing_put_port_mixer),
  8741. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8742. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8743. msm_routing_put_port_mixer),
  8744. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8745. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8748. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8749. msm_routing_put_port_mixer),
  8750. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8751. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8752. msm_routing_put_port_mixer),
  8753. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8754. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8755. msm_routing_put_port_mixer),
  8756. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8757. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8760. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8761. msm_routing_put_port_mixer),
  8762. };
  8763. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8764. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8765. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. };
  8768. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8769. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8770. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8771. msm_routing_put_port_mixer),
  8772. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8773. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8774. msm_routing_put_port_mixer),
  8775. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8776. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8777. msm_routing_put_port_mixer),
  8778. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8779. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8780. msm_routing_put_port_mixer),
  8781. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8782. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8783. msm_routing_put_port_mixer),
  8784. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8785. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8786. msm_routing_put_port_mixer),
  8787. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8789. msm_routing_put_port_mixer),
  8790. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8791. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8792. msm_routing_put_port_mixer),
  8793. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8794. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8795. msm_routing_put_port_mixer),
  8796. };
  8797. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8798. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8799. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8800. msm_routing_put_port_mixer),
  8801. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8803. msm_routing_put_port_mixer),
  8804. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8805. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8806. msm_routing_put_port_mixer),
  8807. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8809. msm_routing_put_port_mixer),
  8810. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8811. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8812. msm_routing_put_port_mixer),
  8813. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8814. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8815. msm_routing_put_port_mixer),
  8816. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8817. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8818. msm_routing_put_port_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8821. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8822. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8823. msm_routing_get_port_mixer,
  8824. msm_routing_put_port_mixer),
  8825. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8827. msm_routing_get_port_mixer,
  8828. msm_routing_put_port_mixer),
  8829. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8830. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8831. msm_routing_get_port_mixer,
  8832. msm_routing_put_port_mixer),
  8833. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8834. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8835. msm_routing_get_port_mixer,
  8836. msm_routing_put_port_mixer),
  8837. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8839. msm_routing_get_port_mixer,
  8840. msm_routing_put_port_mixer),
  8841. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8842. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8843. msm_routing_get_port_mixer,
  8844. msm_routing_put_port_mixer),
  8845. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8846. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8847. msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8850. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8851. msm_routing_get_port_mixer,
  8852. msm_routing_put_port_mixer),
  8853. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8854. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8855. msm_routing_get_port_mixer,
  8856. msm_routing_put_port_mixer),
  8857. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8858. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8859. msm_routing_get_port_mixer,
  8860. msm_routing_put_port_mixer),
  8861. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8862. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8863. msm_routing_get_port_mixer,
  8864. msm_routing_put_port_mixer),
  8865. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8866. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8867. msm_routing_get_port_mixer,
  8868. msm_routing_put_port_mixer),
  8869. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8870. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8871. msm_routing_get_port_mixer,
  8872. msm_routing_put_port_mixer),
  8873. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8874. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8875. msm_routing_get_port_mixer,
  8876. msm_routing_put_port_mixer),
  8877. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8878. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8879. msm_routing_get_port_mixer,
  8880. msm_routing_put_port_mixer),
  8881. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8882. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8883. msm_routing_get_port_mixer,
  8884. msm_routing_put_port_mixer),
  8885. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8886. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8887. msm_routing_get_port_mixer,
  8888. msm_routing_put_port_mixer),
  8889. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8890. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8891. msm_routing_get_port_mixer,
  8892. msm_routing_put_port_mixer),
  8893. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8894. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8895. msm_routing_get_port_mixer,
  8896. msm_routing_put_port_mixer),
  8897. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8898. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8899. msm_routing_get_port_mixer,
  8900. msm_routing_put_port_mixer),
  8901. };
  8902. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8903. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8904. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8905. msm_routing_get_port_mixer,
  8906. msm_routing_put_port_mixer),
  8907. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8908. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8909. msm_routing_get_port_mixer,
  8910. msm_routing_put_port_mixer),
  8911. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8912. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8913. msm_routing_get_port_mixer,
  8914. msm_routing_put_port_mixer),
  8915. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8916. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8917. msm_routing_get_port_mixer,
  8918. msm_routing_put_port_mixer),
  8919. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8920. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8921. msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8924. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8925. msm_routing_get_port_mixer,
  8926. msm_routing_put_port_mixer),
  8927. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8928. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8929. msm_routing_get_port_mixer,
  8930. msm_routing_put_port_mixer),
  8931. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8932. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8933. msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8936. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8937. msm_routing_get_port_mixer,
  8938. msm_routing_put_port_mixer),
  8939. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8940. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8941. msm_routing_get_port_mixer,
  8942. msm_routing_put_port_mixer),
  8943. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8944. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8945. msm_routing_get_port_mixer,
  8946. msm_routing_put_port_mixer),
  8947. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8948. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8949. msm_routing_get_port_mixer,
  8950. msm_routing_put_port_mixer),
  8951. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8952. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8953. msm_routing_get_port_mixer,
  8954. msm_routing_put_port_mixer),
  8955. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8956. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8957. msm_routing_get_port_mixer,
  8958. msm_routing_put_port_mixer),
  8959. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8960. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8961. msm_routing_get_port_mixer,
  8962. msm_routing_put_port_mixer),
  8963. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8964. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8965. msm_routing_get_port_mixer,
  8966. msm_routing_put_port_mixer),
  8967. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8968. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8969. msm_routing_get_port_mixer,
  8970. msm_routing_put_port_mixer),
  8971. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8972. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8973. msm_routing_get_port_mixer,
  8974. msm_routing_put_port_mixer),
  8975. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8976. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8977. msm_routing_get_port_mixer,
  8978. msm_routing_put_port_mixer),
  8979. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8980. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8981. msm_routing_get_port_mixer,
  8982. msm_routing_put_port_mixer),
  8983. };
  8984. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8985. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8986. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8987. msm_routing_get_port_mixer,
  8988. msm_routing_put_port_mixer),
  8989. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8991. msm_routing_get_port_mixer,
  8992. msm_routing_put_port_mixer),
  8993. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8994. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8995. msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8998. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8999. msm_routing_get_port_mixer,
  9000. msm_routing_put_port_mixer),
  9001. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9002. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9003. msm_routing_get_port_mixer,
  9004. msm_routing_put_port_mixer),
  9005. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9006. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9007. msm_routing_get_port_mixer,
  9008. msm_routing_put_port_mixer),
  9009. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9010. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9011. msm_routing_get_port_mixer,
  9012. msm_routing_put_port_mixer),
  9013. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9014. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9015. msm_routing_get_port_mixer,
  9016. msm_routing_put_port_mixer),
  9017. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9018. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9019. msm_routing_get_port_mixer,
  9020. msm_routing_put_port_mixer),
  9021. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9022. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9023. msm_routing_get_port_mixer,
  9024. msm_routing_put_port_mixer),
  9025. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9026. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9027. msm_routing_get_port_mixer,
  9028. msm_routing_put_port_mixer),
  9029. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9030. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9031. msm_routing_get_port_mixer,
  9032. msm_routing_put_port_mixer),
  9033. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9034. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9035. msm_routing_get_port_mixer,
  9036. msm_routing_put_port_mixer),
  9037. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9038. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9039. msm_routing_get_port_mixer,
  9040. msm_routing_put_port_mixer),
  9041. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9042. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9043. msm_routing_get_port_mixer,
  9044. msm_routing_put_port_mixer),
  9045. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9046. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9047. msm_routing_get_port_mixer,
  9048. msm_routing_put_port_mixer),
  9049. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9051. msm_routing_get_port_mixer,
  9052. msm_routing_put_port_mixer),
  9053. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9054. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9055. msm_routing_get_port_mixer,
  9056. msm_routing_put_port_mixer),
  9057. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9058. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9059. msm_routing_get_port_mixer,
  9060. msm_routing_put_port_mixer),
  9061. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9062. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9063. msm_routing_get_port_mixer,
  9064. msm_routing_put_port_mixer),
  9065. };
  9066. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  9067. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9068. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9069. msm_routing_get_port_mixer,
  9070. msm_routing_put_port_mixer),
  9071. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9072. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9073. msm_routing_get_port_mixer,
  9074. msm_routing_put_port_mixer),
  9075. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9076. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9077. msm_routing_get_port_mixer,
  9078. msm_routing_put_port_mixer),
  9079. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9080. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9081. msm_routing_get_port_mixer,
  9082. msm_routing_put_port_mixer),
  9083. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9084. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9085. msm_routing_get_port_mixer,
  9086. msm_routing_put_port_mixer),
  9087. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9088. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9089. msm_routing_get_port_mixer,
  9090. msm_routing_put_port_mixer),
  9091. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9093. msm_routing_get_port_mixer,
  9094. msm_routing_put_port_mixer),
  9095. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9096. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9097. msm_routing_get_port_mixer,
  9098. msm_routing_put_port_mixer),
  9099. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9100. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9101. msm_routing_get_port_mixer,
  9102. msm_routing_put_port_mixer),
  9103. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9104. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9105. msm_routing_get_port_mixer,
  9106. msm_routing_put_port_mixer),
  9107. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9108. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9109. msm_routing_get_port_mixer,
  9110. msm_routing_put_port_mixer),
  9111. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9112. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9113. msm_routing_get_port_mixer,
  9114. msm_routing_put_port_mixer),
  9115. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9116. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9117. msm_routing_get_port_mixer,
  9118. msm_routing_put_port_mixer),
  9119. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9120. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9121. msm_routing_get_port_mixer,
  9122. msm_routing_put_port_mixer),
  9123. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9124. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9125. msm_routing_get_port_mixer,
  9126. msm_routing_put_port_mixer),
  9127. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9128. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9129. msm_routing_get_port_mixer,
  9130. msm_routing_put_port_mixer),
  9131. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9132. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9133. msm_routing_get_port_mixer,
  9134. msm_routing_put_port_mixer),
  9135. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9136. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9137. msm_routing_get_port_mixer,
  9138. msm_routing_put_port_mixer),
  9139. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9140. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9141. msm_routing_get_port_mixer,
  9142. msm_routing_put_port_mixer),
  9143. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9144. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9145. msm_routing_get_port_mixer,
  9146. msm_routing_put_port_mixer),
  9147. };
  9148. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9149. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9150. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9151. msm_routing_get_port_mixer,
  9152. msm_routing_put_port_mixer),
  9153. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9154. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9155. msm_routing_get_port_mixer,
  9156. msm_routing_put_port_mixer),
  9157. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9158. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9159. msm_routing_get_port_mixer,
  9160. msm_routing_put_port_mixer),
  9161. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9163. msm_routing_get_port_mixer,
  9164. msm_routing_put_port_mixer),
  9165. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9166. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9167. msm_routing_get_port_mixer,
  9168. msm_routing_put_port_mixer),
  9169. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9170. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9171. msm_routing_get_port_mixer,
  9172. msm_routing_put_port_mixer),
  9173. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9174. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9175. msm_routing_get_port_mixer,
  9176. msm_routing_put_port_mixer),
  9177. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9178. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9179. msm_routing_get_port_mixer,
  9180. msm_routing_put_port_mixer),
  9181. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9182. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9183. msm_routing_get_port_mixer,
  9184. msm_routing_put_port_mixer),
  9185. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9186. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9187. msm_routing_get_port_mixer,
  9188. msm_routing_put_port_mixer),
  9189. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9190. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9191. msm_routing_get_port_mixer,
  9192. msm_routing_put_port_mixer),
  9193. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9194. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9195. msm_routing_get_port_mixer,
  9196. msm_routing_put_port_mixer),
  9197. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9198. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9199. msm_routing_get_port_mixer,
  9200. msm_routing_put_port_mixer),
  9201. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9202. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9203. msm_routing_get_port_mixer,
  9204. msm_routing_put_port_mixer),
  9205. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9206. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9207. msm_routing_get_port_mixer,
  9208. msm_routing_put_port_mixer),
  9209. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9210. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9211. msm_routing_get_port_mixer,
  9212. msm_routing_put_port_mixer),
  9213. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9214. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9215. msm_routing_get_port_mixer,
  9216. msm_routing_put_port_mixer),
  9217. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9219. msm_routing_get_port_mixer,
  9220. msm_routing_put_port_mixer),
  9221. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9222. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9223. msm_routing_get_port_mixer,
  9224. msm_routing_put_port_mixer),
  9225. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9226. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9227. msm_routing_get_port_mixer,
  9228. msm_routing_put_port_mixer),
  9229. };
  9230. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9231. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9233. msm_routing_get_port_mixer,
  9234. msm_routing_put_port_mixer),
  9235. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9236. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9237. msm_routing_get_port_mixer,
  9238. msm_routing_put_port_mixer),
  9239. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9240. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9241. msm_routing_get_port_mixer,
  9242. msm_routing_put_port_mixer),
  9243. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9244. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9245. msm_routing_get_port_mixer,
  9246. msm_routing_put_port_mixer),
  9247. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9248. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9249. msm_routing_get_port_mixer,
  9250. msm_routing_put_port_mixer),
  9251. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9252. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9253. msm_routing_get_port_mixer,
  9254. msm_routing_put_port_mixer),
  9255. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9257. msm_routing_get_port_mixer,
  9258. msm_routing_put_port_mixer),
  9259. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9260. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9261. msm_routing_get_port_mixer,
  9262. msm_routing_put_port_mixer),
  9263. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9264. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9265. msm_routing_get_port_mixer,
  9266. msm_routing_put_port_mixer),
  9267. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9268. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9269. msm_routing_get_port_mixer,
  9270. msm_routing_put_port_mixer),
  9271. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9272. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9273. msm_routing_get_port_mixer,
  9274. msm_routing_put_port_mixer),
  9275. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9276. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9277. msm_routing_get_port_mixer,
  9278. msm_routing_put_port_mixer),
  9279. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9280. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9281. msm_routing_get_port_mixer,
  9282. msm_routing_put_port_mixer),
  9283. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9284. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9285. msm_routing_get_port_mixer,
  9286. msm_routing_put_port_mixer),
  9287. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9288. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9289. msm_routing_get_port_mixer,
  9290. msm_routing_put_port_mixer),
  9291. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9292. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9293. msm_routing_get_port_mixer,
  9294. msm_routing_put_port_mixer),
  9295. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9296. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9297. msm_routing_get_port_mixer,
  9298. msm_routing_put_port_mixer),
  9299. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9301. msm_routing_get_port_mixer,
  9302. msm_routing_put_port_mixer),
  9303. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9305. msm_routing_get_port_mixer,
  9306. msm_routing_put_port_mixer),
  9307. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9308. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9309. msm_routing_get_port_mixer,
  9310. msm_routing_put_port_mixer),
  9311. };
  9312. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9313. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9314. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9315. msm_routing_get_port_mixer,
  9316. msm_routing_put_port_mixer),
  9317. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9318. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9319. msm_routing_get_port_mixer,
  9320. msm_routing_put_port_mixer),
  9321. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9322. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9323. msm_routing_get_port_mixer,
  9324. msm_routing_put_port_mixer),
  9325. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9326. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9327. msm_routing_get_port_mixer,
  9328. msm_routing_put_port_mixer),
  9329. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9330. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9331. msm_routing_get_port_mixer,
  9332. msm_routing_put_port_mixer),
  9333. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9334. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9335. msm_routing_get_port_mixer,
  9336. msm_routing_put_port_mixer),
  9337. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9338. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9339. msm_routing_get_port_mixer,
  9340. msm_routing_put_port_mixer),
  9341. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9342. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9343. msm_routing_get_port_mixer,
  9344. msm_routing_put_port_mixer),
  9345. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9346. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9347. msm_routing_get_port_mixer,
  9348. msm_routing_put_port_mixer),
  9349. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9350. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9351. msm_routing_get_port_mixer,
  9352. msm_routing_put_port_mixer),
  9353. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9354. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9355. msm_routing_get_port_mixer,
  9356. msm_routing_put_port_mixer),
  9357. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9358. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9359. msm_routing_get_port_mixer,
  9360. msm_routing_put_port_mixer),
  9361. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9362. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9363. msm_routing_get_port_mixer,
  9364. msm_routing_put_port_mixer),
  9365. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9366. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9367. msm_routing_get_port_mixer,
  9368. msm_routing_put_port_mixer),
  9369. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9370. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9371. msm_routing_get_port_mixer,
  9372. msm_routing_put_port_mixer),
  9373. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9374. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9375. msm_routing_get_port_mixer,
  9376. msm_routing_put_port_mixer),
  9377. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9378. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9379. msm_routing_get_port_mixer,
  9380. msm_routing_put_port_mixer),
  9381. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9382. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9383. msm_routing_get_port_mixer,
  9384. msm_routing_put_port_mixer),
  9385. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9386. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9387. msm_routing_get_port_mixer,
  9388. msm_routing_put_port_mixer),
  9389. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9390. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9391. msm_routing_get_port_mixer,
  9392. msm_routing_put_port_mixer),
  9393. };
  9394. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9395. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9396. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9397. msm_routing_get_port_mixer,
  9398. msm_routing_put_port_mixer),
  9399. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9400. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9401. msm_routing_get_port_mixer,
  9402. msm_routing_put_port_mixer),
  9403. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9405. msm_routing_get_port_mixer,
  9406. msm_routing_put_port_mixer),
  9407. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9408. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9409. msm_routing_get_port_mixer,
  9410. msm_routing_put_port_mixer),
  9411. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9412. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9413. msm_routing_get_port_mixer,
  9414. msm_routing_put_port_mixer),
  9415. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9416. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9417. msm_routing_get_port_mixer,
  9418. msm_routing_put_port_mixer),
  9419. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9420. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9421. msm_routing_get_port_mixer,
  9422. msm_routing_put_port_mixer),
  9423. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9424. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9425. msm_routing_get_port_mixer,
  9426. msm_routing_put_port_mixer),
  9427. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9428. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9429. msm_routing_get_port_mixer,
  9430. msm_routing_put_port_mixer),
  9431. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9432. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9433. msm_routing_get_port_mixer,
  9434. msm_routing_put_port_mixer),
  9435. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9436. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9437. msm_routing_get_port_mixer,
  9438. msm_routing_put_port_mixer),
  9439. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9440. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9441. msm_routing_get_port_mixer,
  9442. msm_routing_put_port_mixer),
  9443. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9444. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9445. msm_routing_get_port_mixer,
  9446. msm_routing_put_port_mixer),
  9447. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9448. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9449. msm_routing_get_port_mixer,
  9450. msm_routing_put_port_mixer),
  9451. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9452. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9453. msm_routing_get_port_mixer,
  9454. msm_routing_put_port_mixer),
  9455. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9456. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9457. msm_routing_get_port_mixer,
  9458. msm_routing_put_port_mixer),
  9459. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9460. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9461. msm_routing_get_port_mixer,
  9462. msm_routing_put_port_mixer),
  9463. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9464. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9465. msm_routing_get_port_mixer,
  9466. msm_routing_put_port_mixer),
  9467. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9468. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9469. msm_routing_get_port_mixer,
  9470. msm_routing_put_port_mixer),
  9471. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9472. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9473. msm_routing_get_port_mixer,
  9474. msm_routing_put_port_mixer),
  9475. };
  9476. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9477. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9478. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9479. msm_routing_get_port_mixer,
  9480. msm_routing_put_port_mixer),
  9481. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9482. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9483. msm_routing_get_port_mixer,
  9484. msm_routing_put_port_mixer),
  9485. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9487. msm_routing_get_port_mixer,
  9488. msm_routing_put_port_mixer),
  9489. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9490. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9491. msm_routing_get_port_mixer,
  9492. msm_routing_put_port_mixer),
  9493. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9494. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9495. msm_routing_get_port_mixer,
  9496. msm_routing_put_port_mixer),
  9497. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9498. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9499. msm_routing_get_port_mixer,
  9500. msm_routing_put_port_mixer),
  9501. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9502. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9503. msm_routing_get_port_mixer,
  9504. msm_routing_put_port_mixer),
  9505. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9506. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9507. msm_routing_get_port_mixer,
  9508. msm_routing_put_port_mixer),
  9509. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9511. msm_routing_get_port_mixer,
  9512. msm_routing_put_port_mixer),
  9513. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9514. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9515. msm_routing_get_port_mixer,
  9516. msm_routing_put_port_mixer),
  9517. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9518. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9519. msm_routing_get_port_mixer,
  9520. msm_routing_put_port_mixer),
  9521. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9522. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9523. msm_routing_get_port_mixer,
  9524. msm_routing_put_port_mixer),
  9525. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9526. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9527. msm_routing_get_port_mixer,
  9528. msm_routing_put_port_mixer),
  9529. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9530. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9531. msm_routing_get_port_mixer,
  9532. msm_routing_put_port_mixer),
  9533. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9534. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9535. msm_routing_get_port_mixer,
  9536. msm_routing_put_port_mixer),
  9537. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9538. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9539. msm_routing_get_port_mixer,
  9540. msm_routing_put_port_mixer),
  9541. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9542. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9543. msm_routing_get_port_mixer,
  9544. msm_routing_put_port_mixer),
  9545. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9546. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9547. msm_routing_get_port_mixer,
  9548. msm_routing_put_port_mixer),
  9549. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9550. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9551. msm_routing_get_port_mixer,
  9552. msm_routing_put_port_mixer),
  9553. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9555. msm_routing_get_port_mixer,
  9556. msm_routing_put_port_mixer),
  9557. };
  9558. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9559. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9560. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9561. msm_routing_get_port_mixer,
  9562. msm_routing_put_port_mixer),
  9563. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9564. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9565. msm_routing_get_port_mixer,
  9566. msm_routing_put_port_mixer),
  9567. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9569. msm_routing_get_port_mixer,
  9570. msm_routing_put_port_mixer),
  9571. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9572. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9573. msm_routing_get_port_mixer,
  9574. msm_routing_put_port_mixer),
  9575. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9576. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9577. msm_routing_get_port_mixer,
  9578. msm_routing_put_port_mixer),
  9579. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9580. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9581. msm_routing_get_port_mixer,
  9582. msm_routing_put_port_mixer),
  9583. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9584. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9585. msm_routing_get_port_mixer,
  9586. msm_routing_put_port_mixer),
  9587. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9588. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9589. msm_routing_get_port_mixer,
  9590. msm_routing_put_port_mixer),
  9591. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9592. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9593. msm_routing_get_port_mixer,
  9594. msm_routing_put_port_mixer),
  9595. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9596. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9597. msm_routing_get_port_mixer,
  9598. msm_routing_put_port_mixer),
  9599. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9600. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9601. msm_routing_get_port_mixer,
  9602. msm_routing_put_port_mixer),
  9603. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9604. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9605. msm_routing_get_port_mixer,
  9606. msm_routing_put_port_mixer),
  9607. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9608. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9609. msm_routing_get_port_mixer,
  9610. msm_routing_put_port_mixer),
  9611. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9612. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9613. msm_routing_get_port_mixer,
  9614. msm_routing_put_port_mixer),
  9615. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9616. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9617. msm_routing_get_port_mixer,
  9618. msm_routing_put_port_mixer),
  9619. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9620. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9621. msm_routing_get_port_mixer,
  9622. msm_routing_put_port_mixer),
  9623. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9624. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9625. msm_routing_get_port_mixer,
  9626. msm_routing_put_port_mixer),
  9627. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9628. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9629. msm_routing_get_port_mixer,
  9630. msm_routing_put_port_mixer),
  9631. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9632. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9633. msm_routing_get_port_mixer,
  9634. msm_routing_put_port_mixer),
  9635. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9636. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9637. msm_routing_get_port_mixer,
  9638. msm_routing_put_port_mixer),
  9639. };
  9640. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9641. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9642. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9643. msm_routing_get_port_mixer,
  9644. msm_routing_put_port_mixer),
  9645. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9646. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9647. msm_routing_get_port_mixer,
  9648. msm_routing_put_port_mixer),
  9649. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9650. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9651. msm_routing_get_port_mixer,
  9652. msm_routing_put_port_mixer),
  9653. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9654. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9655. msm_routing_get_port_mixer,
  9656. msm_routing_put_port_mixer),
  9657. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9658. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9659. msm_routing_get_port_mixer,
  9660. msm_routing_put_port_mixer),
  9661. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9662. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9663. msm_routing_get_port_mixer,
  9664. msm_routing_put_port_mixer),
  9665. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9666. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9667. msm_routing_get_port_mixer,
  9668. msm_routing_put_port_mixer),
  9669. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9670. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9671. msm_routing_get_port_mixer,
  9672. msm_routing_put_port_mixer),
  9673. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9674. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9675. msm_routing_get_port_mixer,
  9676. msm_routing_put_port_mixer),
  9677. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9678. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9679. msm_routing_get_port_mixer,
  9680. msm_routing_put_port_mixer),
  9681. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9682. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9683. msm_routing_get_port_mixer,
  9684. msm_routing_put_port_mixer),
  9685. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9686. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9687. msm_routing_get_port_mixer,
  9688. msm_routing_put_port_mixer),
  9689. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9690. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9691. msm_routing_get_port_mixer,
  9692. msm_routing_put_port_mixer),
  9693. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9694. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9695. msm_routing_get_port_mixer,
  9696. msm_routing_put_port_mixer),
  9697. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9698. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9699. msm_routing_get_port_mixer,
  9700. msm_routing_put_port_mixer),
  9701. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9702. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9703. msm_routing_get_port_mixer,
  9704. msm_routing_put_port_mixer),
  9705. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9706. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9707. msm_routing_get_port_mixer,
  9708. msm_routing_put_port_mixer),
  9709. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9710. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9711. msm_routing_get_port_mixer,
  9712. msm_routing_put_port_mixer),
  9713. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9714. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9715. msm_routing_get_port_mixer,
  9716. msm_routing_put_port_mixer),
  9717. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9718. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9719. msm_routing_get_port_mixer,
  9720. msm_routing_put_port_mixer),
  9721. };
  9722. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9723. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9724. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9725. msm_routing_get_port_mixer,
  9726. msm_routing_put_port_mixer),
  9727. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9728. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9729. msm_routing_get_port_mixer,
  9730. msm_routing_put_port_mixer),
  9731. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9732. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9733. msm_routing_get_port_mixer,
  9734. msm_routing_put_port_mixer),
  9735. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9736. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9737. msm_routing_get_port_mixer,
  9738. msm_routing_put_port_mixer),
  9739. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9740. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9741. msm_routing_get_port_mixer,
  9742. msm_routing_put_port_mixer),
  9743. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9744. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9745. msm_routing_get_port_mixer,
  9746. msm_routing_put_port_mixer),
  9747. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9748. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9749. msm_routing_get_port_mixer,
  9750. msm_routing_put_port_mixer),
  9751. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9752. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9753. msm_routing_get_port_mixer,
  9754. msm_routing_put_port_mixer),
  9755. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9756. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9757. msm_routing_get_port_mixer,
  9758. msm_routing_put_port_mixer),
  9759. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9761. msm_routing_get_port_mixer,
  9762. msm_routing_put_port_mixer),
  9763. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9765. msm_routing_get_port_mixer,
  9766. msm_routing_put_port_mixer),
  9767. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9769. msm_routing_get_port_mixer,
  9770. msm_routing_put_port_mixer),
  9771. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9772. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9773. msm_routing_get_port_mixer,
  9774. msm_routing_put_port_mixer),
  9775. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9776. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9777. msm_routing_get_port_mixer,
  9778. msm_routing_put_port_mixer),
  9779. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9780. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9781. msm_routing_get_port_mixer,
  9782. msm_routing_put_port_mixer),
  9783. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9784. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9785. msm_routing_get_port_mixer,
  9786. msm_routing_put_port_mixer),
  9787. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9788. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9789. msm_routing_get_port_mixer,
  9790. msm_routing_put_port_mixer),
  9791. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9792. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9793. msm_routing_get_port_mixer,
  9794. msm_routing_put_port_mixer),
  9795. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9796. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9797. msm_routing_get_port_mixer,
  9798. msm_routing_put_port_mixer),
  9799. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9800. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9801. msm_routing_get_port_mixer,
  9802. msm_routing_put_port_mixer),
  9803. };
  9804. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9805. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9806. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9807. msm_routing_get_port_mixer,
  9808. msm_routing_put_port_mixer),
  9809. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9810. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9811. msm_routing_get_port_mixer,
  9812. msm_routing_put_port_mixer),
  9813. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9814. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9815. msm_routing_get_port_mixer,
  9816. msm_routing_put_port_mixer),
  9817. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9818. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9819. msm_routing_get_port_mixer,
  9820. msm_routing_put_port_mixer),
  9821. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9822. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9823. msm_routing_get_port_mixer,
  9824. msm_routing_put_port_mixer),
  9825. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9826. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9827. msm_routing_get_port_mixer,
  9828. msm_routing_put_port_mixer),
  9829. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9830. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9831. msm_routing_get_port_mixer,
  9832. msm_routing_put_port_mixer),
  9833. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9834. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9835. msm_routing_get_port_mixer,
  9836. msm_routing_put_port_mixer),
  9837. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9838. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9839. msm_routing_get_port_mixer,
  9840. msm_routing_put_port_mixer),
  9841. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9842. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9843. msm_routing_get_port_mixer,
  9844. msm_routing_put_port_mixer),
  9845. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9846. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9847. msm_routing_get_port_mixer,
  9848. msm_routing_put_port_mixer),
  9849. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9850. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9851. msm_routing_get_port_mixer,
  9852. msm_routing_put_port_mixer),
  9853. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9854. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9855. msm_routing_get_port_mixer,
  9856. msm_routing_put_port_mixer),
  9857. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9858. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9859. msm_routing_get_port_mixer,
  9860. msm_routing_put_port_mixer),
  9861. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9863. msm_routing_get_port_mixer,
  9864. msm_routing_put_port_mixer),
  9865. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9866. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9867. msm_routing_get_port_mixer,
  9868. msm_routing_put_port_mixer),
  9869. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9870. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9871. msm_routing_get_port_mixer,
  9872. msm_routing_put_port_mixer),
  9873. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9874. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9875. msm_routing_get_port_mixer,
  9876. msm_routing_put_port_mixer),
  9877. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9878. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9879. msm_routing_get_port_mixer,
  9880. msm_routing_put_port_mixer),
  9881. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9882. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9883. msm_routing_get_port_mixer,
  9884. msm_routing_put_port_mixer),
  9885. };
  9886. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9887. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9888. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9889. msm_routing_get_port_mixer,
  9890. msm_routing_put_port_mixer),
  9891. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9892. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9893. msm_routing_get_port_mixer,
  9894. msm_routing_put_port_mixer),
  9895. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9896. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9897. msm_routing_get_port_mixer,
  9898. msm_routing_put_port_mixer),
  9899. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9900. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9901. msm_routing_get_port_mixer,
  9902. msm_routing_put_port_mixer),
  9903. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9904. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9905. msm_routing_get_port_mixer,
  9906. msm_routing_put_port_mixer),
  9907. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9908. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9909. msm_routing_get_port_mixer,
  9910. msm_routing_put_port_mixer),
  9911. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9912. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9913. msm_routing_get_port_mixer,
  9914. msm_routing_put_port_mixer),
  9915. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9916. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9917. msm_routing_get_port_mixer,
  9918. msm_routing_put_port_mixer),
  9919. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9920. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9921. msm_routing_get_port_mixer,
  9922. msm_routing_put_port_mixer),
  9923. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9924. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9925. msm_routing_get_port_mixer,
  9926. msm_routing_put_port_mixer),
  9927. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9928. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9929. msm_routing_get_port_mixer,
  9930. msm_routing_put_port_mixer),
  9931. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9932. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9933. msm_routing_get_port_mixer,
  9934. msm_routing_put_port_mixer),
  9935. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9936. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9937. msm_routing_get_port_mixer,
  9938. msm_routing_put_port_mixer),
  9939. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9940. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9941. msm_routing_get_port_mixer,
  9942. msm_routing_put_port_mixer),
  9943. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9944. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9945. msm_routing_get_port_mixer,
  9946. msm_routing_put_port_mixer),
  9947. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9948. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9949. msm_routing_get_port_mixer,
  9950. msm_routing_put_port_mixer),
  9951. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9952. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9953. msm_routing_get_port_mixer,
  9954. msm_routing_put_port_mixer),
  9955. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9956. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9957. msm_routing_get_port_mixer,
  9958. msm_routing_put_port_mixer),
  9959. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9960. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9961. msm_routing_get_port_mixer,
  9962. msm_routing_put_port_mixer),
  9963. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9964. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9965. msm_routing_get_port_mixer,
  9966. msm_routing_put_port_mixer),
  9967. };
  9968. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9969. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9971. msm_routing_get_port_mixer,
  9972. msm_routing_put_port_mixer),
  9973. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9974. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9975. msm_routing_get_port_mixer,
  9976. msm_routing_put_port_mixer),
  9977. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9978. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9979. msm_routing_get_port_mixer,
  9980. msm_routing_put_port_mixer),
  9981. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9982. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9983. msm_routing_get_port_mixer,
  9984. msm_routing_put_port_mixer),
  9985. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9986. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9987. msm_routing_get_port_mixer,
  9988. msm_routing_put_port_mixer),
  9989. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9990. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9991. msm_routing_get_port_mixer,
  9992. msm_routing_put_port_mixer),
  9993. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9994. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9995. msm_routing_get_port_mixer,
  9996. msm_routing_put_port_mixer),
  9997. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9998. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9999. msm_routing_get_port_mixer,
  10000. msm_routing_put_port_mixer),
  10001. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10002. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10003. msm_routing_get_port_mixer,
  10004. msm_routing_put_port_mixer),
  10005. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10006. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10007. msm_routing_get_port_mixer,
  10008. msm_routing_put_port_mixer),
  10009. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10010. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10011. msm_routing_get_port_mixer,
  10012. msm_routing_put_port_mixer),
  10013. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10014. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10015. msm_routing_get_port_mixer,
  10016. msm_routing_put_port_mixer),
  10017. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10018. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10019. msm_routing_get_port_mixer,
  10020. msm_routing_put_port_mixer),
  10021. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10022. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10023. msm_routing_get_port_mixer,
  10024. msm_routing_put_port_mixer),
  10025. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10026. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10027. msm_routing_get_port_mixer,
  10028. msm_routing_put_port_mixer),
  10029. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10030. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10031. msm_routing_get_port_mixer,
  10032. msm_routing_put_port_mixer),
  10033. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10034. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10035. msm_routing_get_port_mixer,
  10036. msm_routing_put_port_mixer),
  10037. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10038. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10039. msm_routing_get_port_mixer,
  10040. msm_routing_put_port_mixer),
  10041. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10042. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10043. msm_routing_get_port_mixer,
  10044. msm_routing_put_port_mixer),
  10045. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10046. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10047. msm_routing_get_port_mixer,
  10048. msm_routing_put_port_mixer),
  10049. };
  10050. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  10051. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10052. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10053. msm_routing_get_port_mixer,
  10054. msm_routing_put_port_mixer),
  10055. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10056. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10057. msm_routing_get_port_mixer,
  10058. msm_routing_put_port_mixer),
  10059. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10060. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10061. msm_routing_get_port_mixer,
  10062. msm_routing_put_port_mixer),
  10063. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10064. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10065. msm_routing_get_port_mixer,
  10066. msm_routing_put_port_mixer),
  10067. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10068. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10069. msm_routing_get_port_mixer,
  10070. msm_routing_put_port_mixer),
  10071. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10072. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10073. msm_routing_get_port_mixer,
  10074. msm_routing_put_port_mixer),
  10075. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10076. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10077. msm_routing_get_port_mixer,
  10078. msm_routing_put_port_mixer),
  10079. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10080. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10081. msm_routing_get_port_mixer,
  10082. msm_routing_put_port_mixer),
  10083. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10084. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10085. msm_routing_get_port_mixer,
  10086. msm_routing_put_port_mixer),
  10087. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10088. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10089. msm_routing_get_port_mixer,
  10090. msm_routing_put_port_mixer),
  10091. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10092. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10093. msm_routing_get_port_mixer,
  10094. msm_routing_put_port_mixer),
  10095. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10096. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10097. msm_routing_get_port_mixer,
  10098. msm_routing_put_port_mixer),
  10099. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10100. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10101. msm_routing_get_port_mixer,
  10102. msm_routing_put_port_mixer),
  10103. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10104. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10105. msm_routing_get_port_mixer,
  10106. msm_routing_put_port_mixer),
  10107. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10108. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10109. msm_routing_get_port_mixer,
  10110. msm_routing_put_port_mixer),
  10111. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10112. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10113. msm_routing_get_port_mixer,
  10114. msm_routing_put_port_mixer),
  10115. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10116. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10117. msm_routing_get_port_mixer,
  10118. msm_routing_put_port_mixer),
  10119. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10120. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10121. msm_routing_get_port_mixer,
  10122. msm_routing_put_port_mixer),
  10123. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10124. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10125. msm_routing_get_port_mixer,
  10126. msm_routing_put_port_mixer),
  10127. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10128. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10129. msm_routing_get_port_mixer,
  10130. msm_routing_put_port_mixer),
  10131. };
  10132. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10133. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10134. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10135. msm_routing_get_port_mixer,
  10136. msm_routing_put_port_mixer),
  10137. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10139. msm_routing_get_port_mixer,
  10140. msm_routing_put_port_mixer),
  10141. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10142. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10143. msm_routing_get_port_mixer,
  10144. msm_routing_put_port_mixer),
  10145. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10146. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10147. msm_routing_get_port_mixer,
  10148. msm_routing_put_port_mixer),
  10149. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10150. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10151. msm_routing_get_port_mixer,
  10152. msm_routing_put_port_mixer),
  10153. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10154. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10155. msm_routing_get_port_mixer,
  10156. msm_routing_put_port_mixer),
  10157. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10158. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10159. msm_routing_get_port_mixer,
  10160. msm_routing_put_port_mixer),
  10161. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10162. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10163. msm_routing_get_port_mixer,
  10164. msm_routing_put_port_mixer),
  10165. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10166. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10167. msm_routing_get_port_mixer,
  10168. msm_routing_put_port_mixer),
  10169. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10170. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10171. msm_routing_get_port_mixer,
  10172. msm_routing_put_port_mixer),
  10173. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10174. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10175. msm_routing_get_port_mixer,
  10176. msm_routing_put_port_mixer),
  10177. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10178. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10179. msm_routing_get_port_mixer,
  10180. msm_routing_put_port_mixer),
  10181. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10182. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10183. msm_routing_get_port_mixer,
  10184. msm_routing_put_port_mixer),
  10185. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10186. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10187. msm_routing_get_port_mixer,
  10188. msm_routing_put_port_mixer),
  10189. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10190. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10191. msm_routing_get_port_mixer,
  10192. msm_routing_put_port_mixer),
  10193. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10194. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10195. msm_routing_get_port_mixer,
  10196. msm_routing_put_port_mixer),
  10197. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10198. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10199. msm_routing_get_port_mixer,
  10200. msm_routing_put_port_mixer),
  10201. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10202. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10203. msm_routing_get_port_mixer,
  10204. msm_routing_put_port_mixer),
  10205. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10206. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10207. msm_routing_get_port_mixer,
  10208. msm_routing_put_port_mixer),
  10209. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10210. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10211. msm_routing_get_port_mixer,
  10212. msm_routing_put_port_mixer),
  10213. };
  10214. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10215. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10216. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10217. msm_routing_get_port_mixer,
  10218. msm_routing_put_port_mixer),
  10219. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10221. msm_routing_get_port_mixer,
  10222. msm_routing_put_port_mixer),
  10223. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10225. msm_routing_get_port_mixer,
  10226. msm_routing_put_port_mixer),
  10227. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10228. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10229. msm_routing_get_port_mixer,
  10230. msm_routing_put_port_mixer),
  10231. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10232. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10233. msm_routing_get_port_mixer,
  10234. msm_routing_put_port_mixer),
  10235. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10236. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10237. msm_routing_get_port_mixer,
  10238. msm_routing_put_port_mixer),
  10239. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10240. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10241. msm_routing_get_port_mixer,
  10242. msm_routing_put_port_mixer),
  10243. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10244. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10245. msm_routing_get_port_mixer,
  10246. msm_routing_put_port_mixer),
  10247. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10248. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10249. msm_routing_get_port_mixer,
  10250. msm_routing_put_port_mixer),
  10251. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10252. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10253. msm_routing_get_port_mixer,
  10254. msm_routing_put_port_mixer),
  10255. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10256. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10257. msm_routing_get_port_mixer,
  10258. msm_routing_put_port_mixer),
  10259. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10260. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10261. msm_routing_get_port_mixer,
  10262. msm_routing_put_port_mixer),
  10263. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10264. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10265. msm_routing_get_port_mixer,
  10266. msm_routing_put_port_mixer),
  10267. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10268. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10269. msm_routing_get_port_mixer,
  10270. msm_routing_put_port_mixer),
  10271. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10272. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10273. msm_routing_get_port_mixer,
  10274. msm_routing_put_port_mixer),
  10275. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10276. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10277. msm_routing_get_port_mixer,
  10278. msm_routing_put_port_mixer),
  10279. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10280. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10281. msm_routing_get_port_mixer,
  10282. msm_routing_put_port_mixer),
  10283. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10284. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10285. msm_routing_get_port_mixer,
  10286. msm_routing_put_port_mixer),
  10287. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10288. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10289. msm_routing_get_port_mixer,
  10290. msm_routing_put_port_mixer),
  10291. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10292. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10293. msm_routing_get_port_mixer,
  10294. msm_routing_put_port_mixer),
  10295. };
  10296. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10297. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10298. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10299. msm_routing_get_port_mixer,
  10300. msm_routing_put_port_mixer),
  10301. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10302. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10303. msm_routing_get_port_mixer,
  10304. msm_routing_put_port_mixer),
  10305. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10306. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10307. msm_routing_get_port_mixer,
  10308. msm_routing_put_port_mixer),
  10309. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10310. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10311. msm_routing_get_port_mixer,
  10312. msm_routing_put_port_mixer),
  10313. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10314. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10315. msm_routing_get_port_mixer,
  10316. msm_routing_put_port_mixer),
  10317. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10318. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10319. msm_routing_get_port_mixer,
  10320. msm_routing_put_port_mixer),
  10321. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10323. msm_routing_get_port_mixer,
  10324. msm_routing_put_port_mixer),
  10325. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10326. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10327. msm_routing_get_port_mixer,
  10328. msm_routing_put_port_mixer),
  10329. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10330. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10331. msm_routing_get_port_mixer,
  10332. msm_routing_put_port_mixer),
  10333. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10334. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10335. msm_routing_get_port_mixer,
  10336. msm_routing_put_port_mixer),
  10337. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10338. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10339. msm_routing_get_port_mixer,
  10340. msm_routing_put_port_mixer),
  10341. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10342. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10343. msm_routing_get_port_mixer,
  10344. msm_routing_put_port_mixer),
  10345. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10346. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10347. msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10350. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10351. msm_routing_get_port_mixer,
  10352. msm_routing_put_port_mixer),
  10353. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10354. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10355. msm_routing_get_port_mixer,
  10356. msm_routing_put_port_mixer),
  10357. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10358. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10359. msm_routing_get_port_mixer,
  10360. msm_routing_put_port_mixer),
  10361. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10362. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10363. msm_routing_get_port_mixer,
  10364. msm_routing_put_port_mixer),
  10365. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10366. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10367. msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10370. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10371. msm_routing_get_port_mixer,
  10372. msm_routing_put_port_mixer),
  10373. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10374. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10375. msm_routing_get_port_mixer,
  10376. msm_routing_put_port_mixer),
  10377. };
  10378. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10379. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10380. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10381. msm_routing_get_port_mixer,
  10382. msm_routing_put_port_mixer),
  10383. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10384. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10385. msm_routing_get_port_mixer,
  10386. msm_routing_put_port_mixer),
  10387. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10388. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10389. msm_routing_get_port_mixer,
  10390. msm_routing_put_port_mixer),
  10391. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10392. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10393. msm_routing_get_port_mixer,
  10394. msm_routing_put_port_mixer),
  10395. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10396. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10397. msm_routing_get_port_mixer,
  10398. msm_routing_put_port_mixer),
  10399. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10400. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10401. msm_routing_get_port_mixer,
  10402. msm_routing_put_port_mixer),
  10403. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10404. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10405. msm_routing_get_port_mixer,
  10406. msm_routing_put_port_mixer),
  10407. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10408. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10409. msm_routing_get_port_mixer,
  10410. msm_routing_put_port_mixer),
  10411. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10412. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10413. msm_routing_get_port_mixer,
  10414. msm_routing_put_port_mixer),
  10415. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10416. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10417. msm_routing_get_port_mixer,
  10418. msm_routing_put_port_mixer),
  10419. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10420. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10421. msm_routing_get_port_mixer,
  10422. msm_routing_put_port_mixer),
  10423. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10424. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10425. msm_routing_get_port_mixer,
  10426. msm_routing_put_port_mixer),
  10427. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10428. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10429. msm_routing_get_port_mixer,
  10430. msm_routing_put_port_mixer),
  10431. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10432. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10433. msm_routing_get_port_mixer,
  10434. msm_routing_put_port_mixer),
  10435. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10436. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10437. msm_routing_get_port_mixer,
  10438. msm_routing_put_port_mixer),
  10439. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10440. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10441. msm_routing_get_port_mixer,
  10442. msm_routing_put_port_mixer),
  10443. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10444. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10445. msm_routing_get_port_mixer,
  10446. msm_routing_put_port_mixer),
  10447. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10448. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10449. msm_routing_get_port_mixer,
  10450. msm_routing_put_port_mixer),
  10451. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10452. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10453. msm_routing_get_port_mixer,
  10454. msm_routing_put_port_mixer),
  10455. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10456. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10457. msm_routing_get_port_mixer,
  10458. msm_routing_put_port_mixer),
  10459. };
  10460. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10461. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10462. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10463. msm_routing_put_port_mixer),
  10464. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10466. msm_routing_put_port_mixer),
  10467. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10468. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10469. msm_routing_put_port_mixer),
  10470. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10471. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10472. msm_routing_put_port_mixer),
  10473. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10474. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10475. msm_routing_put_port_mixer),
  10476. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10477. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10478. msm_routing_put_port_mixer),
  10479. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10480. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10481. msm_routing_put_port_mixer),
  10482. };
  10483. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10484. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10485. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10486. msm_routing_put_port_mixer),
  10487. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10488. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10489. msm_routing_put_port_mixer),
  10490. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10492. msm_routing_put_port_mixer),
  10493. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10494. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10495. msm_routing_put_port_mixer),
  10496. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10497. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10498. msm_routing_put_port_mixer),
  10499. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10500. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10501. msm_routing_put_port_mixer),
  10502. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10503. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10504. msm_routing_put_port_mixer),
  10505. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10506. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10507. msm_routing_put_port_mixer),
  10508. };
  10509. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10510. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10511. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10512. msm_routing_put_listen_mixer),
  10513. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10514. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10515. msm_routing_put_listen_mixer),
  10516. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10517. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10518. msm_routing_put_listen_mixer),
  10519. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10520. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10521. msm_routing_put_listen_mixer),
  10522. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10523. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10524. msm_routing_put_listen_mixer),
  10525. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10526. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10527. msm_routing_put_listen_mixer),
  10528. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10529. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10530. msm_routing_put_listen_mixer),
  10531. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10532. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10533. msm_routing_put_listen_mixer),
  10534. };
  10535. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10536. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10537. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10538. msm_routing_put_listen_mixer),
  10539. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10540. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10541. msm_routing_put_listen_mixer),
  10542. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10543. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10544. msm_routing_put_listen_mixer),
  10545. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10546. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10547. msm_routing_put_listen_mixer),
  10548. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10549. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10550. msm_routing_put_listen_mixer),
  10551. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10552. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10553. msm_routing_put_listen_mixer),
  10554. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10555. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10556. msm_routing_put_listen_mixer),
  10557. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10558. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10559. msm_routing_put_listen_mixer),
  10560. };
  10561. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10562. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10563. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10564. msm_routing_put_listen_mixer),
  10565. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10566. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10567. msm_routing_put_listen_mixer),
  10568. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10569. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10570. msm_routing_put_listen_mixer),
  10571. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10572. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10573. msm_routing_put_listen_mixer),
  10574. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10575. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10576. msm_routing_put_listen_mixer),
  10577. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10578. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10579. msm_routing_put_listen_mixer),
  10580. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10581. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10582. msm_routing_put_listen_mixer),
  10583. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10584. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10585. msm_routing_put_listen_mixer),
  10586. };
  10587. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10588. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10589. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10590. msm_routing_put_listen_mixer),
  10591. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10592. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10593. msm_routing_put_listen_mixer),
  10594. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10595. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10596. msm_routing_put_listen_mixer),
  10597. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10598. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10599. msm_routing_put_listen_mixer),
  10600. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10601. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10602. msm_routing_put_listen_mixer),
  10603. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10604. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10605. msm_routing_put_listen_mixer),
  10606. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10607. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10608. msm_routing_put_listen_mixer),
  10609. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10610. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10611. msm_routing_put_listen_mixer),
  10612. };
  10613. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10614. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10615. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10616. msm_routing_put_listen_mixer),
  10617. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10618. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10619. msm_routing_put_listen_mixer),
  10620. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10621. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10622. msm_routing_put_listen_mixer),
  10623. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10624. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10625. msm_routing_put_listen_mixer),
  10626. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10627. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10628. msm_routing_put_listen_mixer),
  10629. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10630. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10631. msm_routing_put_listen_mixer),
  10632. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10633. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10634. msm_routing_put_listen_mixer),
  10635. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10636. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10637. msm_routing_put_listen_mixer),
  10638. };
  10639. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10640. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10641. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10642. msm_routing_put_listen_mixer),
  10643. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10644. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10645. msm_routing_put_listen_mixer),
  10646. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10647. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10648. msm_routing_put_listen_mixer),
  10649. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10650. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10651. msm_routing_put_listen_mixer),
  10652. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10653. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10654. msm_routing_put_listen_mixer),
  10655. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10656. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10657. msm_routing_put_listen_mixer),
  10658. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10659. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10660. msm_routing_put_listen_mixer),
  10661. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10662. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10663. msm_routing_put_listen_mixer),
  10664. };
  10665. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10666. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10667. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10668. msm_routing_put_listen_mixer),
  10669. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10670. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10671. msm_routing_put_listen_mixer),
  10672. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10674. msm_routing_put_listen_mixer),
  10675. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10676. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10677. msm_routing_put_listen_mixer),
  10678. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10679. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10680. msm_routing_put_listen_mixer),
  10681. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10682. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10683. msm_routing_put_listen_mixer),
  10684. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10685. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10686. msm_routing_put_listen_mixer),
  10687. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10688. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10689. msm_routing_put_listen_mixer),
  10690. };
  10691. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10692. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10693. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10694. msm_routing_put_listen_mixer),
  10695. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10696. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10697. msm_routing_put_listen_mixer),
  10698. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10699. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10700. msm_routing_put_listen_mixer),
  10701. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10702. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10703. msm_routing_put_listen_mixer),
  10704. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10705. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10706. msm_routing_put_listen_mixer),
  10707. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10708. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10709. msm_routing_put_listen_mixer),
  10710. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10711. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10712. msm_routing_put_listen_mixer),
  10713. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10714. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10715. msm_routing_put_listen_mixer),
  10716. };
  10717. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10718. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10719. 0, 1, 0, msm_routing_get_switch_mixer,
  10720. msm_routing_put_switch_mixer);
  10721. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10722. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10723. 0, 1, 0, msm_routing_get_switch_mixer,
  10724. msm_routing_put_switch_mixer);
  10725. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10726. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10727. 0, 1, 0, msm_routing_get_switch_mixer,
  10728. msm_routing_put_switch_mixer);
  10729. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10730. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10731. 0, 1, 0, msm_routing_get_switch_mixer,
  10732. msm_routing_put_switch_mixer);
  10733. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10734. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10735. 0, 1, 0, msm_routing_get_switch_mixer,
  10736. msm_routing_put_switch_mixer);
  10737. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10738. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10739. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10740. msm_routing_put_fm_pcmrx_switch_mixer);
  10741. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10742. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10743. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10744. msm_routing_put_int0_mi2s_switch_mixer);
  10745. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10746. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10747. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10748. msm_routing_put_int4_mi2s_switch_mixer);
  10749. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10750. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10751. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10752. msm_routing_put_pri_mi2s_switch_mixer);
  10753. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10754. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10755. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10756. msm_routing_put_sec_mi2s_switch_mixer);
  10757. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10758. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10759. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10760. msm_routing_put_tert_mi2s_switch_mixer);
  10761. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10762. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10763. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10764. msm_routing_put_quat_mi2s_switch_mixer);
  10765. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10766. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10767. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10768. msm_routing_put_quin_mi2s_switch_mixer);
  10769. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10770. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10771. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10772. msm_routing_put_hfp_switch_mixer);
  10773. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10774. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10775. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10776. msm_routing_put_hfp_switch_mixer);
  10777. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10778. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10779. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10780. msm_routing_put_hfp_switch_mixer);
  10781. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10782. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10783. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10784. msm_routing_put_hfp_switch_mixer);
  10785. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10786. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10787. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10788. msm_routing_put_usb_switch_mixer);
  10789. static const struct soc_enum lsm_port_enum =
  10790. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10791. static const char * const lsm_func_text[] = {
  10792. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10793. };
  10794. static const struct soc_enum lsm_func_enum =
  10795. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10796. static const struct snd_kcontrol_new lsm_controls[] = {
  10797. /* kcontrol of lsm_function */
  10798. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10799. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10800. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10801. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10802. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10803. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10804. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10805. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10806. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10807. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10808. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10809. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10810. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10811. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10812. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10813. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10814. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10815. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10816. /* kcontrol of lsm_port */
  10817. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10818. msm_routing_lsm_port_get,
  10819. msm_routing_lsm_port_put),
  10820. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10821. msm_routing_lsm_port_get,
  10822. msm_routing_lsm_port_put),
  10823. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10824. msm_routing_lsm_port_get,
  10825. msm_routing_lsm_port_put),
  10826. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10827. msm_routing_lsm_port_get,
  10828. msm_routing_lsm_port_put),
  10829. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10830. msm_routing_lsm_port_get,
  10831. msm_routing_lsm_port_put),
  10832. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10833. msm_routing_lsm_port_get,
  10834. msm_routing_lsm_port_put),
  10835. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10836. msm_routing_lsm_port_get,
  10837. msm_routing_lsm_port_put),
  10838. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10839. msm_routing_lsm_port_get,
  10840. msm_routing_lsm_port_put),
  10841. };
  10842. static const char * const aanc_slim_0_rx_text[] = {
  10843. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10844. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10845. };
  10846. static const struct soc_enum aanc_slim_0_rx_enum =
  10847. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10848. aanc_slim_0_rx_text);
  10849. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10850. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10851. msm_routing_slim_0_rx_aanc_mux_get,
  10852. msm_routing_slim_0_rx_aanc_mux_put)
  10853. };
  10854. static int msm_routing_get_stereo_to_custom_stereo_control(
  10855. struct snd_kcontrol *kcontrol,
  10856. struct snd_ctl_elem_value *ucontrol)
  10857. {
  10858. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10859. return 0;
  10860. }
  10861. static int msm_routing_put_stereo_to_custom_stereo_control(
  10862. struct snd_kcontrol *kcontrol,
  10863. struct snd_ctl_elem_value *ucontrol)
  10864. {
  10865. int flag = 0, i = 0, rc = 0, idx = 0;
  10866. int be_index = 0, port_id, topo_id;
  10867. unsigned int session_id = 0;
  10868. uint16_t op_FL_ip_FL_weight = 0;
  10869. uint16_t op_FL_ip_FR_weight = 0;
  10870. uint16_t op_FR_ip_FL_weight = 0;
  10871. uint16_t op_FR_ip_FR_weight = 0;
  10872. flag = ucontrol->value.integer.value[0];
  10873. pr_debug("%s E flag %d\n", __func__, flag);
  10874. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10875. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10876. __func__, is_custom_stereo_on, flag);
  10877. return 0;
  10878. }
  10879. is_custom_stereo_on = flag ? true : false;
  10880. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10881. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10882. port_id = msm_bedais[be_index].port_id;
  10883. if (!msm_bedais[be_index].active)
  10884. continue;
  10885. if ((port_id != SLIMBUS_0_RX) &&
  10886. (port_id != RT_PROXY_PORT_001_RX) &&
  10887. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10888. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10889. continue;
  10890. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10891. MSM_FRONTEND_DAI_MM_SIZE) {
  10892. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10893. LEGACY_PCM_MODE)
  10894. goto skip_send_custom_stereo;
  10895. session_id =
  10896. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10897. if (is_custom_stereo_on) {
  10898. op_FL_ip_FL_weight =
  10899. Q14_GAIN_ZERO_POINT_FIVE;
  10900. op_FL_ip_FR_weight =
  10901. Q14_GAIN_ZERO_POINT_FIVE;
  10902. op_FR_ip_FL_weight =
  10903. Q14_GAIN_ZERO_POINT_FIVE;
  10904. op_FR_ip_FR_weight =
  10905. Q14_GAIN_ZERO_POINT_FIVE;
  10906. } else {
  10907. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10908. op_FL_ip_FR_weight = 0;
  10909. op_FR_ip_FL_weight = 0;
  10910. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10911. }
  10912. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10913. unsigned long copp =
  10914. session_copp_map[i]
  10915. [SESSION_TYPE_RX][be_index];
  10916. if (!test_bit(idx, &copp))
  10917. goto skip_send_custom_stereo;
  10918. topo_id = adm_get_topology_for_port_copp_idx(
  10919. msm_bedais[be_index].port_id, idx);
  10920. if (topo_id < 0)
  10921. pr_debug("%s:Err:custom stereo topo %d",
  10922. __func__, topo_id);
  10923. pr_debug("idx %d\n", idx);
  10924. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10925. rc = msm_ds2_dap_set_custom_stereo_onoff
  10926. (msm_bedais[be_index].port_id,
  10927. idx, is_custom_stereo_on);
  10928. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10929. rc = dolby_dap_set_custom_stereo_onoff(
  10930. msm_bedais[be_index].port_id,
  10931. idx, is_custom_stereo_on);
  10932. else
  10933. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10934. (msm_bedais[be_index].port_id,
  10935. idx, session_id,
  10936. op_FL_ip_FL_weight,
  10937. op_FL_ip_FR_weight,
  10938. op_FR_ip_FL_weight,
  10939. op_FR_ip_FR_weight);
  10940. if (rc < 0)
  10941. skip_send_custom_stereo:
  10942. pr_err("%s: err setting custom stereo\n",
  10943. __func__);
  10944. }
  10945. }
  10946. }
  10947. return 0;
  10948. }
  10949. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10950. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10951. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10952. msm_routing_put_stereo_to_custom_stereo_control),
  10953. };
  10954. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10955. struct snd_ctl_elem_value *ucontrol)
  10956. {
  10957. return 0;
  10958. }
  10959. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10960. struct snd_ctl_elem_value *ucontrol)
  10961. {
  10962. int i = 0, j;
  10963. int num_app_types = ucontrol->value.integer.value[i++];
  10964. pr_debug("%s\n", __func__);
  10965. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10966. sizeof(struct msm_pcm_routing_app_type_data));
  10967. if (num_app_types > MAX_APP_TYPES) {
  10968. pr_err("%s: number of app types exceed the max supported\n",
  10969. __func__);
  10970. return -EINVAL;
  10971. }
  10972. for (j = 0; j < num_app_types; j++) {
  10973. app_type_cfg[j].app_type =
  10974. ucontrol->value.integer.value[i++];
  10975. app_type_cfg[j].sample_rate =
  10976. ucontrol->value.integer.value[i++];
  10977. app_type_cfg[j].bit_width =
  10978. ucontrol->value.integer.value[i++];
  10979. }
  10980. return 0;
  10981. }
  10982. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10983. struct snd_ctl_elem_value *ucontrol)
  10984. {
  10985. int j, fe_id, be_id, port_type;
  10986. int ret = 0;
  10987. unsigned long copp;
  10988. struct msm_pcm_routing_bdai_data *bedai;
  10989. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10990. SESSION_TYPE_RX;
  10991. int app_type = ucontrol->value.integer.value[1];
  10992. int gain = (ucontrol->value.integer.value[2] +
  10993. ucontrol->value.integer.value[3])/2;
  10994. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10995. MSM_AFE_PORT_TYPE_TX;
  10996. mutex_lock(&routing_lock);
  10997. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10998. if (is_be_dai_extproc(be_id))
  10999. continue;
  11000. bedai = &msm_bedais[be_id];
  11001. if (afe_get_port_type(bedai->port_id) != port_type)
  11002. continue;
  11003. if (!bedai->active)
  11004. continue;
  11005. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11006. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11007. continue;
  11008. if (app_type !=
  11009. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11010. continue;
  11011. copp = session_copp_map[fe_id][dir][be_id];
  11012. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  11013. if (!test_bit(j, &copp))
  11014. continue;
  11015. ret |= adm_set_volume(bedai->port_id, j, gain);
  11016. }
  11017. }
  11018. }
  11019. mutex_unlock(&routing_lock);
  11020. return ret ? -EINVAL : 0;
  11021. }
  11022. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  11023. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  11024. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  11025. msm_routing_put_app_type_cfg_control),
  11026. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  11027. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  11028. };
  11029. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  11030. struct snd_ctl_elem_value *ucontrol)
  11031. {
  11032. int copp_idx, fe_id, be_id, port_type;
  11033. int ret = 0;
  11034. unsigned long copp;
  11035. struct msm_pcm_routing_bdai_data *bedai;
  11036. char *param_data = NULL;
  11037. uint32_t *update_param_data = NULL;
  11038. uint32_t param_size = sizeof(uint32_t) +
  11039. sizeof(struct adm_param_data_v5);
  11040. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11041. SESSION_TYPE_RX;
  11042. int app_type = ucontrol->value.integer.value[1];
  11043. int module_id = ucontrol->value.integer.value[2];
  11044. int instance_id = ucontrol->value.integer.value[3];
  11045. int param_id = ucontrol->value.integer.value[4];
  11046. int param_value = ucontrol->value.integer.value[5];
  11047. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11048. MSM_AFE_PORT_TYPE_TX;
  11049. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  11050. __func__, app_type, module_id,
  11051. instance_id, param_id, param_value);
  11052. param_data = kzalloc(param_size, GFP_KERNEL);
  11053. if (!param_data)
  11054. return -ENOMEM;
  11055. update_param_data = (uint32_t *)param_data;
  11056. *update_param_data++ = module_id;
  11057. *update_param_data++ = param_id;
  11058. *update_param_data++ = sizeof(uint32_t);
  11059. *update_param_data++ = param_value;
  11060. mutex_lock(&routing_lock);
  11061. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11062. if (is_be_dai_extproc(be_id))
  11063. continue;
  11064. bedai = &msm_bedais[be_id];
  11065. if (afe_get_port_type(bedai->port_id) != port_type)
  11066. continue;
  11067. if (!bedai->active)
  11068. continue;
  11069. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11070. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11071. continue;
  11072. if (app_type !=
  11073. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11074. continue;
  11075. copp = session_copp_map[fe_id][dir][be_id];
  11076. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  11077. copp_idx++) {
  11078. if (!test_bit(copp_idx, &copp))
  11079. continue;
  11080. ret = adm_send_params_v5(bedai->port_id,
  11081. copp_idx,
  11082. param_data,
  11083. param_size);
  11084. if (ret) {
  11085. pr_err("%s: Setting param failed with err=%d\n",
  11086. __func__, ret);
  11087. ret = -EINVAL;
  11088. goto done;
  11089. }
  11090. }
  11091. }
  11092. }
  11093. done:
  11094. mutex_unlock(&routing_lock);
  11095. kfree(param_data);
  11096. return ret;
  11097. }
  11098. static const struct snd_kcontrol_new module_cfg_controls[] = {
  11099. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  11100. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  11101. };
  11102. static int msm_routing_get_lsm_app_type_cfg_control(
  11103. struct snd_kcontrol *kcontrol,
  11104. struct snd_ctl_elem_value *ucontrol)
  11105. {
  11106. return 0;
  11107. }
  11108. static int msm_routing_put_lsm_app_type_cfg_control(
  11109. struct snd_kcontrol *kcontrol,
  11110. struct snd_ctl_elem_value *ucontrol)
  11111. {
  11112. int i = 0, j;
  11113. int num_app_types = ucontrol->value.integer.value[i++];
  11114. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  11115. sizeof(struct msm_pcm_routing_app_type_data));
  11116. if (num_app_types > MAX_APP_TYPES) {
  11117. pr_err("%s: number of app types exceed the max supported\n",
  11118. __func__);
  11119. return -EINVAL;
  11120. }
  11121. for (j = 0; j < num_app_types; j++) {
  11122. lsm_app_type_cfg[j].app_type =
  11123. ucontrol->value.integer.value[i++];
  11124. lsm_app_type_cfg[j].sample_rate =
  11125. ucontrol->value.integer.value[i++];
  11126. lsm_app_type_cfg[j].bit_width =
  11127. ucontrol->value.integer.value[i++];
  11128. }
  11129. return 0;
  11130. }
  11131. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11132. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11133. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11134. msm_routing_put_lsm_app_type_cfg_control),
  11135. };
  11136. static int msm_routing_get_use_ds1_or_ds2_control(
  11137. struct snd_kcontrol *kcontrol,
  11138. struct snd_ctl_elem_value *ucontrol)
  11139. {
  11140. ucontrol->value.integer.value[0] = is_ds2_on;
  11141. return 0;
  11142. }
  11143. static int msm_routing_put_use_ds1_or_ds2_control(
  11144. struct snd_kcontrol *kcontrol,
  11145. struct snd_ctl_elem_value *ucontrol)
  11146. {
  11147. is_ds2_on = ucontrol->value.integer.value[0];
  11148. return 0;
  11149. }
  11150. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11151. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11152. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11153. msm_routing_put_use_ds1_or_ds2_control),
  11154. };
  11155. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11156. struct snd_ctl_elem_value *ucontrol) {
  11157. int rc = 0;
  11158. int be_idx = 0;
  11159. char *param_value;
  11160. int *update_param_value;
  11161. uint32_t param_length = sizeof(uint32_t);
  11162. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11163. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11164. if (!param_value)
  11165. return -ENOMEM;
  11166. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11167. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11168. break;
  11169. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11170. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11171. RMS_MODULEID_APPI_PASSTHRU,
  11172. RMS_PARAM_FIRST_SAMPLE,
  11173. param_length + param_payload_len,
  11174. param_value);
  11175. if (rc) {
  11176. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11177. kfree(param_value);
  11178. return -EINVAL;
  11179. }
  11180. update_param_value = (int *)param_value;
  11181. ucontrol->value.integer.value[0] = update_param_value[0];
  11182. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11183. __func__, update_param_value[0]);
  11184. }
  11185. kfree(param_value);
  11186. return 0;
  11187. }
  11188. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11189. struct snd_ctl_elem_value *ucontrol)
  11190. {
  11191. voc_session_id = ucontrol->value.integer.value[0];
  11192. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11193. return 0;
  11194. }
  11195. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11196. struct snd_ctl_elem_value *ucontrol)
  11197. {
  11198. ucontrol->value.integer.value[0] = voc_session_id;
  11199. return 0;
  11200. }
  11201. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11202. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11203. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11204. msm_voc_session_id_put),
  11205. };
  11206. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11207. struct snd_ctl_elem_info *uinfo)
  11208. {
  11209. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11210. uinfo->count = sizeof(struct sound_focus_param);
  11211. return 0;
  11212. }
  11213. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11214. struct snd_ctl_elem_value *ucontrol)
  11215. {
  11216. int ret = 0;
  11217. struct sound_focus_param soundFocusData;
  11218. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11219. sizeof(struct sound_focus_param));
  11220. ret = voc_set_sound_focus(soundFocusData);
  11221. if (ret) {
  11222. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11223. __func__, ret);
  11224. ret = -EINVAL;
  11225. }
  11226. return ret;
  11227. }
  11228. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11229. struct snd_ctl_elem_value *ucontrol)
  11230. {
  11231. int ret = 0;
  11232. struct sound_focus_param soundFocusData;
  11233. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11234. ret = voc_get_sound_focus(&soundFocusData);
  11235. if (ret) {
  11236. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11237. __func__, ret);
  11238. ret = -EINVAL;
  11239. goto done;
  11240. }
  11241. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11242. sizeof(struct sound_focus_param));
  11243. done:
  11244. return ret;
  11245. }
  11246. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11247. struct snd_ctl_elem_info *uinfo)
  11248. {
  11249. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11250. uinfo->count = sizeof(struct source_tracking_param);
  11251. return 0;
  11252. }
  11253. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11254. struct snd_ctl_elem_value *ucontrol)
  11255. {
  11256. int ret = 0;
  11257. struct source_tracking_param sourceTrackingData;
  11258. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11259. ret = voc_get_source_tracking(&sourceTrackingData);
  11260. if (ret) {
  11261. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11262. __func__, ret);
  11263. ret = -EINVAL;
  11264. goto done;
  11265. }
  11266. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11267. sizeof(struct source_tracking_param));
  11268. done:
  11269. return ret;
  11270. }
  11271. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11272. int *copp_idx)
  11273. {
  11274. int i, idx, be_idx;
  11275. int ret = 0;
  11276. unsigned long copp;
  11277. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11278. ret = q6audio_validate_port(port_id);
  11279. if (ret < 0) {
  11280. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11281. __func__, port_id, ret);
  11282. ret = -EINVAL;
  11283. goto done;
  11284. }
  11285. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11286. if (msm_bedais[be_idx].port_id == port_id)
  11287. break;
  11288. }
  11289. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11290. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11291. ret = -EINVAL;
  11292. goto done;
  11293. }
  11294. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11295. MSM_FRONTEND_DAI_MM_SIZE) {
  11296. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11297. copp = session_copp_map[i]
  11298. [session_type][be_idx];
  11299. if (test_bit(idx, &copp))
  11300. break;
  11301. }
  11302. if (idx >= MAX_COPPS_PER_PORT)
  11303. continue;
  11304. else
  11305. break;
  11306. }
  11307. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11308. pr_err("%s: Invalid FE, exiting\n", __func__);
  11309. ret = -EINVAL;
  11310. goto done;
  11311. }
  11312. *copp_idx = idx;
  11313. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11314. done:
  11315. return ret;
  11316. }
  11317. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11318. const char *prefix, int *port_id)
  11319. {
  11320. int ret = 0;
  11321. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11322. /*
  11323. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11324. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11325. * and compare the string with the backend name to derive the port id.
  11326. */
  11327. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11328. "SLIMBUS_0")) {
  11329. *port_id = SLIMBUS_0_TX;
  11330. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11331. "TERT_MI2S")) {
  11332. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11333. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11334. "INT3_MI2S")) {
  11335. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11336. } else {
  11337. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11338. __func__, kcontrol->id.name);
  11339. ret = -EINVAL;
  11340. goto done;
  11341. }
  11342. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11343. __func__, kcontrol->id.name, *port_id);
  11344. done:
  11345. return ret;
  11346. }
  11347. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11348. struct snd_ctl_elem_value *ucontrol)
  11349. {
  11350. int ret = 0;
  11351. struct sound_focus_param soundFocusData;
  11352. int port_id, copp_idx;
  11353. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11354. "Sound Focus Audio Tx ", &port_id);
  11355. if (ret != 0) {
  11356. pr_err("%s: Error in deriving port id, err=%d\n",
  11357. __func__, ret);
  11358. ret = -EINVAL;
  11359. goto done;
  11360. }
  11361. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11362. &copp_idx);
  11363. if (ret) {
  11364. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11365. __func__, port_id);
  11366. ret = -EINVAL;
  11367. goto done;
  11368. }
  11369. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11370. sizeof(struct sound_focus_param));
  11371. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11372. if (ret) {
  11373. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11374. __func__, ret);
  11375. ret = -EINVAL;
  11376. goto done;
  11377. }
  11378. done:
  11379. return ret;
  11380. }
  11381. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11382. struct snd_ctl_elem_value *ucontrol)
  11383. {
  11384. int ret = 0;
  11385. struct sound_focus_param soundFocusData;
  11386. int port_id, copp_idx;
  11387. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11388. "Sound Focus Audio Tx ", &port_id);
  11389. if (ret) {
  11390. pr_err("%s: Error in deriving port id, err=%d\n",
  11391. __func__, ret);
  11392. ret = -EINVAL;
  11393. goto done;
  11394. }
  11395. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11396. &copp_idx);
  11397. if (ret) {
  11398. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11399. __func__, port_id);
  11400. ret = -EINVAL;
  11401. goto done;
  11402. }
  11403. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11404. if (ret) {
  11405. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11406. __func__, ret);
  11407. ret = -EINVAL;
  11408. goto done;
  11409. }
  11410. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11411. sizeof(struct sound_focus_param));
  11412. done:
  11413. return ret;
  11414. }
  11415. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11416. struct snd_ctl_elem_value *ucontrol)
  11417. {
  11418. int ret = 0;
  11419. struct source_tracking_param sourceTrackingData;
  11420. int port_id, copp_idx;
  11421. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11422. "Source Tracking Audio Tx ", &port_id);
  11423. if (ret) {
  11424. pr_err("%s: Error in deriving port id, err=%d\n",
  11425. __func__, ret);
  11426. ret = -EINVAL;
  11427. goto done;
  11428. }
  11429. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11430. &copp_idx);
  11431. if (ret) {
  11432. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11433. __func__, port_id);
  11434. ret = -EINVAL;
  11435. goto done;
  11436. }
  11437. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11438. if (ret) {
  11439. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11440. __func__, ret);
  11441. ret = -EINVAL;
  11442. goto done;
  11443. }
  11444. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11445. sizeof(struct source_tracking_param));
  11446. done:
  11447. return ret;
  11448. }
  11449. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11450. {
  11451. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11453. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11454. .info = msm_sound_focus_info,
  11455. .get = msm_voice_sound_focus_get,
  11456. .put = msm_voice_sound_focus_put,
  11457. },
  11458. {
  11459. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11460. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11461. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11462. .info = msm_source_tracking_info,
  11463. .get = msm_voice_source_tracking_get,
  11464. },
  11465. {
  11466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11468. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11469. .info = msm_sound_focus_info,
  11470. .get = msm_audio_sound_focus_get,
  11471. .put = msm_audio_sound_focus_put,
  11472. },
  11473. {
  11474. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11476. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11477. .info = msm_source_tracking_info,
  11478. .get = msm_audio_source_tracking_get,
  11479. },
  11480. {
  11481. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11483. .name = "Sound Focus Voice Tx TERT_MI2S",
  11484. .info = msm_sound_focus_info,
  11485. .get = msm_voice_sound_focus_get,
  11486. .put = msm_voice_sound_focus_put,
  11487. },
  11488. {
  11489. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11490. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11491. .name = "Source Tracking Voice Tx TERT_MI2S",
  11492. .info = msm_source_tracking_info,
  11493. .get = msm_voice_source_tracking_get,
  11494. },
  11495. {
  11496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11498. .name = "Sound Focus Audio Tx TERT_MI2S",
  11499. .info = msm_sound_focus_info,
  11500. .get = msm_audio_sound_focus_get,
  11501. .put = msm_audio_sound_focus_put,
  11502. },
  11503. {
  11504. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11506. .name = "Source Tracking Audio Tx TERT_MI2S",
  11507. .info = msm_source_tracking_info,
  11508. .get = msm_audio_source_tracking_get,
  11509. },
  11510. {
  11511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11513. .name = "Sound Focus Voice Tx INT3_MI2S",
  11514. .info = msm_sound_focus_info,
  11515. .get = msm_voice_sound_focus_get,
  11516. .put = msm_voice_sound_focus_put,
  11517. },
  11518. {
  11519. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11521. .name = "Source Tracking Voice Tx INT3_MI2S",
  11522. .info = msm_source_tracking_info,
  11523. .get = msm_voice_source_tracking_get,
  11524. },
  11525. {
  11526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11528. .name = "Sound Focus Audio Tx INT3_MI2S",
  11529. .info = msm_sound_focus_info,
  11530. .get = msm_audio_sound_focus_get,
  11531. .put = msm_audio_sound_focus_put,
  11532. },
  11533. {
  11534. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11536. .name = "Source Tracking Audio Tx INT3_MI2S",
  11537. .info = msm_source_tracking_info,
  11538. .get = msm_audio_source_tracking_get,
  11539. },
  11540. };
  11541. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11542. struct snd_ctl_elem_value *ucontrol)
  11543. {
  11544. int ret = 0;
  11545. int item;
  11546. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11547. pr_debug("%s item is %d\n", __func__,
  11548. ucontrol->value.enumerated.item[0]);
  11549. mutex_lock(&routing_lock);
  11550. item = ucontrol->value.enumerated.item[0];
  11551. if (item < e->items) {
  11552. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11553. __func__, e->shift_l, e->values[item]);
  11554. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11555. e->values[item] < MSM_BACKEND_DAI_MAX)
  11556. /* Enable feedback TX path */
  11557. ret = afe_spk_prot_feed_back_cfg(
  11558. msm_bedais[e->values[item]].port_id,
  11559. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11560. else {
  11561. pr_debug("%s values are out of range item %d\n",
  11562. __func__, e->values[item]);
  11563. /* Disable feedback TX path */
  11564. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11565. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11566. else
  11567. ret = -EINVAL;
  11568. }
  11569. } else {
  11570. pr_err("%s item value is out of range item\n", __func__);
  11571. ret = -EINVAL;
  11572. }
  11573. mutex_unlock(&routing_lock);
  11574. return ret;
  11575. }
  11576. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11577. struct snd_ctl_elem_value *ucontrol)
  11578. {
  11579. int ret = 0;
  11580. int item;
  11581. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11582. pr_debug("%s item is %d\n", __func__,
  11583. ucontrol->value.enumerated.item[0]);
  11584. mutex_lock(&routing_lock);
  11585. item = ucontrol->value.enumerated.item[0];
  11586. if (item < e->items) {
  11587. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11588. __func__, e->shift_l, e->values[item]);
  11589. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11590. e->values[item] < MSM_BACKEND_DAI_MAX)
  11591. /* Enable feedback TX path */
  11592. ret = afe_spk_prot_feed_back_cfg(
  11593. msm_bedais[e->values[item]].port_id,
  11594. msm_bedais[e->shift_l].port_id,
  11595. 1, 1, 1);
  11596. else {
  11597. pr_debug("%s values are out of range item %d\n",
  11598. __func__, e->values[item]);
  11599. /* Disable feedback TX path */
  11600. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11601. ret = afe_spk_prot_feed_back_cfg(0,
  11602. 0, 0, 0, 0);
  11603. else
  11604. ret = -EINVAL;
  11605. }
  11606. } else {
  11607. pr_err("%s item value is out of range item\n", __func__);
  11608. ret = -EINVAL;
  11609. }
  11610. mutex_unlock(&routing_lock);
  11611. return ret;
  11612. }
  11613. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11614. struct snd_ctl_elem_value *ucontrol)
  11615. {
  11616. pr_debug("%s\n", __func__);
  11617. return 0;
  11618. }
  11619. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11620. struct snd_ctl_elem_value *ucontrol)
  11621. {
  11622. pr_debug("%s\n", __func__);
  11623. ucontrol->value.enumerated.item[0] = 0;
  11624. return 0;
  11625. }
  11626. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11627. "ZERO", "SLIM4_TX"
  11628. };
  11629. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11630. "ZERO", "SLIM4_TX"
  11631. };
  11632. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11633. "ZERO", "SENARY_TX"
  11634. };
  11635. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11636. "ZERO", "INT5_MI2S_TX"
  11637. };
  11638. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11639. "ZERO", "INT5_MI2S_TX"
  11640. };
  11641. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11642. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11643. };
  11644. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11645. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11646. };
  11647. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11648. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11649. };
  11650. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11651. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11652. };
  11653. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11654. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11655. };
  11656. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11657. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11658. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11659. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11660. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11661. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11662. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11663. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11664. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11665. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11666. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11667. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11668. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11669. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11670. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11671. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11672. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11673. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11674. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11675. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11676. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11677. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11678. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11679. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11680. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11681. spkr_prot_put_vi_lch_port);
  11682. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11683. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11684. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11685. spkr_prot_put_vi_rch_port);
  11686. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11687. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11688. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11689. spkr_prot_put_vi_lch_port);
  11690. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11691. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11692. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11693. spkr_prot_put_vi_lch_port);
  11694. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11695. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11696. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11697. spkr_prot_put_vi_rch_port);
  11698. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11699. /* Frontend AIF */
  11700. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11701. * Stream name must contains substring of front-end dai name
  11702. */
  11703. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11704. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11705. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11706. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11707. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11708. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11709. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11710. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11711. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11712. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11713. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11714. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11715. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11716. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11717. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11718. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11719. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11720. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11721. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11722. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11723. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11724. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11725. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11726. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11727. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11728. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11729. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11730. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11731. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11732. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11733. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11734. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11735. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11736. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11737. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11738. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11739. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11740. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11741. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11742. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11743. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11744. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11745. 0, 0, 0, 0),
  11746. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11747. 0, 0, 0, 0),
  11748. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11749. 0, 0, 0, 0),
  11750. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11751. 0, 0, 0, 0),
  11752. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11753. 0, 0, 0, 0),
  11754. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11755. 0, 0, 0, 0),
  11756. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11757. 0, 0, 0, 0),
  11758. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11759. 0, 0, 0, 0),
  11760. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11761. 0, 0, 0, 0),
  11762. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11763. 0, 0, 0, 0),
  11764. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11765. 0, 0, 0, 0),
  11766. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11767. 0, 0, 0, 0),
  11768. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11769. 0, 0, 0, 0),
  11770. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11771. 0, 0, 0, 0),
  11772. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11773. 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11775. 0, 0, 0, 0),
  11776. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11777. 0, 0, 0, 0),
  11778. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11779. 0, 0, 0, 0),
  11780. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11781. 0, 0, 0, 0),
  11782. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11783. 0, 0, 0, 0),
  11784. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11785. 0, 0, 0, 0),
  11786. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11787. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11788. 0, 0, 0, 0),
  11789. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11790. "INT0 MI2S_RX Hostless Playback",
  11791. 0, 0, 0, 0),
  11792. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11793. "INT4 MI2S_RX Hostless Playback",
  11794. 0, 0, 0, 0),
  11795. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11796. "Primary MI2S_RX Hostless Playback",
  11797. 0, 0, 0, 0),
  11798. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11799. "Secondary MI2S_RX Hostless Playback",
  11800. 0, 0, 0, 0),
  11801. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11802. "Tertiary MI2S_RX Hostless Playback",
  11803. 0, 0, 0, 0),
  11804. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11805. "Quaternary MI2S_RX Hostless Playback",
  11806. 0, 0, 0, 0),
  11807. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11808. "Quinary MI2S_RX Hostless Playback",
  11809. 0, 0, 0, 0),
  11810. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11811. 0, 0, 0, 0),
  11812. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11813. 0, 0, 0, 0),
  11814. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11815. 0, 0, 0, 0),
  11816. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11817. "INT3 MI2S_TX Hostless Capture",
  11818. 0, 0, 0, 0),
  11819. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11820. "Tertiary MI2S_TX Hostless Capture",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11823. "Secondary MI2S_TX Hostless Capture",
  11824. 0, 0, 0, 0),
  11825. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11826. "Primary MI2S_TX Hostless Capture",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11829. 0, 0, 0, 0),
  11830. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11831. 0, 0, 0, 0),
  11832. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11833. "Quaternary MI2S_TX Hostless Capture",
  11834. 0, 0, 0, 0),
  11835. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11836. "Quinary MI2S_TX Hostless Capture",
  11837. 0, 0, 0, 0),
  11838. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11839. "Primary TDM0 Hostless Playback",
  11840. 0, 0, 0, 0),
  11841. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11842. "Primary TDM0 Hostless Capture",
  11843. 0, 0, 0, 0),
  11844. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11845. "Primary TDM1 Hostless Playback",
  11846. 0, 0, 0, 0),
  11847. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11848. "Primary TDM1 Hostless Capture",
  11849. 0, 0, 0, 0),
  11850. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11851. "Primary TDM2 Hostless Playback",
  11852. 0, 0, 0, 0),
  11853. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11854. "Primary TDM2 Hostless Capture",
  11855. 0, 0, 0, 0),
  11856. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11857. "Primary TDM3 Hostless Playback",
  11858. 0, 0, 0, 0),
  11859. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11860. "Primary TDM3 Hostless Capture",
  11861. 0, 0, 0, 0),
  11862. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11863. "Primary TDM4 Hostless Playback",
  11864. 0, 0, 0, 0),
  11865. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11866. "Primary TDM4 Hostless Capture",
  11867. 0, 0, 0, 0),
  11868. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11869. "Primary TDM5 Hostless Playback",
  11870. 0, 0, 0, 0),
  11871. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11872. "Primary TDM5 Hostless Capture",
  11873. 0, 0, 0, 0),
  11874. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11875. "Primary TDM6 Hostless Playback",
  11876. 0, 0, 0, 0),
  11877. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11878. "Primary TDM6 Hostless Capture",
  11879. 0, 0, 0, 0),
  11880. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11881. "Primary TDM7 Hostless Playback",
  11882. 0, 0, 0, 0),
  11883. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11884. "Primary TDM7 Hostless Capture",
  11885. 0, 0, 0, 0),
  11886. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11887. "Secondary TDM0 Hostless Playback",
  11888. 0, 0, 0, 0),
  11889. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11890. "Secondary TDM0 Hostless Capture",
  11891. 0, 0, 0, 0),
  11892. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11893. "Secondary TDM1 Hostless Playback",
  11894. 0, 0, 0, 0),
  11895. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11896. "Secondary TDM1 Hostless Capture",
  11897. 0, 0, 0, 0),
  11898. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11899. "Secondary TDM2 Hostless Playback",
  11900. 0, 0, 0, 0),
  11901. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11902. "Secondary TDM2 Hostless Capture",
  11903. 0, 0, 0, 0),
  11904. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11905. "Secondary TDM3 Hostless Playback",
  11906. 0, 0, 0, 0),
  11907. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11908. "Secondary TDM3 Hostless Capture",
  11909. 0, 0, 0, 0),
  11910. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11911. "Secondary TDM4 Hostless Playback",
  11912. 0, 0, 0, 0),
  11913. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11914. "Secondary TDM4 Hostless Capture",
  11915. 0, 0, 0, 0),
  11916. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11917. "Secondary TDM5 Hostless Playback",
  11918. 0, 0, 0, 0),
  11919. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11920. "Secondary TDM5 Hostless Capture",
  11921. 0, 0, 0, 0),
  11922. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11923. "Secondary TDM6 Hostless Playback",
  11924. 0, 0, 0, 0),
  11925. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11926. "Secondary TDM6 Hostless Capture",
  11927. 0, 0, 0, 0),
  11928. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11929. "Secondary TDM7 Hostless Playback",
  11930. 0, 0, 0, 0),
  11931. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11932. "Secondary TDM7 Hostless Capture",
  11933. 0, 0, 0, 0),
  11934. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11935. "Tertiary TDM0 Hostless Playback",
  11936. 0, 0, 0, 0),
  11937. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11938. "Tertiary TDM0 Hostless Capture",
  11939. 0, 0, 0, 0),
  11940. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11941. "Tertiary TDM1 Hostless Playback",
  11942. 0, 0, 0, 0),
  11943. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11944. "Tertiary TDM1 Hostless Capture",
  11945. 0, 0, 0, 0),
  11946. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11947. "Tertiary TDM2 Hostless Playback",
  11948. 0, 0, 0, 0),
  11949. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11950. "Tertiary TDM2 Hostless Capture",
  11951. 0, 0, 0, 0),
  11952. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11953. "Tertiary TDM3 Hostless Playback",
  11954. 0, 0, 0, 0),
  11955. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11956. "Tertiary TDM3 Hostless Capture",
  11957. 0, 0, 0, 0),
  11958. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11959. "Tertiary TDM4 Hostless Playback",
  11960. 0, 0, 0, 0),
  11961. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11962. "Tertiary TDM4 Hostless Capture",
  11963. 0, 0, 0, 0),
  11964. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11965. "Tertiary TDM5 Hostless Playback",
  11966. 0, 0, 0, 0),
  11967. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11968. "Tertiary TDM5 Hostless Capture",
  11969. 0, 0, 0, 0),
  11970. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11971. "Tertiary TDM6 Hostless Playback",
  11972. 0, 0, 0, 0),
  11973. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11974. "Tertiary TDM6 Hostless Capture",
  11975. 0, 0, 0, 0),
  11976. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11977. "Tertiary TDM7 Hostless Playback",
  11978. 0, 0, 0, 0),
  11979. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11980. "Tertiary TDM7 Hostless Capture",
  11981. 0, 0, 0, 0),
  11982. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11983. "Quaternary TDM0 Hostless Playback",
  11984. 0, 0, 0, 0),
  11985. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11986. "Quaternary TDM0 Hostless Capture",
  11987. 0, 0, 0, 0),
  11988. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11989. "Quaternary TDM1 Hostless Playback",
  11990. 0, 0, 0, 0),
  11991. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11992. "Quaternary TDM1 Hostless Capture",
  11993. 0, 0, 0, 0),
  11994. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11995. "Quaternary TDM2 Hostless Playback",
  11996. 0, 0, 0, 0),
  11997. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11998. "Quaternary TDM2 Hostless Capture",
  11999. 0, 0, 0, 0),
  12000. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  12001. "Quaternary TDM3 Hostless Playback",
  12002. 0, 0, 0, 0),
  12003. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  12004. "Quaternary TDM3 Hostless Capture",
  12005. 0, 0, 0, 0),
  12006. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  12007. "Quaternary TDM4 Hostless Playback",
  12008. 0, 0, 0, 0),
  12009. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  12010. "Quaternary TDM4 Hostless Capture",
  12011. 0, 0, 0, 0),
  12012. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  12013. "Quaternary TDM5 Hostless Playback",
  12014. 0, 0, 0, 0),
  12015. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  12016. "Quaternary TDM5 Hostless Capture",
  12017. 0, 0, 0, 0),
  12018. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  12019. "Quaternary TDM6 Hostless Playback",
  12020. 0, 0, 0, 0),
  12021. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  12022. "Quaternary TDM6 Hostless Capture",
  12023. 0, 0, 0, 0),
  12024. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  12025. "Quaternary TDM7 Hostless Playback",
  12026. 0, 0, 0, 0),
  12027. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  12028. "Quaternary TDM7 Hostless Capture",
  12029. 0, 0, 0, 0),
  12030. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  12031. "Quinary TDM0 Hostless Playback",
  12032. 0, 0, 0, 0),
  12033. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  12034. "Quinary TDM0 Hostless Capture",
  12035. 0, 0, 0, 0),
  12036. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  12037. "Quinary TDM1 Hostless Playback",
  12038. 0, 0, 0, 0),
  12039. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  12040. "Quinary TDM1 Hostless Capture",
  12041. 0, 0, 0, 0),
  12042. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  12043. "Quinary TDM2 Hostless Playback",
  12044. 0, 0, 0, 0),
  12045. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  12046. "Quinary TDM2 Hostless Capture",
  12047. 0, 0, 0, 0),
  12048. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  12049. "Quinary TDM3 Hostless Playback",
  12050. 0, 0, 0, 0),
  12051. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  12052. "Quinary TDM3 Hostless Capture",
  12053. 0, 0, 0, 0),
  12054. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  12055. "Quinary TDM4 Hostless Playback",
  12056. 0, 0, 0, 0),
  12057. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  12058. "Quinary TDM4 Hostless Capture",
  12059. 0, 0, 0, 0),
  12060. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  12061. "Quinary TDM5 Hostless Playback",
  12062. 0, 0, 0, 0),
  12063. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  12064. "Quinary TDM5 Hostless Capture",
  12065. 0, 0, 0, 0),
  12066. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  12067. "Quinary TDM6 Hostless Playback",
  12068. 0, 0, 0, 0),
  12069. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  12070. "Quinary TDM6 Hostless Capture",
  12071. 0, 0, 0, 0),
  12072. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  12073. "Quinary TDM7 Hostless Playback",
  12074. 0, 0, 0, 0),
  12075. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  12076. "Quinary TDM7 Hostless Capture",
  12077. 0, 0, 0, 0),
  12078. /* LSM */
  12079. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  12080. 0, 0, 0, 0),
  12081. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  12082. 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  12084. 0, 0, 0, 0),
  12085. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  12086. 0, 0, 0, 0),
  12087. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  12090. 0, 0, 0, 0),
  12091. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  12092. 0, 0, 0, 0),
  12093. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  12094. 0, 0, 0, 0),
  12095. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  12096. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  12097. /* Backend AIF */
  12098. /* Stream name equals to backend dai link stream name */
  12099. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  12100. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  12101. 0, 0, 0, 0),
  12102. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  12103. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  12104. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  12105. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  12106. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  12107. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  12108. 0, 0, 0, 0),
  12109. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  12110. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  12111. 0, 0, 0, 0),
  12112. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  12113. 0, 0, 0, 0),
  12114. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  12115. 0, 0, 0, 0),
  12116. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  12117. "Secondary MI2S Playback SD1",
  12118. 0, 0, 0, 0),
  12119. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12120. 0, 0, 0, 0),
  12121. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12122. 0, 0, 0, 0),
  12123. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12124. 0, 0, 0, 0),
  12125. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12126. 0, 0, 0, 0),
  12127. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12128. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12129. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12130. 0, 0, 0, 0),
  12131. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12132. 0, 0, 0, 0),
  12133. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12134. 0, 0, 0, 0),
  12135. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12136. 0, 0, 0, 0),
  12137. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12138. 0, 0, 0, 0),
  12139. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12140. 0, 0, 0, 0),
  12141. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12142. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12143. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12144. 0, 0, 0, 0),
  12145. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12146. 0, 0, 0, 0),
  12147. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12148. 0, 0, 0, 0),
  12149. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12150. 0, 0, 0, 0),
  12151. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12152. 0, 0, 0, 0),
  12153. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12154. 0, 0, 0, 0),
  12155. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12156. 0, 0, 0, 0),
  12157. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12158. 0, 0, 0, 0),
  12159. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12160. 0, 0, 0, 0),
  12161. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12162. 0, 0, 0, 0),
  12163. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12164. 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12166. 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12168. 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12170. 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12172. 0, 0, 0, 0),
  12173. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12174. 0, 0, 0, 0),
  12175. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12176. 0, 0, 0, 0),
  12177. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12178. 0, 0, 0, 0),
  12179. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12180. 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12182. 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12184. 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12186. 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12188. 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12190. 0, 0, 0, 0),
  12191. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12192. 0, 0, 0, 0),
  12193. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12194. 0, 0, 0, 0),
  12195. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12196. 0, 0, 0, 0),
  12197. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12198. 0, 0, 0, 0),
  12199. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12200. 0, 0, 0, 0),
  12201. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12202. 0, 0, 0, 0),
  12203. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12204. 0, 0, 0, 0),
  12205. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12206. 0, 0, 0, 0),
  12207. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12208. 0, 0, 0, 0),
  12209. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12210. 0, 0, 0, 0),
  12211. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12212. 0, 0, 0, 0),
  12213. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12214. 0, 0, 0, 0),
  12215. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12216. 0, 0, 0, 0),
  12217. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12218. 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12220. 0, 0, 0, 0),
  12221. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12222. 0, 0, 0, 0),
  12223. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12224. 0, 0, 0, 0),
  12225. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12226. 0, 0, 0, 0),
  12227. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12228. 0, 0, 0, 0),
  12229. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12230. 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12232. 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12234. 0, 0, 0, 0),
  12235. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12236. 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12238. 0, 0, 0, 0),
  12239. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12240. 0, 0, 0, 0),
  12241. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12242. 0, 0, 0, 0),
  12243. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12244. 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12246. 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12248. 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12250. 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12252. 0, 0, 0, 0),
  12253. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12254. 0, 0, 0, 0),
  12255. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12256. 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12258. 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12260. 0, 0, 0, 0),
  12261. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12262. 0, 0, 0, 0),
  12263. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12264. 0, 0, 0, 0),
  12265. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12266. 0, 0, 0, 0),
  12267. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12268. 0, 0, 0, 0),
  12269. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12270. 0, 0, 0, 0),
  12271. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12272. 0, 0, 0, 0),
  12273. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12274. 0, 0, 0, 0),
  12275. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12276. 0, 0, 0, 0),
  12277. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12278. 0, 0, 0, 0),
  12279. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12280. 0, 0, 0, 0),
  12281. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12282. 0, 0, 0, 0),
  12283. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12284. 0, 0, 0, 0),
  12285. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12286. 0, 0, 0, 0),
  12287. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12288. 0, 0, 0, 0),
  12289. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12290. 0, 0, 0, 0),
  12291. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12292. 0, 0, 0, 0),
  12293. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12294. 0, 0, 0, 0),
  12295. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12296. 0, 0, 0, 0),
  12297. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12298. 0, 0, 0, 0),
  12299. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12300. 0, 0, 0, 0),
  12301. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12302. 0, 0, 0, 0),
  12303. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12304. 0, 0, 0, 0),
  12305. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12306. 0, 0, 0, 0),
  12307. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12308. 0, 0, 0, 0),
  12309. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12310. 0, 0, 0, 0),
  12311. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12312. 0, 0, 0, 0),
  12313. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12314. 0, 0, 0, 0),
  12315. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12316. 0, 0, 0, 0),
  12317. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12318. 0, 0, 0, 0),
  12319. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12320. 0, 0, 0, 0),
  12321. /* incall */
  12322. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12323. 0, 0, 0, 0),
  12324. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12325. 0, 0, 0, 0),
  12326. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12327. 0, 0, 0, 0),
  12328. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12329. 0, 0, 0, 0),
  12330. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12331. 0, 0, 0, 0),
  12332. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12333. 0, 0, 0, 0),
  12334. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12335. 0, 0, 0, 0),
  12336. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12337. 0, 0, 0, 0),
  12338. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12339. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12340. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12341. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12342. 0, 0, 0, 0),
  12343. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12344. 0, 0, 0, 0),
  12345. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12346. 0, 0, 0, 0),
  12347. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12348. 0, 0, 0, 0),
  12349. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12350. 0, 0, 0, 0),
  12351. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12352. 0, 0, 0, 0),
  12353. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12354. 0, 0, 0, 0),
  12355. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12356. 0, 0, 0, 0),
  12357. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12358. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12359. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12360. 0, 0, 0, 0),
  12361. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12362. 0, 0, 0, 0),
  12363. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12364. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12365. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12366. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12367. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12368. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12369. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12370. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12371. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12372. /* In- call recording */
  12373. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12374. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12375. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12376. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12377. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12378. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12379. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12380. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12381. /* Switch Definitions */
  12382. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12383. &slim_fm_switch_mixer_controls),
  12384. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12385. &slim1_fm_switch_mixer_controls),
  12386. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12387. &slim3_fm_switch_mixer_controls),
  12388. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12389. &slim4_fm_switch_mixer_controls),
  12390. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12391. &slim6_fm_switch_mixer_controls),
  12392. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12393. &pcm_rx_switch_mixer_controls),
  12394. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12395. &int0_mi2s_rx_switch_mixer_controls),
  12396. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12397. &int4_mi2s_rx_switch_mixer_controls),
  12398. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12399. &pri_mi2s_rx_switch_mixer_controls),
  12400. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12401. &sec_mi2s_rx_switch_mixer_controls),
  12402. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12403. &tert_mi2s_rx_switch_mixer_controls),
  12404. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12405. &quat_mi2s_rx_switch_mixer_controls),
  12406. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12407. &quin_mi2s_rx_switch_mixer_controls),
  12408. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12409. &hfp_pri_aux_switch_mixer_controls),
  12410. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12411. &hfp_aux_switch_mixer_controls),
  12412. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12413. &hfp_int_switch_mixer_controls),
  12414. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12415. &hfp_slim7_switch_mixer_controls),
  12416. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12417. &usb_switch_mixer_controls),
  12418. /* Mixer definitions */
  12419. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12420. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12421. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12422. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12423. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12424. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12425. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12426. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12427. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12428. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12429. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12430. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12431. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12432. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12433. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12434. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12435. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12436. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12437. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12438. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12439. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12440. quaternary_mi2s_rx_mixer_controls,
  12441. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12442. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12443. tertiary_mi2s_rx_mixer_controls,
  12444. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12445. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12446. secondary_mi2s_rx_mixer_controls,
  12447. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12448. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12449. secondary_mi2s_rx2_mixer_controls,
  12450. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12451. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12452. primary_mi2s_rx_mixer_controls,
  12453. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12454. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12455. int0_mi2s_rx_mixer_controls,
  12456. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12457. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12458. int4_mi2s_rx_mixer_controls,
  12459. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12460. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12461. quinary_mi2s_rx_mixer_controls,
  12462. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12463. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12464. pri_tdm_rx_0_mixer_controls,
  12465. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12466. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12467. pri_tdm_rx_1_mixer_controls,
  12468. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12469. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12470. pri_tdm_rx_2_mixer_controls,
  12471. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12472. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12473. pri_tdm_rx_3_mixer_controls,
  12474. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12475. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12476. pri_tdm_tx_0_mixer_controls,
  12477. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12478. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12479. sec_tdm_rx_0_mixer_controls,
  12480. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12481. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12482. sec_tdm_rx_1_mixer_controls,
  12483. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12484. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12485. sec_tdm_rx_2_mixer_controls,
  12486. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12487. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12488. sec_tdm_rx_3_mixer_controls,
  12489. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12490. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12491. sec_tdm_tx_0_mixer_controls,
  12492. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12493. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12494. tert_tdm_rx_0_mixer_controls,
  12495. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12496. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12497. tert_tdm_tx_0_mixer_controls,
  12498. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12499. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12500. tert_tdm_rx_1_mixer_controls,
  12501. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12502. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12503. tert_tdm_rx_2_mixer_controls,
  12504. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12505. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12506. tert_tdm_rx_3_mixer_controls,
  12507. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12508. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12509. tert_tdm_rx_4_mixer_controls,
  12510. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12511. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12512. quat_tdm_rx_0_mixer_controls,
  12513. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12514. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12515. quat_tdm_tx_0_mixer_controls,
  12516. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12517. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12518. quat_tdm_rx_1_mixer_controls,
  12519. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12520. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12521. quat_tdm_rx_2_mixer_controls,
  12522. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12523. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12524. quat_tdm_rx_3_mixer_controls,
  12525. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12526. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12527. quin_tdm_rx_0_mixer_controls,
  12528. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12529. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12530. quin_tdm_tx_0_mixer_controls,
  12531. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12532. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12533. quin_tdm_rx_1_mixer_controls,
  12534. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12535. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12536. quin_tdm_rx_2_mixer_controls,
  12537. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12538. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12539. quin_tdm_rx_3_mixer_controls,
  12540. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12541. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12542. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12543. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12544. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12545. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12546. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12547. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12548. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12549. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12550. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12551. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12552. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12553. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12554. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12555. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12556. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12557. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12558. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12559. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12560. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12561. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12562. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12563. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12564. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12565. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12566. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12567. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12568. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12569. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12570. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12571. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12572. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12573. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12574. tert_auxpcm_rx_mixer_controls,
  12575. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12576. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12577. quat_auxpcm_rx_mixer_controls,
  12578. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12579. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12580. quin_auxpcm_rx_mixer_controls,
  12581. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12582. /* incall */
  12583. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12584. incall_music_delivery_mixer_controls,
  12585. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12586. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12587. incall_music2_delivery_mixer_controls,
  12588. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12589. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12590. slimbus_4_rx_mixer_controls,
  12591. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12592. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12593. slimbus_6_rx_mixer_controls,
  12594. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12595. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12596. usb_audio_rx_mixer_controls,
  12597. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12598. /* Voice Mixer */
  12599. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12600. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12601. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12602. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12603. SND_SOC_NOPM, 0, 0,
  12604. sec_i2s_rx_voice_mixer_controls,
  12605. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12606. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12607. SND_SOC_NOPM, 0, 0,
  12608. sec_mi2s_rx_voice_mixer_controls,
  12609. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12610. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12611. SND_SOC_NOPM, 0, 0,
  12612. slimbus_rx_voice_mixer_controls,
  12613. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12614. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12615. SND_SOC_NOPM, 0, 0,
  12616. bt_sco_rx_voice_mixer_controls,
  12617. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12618. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12619. SND_SOC_NOPM, 0, 0,
  12620. afe_pcm_rx_voice_mixer_controls,
  12621. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12622. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12623. SND_SOC_NOPM, 0, 0,
  12624. aux_pcm_rx_voice_mixer_controls,
  12625. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12626. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12627. SND_SOC_NOPM, 0, 0,
  12628. sec_aux_pcm_rx_voice_mixer_controls,
  12629. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12630. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12631. SND_SOC_NOPM, 0, 0,
  12632. tert_aux_pcm_rx_voice_mixer_controls,
  12633. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12634. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12635. SND_SOC_NOPM, 0, 0,
  12636. quat_aux_pcm_rx_voice_mixer_controls,
  12637. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12638. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12639. SND_SOC_NOPM, 0, 0,
  12640. quin_aux_pcm_rx_voice_mixer_controls,
  12641. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12642. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12643. SND_SOC_NOPM, 0, 0,
  12644. hdmi_rx_voice_mixer_controls,
  12645. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12646. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12647. SND_SOC_NOPM, 0, 0,
  12648. mi2s_rx_voice_mixer_controls,
  12649. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12650. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12651. SND_SOC_NOPM, 0, 0,
  12652. pri_mi2s_rx_voice_mixer_controls,
  12653. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12654. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12655. SND_SOC_NOPM, 0, 0,
  12656. int0_mi2s_rx_voice_mixer_controls,
  12657. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12658. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12659. SND_SOC_NOPM, 0, 0,
  12660. int4_mi2s_rx_voice_mixer_controls,
  12661. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12662. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12663. SND_SOC_NOPM, 0, 0,
  12664. tert_mi2s_rx_voice_mixer_controls,
  12665. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12666. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12667. SND_SOC_NOPM, 0, 0,
  12668. quat_mi2s_rx_voice_mixer_controls,
  12669. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12670. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12671. SND_SOC_NOPM, 0, 0,
  12672. quin_mi2s_rx_voice_mixer_controls,
  12673. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12674. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12675. SND_SOC_NOPM, 0, 0,
  12676. quat_tdm_rx_2_voice_mixer_controls,
  12677. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12678. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12679. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12680. ARRAY_SIZE(tx_voip_mixer_controls)),
  12681. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12682. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12683. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12684. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12685. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12686. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12687. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12688. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12689. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12690. int_bt_a2dp_rx_mixer_controls,
  12691. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12692. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12693. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12694. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12695. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12696. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12697. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12698. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12699. tx_voice2_stub_mixer_controls,
  12700. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12701. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12702. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12703. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12704. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12705. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12706. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12707. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12708. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12709. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12710. SND_SOC_NOPM, 0, 0,
  12711. slimbus_6_rx_voice_mixer_controls,
  12712. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12713. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12714. slimbus_7_rx_voice_mixer_controls,
  12715. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12716. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12717. slimbus_8_rx_voice_mixer_controls,
  12718. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12719. /* port mixer */
  12720. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12721. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12722. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12723. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12724. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12725. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12726. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12727. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12728. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12729. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12730. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12731. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12732. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12733. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12734. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12735. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12736. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12737. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12738. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12739. sbus_1_rx_port_mixer_controls,
  12740. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12741. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12742. bt_sco_rx_port_mixer_controls,
  12743. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12744. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12745. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12746. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12747. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12748. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12749. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12750. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12751. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12752. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12753. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12754. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12755. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12756. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12757. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12758. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12759. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12760. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12761. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12762. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12763. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12764. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12765. primary_mi2s_rx_port_mixer_controls,
  12766. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12767. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12768. sec_mi2s_rx_port_mixer_controls,
  12769. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12770. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12771. tert_mi2s_rx_port_mixer_controls,
  12772. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12773. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12774. quat_mi2s_rx_port_mixer_controls,
  12775. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12776. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12777. quin_mi2s_rx_port_mixer_controls,
  12778. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12779. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12780. pri_tdm_rx_0_port_mixer_controls,
  12781. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12782. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12783. pri_tdm_rx_1_port_mixer_controls,
  12784. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12785. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12786. pri_tdm_rx_2_port_mixer_controls,
  12787. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12788. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12789. pri_tdm_rx_3_port_mixer_controls,
  12790. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12791. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12792. sec_tdm_rx_0_port_mixer_controls,
  12793. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12794. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12795. sec_tdm_rx_1_port_mixer_controls,
  12796. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12797. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12798. sec_tdm_rx_2_port_mixer_controls,
  12799. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12800. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12801. sec_tdm_rx_3_port_mixer_controls,
  12802. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12803. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12804. tert_tdm_rx_0_port_mixer_controls,
  12805. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12806. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12807. tert_tdm_rx_1_port_mixer_controls,
  12808. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12809. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12810. tert_tdm_rx_2_port_mixer_controls,
  12811. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12812. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12813. tert_tdm_rx_3_port_mixer_controls,
  12814. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12815. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12816. quat_tdm_rx_0_port_mixer_controls,
  12817. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12818. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12819. quat_tdm_rx_1_port_mixer_controls,
  12820. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12821. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12822. quat_tdm_rx_2_port_mixer_controls,
  12823. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12824. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12825. quat_tdm_rx_3_port_mixer_controls,
  12826. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12827. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12828. quin_tdm_rx_0_port_mixer_controls,
  12829. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12830. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12831. quin_tdm_rx_1_port_mixer_controls,
  12832. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12833. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12834. quin_tdm_rx_2_port_mixer_controls,
  12835. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12836. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12837. quin_tdm_rx_3_port_mixer_controls,
  12838. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12839. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12840. int0_mi2s_rx_port_mixer_controls,
  12841. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12842. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12843. int4_mi2s_rx_port_mixer_controls,
  12844. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12845. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12846. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12847. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12848. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12849. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12850. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12851. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12852. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12853. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12854. /* lsm mixer definitions */
  12855. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12856. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12857. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12858. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12859. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12860. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12861. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12862. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12863. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12864. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12865. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12866. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12867. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12868. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12869. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12870. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12871. /* Virtual Pins to force backends ON atm */
  12872. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12873. SND_SOC_DAPM_INPUT("BE_IN"),
  12874. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12875. &slim0_rx_vi_fb_lch_mux),
  12876. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12877. &slim0_rx_vi_fb_rch_mux),
  12878. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12879. &mi2s_rx_vi_fb_mux),
  12880. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12881. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12882. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12883. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12884. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12885. &voc_ext_ec_mux),
  12886. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12887. &ext_ec_ref_mux_ul1),
  12888. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12889. &ext_ec_ref_mux_ul2),
  12890. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12891. &ext_ec_ref_mux_ul3),
  12892. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12893. &ext_ec_ref_mux_ul4),
  12894. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12895. &ext_ec_ref_mux_ul5),
  12896. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12897. &ext_ec_ref_mux_ul6),
  12898. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12899. &ext_ec_ref_mux_ul8),
  12900. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12901. &ext_ec_ref_mux_ul9),
  12902. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12903. &ext_ec_ref_mux_ul10),
  12904. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12905. &ext_ec_ref_mux_ul16),
  12906. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12907. &ext_ec_ref_mux_ul17),
  12908. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12909. &ext_ec_ref_mux_ul18),
  12910. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12911. &ext_ec_ref_mux_ul19),
  12912. };
  12913. static const struct snd_soc_dapm_route intercon[] = {
  12914. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12915. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12916. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12917. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12918. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12919. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12920. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12921. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12922. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12923. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12924. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12925. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12926. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12927. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12928. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12929. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12930. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12931. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12932. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12933. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12934. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12935. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12936. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12937. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12938. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12939. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12940. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12941. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12942. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12943. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12944. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12945. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12946. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12947. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12948. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12949. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12950. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12951. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12952. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12953. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12954. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12955. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12956. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12957. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12958. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12959. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12960. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12961. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12962. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12963. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12964. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12965. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12966. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12967. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12968. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12969. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12970. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12971. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12972. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12973. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12974. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12975. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12976. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12977. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12978. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12979. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12980. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12981. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12982. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12983. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12984. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12985. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12986. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12987. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12988. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12989. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12990. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12991. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12992. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12993. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12994. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12995. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12996. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12997. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12998. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12999. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  13000. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  13001. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  13002. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  13003. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  13004. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  13005. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  13006. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  13007. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  13008. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  13009. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  13010. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  13011. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  13012. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  13013. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  13014. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  13015. {"HDMI", NULL, "HDMI Mixer"},
  13016. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  13017. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  13018. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  13019. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  13020. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  13021. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  13022. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  13023. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  13024. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  13025. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  13026. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  13027. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  13028. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  13029. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  13030. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  13031. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  13032. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  13033. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13034. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13035. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13036. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13037. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13038. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13039. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13040. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13041. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13042. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13043. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13044. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13045. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13046. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13047. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13048. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13049. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  13050. /* incall */
  13051. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  13052. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  13053. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  13054. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  13055. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  13056. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13057. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13058. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13059. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13060. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  13061. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13062. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13063. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13064. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13065. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  13066. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13067. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13068. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13069. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13070. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13071. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13072. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13073. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13074. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13075. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13076. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13077. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13078. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13079. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13080. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13081. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13082. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  13083. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13084. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13085. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13086. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13087. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13088. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13089. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13090. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13091. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13092. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13093. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13094. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13095. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13096. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13097. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13098. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13099. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  13100. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13101. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13102. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13103. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13104. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13105. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13106. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13107. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13108. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13109. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13110. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13111. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13112. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13113. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13114. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13115. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13116. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13117. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13118. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13119. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13120. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13121. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13122. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13123. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13124. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13125. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13126. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13127. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13128. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13129. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13130. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13131. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13132. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13133. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13134. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13135. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13136. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13137. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13138. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13139. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13140. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13141. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13142. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13143. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13144. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13145. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13146. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13147. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13148. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13149. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13150. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13151. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13152. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13153. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13154. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13155. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13156. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13157. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13158. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13159. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13160. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13161. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13162. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13163. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13164. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13165. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13166. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13167. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13168. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13169. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13170. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13171. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13172. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13173. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13174. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13175. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13176. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13177. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13178. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13179. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13180. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13181. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13182. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13183. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13184. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13185. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13186. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13187. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13188. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13189. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13190. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13191. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13192. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13193. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13194. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13195. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13196. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13197. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13198. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13199. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13200. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13201. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13202. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13203. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13204. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13205. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13206. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13207. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13208. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13209. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13210. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13211. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13212. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13213. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13214. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13215. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13216. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13217. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13218. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13219. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13220. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13221. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13222. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13223. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13224. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13225. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13226. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13227. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13228. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13229. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13230. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13231. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13232. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13233. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13234. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13235. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13236. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13237. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13238. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13239. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13240. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13241. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13242. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13243. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13244. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13245. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13246. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13247. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13248. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13249. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13250. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13251. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13252. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13253. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13254. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13255. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13256. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13257. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13258. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13259. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13260. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13261. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13262. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13263. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13264. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13265. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13266. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13267. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13268. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13269. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13270. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13271. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13272. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13273. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13274. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13275. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13276. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13277. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13278. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13279. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13280. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13281. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13282. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13283. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13284. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13285. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13286. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13287. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13288. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13289. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13290. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13291. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13292. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13293. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13294. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13295. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13296. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13297. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13298. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13299. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13300. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13301. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13302. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13303. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13304. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13305. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13306. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13307. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13308. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13309. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13310. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13311. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13312. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13313. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13314. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13315. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13316. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13317. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13318. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13319. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13320. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13321. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13322. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13323. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13324. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13325. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13326. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13327. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13328. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13329. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13330. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13331. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13332. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13333. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13334. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13335. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13336. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13337. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13338. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13339. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13340. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13341. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13342. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13343. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13344. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13345. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13346. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13347. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13348. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13349. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13350. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13351. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13352. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13353. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13354. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13355. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13356. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13357. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13358. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13359. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13360. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13361. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13362. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13363. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13364. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13365. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13366. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13367. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13368. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13369. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13370. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13371. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13372. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13373. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13374. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13375. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13376. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13377. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13378. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13379. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13380. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13381. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13382. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13383. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13384. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13385. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13386. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13387. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13388. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13389. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13390. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13391. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13392. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13393. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13394. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13395. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13396. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13397. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13398. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13399. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13400. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13401. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13402. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13403. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13404. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13405. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13406. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13407. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13408. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13409. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13410. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13411. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13412. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13413. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13414. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13415. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13416. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13417. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13418. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13419. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13420. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13421. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13422. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13423. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13424. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13425. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13426. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13427. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13428. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13429. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13430. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13431. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13432. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13433. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13434. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13435. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13436. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13437. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13438. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13439. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13440. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13441. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13442. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13443. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13444. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13445. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13446. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13447. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13448. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13449. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13450. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13451. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13452. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13453. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13454. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13455. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13456. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13457. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13458. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13459. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13460. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13461. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13462. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13463. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13464. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13465. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13466. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13467. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13468. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13469. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13470. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13471. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13472. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13473. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13474. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13475. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13476. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13477. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13478. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13479. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13480. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13481. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13482. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13483. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13484. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13485. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13486. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13487. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13488. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13489. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13490. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13491. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13492. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13493. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13494. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13495. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13496. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13497. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13498. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13499. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13500. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13501. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13502. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13503. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13504. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13505. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13506. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13507. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13508. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13509. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13510. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13511. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13512. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13513. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13514. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13515. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13516. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13517. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13518. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13519. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13520. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13521. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13522. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13523. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13524. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13525. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13526. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13527. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13528. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13529. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13530. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13531. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13532. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13533. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13534. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13535. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13536. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13537. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13538. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13539. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13540. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13541. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13542. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13543. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13544. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13545. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13546. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13547. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13548. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13549. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13550. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13551. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13552. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13553. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13554. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13555. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13556. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13557. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13558. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13559. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13560. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13561. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13562. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13563. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13564. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13565. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13566. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13567. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13568. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13569. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13570. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13571. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13572. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13573. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13574. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13575. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13576. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13577. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13578. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13579. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13580. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13581. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13582. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13583. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13584. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13585. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13586. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13587. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13588. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13589. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13590. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13591. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13592. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13593. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13594. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13595. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13596. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13597. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13598. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13599. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13600. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13601. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13602. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13603. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13604. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13605. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13606. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13607. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13608. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13609. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13610. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13611. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13612. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13613. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13614. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13615. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13616. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13617. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13618. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13619. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13620. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13621. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13622. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13623. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13624. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13625. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13626. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13627. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13628. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13629. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13630. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13631. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13632. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13633. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13634. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13635. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13636. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13637. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13638. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13639. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13640. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13641. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13642. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13643. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13644. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13645. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13646. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13647. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13648. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13649. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13650. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13651. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13652. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13653. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13654. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13655. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13656. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13657. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13658. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13659. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13660. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13662. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13663. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13664. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13665. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13666. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13667. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13668. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13669. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13670. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13671. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13672. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13673. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13674. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13675. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13676. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13677. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13682. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13683. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13684. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13685. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13686. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13687. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13688. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13689. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13690. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13691. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13692. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13693. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13694. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13695. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13700. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13701. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13702. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13703. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13704. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13705. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13706. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13707. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13708. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13709. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13710. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13711. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13712. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13713. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13718. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13719. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13720. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13721. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13722. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13723. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13724. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13725. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13726. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13727. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13728. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13729. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13730. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13731. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13732. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13733. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13734. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13735. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13736. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13737. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13738. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13739. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13740. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13741. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13742. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13743. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13744. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13745. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13746. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13747. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13748. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13749. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13750. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13751. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13752. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13753. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13754. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13755. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13756. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13757. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13758. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13759. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13760. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13761. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13762. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13763. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13764. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13765. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13766. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13767. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13768. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13769. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13770. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13771. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13772. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13773. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13774. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13775. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13776. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13777. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13778. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13779. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13780. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13781. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13782. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13783. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13784. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13785. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13786. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13787. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13788. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13789. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13790. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13791. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13792. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13793. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13794. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13795. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13796. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13797. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13798. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13799. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13800. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13801. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13802. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13803. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13804. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13805. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13806. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13807. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13808. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13809. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13810. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13811. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13812. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13813. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13814. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13815. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13816. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13817. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13818. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13819. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13820. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13821. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13822. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13823. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13824. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13825. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13826. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13827. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13828. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13829. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13830. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13831. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13832. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13833. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13834. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13835. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13836. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13837. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13838. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13839. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13840. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13841. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13842. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13843. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13844. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13845. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13846. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13847. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13848. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13849. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13850. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13851. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13852. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13853. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13854. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13855. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13856. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13857. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13858. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13859. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13860. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13861. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13862. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13863. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13864. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13865. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13866. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13867. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13868. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13869. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13870. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13871. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13872. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13873. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13874. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13875. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13876. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13877. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13878. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13879. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13880. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13881. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13882. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13883. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13884. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13885. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13886. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13887. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13888. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13889. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13890. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13891. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13892. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13893. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13894. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13895. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13896. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13897. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13898. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13899. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13900. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13901. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13902. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13903. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13904. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13905. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13906. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13907. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13908. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13909. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13910. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13911. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13912. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13913. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13914. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13915. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13916. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13917. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13918. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13919. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13920. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13921. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13922. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13923. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13924. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13925. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13926. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13927. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13928. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13929. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13930. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13931. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13932. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13933. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13934. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13935. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13936. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13937. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13938. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13939. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13940. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13941. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13942. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13943. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13944. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13945. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13946. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13947. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13948. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13949. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13950. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13951. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13952. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13953. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13954. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13955. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13956. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13957. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13958. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13959. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13960. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13961. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13962. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13963. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13964. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13965. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13966. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13967. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13968. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13969. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13970. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13971. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13972. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13973. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13974. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13975. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13976. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13977. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13978. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13979. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13980. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13981. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13982. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13983. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13984. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13985. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13986. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13987. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13988. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13989. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13990. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13991. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13992. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13993. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13994. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13995. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13996. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13997. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13998. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13999. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14000. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14001. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14002. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14003. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14004. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14005. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14006. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14007. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14008. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14009. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14010. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14011. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14012. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14013. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14014. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14015. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14016. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14017. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14018. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14019. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14020. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14021. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14022. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14023. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14024. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14025. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14026. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  14027. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14028. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14029. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14030. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14031. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14032. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14033. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14034. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14035. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14036. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14037. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14038. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14039. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14040. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14041. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14042. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14043. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14044. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  14045. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14046. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14047. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14048. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14049. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14050. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14051. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14052. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14053. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14054. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14055. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14056. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14057. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14058. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14059. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14060. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14061. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  14062. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14063. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14064. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14065. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14066. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14067. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14068. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14069. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14070. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14071. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14072. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14073. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14074. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14075. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14076. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14077. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14078. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  14079. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14080. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14081. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14082. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14083. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14084. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14085. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14086. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14087. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14088. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14089. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14090. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14091. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14092. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14093. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14094. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14095. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14096. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14097. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14098. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14099. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14100. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14101. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14102. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14103. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14104. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14105. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14106. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14107. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14108. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14109. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14110. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14111. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14112. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14113. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14114. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14115. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14116. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14117. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14118. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14119. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14120. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14121. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14122. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14123. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14124. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14125. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14126. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14127. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14128. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14129. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14130. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14131. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14132. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14133. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14134. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14135. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14136. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14137. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14138. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14139. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14140. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14141. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14142. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14143. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14144. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14145. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14146. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14147. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14148. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14149. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14150. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14151. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14152. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14153. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14154. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14155. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14156. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14157. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14158. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14159. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14160. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14161. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14162. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14163. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14164. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14165. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14166. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14167. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14168. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14169. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14170. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14171. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14172. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14173. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14174. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14175. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14176. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14177. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14178. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14179. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14180. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14181. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14182. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14183. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14184. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14185. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14186. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14187. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14188. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14189. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14190. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14191. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14192. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14193. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14194. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14195. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14196. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14197. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14198. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14199. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14200. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14201. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14202. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14203. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14204. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14205. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14206. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14207. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14208. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14209. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14210. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14211. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14212. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14213. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14214. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14215. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14216. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14217. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14218. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14219. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14220. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14221. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14222. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14223. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14224. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14225. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14226. {"SLIM_0_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14227. {"SLIM_0_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14228. {"SLIM_0_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14229. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14230. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14231. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14232. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14233. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14234. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14235. {"SLIM_6_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14236. {"SLIM_6_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14237. {"SLIM_6_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14238. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14239. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14240. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14241. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14242. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14243. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14244. {"USB_AUDIO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14245. {"USB_AUDIO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14246. {"USB_AUDIO_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14247. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14248. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14249. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14250. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14251. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14252. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14253. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14254. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14255. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14256. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14257. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14258. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14259. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14260. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14261. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14262. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14263. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14264. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14265. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14266. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14267. {"AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14268. {"AUX_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14269. {"AUX_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14270. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14271. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14272. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14273. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14274. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14275. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14276. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14277. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14278. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14279. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14280. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14281. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14282. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14283. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14284. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14285. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14286. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14287. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14288. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14289. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14290. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14291. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14292. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14293. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14294. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14295. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14296. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14297. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14298. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14299. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14300. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14301. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14302. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14303. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14304. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14305. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14306. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14307. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14308. {"HDMI", NULL, "HDMI_DL_HL"},
  14309. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14310. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14311. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14312. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14313. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14314. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14315. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14316. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14317. {"PRI_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14318. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14319. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14320. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14321. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14322. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14323. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14324. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14325. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14326. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14327. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14328. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14329. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14330. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14331. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14332. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14333. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14334. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14335. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14336. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14337. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14338. {"TERT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14339. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14340. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14341. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14342. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14343. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14344. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14345. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14346. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14347. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14348. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14349. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14350. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14351. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14352. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14353. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14354. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14355. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14356. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14357. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14358. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14359. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14360. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14361. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14362. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14363. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14364. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14365. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14366. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14367. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14368. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14369. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14370. {"CS-VOICE_UL1", NULL, "VOC_EXT_EC MUX"},
  14371. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14372. {"VoLTE_UL", NULL, "VOC_EXT_EC MUX"},
  14373. {"VOICE2_UL", NULL, "VOC_EXT_EC MUX"},
  14374. {"VoWLAN_UL", NULL, "VOC_EXT_EC MUX"},
  14375. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14376. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14377. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14378. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14379. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14380. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14381. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14382. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14383. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14384. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14385. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14386. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14387. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14388. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14389. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14390. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14391. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14392. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14393. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14394. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14395. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14396. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14397. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14398. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14399. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14400. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14401. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14402. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14403. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14404. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14405. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14406. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14407. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14408. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14409. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14410. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14411. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14412. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14413. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14414. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14415. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14416. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14417. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14418. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14419. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14420. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14421. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14422. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14423. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14424. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14425. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14426. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14427. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14428. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14429. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14430. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14431. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14432. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14433. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14434. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14435. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14436. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14437. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14438. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14439. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14440. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14441. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14442. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14443. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14444. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14445. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14446. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14447. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14448. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14449. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14450. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14451. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14452. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14453. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14454. {"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
  14455. {"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
  14456. {"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
  14457. {"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
  14458. {"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
  14459. {"Voice_Tx Mixer", "SLIM_7_TX_Voice", "SLIMBUS_7_TX"},
  14460. {"Voice_Tx Mixer", "SLIM_8_TX_Voice", "SLIMBUS_8_TX"},
  14461. {"Voice_Tx Mixer", "USB_AUDIO_TX_Voice", "USB_AUDIO_TX"},
  14462. {"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
  14463. {"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
  14464. {"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
  14465. {"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
  14466. {"Voice_Tx Mixer", "TERT_AUX_PCM_TX_Voice", "TERT_AUX_PCM_TX"},
  14467. {"Voice_Tx Mixer", "QUAT_AUX_PCM_TX_Voice", "QUAT_AUX_PCM_TX"},
  14468. {"Voice_Tx Mixer", "QUIN_AUX_PCM_TX_Voice", "QUIN_AUX_PCM_TX"},
  14469. {"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
  14470. {"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
  14471. {"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
  14472. {"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
  14473. {"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
  14474. {"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
  14475. {"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
  14476. {"Voice2_Tx Mixer", "SLIM_7_TX_Voice2", "SLIMBUS_7_TX"},
  14477. {"Voice2_Tx Mixer", "SLIM_8_TX_Voice2", "SLIMBUS_8_TX"},
  14478. {"Voice2_Tx Mixer", "USB_AUDIO_TX_Voice2", "USB_AUDIO_TX"},
  14479. {"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
  14480. {"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
  14481. {"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
  14482. {"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
  14483. {"Voice2_Tx Mixer", "TERT_AUX_PCM_TX_Voice2", "TERT_AUX_PCM_TX"},
  14484. {"Voice2_Tx Mixer", "QUAT_AUX_PCM_TX_Voice2", "QUAT_AUX_PCM_TX"},
  14485. {"Voice2_Tx Mixer", "QUIN_AUX_PCM_TX_Voice2", "QUIN_AUX_PCM_TX"},
  14486. {"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
  14487. {"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
  14488. {"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
  14489. {"VoLTE_Tx Mixer", "SLIM_7_TX_VoLTE", "SLIMBUS_7_TX"},
  14490. {"VoLTE_Tx Mixer", "SLIM_8_TX_VoLTE", "SLIMBUS_8_TX"},
  14491. {"VoLTE_Tx Mixer", "USB_AUDIO_TX_VoLTE", "USB_AUDIO_TX"},
  14492. {"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
  14493. {"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
  14494. {"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
  14495. {"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
  14496. {"VoLTE_Tx Mixer", "TERT_AUX_PCM_TX_VoLTE", "TERT_AUX_PCM_TX"},
  14497. {"VoLTE_Tx Mixer", "QUAT_AUX_PCM_TX_VoLTE", "QUAT_AUX_PCM_TX"},
  14498. {"VoLTE_Tx Mixer", "QUIN_AUX_PCM_TX_VoLTE", "QUIN_AUX_PCM_TX"},
  14499. {"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
  14500. {"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
  14501. {"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
  14502. {"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
  14503. {"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
  14504. {"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
  14505. {"VoWLAN_Tx Mixer", "SLIM_7_TX_VoWLAN", "SLIMBUS_7_TX"},
  14506. {"VoWLAN_Tx Mixer", "SLIM_8_TX_VoWLAN", "SLIMBUS_8_TX"},
  14507. {"VoWLAN_Tx Mixer", "USB_AUDIO_TX_VoWLAN", "USB_AUDIO_TX"},
  14508. {"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
  14509. {"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
  14510. {"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
  14511. {"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
  14512. {"VoWLAN_Tx Mixer", "TERT_AUX_PCM_TX_VoWLAN", "TERT_AUX_PCM_TX"},
  14513. {"VoWLAN_Tx Mixer", "QUAT_AUX_PCM_TX_VoWLAN", "QUAT_AUX_PCM_TX"},
  14514. {"VoWLAN_Tx Mixer", "QUIN_AUX_PCM_TX_VoWLAN", "QUIN_AUX_PCM_TX"},
  14515. {"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
  14516. {"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
  14517. {"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
  14518. {"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
  14519. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14520. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14521. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14522. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14523. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14524. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14525. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14526. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14527. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14528. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14529. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14530. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14531. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14532. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14533. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14534. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14535. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14536. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14537. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14538. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14539. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14540. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14541. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14542. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14543. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14544. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14545. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14546. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14547. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14548. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14549. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14550. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14551. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14552. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14553. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14554. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14555. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14556. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14557. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14558. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14559. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14560. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14561. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14562. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14563. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14564. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14565. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14566. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14567. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14568. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14569. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14570. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14571. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14572. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14573. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14574. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14575. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14576. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14577. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14578. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14579. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14580. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14581. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14582. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14583. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14584. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14585. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14586. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14587. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14588. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14589. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14590. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14591. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14592. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14593. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14594. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14595. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14596. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14597. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14598. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14599. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14600. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14601. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14602. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14603. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14604. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14605. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14606. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14607. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14608. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14609. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14610. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14611. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14612. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14613. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14614. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14615. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14616. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14617. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14618. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14619. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14620. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14621. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14622. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14623. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14624. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14625. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14626. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14627. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14628. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14629. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14630. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14631. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14632. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14633. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14634. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14635. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14636. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14637. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14638. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14639. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14640. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14641. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14642. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14643. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14644. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14645. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14646. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14647. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14648. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14649. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14650. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14651. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14652. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14653. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14654. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14655. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14656. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14657. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14658. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14659. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14660. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14661. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14662. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14663. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14664. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14665. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14666. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14667. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14668. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14669. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14670. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14671. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14672. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14673. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14674. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14675. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14676. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14677. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14678. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14679. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14680. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14681. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14682. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14683. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14684. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14685. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14686. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14687. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14688. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14689. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14690. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14691. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14692. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14693. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14694. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14695. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14696. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14697. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14698. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14699. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14700. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14701. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14702. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14703. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14704. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14705. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14706. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14707. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14708. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14709. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14710. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14711. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14712. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14713. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14714. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14715. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14716. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14717. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14718. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14719. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14720. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14721. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14722. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14723. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14724. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14725. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14726. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14727. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14728. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14729. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14730. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14731. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14732. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14733. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14734. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14735. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14736. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14737. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14738. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14739. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14740. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14741. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14742. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14743. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14744. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14745. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14746. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14747. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14748. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14749. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14750. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14751. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14752. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14753. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14754. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14755. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14756. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14757. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14758. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14759. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14760. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14761. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14762. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14763. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14764. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14765. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14766. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14767. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14768. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14769. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14770. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14771. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14772. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14773. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14774. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14775. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14776. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14777. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14778. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14779. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14780. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14781. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14782. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14783. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14784. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14785. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14786. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14787. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14788. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14789. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14790. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14791. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14792. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14793. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14794. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14795. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14796. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14797. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14798. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14799. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14800. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14801. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14802. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14803. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14804. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14805. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14806. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14807. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14808. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14809. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14810. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14811. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14812. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14813. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14814. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14815. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14816. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14817. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14818. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14819. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14820. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14821. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14822. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14823. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14824. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14825. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14826. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14827. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14828. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14829. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14830. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14831. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14832. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14833. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14834. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14835. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14836. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14837. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14838. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14839. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14840. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14841. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14842. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14843. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14844. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14845. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14846. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14847. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14848. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14849. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14850. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14851. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14852. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14853. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14854. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14855. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14856. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14857. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14858. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14859. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14860. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14861. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14862. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14863. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14864. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14865. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14866. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14867. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14868. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14869. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14870. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14871. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14872. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14873. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14874. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14875. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14876. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14877. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14878. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14879. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14880. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14881. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14882. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14883. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14884. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14885. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14886. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14887. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14888. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14889. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14890. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14891. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14892. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14893. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14894. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14895. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14896. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14897. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14898. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14899. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14900. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14901. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14902. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14903. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14904. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14905. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14906. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14907. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14908. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14909. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14910. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14911. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14912. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14913. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14914. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14915. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14916. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14917. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14918. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14919. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14920. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14921. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14922. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14923. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14924. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14925. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14926. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14927. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14928. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14929. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14930. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14931. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14932. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14933. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14934. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14935. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14936. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14937. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14938. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14939. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14940. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14941. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14942. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14943. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14944. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14945. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14946. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14947. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14948. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14949. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14950. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14951. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14952. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14953. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14954. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14955. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14956. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14957. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14958. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14959. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14960. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14961. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14962. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14963. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14964. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14965. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14966. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14967. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14968. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14969. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14970. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14971. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14972. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14973. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14974. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14975. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14976. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14977. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14978. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14979. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14980. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14981. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14982. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14983. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14984. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14985. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14986. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14987. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14988. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14989. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14990. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14991. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14992. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14993. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14994. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14995. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14996. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14997. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14998. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14999. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15000. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15001. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15002. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15003. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  15004. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15005. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15006. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15007. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15008. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15009. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15010. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15011. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15012. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15013. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15014. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15015. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15016. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15017. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15018. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15019. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15020. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15021. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15022. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15023. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15024. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  15025. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15026. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15027. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15028. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15029. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15030. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15031. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15032. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15033. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15034. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15035. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15036. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15037. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15038. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15039. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15040. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15041. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15042. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15043. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15044. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15045. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  15046. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15047. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15048. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15049. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15050. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15051. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15052. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15053. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15054. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15055. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15056. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15057. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15058. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15059. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15060. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15061. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15062. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15063. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15064. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15065. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15066. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  15067. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15068. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15069. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15070. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15071. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15072. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15073. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15074. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15075. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15076. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15077. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15078. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15079. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15080. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15081. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15082. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15083. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15084. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15085. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15086. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15087. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  15088. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15089. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15090. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15091. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15092. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15093. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15094. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15095. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15096. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15097. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15098. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15099. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15100. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15101. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15102. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15103. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15104. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15105. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15106. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15107. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15108. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  15109. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15110. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15111. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15112. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15113. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15114. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15115. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15116. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15117. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15118. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15119. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15120. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15121. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15122. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15123. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15124. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15125. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15126. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15127. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15128. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15129. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  15130. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15131. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15132. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15133. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15134. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15135. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15136. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15137. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15138. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15139. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15140. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15141. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15142. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15143. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15144. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15145. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15146. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15147. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15148. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15149. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15150. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  15151. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15152. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15153. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15154. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15155. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15156. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15157. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15158. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15159. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15160. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15161. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15162. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15163. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15164. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15165. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15166. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15167. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15168. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15169. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15170. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15171. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  15172. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15173. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15174. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15175. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15176. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15177. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15178. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15179. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15180. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15181. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15182. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  15183. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15184. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15185. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15186. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15187. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15188. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15189. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15190. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15191. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15192. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15193. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15194. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15195. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15196. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15197. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15198. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15199. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15200. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15201. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15202. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15203. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15204. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15205. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15206. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15207. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15208. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15209. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15210. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15211. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15212. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15213. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15214. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15215. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15216. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15217. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15218. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15219. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15220. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15221. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15222. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15223. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15224. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15225. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15226. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15227. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15228. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15229. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15230. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15231. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15232. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15233. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15234. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15235. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15236. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15237. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15238. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15239. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15240. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15241. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15242. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15243. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15244. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15245. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15246. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15247. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15248. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15249. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15250. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15251. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15252. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15253. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15254. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15255. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15256. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15257. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15258. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15259. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15260. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15261. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15262. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15263. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15264. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15265. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15266. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15267. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15268. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15269. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15270. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15271. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15272. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15273. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15274. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15275. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15276. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15277. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15278. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15279. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15280. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15281. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15282. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15283. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15284. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15285. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15286. {"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15287. {"STUB_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15288. {"STUB_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15289. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15290. {"SLIMBUS_1_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15291. {"SLIMBUS_1_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15292. {"SLIMBUS_1_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15293. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15294. {"AFE_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15295. {"AFE_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15296. {"AFE_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15297. {"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15298. {"SLIMBUS_3_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15299. {"SLIMBUS_3_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15300. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15301. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15302. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15303. {"SLIM_7_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15304. {"SLIM_7_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15305. {"SLIM_7_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15306. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15307. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15308. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15309. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15310. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15311. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15312. {"SLIM_8_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15313. {"SLIM_8_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15314. {"SLIM_8_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15315. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15316. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15317. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15318. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15319. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15320. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15321. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15322. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15323. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15324. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15325. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15326. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15327. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15328. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15329. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15330. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15331. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15332. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15333. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15334. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15335. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15336. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15337. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15338. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15339. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15340. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15341. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15342. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15343. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15344. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15345. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15346. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15347. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15348. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15349. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15350. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15351. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15352. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15353. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15354. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15355. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15356. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15357. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15358. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15359. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15360. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15361. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15362. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15363. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15364. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15365. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15366. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15367. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15368. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15369. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15370. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15371. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15372. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15373. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15374. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15375. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15376. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15377. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15378. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15379. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15380. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15381. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15382. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15383. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15384. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15385. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15386. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15387. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15388. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15389. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15390. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15391. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15392. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15393. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15394. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15395. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15396. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15397. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15398. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15399. /* Backend Enablement */
  15400. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15401. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15402. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15403. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15404. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15405. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15406. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15407. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15408. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15409. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15410. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15411. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15412. {"BE_OUT", NULL, "HDMI"},
  15413. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15414. {"BE_OUT", NULL, "SPDIF_RX"},
  15415. {"BE_OUT", NULL, "MI2S_RX"},
  15416. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15417. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15418. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15419. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15420. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15421. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15422. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15423. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15424. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15425. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15426. {"BE_OUT", NULL, "INT_FM_RX"},
  15427. {"BE_OUT", NULL, "PCM_RX"},
  15428. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15429. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15430. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15431. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15432. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15433. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15434. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15435. {"BE_OUT", NULL, "INT_FM_RX"},
  15436. {"BE_OUT", NULL, "PCM_RX"},
  15437. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15438. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15439. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15440. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15441. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15442. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15443. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15444. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15445. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15446. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15447. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15448. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15449. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15450. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15451. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15452. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15453. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15454. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15455. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15456. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15457. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15458. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15459. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15460. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15461. {"PRI_I2S_TX", NULL, "BE_IN"},
  15462. {"MI2S_TX", NULL, "BE_IN"},
  15463. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15464. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15465. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15466. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15467. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15468. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15469. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15470. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15471. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15472. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15473. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15474. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15475. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15476. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15477. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15478. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15479. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15480. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15481. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15482. {"INT_FM_TX", NULL, "BE_IN"},
  15483. {"PCM_TX", NULL, "BE_IN"},
  15484. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15485. {"BE_OUT", NULL, "STUB_RX"},
  15486. {"STUB_TX", NULL, "BE_IN"},
  15487. {"STUB_1_TX", NULL, "BE_IN"},
  15488. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15489. {"AUX_PCM_TX", NULL, "BE_IN"},
  15490. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15491. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15492. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15493. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15494. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15495. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15496. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15497. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15498. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15499. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15500. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15501. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15502. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15503. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15504. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15505. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15506. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15507. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15508. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15509. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15510. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15511. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15512. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15513. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15514. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15515. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15516. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15517. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15518. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15519. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15520. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15521. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15522. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15523. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15524. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15525. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15526. };
  15527. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15528. struct snd_pcm_hw_params *params)
  15529. {
  15530. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15531. unsigned int be_id = rtd->dai_link->id;
  15532. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15533. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15534. return -EINVAL;
  15535. }
  15536. mutex_lock(&routing_lock);
  15537. msm_bedais[be_id].sample_rate = params_rate(params);
  15538. msm_bedais[be_id].channel = params_channels(params);
  15539. msm_bedais[be_id].format = params_format(params);
  15540. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15541. __func__, msm_bedais[be_id].sample_rate,
  15542. msm_bedais[be_id].format, be_id);
  15543. mutex_unlock(&routing_lock);
  15544. return 0;
  15545. }
  15546. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15547. {
  15548. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15549. unsigned int be_id = rtd->dai_link->id;
  15550. int i, session_type, path_type, topology;
  15551. struct msm_pcm_routing_bdai_data *bedai;
  15552. struct msm_pcm_routing_fdai_data *fdai;
  15553. pr_debug("%s: substream->pcm->id:%s\n",
  15554. __func__, substream->pcm->id);
  15555. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15556. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15557. return -EINVAL;
  15558. }
  15559. bedai = &msm_bedais[be_id];
  15560. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15561. 0 : 1);
  15562. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15563. path_type = ADM_PATH_PLAYBACK;
  15564. else
  15565. path_type = ADM_PATH_LIVE_REC;
  15566. mutex_lock(&routing_lock);
  15567. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15568. if (!is_mm_lsm_fe_id(i))
  15569. continue;
  15570. fdai = &fe_dai_map[i][session_type];
  15571. if (fdai->strm_id != INVALID_SESSION) {
  15572. int idx;
  15573. int port_id;
  15574. unsigned long copp =
  15575. session_copp_map[i][session_type][be_id];
  15576. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15577. if (test_bit(idx, &copp))
  15578. break;
  15579. fdai->be_srate = bedai->sample_rate;
  15580. port_id = bedai->port_id;
  15581. topology = adm_get_topology_for_port_copp_idx(port_id,
  15582. idx);
  15583. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15584. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15585. __func__, copp, i, session_type, be_id,
  15586. topology);
  15587. clear_bit(idx,
  15588. &session_copp_map[i][session_type][be_id]);
  15589. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15590. (bedai->passthr_mode[i] == LEGACY_PCM))
  15591. msm_pcm_routing_deinit_pp(bedai->port_id,
  15592. topology);
  15593. }
  15594. }
  15595. bedai->active = 0;
  15596. bedai->sample_rate = 0;
  15597. bedai->channel = 0;
  15598. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15599. if (bedai->passthr_mode[i] != LISTEN)
  15600. bedai->passthr_mode[i] = LEGACY_PCM;
  15601. }
  15602. mutex_unlock(&routing_lock);
  15603. return 0;
  15604. }
  15605. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15606. {
  15607. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15608. unsigned int be_id = rtd->dai_link->id;
  15609. int i, path_type, topology;
  15610. int session_type = INVALID_SESSION;
  15611. struct msm_pcm_routing_bdai_data *bedai;
  15612. u32 channels, sample_rate;
  15613. uint16_t bits_per_sample = 16, voc_path_type;
  15614. struct msm_pcm_routing_fdai_data *fdai;
  15615. u32 session_id;
  15616. struct media_format_info voc_be_media_format;
  15617. bool is_lsm;
  15618. pr_debug("%s: substream->pcm->id:%s\n",
  15619. __func__, substream->pcm->id);
  15620. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15621. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15622. return -EINVAL;
  15623. }
  15624. bedai = &msm_bedais[be_id];
  15625. mutex_lock(&routing_lock);
  15626. if (bedai->active == 1)
  15627. goto done; /* Ignore prepare if back-end already active */
  15628. /* AFE port is not active at this point. However, still
  15629. * go ahead setting active flag under the notion that
  15630. * QDSP6 is able to handle ADM starting before AFE port
  15631. * is started.
  15632. */
  15633. bedai->active = 1;
  15634. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15635. if (!(is_mm_lsm_fe_id(i) &&
  15636. route_check_fe_id_adm_support(i)))
  15637. continue;
  15638. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15639. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15640. path_type = ADM_PATH_COMPRESSED_RX;
  15641. else
  15642. path_type = ADM_PATH_PLAYBACK;
  15643. session_type = SESSION_TYPE_RX;
  15644. } else {
  15645. path_type = ADM_PATH_LIVE_REC;
  15646. session_type = SESSION_TYPE_TX;
  15647. }
  15648. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15649. (i <= MSM_FRONTEND_DAI_LSM8);
  15650. fdai = &fe_dai_map[i][session_type];
  15651. if (fdai->strm_id != INVALID_SESSION) {
  15652. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15653. if (session_type == SESSION_TYPE_TX &&
  15654. fdai->be_srate &&
  15655. (fdai->be_srate != bedai->sample_rate)) {
  15656. pr_debug("%s: flush strm %d diff BE rates\n",
  15657. __func__,
  15658. fdai->strm_id);
  15659. if (fdai->event_info.event_func)
  15660. fdai->event_info.event_func(
  15661. MSM_PCM_RT_EVT_BUF_RECFG,
  15662. fdai->event_info.priv_data);
  15663. fdai->be_srate = 0; /* might not need it */
  15664. }
  15665. bits_per_sample = msm_routing_get_bit_width(
  15666. bedai->format);
  15667. app_type =
  15668. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15669. if (app_type && is_lsm) {
  15670. app_type_idx =
  15671. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15672. sample_rate =
  15673. fe_dai_app_type_cfg[i][session_type][be_id]
  15674. .sample_rate;
  15675. bits_per_sample =
  15676. lsm_app_type_cfg[app_type_idx].bit_width;
  15677. } else if (app_type) {
  15678. app_type_idx =
  15679. msm_pcm_routing_get_app_type_idx(app_type);
  15680. sample_rate =
  15681. fe_dai_app_type_cfg[i][session_type]
  15682. [be_id].sample_rate;
  15683. bits_per_sample =
  15684. app_type_cfg[app_type_idx].bit_width;
  15685. } else
  15686. sample_rate = bedai->sample_rate;
  15687. /*
  15688. * check if ADM needs to be configured with different
  15689. * channel mapping than backend
  15690. */
  15691. if (!bedai->adm_override_ch)
  15692. channels = bedai->channel;
  15693. else
  15694. channels = bedai->adm_override_ch;
  15695. acdb_dev_id =
  15696. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15697. topology = msm_routing_get_adm_topology(i, session_type,
  15698. be_id);
  15699. copp_idx = adm_open(bedai->port_id, path_type,
  15700. sample_rate, channels, topology,
  15701. fdai->perf_mode, bits_per_sample,
  15702. app_type, acdb_dev_id);
  15703. if ((copp_idx < 0) ||
  15704. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15705. pr_err("%s: adm open failed\n", __func__);
  15706. mutex_unlock(&routing_lock);
  15707. return -EINVAL;
  15708. }
  15709. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15710. __func__, i, session_type, be_id);
  15711. set_bit(copp_idx,
  15712. &session_copp_map[i][session_type][be_id]);
  15713. if (msm_is_resample_needed(
  15714. sample_rate,
  15715. bedai->sample_rate))
  15716. adm_copp_mfc_cfg(
  15717. bedai->port_id, copp_idx,
  15718. bedai->sample_rate);
  15719. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15720. fdai->perf_mode,
  15721. bedai->passthr_mode[i]);
  15722. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15723. (bedai->passthr_mode[i] == LEGACY_PCM))
  15724. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15725. topology, channels);
  15726. }
  15727. }
  15728. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15729. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15730. if (session_id) {
  15731. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15732. session_id);
  15733. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15734. voc_path_type = RX_PATH;
  15735. else
  15736. voc_path_type = TX_PATH;
  15737. voc_set_route_flag(session_id, voc_path_type, 1);
  15738. memset(&voc_be_media_format, 0,
  15739. sizeof(struct media_format_info));
  15740. voc_be_media_format.port_id = bedai->port_id;
  15741. voc_be_media_format.num_channels = bedai->channel;
  15742. voc_be_media_format.sample_rate = bedai->sample_rate;
  15743. voc_be_media_format.bits_per_sample = bedai->format;
  15744. /* Defaulting this to 1 for voice call usecases */
  15745. voc_be_media_format.channel_mapping[0] = 1;
  15746. voc_set_device_config(session_id, voc_path_type,
  15747. &voc_be_media_format);
  15748. if (voc_get_route_flag(session_id, RX_PATH) &&
  15749. voc_get_route_flag(session_id, TX_PATH))
  15750. voc_enable_device(session_id);
  15751. }
  15752. }
  15753. /* Check if backend is an external ec ref port and set as needed */
  15754. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15755. memset(&voc_be_media_format, 0,
  15756. sizeof(struct media_format_info));
  15757. /* Get format info for ec ref port from msm_bedais[] */
  15758. voc_be_media_format.port_id = bedai->port_id;
  15759. voc_be_media_format.num_channels = bedai->channel;
  15760. voc_be_media_format.bits_per_sample = bedai->format;
  15761. voc_be_media_format.sample_rate = bedai->sample_rate;
  15762. /* Defaulting this to 1 for voice call usecases */
  15763. voc_be_media_format.channel_mapping[0] = 1;
  15764. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15765. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15766. __func__, voc_be_media_format.port_id,
  15767. voc_be_media_format.num_channels,
  15768. voc_be_media_format.bits_per_sample,
  15769. voc_be_media_format.sample_rate);
  15770. }
  15771. done:
  15772. mutex_unlock(&routing_lock);
  15773. return 0;
  15774. }
  15775. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15776. int fe_id)
  15777. {
  15778. int index, topo_id, be_idx;
  15779. unsigned long pp_config = 0;
  15780. bool mute_on;
  15781. int latency;
  15782. bool compr_passthr_mode = true;
  15783. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15784. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15785. pr_err("%s: Device pp params on invalid port %d\n",
  15786. __func__, port_id);
  15787. return -EINVAL;
  15788. }
  15789. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15790. if (port_id == msm_bedais[be_idx].port_id)
  15791. break;
  15792. }
  15793. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15794. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15795. return -EINVAL;
  15796. }
  15797. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15798. if (msm_bedais_pp_params[index].port_id == port_id)
  15799. break;
  15800. }
  15801. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15802. pr_err("%s: Invalid backend pp params index %d\n",
  15803. __func__, index);
  15804. return -EINVAL;
  15805. }
  15806. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15807. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15808. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15809. __func__, topo_id);
  15810. return -EINVAL;
  15811. }
  15812. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15813. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15814. compr_passthr_mode = false;
  15815. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15816. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15817. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15818. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15819. mute_on = msm_bedais_pp_params[index].mute_on;
  15820. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15821. adm_send_compressed_device_mute(port_id,
  15822. copp_idx,
  15823. mute_on);
  15824. }
  15825. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15826. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15827. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15828. &pp_config);
  15829. latency = msm_bedais_pp_params[index].latency;
  15830. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15831. adm_send_compressed_device_latency(port_id,
  15832. copp_idx,
  15833. latency);
  15834. }
  15835. return 0;
  15836. }
  15837. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15838. struct snd_ctl_elem_value *ucontrol)
  15839. {
  15840. int pp_id = ucontrol->value.integer.value[0];
  15841. int port_id = 0;
  15842. int index, be_idx, i, topo_id, idx;
  15843. bool mute;
  15844. int latency;
  15845. bool compr_passthr_mode = true;
  15846. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15847. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15848. port_id = msm_bedais[be_idx].port_id;
  15849. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15850. break;
  15851. }
  15852. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15853. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15854. return -EINVAL;
  15855. }
  15856. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15857. if (msm_bedais_pp_params[index].port_id == port_id)
  15858. break;
  15859. }
  15860. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15861. pr_err("%s: Invalid pp params backend index %d\n",
  15862. __func__, index);
  15863. return -EINVAL;
  15864. }
  15865. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15866. MSM_FRONTEND_DAI_MM_SIZE) {
  15867. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15868. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15869. compr_passthr_mode = false;
  15870. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15871. unsigned long copp =
  15872. session_copp_map[i]
  15873. [SESSION_TYPE_RX][be_idx];
  15874. if (!test_bit(idx, &copp))
  15875. continue;
  15876. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15877. idx);
  15878. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15879. continue;
  15880. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15881. __func__, port_id, copp, msm_bedais[be_idx].active,
  15882. msm_bedais[be_idx].passthr_mode[i]);
  15883. switch (pp_id) {
  15884. case ADM_PP_PARAM_MUTE_ID:
  15885. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15886. mute = ucontrol->value.integer.value[1] ? true : false;
  15887. msm_bedais_pp_params[index].mute_on = mute;
  15888. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15889. &msm_bedais_pp_params[index].pp_params_config);
  15890. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15891. adm_send_compressed_device_mute(port_id,
  15892. idx, mute);
  15893. break;
  15894. case ADM_PP_PARAM_LATENCY_ID:
  15895. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15896. msm_bedais_pp_params[index].latency =
  15897. ucontrol->value.integer.value[1];
  15898. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15899. &msm_bedais_pp_params[index].pp_params_config);
  15900. latency = msm_bedais_pp_params[index].latency =
  15901. ucontrol->value.integer.value[1];
  15902. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15903. adm_send_compressed_device_latency(port_id,
  15904. idx, latency);
  15905. break;
  15906. default:
  15907. pr_info("%s, device pp param %d not supported\n",
  15908. __func__, pp_id);
  15909. break;
  15910. }
  15911. }
  15912. }
  15913. return 0;
  15914. }
  15915. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15916. struct snd_ctl_elem_value *ucontrol)
  15917. {
  15918. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15919. return 0;
  15920. }
  15921. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15922. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15923. 0, 3, msm_routing_get_device_pp_params_mixer,
  15924. msm_routing_put_device_pp_params_mixer),
  15925. };
  15926. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15927. struct snd_ctl_elem_value *ucontrol)
  15928. {
  15929. ucontrol->value.integer.value[0] =
  15930. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15931. pr_debug("%s: status %ld\n", __func__,
  15932. ucontrol->value.integer.value[0]);
  15933. return 0;
  15934. }
  15935. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15936. struct snd_ctl_elem_value *ucontrol)
  15937. {
  15938. int32_t status = 0;
  15939. status = core_set_license(ucontrol->value.integer.value[0],
  15940. APTX_CLASSIC_DEC_LICENSE_ID);
  15941. pr_debug("%s: status %d\n", __func__, status);
  15942. return status;
  15943. }
  15944. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15945. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15946. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15947. msm_aptx_dec_license_control_put),
  15948. };
  15949. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15950. struct snd_ctl_elem_info *uinfo)
  15951. {
  15952. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15953. uinfo->count = sizeof(be_dai_name_table);
  15954. return 0;
  15955. }
  15956. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15957. unsigned int __user *bytes,
  15958. unsigned int size)
  15959. {
  15960. int i;
  15961. int ret;
  15962. if (size < sizeof(be_dai_name_table)) {
  15963. pr_err("%s: invalid size %d requested, returning\n",
  15964. __func__, size);
  15965. ret = -EINVAL;
  15966. goto done;
  15967. }
  15968. /*
  15969. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15970. * needed when adding new backends
  15971. */
  15972. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15973. be_dai_name_table[i].be_id = i;
  15974. strlcpy(be_dai_name_table[i].be_name,
  15975. msm_bedais[i].name,
  15976. LPASS_BE_NAME_MAX_LENGTH);
  15977. }
  15978. ret = copy_to_user(bytes, &be_dai_name_table,
  15979. sizeof(be_dai_name_table));
  15980. if (ret) {
  15981. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15982. ret = -EFAULT;
  15983. }
  15984. done:
  15985. return ret;
  15986. }
  15987. static const struct snd_kcontrol_new
  15988. msm_routing_be_dai_name_table_mixer_controls[] = {
  15989. {
  15990. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15991. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15992. .info = msm_routing_be_dai_name_table_info,
  15993. .name = "Backend DAI Name Table",
  15994. .tlv.c = snd_soc_bytes_tlv_callback,
  15995. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15996. .max = sizeof(be_dai_name_table),
  15997. .get = msm_routing_be_dai_name_table_tlv_get,
  15998. }
  15999. },
  16000. };
  16001. static int msm_routing_stereo_channel_reverse_control_get(
  16002. struct snd_kcontrol *kcontrol,
  16003. struct snd_ctl_elem_value *ucontrol)
  16004. {
  16005. ucontrol->value.integer.value[0] = swap_ch;
  16006. pr_debug("%s: Swap channel value: %ld\n", __func__,
  16007. ucontrol->value.integer.value[0]);
  16008. return 0;
  16009. }
  16010. static int msm_routing_stereo_channel_reverse_control_put(
  16011. struct snd_kcontrol *kcontrol,
  16012. struct snd_ctl_elem_value *ucontrol)
  16013. {
  16014. int i, idx, be_index, port_id;
  16015. int ret = 0;
  16016. unsigned long copp;
  16017. pr_debug("%s Swap channel value:%ld\n", __func__,
  16018. ucontrol->value.integer.value[0]);
  16019. swap_ch = ucontrol->value.integer.value[0];
  16020. mutex_lock(&routing_lock);
  16021. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16022. port_id = msm_bedais[be_index].port_id;
  16023. if (!msm_bedais[be_index].active)
  16024. continue;
  16025. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16026. MSM_FRONTEND_DAI_MM_SIZE) {
  16027. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  16028. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16029. if (!test_bit(idx, &copp))
  16030. continue;
  16031. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  16032. __func__, port_id, idx);
  16033. ret = adm_swap_speaker_channels(
  16034. port_id, idx,
  16035. msm_bedais[be_index].sample_rate,
  16036. swap_ch);
  16037. if (ret) {
  16038. pr_err("%s:Swap_channel failed, err=%d\n",
  16039. __func__, ret);
  16040. goto done;
  16041. }
  16042. }
  16043. }
  16044. }
  16045. done:
  16046. mutex_unlock(&routing_lock);
  16047. return ret;
  16048. }
  16049. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  16050. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  16051. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  16052. msm_routing_stereo_channel_reverse_control_put),
  16053. };
  16054. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  16055. .hw_params = msm_pcm_routing_hw_params,
  16056. .close = msm_pcm_routing_close,
  16057. .prepare = msm_pcm_routing_prepare,
  16058. };
  16059. /* Not used but frame seems to require it */
  16060. static int msm_routing_probe(struct snd_soc_platform *platform)
  16061. {
  16062. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  16063. ARRAY_SIZE(msm_qdsp6_widgets));
  16064. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  16065. ARRAY_SIZE(intercon));
  16066. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  16067. snd_soc_add_platform_controls(platform, lsm_controls,
  16068. ARRAY_SIZE(lsm_controls));
  16069. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  16070. ARRAY_SIZE(aanc_slim_0_rx_mux));
  16071. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  16072. ARRAY_SIZE(msm_voc_session_controls));
  16073. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  16074. ARRAY_SIZE(app_type_cfg_controls));
  16075. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  16076. ARRAY_SIZE(lsm_app_type_cfg_controls));
  16077. snd_soc_add_platform_controls(platform, module_cfg_controls,
  16078. ARRAY_SIZE(module_cfg_controls));
  16079. snd_soc_add_platform_controls(platform,
  16080. stereo_to_custom_stereo_controls,
  16081. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  16082. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  16083. ARRAY_SIZE(ec_ref_param_controls));
  16084. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  16085. ARRAY_SIZE(channel_mixer_controls));
  16086. msm_qti_pp_add_controls(platform);
  16087. msm_dts_srs_tm_add_controls(platform);
  16088. msm_dolby_dap_add_controls(platform);
  16089. snd_soc_add_platform_controls(platform,
  16090. use_ds1_or_ds2_controls,
  16091. ARRAY_SIZE(use_ds1_or_ds2_controls));
  16092. snd_soc_add_platform_controls(platform,
  16093. device_pp_params_mixer_controls,
  16094. ARRAY_SIZE(device_pp_params_mixer_controls));
  16095. snd_soc_add_platform_controls(platform,
  16096. msm_routing_be_dai_name_table_mixer_controls,
  16097. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  16098. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  16099. ARRAY_SIZE(msm_source_tracking_controls));
  16100. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  16101. ARRAY_SIZE(adm_channel_config_controls));
  16102. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  16103. ARRAY_SIZE(aptx_dec_license_controls));
  16104. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  16105. ARRAY_SIZE(stereo_channel_reverse_control));
  16106. return 0;
  16107. }
  16108. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  16109. {
  16110. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  16111. }
  16112. void msm_routing_pcm_free(struct snd_pcm *pcm)
  16113. {
  16114. msm_pcm_routing_hwdep_free(pcm);
  16115. }
  16116. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  16117. .ops = &msm_routing_pcm_ops,
  16118. .probe = msm_routing_probe,
  16119. .pcm_new = msm_routing_pcm_new,
  16120. .pcm_free = msm_routing_pcm_free,
  16121. };
  16122. static int msm_routing_pcm_probe(struct platform_device *pdev)
  16123. {
  16124. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  16125. return snd_soc_register_platform(&pdev->dev,
  16126. &msm_soc_routing_platform);
  16127. }
  16128. static int msm_routing_pcm_remove(struct platform_device *pdev)
  16129. {
  16130. snd_soc_unregister_platform(&pdev->dev);
  16131. return 0;
  16132. }
  16133. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  16134. {.compatible = "qcom,msm-pcm-routing"},
  16135. {}
  16136. };
  16137. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  16138. static struct platform_driver msm_routing_pcm_driver = {
  16139. .driver = {
  16140. .name = "msm-pcm-routing",
  16141. .owner = THIS_MODULE,
  16142. .of_match_table = msm_pcm_routing_dt_match,
  16143. },
  16144. .probe = msm_routing_pcm_probe,
  16145. .remove = msm_routing_pcm_remove,
  16146. };
  16147. int msm_routing_check_backend_enabled(int fedai_id)
  16148. {
  16149. int i;
  16150. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  16151. /* bad ID assigned in machine driver */
  16152. pr_err("%s: bad MM ID\n", __func__);
  16153. return 0;
  16154. }
  16155. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16156. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  16157. return msm_bedais[i].active;
  16158. }
  16159. return 0;
  16160. }
  16161. static int get_cal_type_index(int32_t cal_type)
  16162. {
  16163. int ret = -EINVAL;
  16164. switch (cal_type) {
  16165. case ADM_TOPOLOGY_CAL_TYPE:
  16166. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  16167. break;
  16168. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  16169. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  16170. break;
  16171. default:
  16172. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  16173. }
  16174. return ret;
  16175. }
  16176. static int msm_routing_set_cal(int32_t cal_type,
  16177. size_t data_size, void *data)
  16178. {
  16179. int ret = 0;
  16180. int cal_index;
  16181. pr_debug("%s\n", __func__);
  16182. cal_index = get_cal_type_index(cal_type);
  16183. if (cal_index < 0) {
  16184. pr_err("%s: Could not get cal index %d\n",
  16185. __func__, cal_index);
  16186. ret = -EINVAL;
  16187. goto done;
  16188. }
  16189. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  16190. if (ret < 0) {
  16191. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  16192. __func__, ret, cal_type);
  16193. ret = -EINVAL;
  16194. goto done;
  16195. }
  16196. done:
  16197. return ret;
  16198. }
  16199. static void msm_routing_delete_cal_data(void)
  16200. {
  16201. pr_debug("%s\n", __func__);
  16202. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  16203. }
  16204. static int msm_routing_init_cal_data(void)
  16205. {
  16206. int ret = 0;
  16207. struct cal_type_info cal_type_info[] = {
  16208. {{ADM_TOPOLOGY_CAL_TYPE,
  16209. {NULL, NULL, NULL,
  16210. msm_routing_set_cal, NULL, NULL} },
  16211. {NULL, NULL, cal_utils_match_buf_num} },
  16212. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16213. {NULL, NULL, NULL,
  16214. msm_routing_set_cal, NULL, NULL} },
  16215. {NULL, NULL, cal_utils_match_buf_num} },
  16216. };
  16217. pr_debug("%s\n", __func__);
  16218. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16219. &cal_type_info[0]);
  16220. if (ret < 0) {
  16221. pr_err("%s: could not create cal type!\n",
  16222. __func__);
  16223. ret = -EINVAL;
  16224. goto err;
  16225. }
  16226. return ret;
  16227. err:
  16228. msm_routing_delete_cal_data();
  16229. return ret;
  16230. }
  16231. int __init msm_soc_routing_platform_init(void)
  16232. {
  16233. mutex_init(&routing_lock);
  16234. if (msm_routing_init_cal_data())
  16235. pr_err("%s: could not init cal data!\n", __func__);
  16236. afe_set_routing_callback(
  16237. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16238. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16239. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16240. return platform_driver_register(&msm_routing_pcm_driver);
  16241. }
  16242. void __exit msm_soc_routing_platform_exit(void)
  16243. {
  16244. msm_routing_delete_cal_data();
  16245. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16246. mutex_destroy(&routing_lock);
  16247. platform_driver_unregister(&msm_routing_pcm_driver);
  16248. }
  16249. MODULE_DESCRIPTION("MSM routing platform driver");
  16250. MODULE_LICENSE("GPL v2");