msm-pcm-routing-v2.c 769 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. #define WEIGHT_0_DB 0x4000
  80. /* all the FEs which can support channel mixer */
  81. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define LSM_FUNCTION_TEXT "LSM Function"
  103. static const char * const lsm_port_text[] = {
  104. "None",
  105. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  106. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  107. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  108. INT3_MI2S_TX_TEXT
  109. };
  110. struct msm_pcm_route_bdai_pp_params {
  111. u16 port_id; /* AFE port ID */
  112. unsigned long pp_params_config;
  113. bool mute_on;
  114. int latency;
  115. };
  116. static struct msm_pcm_route_bdai_pp_params
  117. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  118. {HDMI_RX, 0, 0, 0},
  119. {DISPLAY_PORT_RX, 0, 0, 0},
  120. };
  121. /*
  122. * The be_dai_name_table is passed to HAL so that it can specify the
  123. * BE ID for the BE it wants to enable based on the name. Thus there
  124. * is a matching table and structure in HAL that need to be updated
  125. * if any changes to these are made.
  126. */
  127. struct msm_pcm_route_bdai_name {
  128. unsigned int be_id;
  129. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  130. };
  131. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  132. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  133. int fe_id);
  134. static int msm_routing_get_bit_width(unsigned int format)
  135. {
  136. int bit_width;
  137. switch (format) {
  138. case SNDRV_PCM_FORMAT_S32_LE:
  139. bit_width = 32;
  140. break;
  141. case SNDRV_PCM_FORMAT_S24_LE:
  142. case SNDRV_PCM_FORMAT_S24_3LE:
  143. bit_width = 24;
  144. break;
  145. case SNDRV_PCM_FORMAT_S16_LE:
  146. default:
  147. bit_width = 16;
  148. }
  149. return bit_width;
  150. }
  151. static bool msm_is_resample_needed(int input_sr, int output_sr)
  152. {
  153. bool rc = false;
  154. if (input_sr != output_sr)
  155. rc = true;
  156. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  157. (rc ? "oh yes" : "not really"),
  158. input_sr, output_sr);
  159. return rc;
  160. }
  161. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  162. int channels)
  163. {
  164. int rc = 0;
  165. switch (topology) {
  166. case SRS_TRUMEDIA_TOPOLOGY_ID:
  167. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  168. msm_dts_srs_tm_init(port_id, copp_idx);
  169. break;
  170. case DS2_ADM_COPP_TOPOLOGY_ID:
  171. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  172. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  173. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  174. is_custom_stereo_on);
  175. if (rc < 0)
  176. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  177. __func__, topology, port_id,
  178. is_custom_stereo_on, rc);
  179. break;
  180. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  181. if (is_ds2_on) {
  182. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  183. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  184. is_custom_stereo_on);
  185. if (rc < 0)
  186. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  187. __func__, topology, port_id, rc);
  188. } else {
  189. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  190. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  191. is_custom_stereo_on);
  192. if (rc < 0)
  193. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  194. __func__, topology, port_id, rc);
  195. }
  196. break;
  197. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  198. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  199. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  200. if (rc < 0)
  201. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  202. __func__, topology, port_id, copp_idx, rc);
  203. break;
  204. default:
  205. /* custom topology specific feature param handlers */
  206. break;
  207. }
  208. }
  209. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  210. {
  211. switch (topology) {
  212. case SRS_TRUMEDIA_TOPOLOGY_ID:
  213. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  214. msm_dts_srs_tm_deinit(port_id);
  215. break;
  216. case DS2_ADM_COPP_TOPOLOGY_ID:
  217. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  218. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  219. msm_ds2_dap_deinit(port_id);
  220. break;
  221. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  222. if (is_ds2_on) {
  223. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  224. msm_ds2_dap_deinit(port_id);
  225. } else {
  226. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  227. msm_dolby_dap_deinit(port_id);
  228. }
  229. break;
  230. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  231. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  232. msm_qti_pp_asphere_deinit(port_id);
  233. break;
  234. default:
  235. /* custom topology specific feature deinit handlers */
  236. break;
  237. }
  238. }
  239. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  240. int path_type, int perf_mode)
  241. {
  242. int itr = 0, rc = 0;
  243. if ((path_type == ADM_PATH_PLAYBACK) &&
  244. (perf_mode == LEGACY_PCM_MODE) &&
  245. is_custom_stereo_on) {
  246. for (itr = 0; itr < payload.num_copps; itr++) {
  247. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  248. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  249. continue;
  250. }
  251. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  252. payload.port_id[itr],
  253. payload.copp_idx[itr],
  254. payload.session_id,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE);
  259. if (rc < 0)
  260. pr_err("%s: err setting custom stereo\n",
  261. __func__);
  262. }
  263. }
  264. }
  265. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  266. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  267. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  268. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  269. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  270. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  271. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  272. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  273. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  274. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  275. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  276. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_RX},
  278. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AFE_PCM_TX},
  280. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_RX},
  282. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_AUXPCM_TX},
  284. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE_PLAYBACK_TX},
  286. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_VOICE2_PLAYBACK_TX},
  288. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_RX},
  290. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  291. LPASS_BE_INCALL_RECORD_TX},
  292. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  293. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  294. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  295. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  296. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  297. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  298. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  299. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  300. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  301. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  302. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  303. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  304. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  305. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  306. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  307. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  308. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  309. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  310. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  312. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_RX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_QUAT_MI2S_TX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_RX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_SEC_MI2S_TX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_RX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_PRI_MI2S_TX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_RX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_TERT_MI2S_TX},
  330. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_AUDIO_I2S_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SEC_AUXPCM_TX},
  336. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SPDIF_RX},
  338. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_SEC_MI2S_RX_SD1},
  340. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_RX},
  342. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_QUIN_MI2S_TX},
  344. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_SENARY_MI2S_TX},
  346. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_RX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_TX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_RX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_TX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_RX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_TX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_RX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_TX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_RX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_TX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_RX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_TX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_RX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_TX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_RX_7},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_PRI_TDM_TX_7},
  378. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_RX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_TX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_RX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_TX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_RX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_TX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_RX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_TX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_RX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_TX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_RX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_TX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_RX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_TX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_RX_7},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_SEC_TDM_TX_7},
  410. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_RX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_TX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_RX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_TX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_RX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_TX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_RX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_TX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_RX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_TX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_RX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_TX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_RX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_TX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_RX_7},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_TERT_TDM_TX_7},
  442. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_RX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_TX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_RX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_TX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_RX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_TX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_RX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_TX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_RX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_TX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_RX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_TX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_RX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_TX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_RX_7},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUAT_TDM_TX_7},
  474. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_RX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_TX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_RX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_TX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_RX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_TX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_RX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_TX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_RX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_TX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_RX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_TX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_RX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_TX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_RX_7},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_QUIN_TDM_TX_7},
  506. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_INT_BT_A2DP_RX},
  508. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_RX},
  510. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_USB_AUDIO_TX},
  512. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_DISPLAY_PORT},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_DISPLAY_PORT1},
  516. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_TERT_AUXPCM_RX},
  518. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_TERT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUAT_AUXPCM_RX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUAT_AUXPCM_TX},
  524. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_QUIN_AUXPCM_RX},
  526. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_QUIN_AUXPCM_TX},
  528. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT0_MI2S_RX},
  530. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT0_MI2S_TX},
  532. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT1_MI2S_RX},
  534. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT1_MI2S_TX},
  536. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT2_MI2S_RX},
  538. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT2_MI2S_TX},
  540. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT3_MI2S_RX},
  542. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT3_MI2S_TX},
  544. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT4_MI2S_RX},
  546. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT4_MI2S_TX},
  548. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT5_MI2S_RX},
  550. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT5_MI2S_TX},
  552. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  553. LPASS_BE_INT6_MI2S_RX},
  554. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  555. LPASS_BE_INT6_MI2S_TX},
  556. };
  557. /* Track ASM playback & capture sessions of DAI
  558. * Track LSM listen sessions
  559. */
  560. static struct msm_pcm_routing_fdai_data
  561. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  562. /* MULTIMEDIA1 */
  563. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  564. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  565. /* MULTIMEDIA2 */
  566. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  567. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  568. /* MULTIMEDIA3 */
  569. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  570. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  571. /* MULTIMEDIA4 */
  572. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  573. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  574. /* MULTIMEDIA5 */
  575. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  576. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  577. /* MULTIMEDIA6 */
  578. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  579. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  580. /* MULTIMEDIA7*/
  581. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  582. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  583. /* MULTIMEDIA8 */
  584. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  585. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  586. /* MULTIMEDIA9 */
  587. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  588. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  589. /* MULTIMEDIA10 */
  590. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  591. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  592. /* MULTIMEDIA11 */
  593. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  594. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  595. /* MULTIMEDIA12 */
  596. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  597. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  598. /* MULTIMEDIA13 */
  599. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  600. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  601. /* MULTIMEDIA14 */
  602. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  603. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  604. /* MULTIMEDIA15 */
  605. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  606. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  607. /* MULTIMEDIA16 */
  608. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  609. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  610. /* MULTIMEDIA17 */
  611. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  612. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  613. /* MULTIMEDIA18 */
  614. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  615. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  616. /* MULTIMEDIA19 */
  617. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  618. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  619. /* MULTIMEDIA20 */
  620. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  621. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  622. /* MULTIMEDIA28 */
  623. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  624. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  625. /* MULTIMEDIA29 */
  626. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  627. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  628. /* VOIP */
  629. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  630. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  631. /* AFE_RX */
  632. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  633. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  634. /* AFE_TX */
  635. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  636. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  637. /* VOICE_STUB */
  638. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  639. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  640. /* DTMF_RX */
  641. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  642. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  643. /* QCHAT */
  644. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  645. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  646. /* VOLTE_STUB */
  647. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  648. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  649. /* LSM1 */
  650. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  651. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  652. /* LSM2 */
  653. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  654. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  655. /* LSM3 */
  656. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  657. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  658. /* LSM4 */
  659. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  660. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  661. /* LSM5 */
  662. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  663. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  664. /* LSM6 */
  665. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  666. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  667. /* LSM7 */
  668. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  669. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  670. /* LSM8 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  673. /* VOICE2_STUB */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  676. /* VOICEMMODE1 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  679. /* VOICEMMODE2 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  682. };
  683. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  684. [MSM_BACKEND_DAI_MAX];
  685. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  686. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  687. static struct msm_pcm_stream_app_type_cfg
  688. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  689. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  690. /* The caller of this should aqcuire routing lock */
  691. void msm_pcm_routing_get_bedai_info(int be_idx,
  692. struct msm_pcm_routing_bdai_data *be_dai)
  693. {
  694. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  695. memcpy(be_dai, &msm_bedais[be_idx],
  696. sizeof(struct msm_pcm_routing_bdai_data));
  697. }
  698. /* The caller of this should aqcuire routing lock */
  699. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  700. struct msm_pcm_routing_fdai_data *fe_dai)
  701. {
  702. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  703. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  704. sizeof(struct msm_pcm_routing_fdai_data));
  705. }
  706. void msm_pcm_routing_acquire_lock(void)
  707. {
  708. mutex_lock(&routing_lock);
  709. }
  710. void msm_pcm_routing_release_lock(void)
  711. {
  712. mutex_unlock(&routing_lock);
  713. }
  714. static int msm_pcm_routing_get_app_type_idx(int app_type)
  715. {
  716. int idx;
  717. pr_debug("%s: app_type: %d\n", __func__, app_type);
  718. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  719. if (app_type_cfg[idx].app_type == app_type)
  720. return idx;
  721. }
  722. pr_info("%s: App type not available, fallback to default\n", __func__);
  723. return 0;
  724. }
  725. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  726. {
  727. int idx;
  728. pr_debug("%s: app_type: %d\n", __func__, app_type);
  729. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  730. if (lsm_app_type_cfg[idx].app_type == app_type)
  731. return idx;
  732. }
  733. pr_debug("%s: App type not available, fallback to default\n", __func__);
  734. return 0;
  735. }
  736. static bool is_mm_lsm_fe_id(int fe_id)
  737. {
  738. bool rc = true;
  739. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  740. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  741. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  742. rc = false;
  743. }
  744. return rc;
  745. }
  746. int msm_pcm_routing_reg_stream_app_type_cfg(
  747. int fedai_id, int session_type, int be_id,
  748. struct msm_pcm_stream_app_type_cfg *cfg_data)
  749. {
  750. int ret = 0;
  751. if (cfg_data == NULL) {
  752. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  753. ret = -EINVAL;
  754. goto done;
  755. }
  756. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  757. __func__, fedai_id, session_type, be_id,
  758. cfg_data->app_type, cfg_data->acdb_dev_id,
  759. cfg_data->sample_rate);
  760. if (!is_mm_lsm_fe_id(fedai_id)) {
  761. pr_err("%s: Invalid machine driver ID %d\n",
  762. __func__, fedai_id);
  763. ret = -EINVAL;
  764. goto done;
  765. }
  766. if (session_type != SESSION_TYPE_RX &&
  767. session_type != SESSION_TYPE_TX) {
  768. pr_err("%s: Invalid session type %d\n",
  769. __func__, session_type);
  770. ret = -EINVAL;
  771. goto done;
  772. }
  773. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  774. pr_err("%s: Received out of bounds be_id %d\n",
  775. __func__, be_id);
  776. ret = -EINVAL;
  777. goto done;
  778. }
  779. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  780. /*
  781. * Store the BE ID of the configuration information set as the latest so
  782. * the get mixer control knows what to return.
  783. */
  784. last_be_id_configured[fedai_id][session_type] = be_id;
  785. done:
  786. return ret;
  787. }
  788. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  789. /**
  790. * msm_pcm_routing_get_stream_app_type_cfg
  791. *
  792. * Receives fedai_id, session_type, be_id, and populates app_type,
  793. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  794. * -EINVAL and does not alter passed values.
  795. *
  796. * fedai_id - Passed value, front end ID for which app type config is wanted
  797. * session_type - Passed value, session type for which app type config
  798. * is wanted
  799. * be_id - Returned value, back end device id the app type config data is for
  800. * cfg_data - Returned value, configuration data used by app type config
  801. */
  802. int msm_pcm_routing_get_stream_app_type_cfg(
  803. int fedai_id, int session_type, int *bedai_id,
  804. struct msm_pcm_stream_app_type_cfg *cfg_data)
  805. {
  806. int be_id;
  807. int ret = 0;
  808. if (bedai_id == NULL) {
  809. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  810. ret = -EINVAL;
  811. goto done;
  812. } else if (cfg_data == NULL) {
  813. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  814. ret = -EINVAL;
  815. goto done;
  816. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  817. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  818. ret = -EINVAL;
  819. goto done;
  820. } else if (session_type != SESSION_TYPE_RX &&
  821. session_type != SESSION_TYPE_TX) {
  822. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  823. ret = -EINVAL;
  824. goto done;
  825. }
  826. be_id = last_be_id_configured[fedai_id][session_type];
  827. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  828. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  829. ret = -EINVAL;
  830. goto done;
  831. }
  832. *bedai_id = be_id;
  833. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  834. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  835. __func__, fedai_id, session_type, *bedai_id,
  836. cfg_data->app_type, cfg_data->acdb_dev_id,
  837. cfg_data->sample_rate);
  838. done:
  839. return ret;
  840. }
  841. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  842. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  843. int cal_index)
  844. {
  845. struct list_head *ptr, *next;
  846. struct cal_block_data *cal_block = NULL;
  847. pr_debug("%s\n", __func__);
  848. list_for_each_safe(ptr, next,
  849. &cal_data[cal_index]->cal_blocks) {
  850. cal_block = list_entry(ptr,
  851. struct cal_block_data, list);
  852. if (cal_utils_is_cal_stale(cal_block))
  853. continue;
  854. if (((struct audio_cal_info_adm_top *)cal_block
  855. ->cal_info)->path == path) {
  856. return cal_block;
  857. }
  858. }
  859. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  860. return NULL;
  861. }
  862. static struct cal_block_data *msm_routing_find_topology(int path,
  863. int app_type,
  864. int acdb_id,
  865. int cal_index)
  866. {
  867. struct list_head *ptr, *next;
  868. struct cal_block_data *cal_block = NULL;
  869. struct audio_cal_info_adm_top *cal_info;
  870. pr_debug("%s\n", __func__);
  871. list_for_each_safe(ptr, next,
  872. &cal_data[cal_index]->cal_blocks) {
  873. cal_block = list_entry(ptr,
  874. struct cal_block_data, list);
  875. if (cal_utils_is_cal_stale(cal_block))
  876. continue;
  877. cal_info = (struct audio_cal_info_adm_top *)
  878. cal_block->cal_info;
  879. if ((cal_info->path == path) &&
  880. (cal_info->app_type == app_type) &&
  881. (cal_info->acdb_id == acdb_id)) {
  882. return cal_block;
  883. }
  884. }
  885. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  886. __func__, path, app_type, acdb_id);
  887. return msm_routing_find_topology_by_path(path, cal_index);
  888. }
  889. /*
  890. * Retrieving cal_block will mark cal_block as stale.
  891. * Hence it cannot be reused or resent unless the flag
  892. * is reset.
  893. */
  894. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  895. int be_id)
  896. {
  897. int topology = NULL_COPP_TOPOLOGY;
  898. struct cal_block_data *cal_block = NULL;
  899. int app_type = 0, acdb_dev_id = 0;
  900. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  901. __func__, fedai_id, session_type, be_id);
  902. if (cal_data == NULL)
  903. goto done;
  904. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  905. acdb_dev_id =
  906. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  907. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  908. cal_block = msm_routing_find_topology(session_type, app_type,
  909. acdb_dev_id,
  910. ADM_TOPOLOGY_CAL_TYPE_IDX);
  911. if (cal_block != NULL) {
  912. topology = ((struct audio_cal_info_adm_top *)
  913. cal_block->cal_info)->topology;
  914. cal_utils_mark_cal_used(cal_block);
  915. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  916. } else {
  917. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  918. pr_debug("%s: Check for LSM topology\n", __func__);
  919. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  920. cal_block = msm_routing_find_topology(session_type, app_type,
  921. acdb_dev_id,
  922. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  923. if (cal_block != NULL) {
  924. topology = ((struct audio_cal_info_adm_top *)
  925. cal_block->cal_info)->topology;
  926. cal_utils_mark_cal_used(cal_block);
  927. }
  928. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  929. }
  930. done:
  931. pr_debug("%s: Using topology %d\n", __func__, topology);
  932. return topology;
  933. }
  934. static uint8_t is_be_dai_extproc(int be_dai)
  935. {
  936. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  937. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  938. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  939. return 1;
  940. else
  941. return 0;
  942. }
  943. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  944. int path_type, int perf_mode,
  945. uint32_t passthr_mode)
  946. {
  947. int i, port_type, j, num_copps = 0;
  948. struct route_payload payload;
  949. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  950. path_type == ADM_PATH_COMPRESSED_RX) ?
  951. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  952. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  953. if (!is_be_dai_extproc(i) &&
  954. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  955. (msm_bedais[i].active) &&
  956. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  957. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  958. unsigned long copp =
  959. session_copp_map[fedai_id][sess_type][i];
  960. if (test_bit(j, &copp)) {
  961. payload.port_id[num_copps] =
  962. msm_bedais[i].port_id;
  963. payload.copp_idx[num_copps] = j;
  964. payload.app_type[num_copps] =
  965. fe_dai_app_type_cfg
  966. [fedai_id][sess_type][i]
  967. .app_type;
  968. payload.acdb_dev_id[num_copps] =
  969. fe_dai_app_type_cfg
  970. [fedai_id][sess_type][i]
  971. .acdb_dev_id;
  972. payload.sample_rate[num_copps] =
  973. fe_dai_app_type_cfg
  974. [fedai_id][sess_type][i]
  975. .sample_rate;
  976. num_copps++;
  977. }
  978. }
  979. }
  980. }
  981. if (num_copps) {
  982. payload.num_copps = num_copps;
  983. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  984. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  985. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  986. }
  987. }
  988. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  989. int stream_type)
  990. {
  991. int i, session_type, path_type, port_type;
  992. u32 mode = 0;
  993. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  994. /* bad ID assigned in machine driver */
  995. pr_err("%s: bad MM ID\n", __func__);
  996. return;
  997. }
  998. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  999. session_type = SESSION_TYPE_RX;
  1000. path_type = ADM_PATH_PLAYBACK;
  1001. port_type = MSM_AFE_PORT_TYPE_RX;
  1002. } else {
  1003. session_type = SESSION_TYPE_TX;
  1004. path_type = ADM_PATH_LIVE_REC;
  1005. port_type = MSM_AFE_PORT_TYPE_TX;
  1006. }
  1007. mutex_lock(&routing_lock);
  1008. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1009. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1010. if (!is_be_dai_extproc(i) &&
  1011. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1012. (msm_bedais[i].active) &&
  1013. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1014. mode = afe_get_port_type(msm_bedais[i].port_id);
  1015. adm_connect_afe_port(mode, dspst_id,
  1016. msm_bedais[i].port_id);
  1017. break;
  1018. }
  1019. }
  1020. mutex_unlock(&routing_lock);
  1021. }
  1022. static bool route_check_fe_id_adm_support(int fe_id)
  1023. {
  1024. bool rc = true;
  1025. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1026. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1027. /* fe id is listen while port is set to afe */
  1028. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1029. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1030. __func__, fe_id, lsm_port_index);
  1031. rc = false;
  1032. }
  1033. }
  1034. return rc;
  1035. }
  1036. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1037. int dspst_id, int stream_type,
  1038. uint32_t passthr_mode)
  1039. {
  1040. int i, j, session_type, path_type, port_type, topology;
  1041. int num_copps = 0;
  1042. struct route_payload payload;
  1043. u32 channels, sample_rate;
  1044. u16 bit_width = 16;
  1045. bool is_lsm;
  1046. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1047. __func__, fe_id, perf_mode, dspst_id,
  1048. stream_type, passthr_mode);
  1049. if (!is_mm_lsm_fe_id(fe_id)) {
  1050. /* bad ID assigned in machine driver */
  1051. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1052. return -EINVAL;
  1053. }
  1054. if (!route_check_fe_id_adm_support(fe_id)) {
  1055. /* ignore adm open if not supported for fe_id */
  1056. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1057. return 0;
  1058. }
  1059. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1060. session_type = SESSION_TYPE_RX;
  1061. if (passthr_mode != LEGACY_PCM)
  1062. path_type = ADM_PATH_COMPRESSED_RX;
  1063. else
  1064. path_type = ADM_PATH_PLAYBACK;
  1065. port_type = MSM_AFE_PORT_TYPE_RX;
  1066. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1067. session_type = SESSION_TYPE_TX;
  1068. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1069. path_type = ADM_PATH_COMPRESSED_TX;
  1070. else
  1071. path_type = ADM_PATH_LIVE_REC;
  1072. port_type = MSM_AFE_PORT_TYPE_TX;
  1073. } else {
  1074. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1075. return -EINVAL;
  1076. }
  1077. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1078. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1079. mutex_lock(&routing_lock);
  1080. payload.num_copps = 0; /* only RX needs to use payload */
  1081. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1082. /* re-enable EQ if active */
  1083. msm_qti_pp_send_eq_values(fe_id);
  1084. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1085. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1086. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1087. if (!is_be_dai_extproc(i) &&
  1088. (afe_get_port_type(msm_bedais[i].port_id) ==
  1089. port_type) &&
  1090. (msm_bedais[i].active) &&
  1091. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1092. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1093. /*
  1094. * check if ADM needs to be configured with different
  1095. * channel mapping than backend
  1096. */
  1097. if (!msm_bedais[i].adm_override_ch)
  1098. channels = msm_bedais[i].channel;
  1099. else
  1100. channels = msm_bedais[i].adm_override_ch;
  1101. bit_width = msm_routing_get_bit_width(
  1102. msm_bedais[i].format);
  1103. app_type =
  1104. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1105. if (app_type && is_lsm) {
  1106. app_type_idx =
  1107. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1108. sample_rate =
  1109. fe_dai_app_type_cfg[fe_id][session_type][i]
  1110. .sample_rate;
  1111. bit_width =
  1112. lsm_app_type_cfg[app_type_idx].bit_width;
  1113. } else if (app_type) {
  1114. app_type_idx =
  1115. msm_pcm_routing_get_app_type_idx(
  1116. app_type);
  1117. sample_rate =
  1118. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1119. bit_width =
  1120. app_type_cfg[app_type_idx].bit_width;
  1121. } else {
  1122. sample_rate = msm_bedais[i].sample_rate;
  1123. }
  1124. acdb_dev_id =
  1125. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1126. topology = msm_routing_get_adm_topology(fe_id,
  1127. session_type,
  1128. i);
  1129. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1130. || (passthr_mode ==
  1131. COMPRESSED_PASSTHROUGH_GEN))
  1132. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1133. pr_debug("%s: Before adm open topology %d\n", __func__,
  1134. topology);
  1135. copp_idx =
  1136. adm_open(msm_bedais[i].port_id,
  1137. path_type, sample_rate, channels,
  1138. topology, perf_mode, bit_width,
  1139. app_type, acdb_dev_id);
  1140. if ((copp_idx < 0) ||
  1141. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1142. pr_err("%s:adm open failed coppid:%d\n",
  1143. __func__, copp_idx);
  1144. mutex_unlock(&routing_lock);
  1145. return -EINVAL;
  1146. }
  1147. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1148. __func__, fe_id, session_type, i);
  1149. set_bit(copp_idx,
  1150. &session_copp_map[fe_id][session_type][i]);
  1151. if (msm_is_resample_needed(
  1152. sample_rate,
  1153. msm_bedais[i].sample_rate))
  1154. adm_copp_mfc_cfg(
  1155. msm_bedais[i].port_id, copp_idx,
  1156. msm_bedais[i].sample_rate);
  1157. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1158. unsigned long copp =
  1159. session_copp_map[fe_id][session_type][i];
  1160. if (test_bit(j, &copp)) {
  1161. payload.port_id[num_copps] =
  1162. msm_bedais[i].port_id;
  1163. payload.copp_idx[num_copps] = j;
  1164. payload.app_type[num_copps] =
  1165. fe_dai_app_type_cfg
  1166. [fe_id][session_type][i]
  1167. .app_type;
  1168. payload.acdb_dev_id[num_copps] =
  1169. fe_dai_app_type_cfg
  1170. [fe_id][session_type][i]
  1171. .acdb_dev_id;
  1172. payload.sample_rate[num_copps] =
  1173. fe_dai_app_type_cfg
  1174. [fe_id][session_type][i]
  1175. .sample_rate;
  1176. num_copps++;
  1177. }
  1178. }
  1179. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1180. && passthr_mode !=
  1181. COMPRESSED_PASSTHROUGH_GEN) {
  1182. msm_routing_send_device_pp_params(
  1183. msm_bedais[i].port_id,
  1184. copp_idx, fe_id);
  1185. }
  1186. }
  1187. }
  1188. if (num_copps) {
  1189. payload.num_copps = num_copps;
  1190. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1191. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1192. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1193. }
  1194. mutex_unlock(&routing_lock);
  1195. return 0;
  1196. }
  1197. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1198. {
  1199. u32 session_id;
  1200. switch (val) {
  1201. case MSM_FRONTEND_DAI_QCHAT:
  1202. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1203. break;
  1204. case MSM_FRONTEND_DAI_VOIP:
  1205. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1206. break;
  1207. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1208. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1209. break;
  1210. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1211. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1212. break;
  1213. default:
  1214. session_id = 0;
  1215. }
  1216. pr_debug("%s session_id 0x%x", __func__, session_id);
  1217. return session_id;
  1218. }
  1219. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1220. int dspst_id, int stream_type)
  1221. {
  1222. int copp_idx = 0;
  1223. int sess_type = 0;
  1224. int i = 0, j = 0, be_id;
  1225. int ret = 0;
  1226. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1227. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1228. return 0;
  1229. }
  1230. if (!(channel_mixer[fe_id].enable)) {
  1231. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1232. __func__, fe_id);
  1233. return 0;
  1234. }
  1235. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1236. sess_type = SESSION_TYPE_RX;
  1237. else
  1238. sess_type = SESSION_TYPE_TX;
  1239. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1240. ++i) {
  1241. be_id = channel_input[fe_id][i] - 1;
  1242. channel_mixer[fe_id].input_channels[i] =
  1243. msm_bedais[be_id].channel;
  1244. if ((msm_bedais[be_id].active) &&
  1245. test_bit(fe_id,
  1246. &msm_bedais[be_id].fe_sessions[0])) {
  1247. unsigned long copp =
  1248. session_copp_map[fe_id][sess_type][be_id];
  1249. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1250. if (test_bit(j, &copp)) {
  1251. copp_idx = j;
  1252. break;
  1253. }
  1254. }
  1255. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1256. __func__,
  1257. fe_id, be_id, msm_bedais[be_id].channel,
  1258. copp_idx);
  1259. ret = adm_programable_channel_mixer(
  1260. msm_bedais[be_id].port_id,
  1261. copp_idx, dspst_id, sess_type,
  1262. channel_mixer + fe_id, i);
  1263. }
  1264. }
  1265. return ret;
  1266. }
  1267. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1268. int dspst_id, int stream_type)
  1269. {
  1270. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1271. struct route_payload payload;
  1272. u32 channels, sample_rate;
  1273. uint16_t bits_per_sample = 16;
  1274. uint32_t passthr_mode = LEGACY_PCM;
  1275. int ret = 0;
  1276. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1277. /* bad ID assigned in machine driver */
  1278. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1279. return -EINVAL;
  1280. }
  1281. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1282. session_type = SESSION_TYPE_RX;
  1283. path_type = ADM_PATH_PLAYBACK;
  1284. port_type = MSM_AFE_PORT_TYPE_RX;
  1285. } else {
  1286. session_type = SESSION_TYPE_TX;
  1287. path_type = ADM_PATH_LIVE_REC;
  1288. port_type = MSM_AFE_PORT_TYPE_TX;
  1289. }
  1290. mutex_lock(&routing_lock);
  1291. payload.num_copps = 0; /* only RX needs to use payload */
  1292. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1293. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1294. /* re-enable EQ if active */
  1295. msm_qti_pp_send_eq_values(fedai_id);
  1296. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1297. if (!is_be_dai_extproc(i) &&
  1298. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1299. (msm_bedais[i].active) &&
  1300. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1301. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1302. /*
  1303. * check if ADM needs to be configured with different
  1304. * channel mapping than backend
  1305. */
  1306. if (!msm_bedais[i].adm_override_ch)
  1307. channels = msm_bedais[i].channel;
  1308. else
  1309. channels = msm_bedais[i].adm_override_ch;
  1310. msm_bedais[i].passthr_mode[fedai_id] =
  1311. LEGACY_PCM;
  1312. bits_per_sample = msm_routing_get_bit_width(
  1313. msm_bedais[i].format);
  1314. app_type =
  1315. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1316. if (app_type) {
  1317. app_type_idx =
  1318. msm_pcm_routing_get_app_type_idx(app_type);
  1319. sample_rate =
  1320. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1321. .sample_rate;
  1322. bits_per_sample =
  1323. app_type_cfg[app_type_idx].bit_width;
  1324. } else
  1325. sample_rate = msm_bedais[i].sample_rate;
  1326. acdb_dev_id =
  1327. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1328. .acdb_dev_id;
  1329. topology = msm_routing_get_adm_topology(fedai_id,
  1330. session_type,
  1331. i);
  1332. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1333. sample_rate, channels, topology,
  1334. perf_mode, bits_per_sample,
  1335. app_type, acdb_dev_id);
  1336. if ((copp_idx < 0) ||
  1337. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1338. pr_err("%s: adm open failed copp_idx:%d\n",
  1339. __func__, copp_idx);
  1340. mutex_unlock(&routing_lock);
  1341. return -EINVAL;
  1342. }
  1343. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1344. __func__, fedai_id, session_type, i);
  1345. set_bit(copp_idx,
  1346. &session_copp_map[fedai_id][session_type][i]);
  1347. if (msm_is_resample_needed(
  1348. sample_rate,
  1349. msm_bedais[i].sample_rate))
  1350. adm_copp_mfc_cfg(
  1351. msm_bedais[i].port_id, copp_idx,
  1352. msm_bedais[i].sample_rate);
  1353. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1354. unsigned long copp =
  1355. session_copp_map[fedai_id][session_type][i];
  1356. if (test_bit(j, &copp)) {
  1357. payload.port_id[num_copps] =
  1358. msm_bedais[i].port_id;
  1359. payload.copp_idx[num_copps] = j;
  1360. payload.app_type[num_copps] =
  1361. fe_dai_app_type_cfg
  1362. [fedai_id][session_type]
  1363. [i].app_type;
  1364. payload.acdb_dev_id[num_copps] =
  1365. fe_dai_app_type_cfg
  1366. [fedai_id][session_type]
  1367. [i].acdb_dev_id;
  1368. payload.sample_rate[num_copps] =
  1369. fe_dai_app_type_cfg
  1370. [fedai_id][session_type]
  1371. [i].sample_rate;
  1372. num_copps++;
  1373. }
  1374. }
  1375. if ((perf_mode == LEGACY_PCM_MODE) &&
  1376. (msm_bedais[i].passthr_mode[fedai_id] ==
  1377. LEGACY_PCM))
  1378. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1379. copp_idx, topology,
  1380. channels);
  1381. }
  1382. }
  1383. if (num_copps) {
  1384. payload.num_copps = num_copps;
  1385. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1386. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1387. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1388. }
  1389. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1390. dspst_id, stream_type);
  1391. mutex_unlock(&routing_lock);
  1392. return ret;
  1393. }
  1394. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1395. int dspst_id, int stream_type,
  1396. struct msm_pcm_routing_evt event_info)
  1397. {
  1398. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1399. stream_type)) {
  1400. pr_err("%s: failed to reg phy stream\n", __func__);
  1401. return -EINVAL;
  1402. }
  1403. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1404. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1405. else
  1406. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1407. return 0;
  1408. }
  1409. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1410. {
  1411. int i, port_type, session_type, path_type, topology;
  1412. struct msm_pcm_routing_fdai_data *fdai;
  1413. if (!is_mm_lsm_fe_id(fedai_id)) {
  1414. /* bad ID assigned in machine driver */
  1415. pr_err("%s: bad MM ID\n", __func__);
  1416. return;
  1417. }
  1418. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1419. port_type = MSM_AFE_PORT_TYPE_RX;
  1420. session_type = SESSION_TYPE_RX;
  1421. path_type = ADM_PATH_PLAYBACK;
  1422. } else {
  1423. port_type = MSM_AFE_PORT_TYPE_TX;
  1424. session_type = SESSION_TYPE_TX;
  1425. path_type = ADM_PATH_LIVE_REC;
  1426. }
  1427. mutex_lock(&routing_lock);
  1428. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1429. if (!is_be_dai_extproc(i) &&
  1430. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1431. (msm_bedais[i].active) &&
  1432. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1433. int idx;
  1434. unsigned long copp =
  1435. session_copp_map[fedai_id][session_type][i];
  1436. fdai = &fe_dai_map[fedai_id][session_type];
  1437. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1438. if (test_bit(idx, &copp))
  1439. break;
  1440. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1441. pr_debug("%s: copp idx is invalid, exiting\n",
  1442. __func__);
  1443. continue;
  1444. }
  1445. topology = adm_get_topology_for_port_copp_idx(
  1446. msm_bedais[i].port_id, idx);
  1447. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1448. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1449. __func__, copp, fedai_id, session_type, i);
  1450. clear_bit(idx,
  1451. &session_copp_map[fedai_id][session_type][i]);
  1452. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1453. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1454. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1455. (msm_bedais[i].passthr_mode[fedai_id] ==
  1456. LEGACY_PCM))
  1457. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1458. topology);
  1459. }
  1460. }
  1461. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1462. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1463. mutex_unlock(&routing_lock);
  1464. }
  1465. /* Check if FE/BE route is set */
  1466. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1467. {
  1468. bool rc = false;
  1469. if (!is_mm_lsm_fe_id(fe_id)) {
  1470. /* recheck FE ID in the mixer control defined in this file */
  1471. pr_err("%s: bad MM ID\n", __func__);
  1472. return rc;
  1473. }
  1474. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1475. rc = true;
  1476. return rc;
  1477. }
  1478. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1479. {
  1480. int session_type, path_type, topology;
  1481. u32 channels, sample_rate;
  1482. uint16_t bits_per_sample = 16;
  1483. struct msm_pcm_routing_fdai_data *fdai;
  1484. uint32_t passthr_mode;
  1485. bool is_lsm;
  1486. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1487. if (!is_mm_lsm_fe_id(val)) {
  1488. /* recheck FE ID in the mixer control defined in this file */
  1489. pr_err("%s: bad MM ID\n", __func__);
  1490. return;
  1491. }
  1492. if (!route_check_fe_id_adm_support(val)) {
  1493. /* ignore adm open if not supported for fe_id */
  1494. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1495. return;
  1496. }
  1497. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1498. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1499. MSM_AFE_PORT_TYPE_RX) {
  1500. session_type = SESSION_TYPE_RX;
  1501. if (passthr_mode != LEGACY_PCM)
  1502. path_type = ADM_PATH_COMPRESSED_RX;
  1503. else
  1504. path_type = ADM_PATH_PLAYBACK;
  1505. } else {
  1506. session_type = SESSION_TYPE_TX;
  1507. if (passthr_mode != LEGACY_PCM)
  1508. path_type = ADM_PATH_COMPRESSED_TX;
  1509. else
  1510. path_type = ADM_PATH_LIVE_REC;
  1511. }
  1512. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1513. (val <= MSM_FRONTEND_DAI_LSM8);
  1514. mutex_lock(&routing_lock);
  1515. if (set) {
  1516. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1517. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1518. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1519. voc_start_playback(set, msm_bedais[reg].port_id);
  1520. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1521. fdai = &fe_dai_map[val][session_type];
  1522. if (msm_bedais[reg].active && fdai->strm_id !=
  1523. INVALID_SESSION) {
  1524. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1525. /*
  1526. * check if ADM needs to be configured with different
  1527. * channel mapping than backend
  1528. */
  1529. if (!msm_bedais[reg].adm_override_ch)
  1530. channels = msm_bedais[reg].channel;
  1531. else
  1532. channels = msm_bedais[reg].adm_override_ch;
  1533. if (session_type == SESSION_TYPE_TX &&
  1534. fdai->be_srate &&
  1535. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1536. pr_debug("%s: flush strm %d diff BE rates\n",
  1537. __func__, fdai->strm_id);
  1538. if (fdai->event_info.event_func)
  1539. fdai->event_info.event_func(
  1540. MSM_PCM_RT_EVT_BUF_RECFG,
  1541. fdai->event_info.priv_data);
  1542. fdai->be_srate = 0; /* might not need it */
  1543. }
  1544. bits_per_sample = msm_routing_get_bit_width(
  1545. msm_bedais[reg].format);
  1546. app_type =
  1547. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1548. if (app_type && is_lsm) {
  1549. app_type_idx =
  1550. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1551. sample_rate =
  1552. fe_dai_app_type_cfg[val][session_type][reg]
  1553. .sample_rate;
  1554. bits_per_sample =
  1555. lsm_app_type_cfg[app_type_idx].bit_width;
  1556. } else if (app_type) {
  1557. app_type_idx =
  1558. msm_pcm_routing_get_app_type_idx(app_type);
  1559. sample_rate =
  1560. fe_dai_app_type_cfg[val][session_type][reg]
  1561. .sample_rate;
  1562. bits_per_sample =
  1563. app_type_cfg[app_type_idx].bit_width;
  1564. } else
  1565. sample_rate = msm_bedais[reg].sample_rate;
  1566. topology = msm_routing_get_adm_topology(val,
  1567. session_type,
  1568. reg);
  1569. acdb_dev_id =
  1570. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1571. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1572. sample_rate, channels, topology,
  1573. fdai->perf_mode, bits_per_sample,
  1574. app_type, acdb_dev_id);
  1575. if ((copp_idx < 0) ||
  1576. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1577. pr_err("%s: adm open failed\n", __func__);
  1578. mutex_unlock(&routing_lock);
  1579. return;
  1580. }
  1581. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1582. __func__, val, session_type, reg);
  1583. set_bit(copp_idx,
  1584. &session_copp_map[val][session_type][reg]);
  1585. if (msm_is_resample_needed(
  1586. sample_rate,
  1587. msm_bedais[reg].sample_rate))
  1588. adm_copp_mfc_cfg(
  1589. msm_bedais[reg].port_id, copp_idx,
  1590. msm_bedais[reg].sample_rate);
  1591. if (session_type == SESSION_TYPE_RX &&
  1592. fdai->event_info.event_func)
  1593. fdai->event_info.event_func(
  1594. MSM_PCM_RT_EVT_DEVSWITCH,
  1595. fdai->event_info.priv_data);
  1596. msm_pcm_routing_build_matrix(val, session_type,
  1597. path_type,
  1598. fdai->perf_mode,
  1599. passthr_mode);
  1600. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1601. (passthr_mode == LEGACY_PCM))
  1602. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1603. copp_idx, topology,
  1604. channels);
  1605. }
  1606. } else {
  1607. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1608. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1609. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1610. voc_start_playback(set, msm_bedais[reg].port_id);
  1611. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1612. fdai = &fe_dai_map[val][session_type];
  1613. if (msm_bedais[reg].active && fdai->strm_id !=
  1614. INVALID_SESSION) {
  1615. int idx;
  1616. int port_id;
  1617. unsigned long copp =
  1618. session_copp_map[val][session_type][reg];
  1619. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1620. if (test_bit(idx, &copp))
  1621. break;
  1622. port_id = msm_bedais[reg].port_id;
  1623. topology = adm_get_topology_for_port_copp_idx(port_id,
  1624. idx);
  1625. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1626. idx);
  1627. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1628. __func__, copp, val, session_type, reg,
  1629. topology);
  1630. clear_bit(idx,
  1631. &session_copp_map[val][session_type][reg]);
  1632. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1633. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1634. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1635. (passthr_mode == LEGACY_PCM))
  1636. msm_pcm_routing_deinit_pp(
  1637. msm_bedais[reg].port_id,
  1638. topology);
  1639. msm_pcm_routing_build_matrix(val, session_type,
  1640. path_type,
  1641. fdai->perf_mode,
  1642. passthr_mode);
  1643. }
  1644. }
  1645. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1646. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1647. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1648. mutex_unlock(&routing_lock);
  1649. }
  1650. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1651. struct snd_ctl_elem_value *ucontrol)
  1652. {
  1653. struct soc_mixer_control *mc =
  1654. (struct soc_mixer_control *)kcontrol->private_value;
  1655. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1656. ucontrol->value.integer.value[0] = 1;
  1657. else
  1658. ucontrol->value.integer.value[0] = 0;
  1659. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1660. ucontrol->value.integer.value[0]);
  1661. return 0;
  1662. }
  1663. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1664. struct snd_ctl_elem_value *ucontrol)
  1665. {
  1666. struct snd_soc_dapm_widget *widget =
  1667. snd_soc_dapm_kcontrol_widget(kcontrol);
  1668. struct soc_mixer_control *mc =
  1669. (struct soc_mixer_control *)kcontrol->private_value;
  1670. struct snd_soc_dapm_update *update = NULL;
  1671. if (ucontrol->value.integer.value[0] &&
  1672. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1673. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1674. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1675. update);
  1676. } else if (!ucontrol->value.integer.value[0] &&
  1677. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1678. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1679. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1680. update);
  1681. }
  1682. return 1;
  1683. }
  1684. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1685. struct snd_ctl_elem_value *ucontrol)
  1686. {
  1687. struct soc_mixer_control *mc =
  1688. (struct soc_mixer_control *)kcontrol->private_value;
  1689. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1690. ucontrol->value.integer.value[0] = 1;
  1691. else
  1692. ucontrol->value.integer.value[0] = 0;
  1693. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1694. ucontrol->value.integer.value[0]);
  1695. return 0;
  1696. }
  1697. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1698. struct snd_ctl_elem_value *ucontrol)
  1699. {
  1700. struct snd_soc_dapm_widget *widget =
  1701. snd_soc_dapm_kcontrol_widget(kcontrol);
  1702. struct soc_mixer_control *mc =
  1703. (struct soc_mixer_control *)kcontrol->private_value;
  1704. struct snd_soc_dapm_update *update = NULL;
  1705. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1706. ucontrol->value.integer.value[0]);
  1707. if (ucontrol->value.integer.value[0]) {
  1708. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1709. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1710. snd_soc_dapm_mixer_update_power(widget->dapm,
  1711. kcontrol, 1, update);
  1712. } else if (!ucontrol->value.integer.value[0]) {
  1713. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1714. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1715. snd_soc_dapm_mixer_update_power(widget->dapm,
  1716. kcontrol, 0, update);
  1717. }
  1718. return 1;
  1719. }
  1720. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1721. {
  1722. u32 session_id = 0;
  1723. u16 path_type;
  1724. struct media_format_info voc_be_media_format;
  1725. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1726. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1727. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1728. __func__, val, session_id);
  1729. mutex_lock(&routing_lock);
  1730. if (set)
  1731. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1732. else
  1733. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1734. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1735. afe_get_port_type(msm_bedais[reg].port_id) ==
  1736. MSM_AFE_PORT_TYPE_RX) {
  1737. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1738. __func__, set, msm_bedais[reg].port_id);
  1739. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1740. }
  1741. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1742. MSM_AFE_PORT_TYPE_RX)
  1743. path_type = RX_PATH;
  1744. else
  1745. path_type = TX_PATH;
  1746. if (set) {
  1747. if (msm_bedais[reg].active) {
  1748. voc_set_route_flag(session_id, path_type, 1);
  1749. memset(&voc_be_media_format, 0,
  1750. sizeof(struct media_format_info));
  1751. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1752. voc_be_media_format.num_channels =
  1753. msm_bedais[reg].channel;
  1754. voc_be_media_format.sample_rate =
  1755. msm_bedais[reg].sample_rate;
  1756. voc_be_media_format.bits_per_sample =
  1757. msm_bedais[reg].format;
  1758. /* Defaulting this to 1 for voice call usecases */
  1759. voc_be_media_format.channel_mapping[0] = 1;
  1760. voc_set_device_config(session_id, path_type,
  1761. &voc_be_media_format);
  1762. if (voc_get_route_flag(session_id, TX_PATH) &&
  1763. voc_get_route_flag(session_id, RX_PATH))
  1764. voc_enable_device(session_id);
  1765. } else {
  1766. pr_debug("%s BE is not active\n", __func__);
  1767. }
  1768. } else {
  1769. voc_set_route_flag(session_id, path_type, 0);
  1770. voc_disable_device(session_id);
  1771. }
  1772. mutex_unlock(&routing_lock);
  1773. }
  1774. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1775. struct snd_ctl_elem_value *ucontrol)
  1776. {
  1777. struct soc_mixer_control *mc =
  1778. (struct soc_mixer_control *)kcontrol->private_value;
  1779. mutex_lock(&routing_lock);
  1780. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1781. ucontrol->value.integer.value[0] = 1;
  1782. else
  1783. ucontrol->value.integer.value[0] = 0;
  1784. mutex_unlock(&routing_lock);
  1785. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1786. ucontrol->value.integer.value[0]);
  1787. return 0;
  1788. }
  1789. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1790. struct snd_ctl_elem_value *ucontrol)
  1791. {
  1792. struct snd_soc_dapm_widget *widget =
  1793. snd_soc_dapm_kcontrol_widget(kcontrol);
  1794. struct soc_mixer_control *mc =
  1795. (struct soc_mixer_control *)kcontrol->private_value;
  1796. struct snd_soc_dapm_update *update = NULL;
  1797. if (ucontrol->value.integer.value[0]) {
  1798. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1799. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1800. update);
  1801. } else {
  1802. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1803. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1804. update);
  1805. }
  1806. return 1;
  1807. }
  1808. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1809. struct snd_ctl_elem_value *ucontrol)
  1810. {
  1811. struct soc_mixer_control *mc =
  1812. (struct soc_mixer_control *)kcontrol->private_value;
  1813. mutex_lock(&routing_lock);
  1814. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1815. ucontrol->value.integer.value[0] = 1;
  1816. else
  1817. ucontrol->value.integer.value[0] = 0;
  1818. mutex_unlock(&routing_lock);
  1819. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1820. ucontrol->value.integer.value[0]);
  1821. return 0;
  1822. }
  1823. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1824. struct snd_ctl_elem_value *ucontrol)
  1825. {
  1826. struct snd_soc_dapm_widget *widget =
  1827. snd_soc_dapm_kcontrol_widget(kcontrol);
  1828. struct soc_mixer_control *mc =
  1829. (struct soc_mixer_control *)kcontrol->private_value;
  1830. struct snd_soc_dapm_update *update = NULL;
  1831. if (ucontrol->value.integer.value[0]) {
  1832. mutex_lock(&routing_lock);
  1833. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1834. mutex_unlock(&routing_lock);
  1835. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1836. update);
  1837. } else {
  1838. mutex_lock(&routing_lock);
  1839. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1840. mutex_unlock(&routing_lock);
  1841. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1842. update);
  1843. }
  1844. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1845. ucontrol->value.integer.value[0]);
  1846. return 1;
  1847. }
  1848. /*
  1849. * Return the mapping between port ID and backend ID to enable the AFE callback
  1850. * to determine the acdb_dev_id from the port id
  1851. */
  1852. int msm_pcm_get_be_id_from_port_id(int port_id)
  1853. {
  1854. int i;
  1855. int be_id = -EINVAL;
  1856. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1857. if (msm_bedais[i].port_id == port_id) {
  1858. be_id = i;
  1859. break;
  1860. }
  1861. }
  1862. return be_id;
  1863. }
  1864. /*
  1865. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1866. * correct AFE calibration information by comparing the header information.
  1867. */
  1868. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1869. {
  1870. int acdb_id = -EINVAL;
  1871. int i = 0;
  1872. int session;
  1873. int port_type = afe_get_port_type(port_id);
  1874. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1875. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1876. __func__, port_id, be_id, port_type);
  1877. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1878. session = SESSION_TYPE_TX;
  1879. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1880. session = SESSION_TYPE_RX;
  1881. } else {
  1882. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1883. acdb_id = -EINVAL;
  1884. goto exit;
  1885. }
  1886. if (be_id < 0) {
  1887. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1888. goto exit;
  1889. }
  1890. mutex_lock(&routing_lock);
  1891. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1892. MSM_FRONTEND_DAI_MAX);
  1893. if (i < MSM_FRONTEND_DAI_MAX)
  1894. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1895. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1896. __func__, i, session, be_id, acdb_id);
  1897. mutex_unlock(&routing_lock);
  1898. exit:
  1899. return acdb_id;
  1900. }
  1901. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1902. struct snd_ctl_elem_value *ucontrol)
  1903. {
  1904. ucontrol->value.integer.value[0] = fm_switch_enable;
  1905. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1906. ucontrol->value.integer.value[0]);
  1907. return 0;
  1908. }
  1909. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1910. struct snd_ctl_elem_value *ucontrol)
  1911. {
  1912. struct snd_soc_dapm_widget *widget =
  1913. snd_soc_dapm_kcontrol_widget(kcontrol);
  1914. struct snd_soc_dapm_update *update = NULL;
  1915. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1916. ucontrol->value.integer.value[0]);
  1917. if (ucontrol->value.integer.value[0])
  1918. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1919. update);
  1920. else
  1921. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1922. update);
  1923. fm_switch_enable = ucontrol->value.integer.value[0];
  1924. return 1;
  1925. }
  1926. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1927. struct snd_ctl_elem_value *ucontrol)
  1928. {
  1929. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1930. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1931. ucontrol->value.integer.value[0]);
  1932. return 0;
  1933. }
  1934. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1935. struct snd_ctl_elem_value *ucontrol)
  1936. {
  1937. struct snd_soc_dapm_widget *widget =
  1938. snd_soc_dapm_kcontrol_widget(kcontrol);
  1939. struct snd_soc_dapm_update *update = NULL;
  1940. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1941. ucontrol->value.integer.value[0]);
  1942. if (ucontrol->value.integer.value[0])
  1943. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1944. 1, update);
  1945. else
  1946. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1947. 0, update);
  1948. hfp_switch_enable = ucontrol->value.integer.value[0];
  1949. return 1;
  1950. }
  1951. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  1952. struct snd_ctl_elem_value *ucontrol)
  1953. {
  1954. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  1955. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  1956. ucontrol->value.integer.value[0]);
  1957. return 0;
  1958. }
  1959. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  1960. struct snd_ctl_elem_value *ucontrol)
  1961. {
  1962. struct snd_soc_dapm_widget *widget =
  1963. snd_soc_dapm_kcontrol_widget(kcontrol);
  1964. struct snd_soc_dapm_update *update = NULL;
  1965. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  1966. ucontrol->value.integer.value[0]);
  1967. a2dp_switch_enable = ucontrol->value.integer.value[0];
  1968. if (a2dp_switch_enable)
  1969. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1970. 1, update);
  1971. else
  1972. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1973. 0, update);
  1974. return 1;
  1975. }
  1976. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1977. struct snd_ctl_elem_value *ucontrol)
  1978. {
  1979. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1980. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1981. ucontrol->value.integer.value[0]);
  1982. return 0;
  1983. }
  1984. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1985. struct snd_ctl_elem_value *ucontrol)
  1986. {
  1987. struct snd_soc_dapm_widget *widget =
  1988. snd_soc_dapm_kcontrol_widget(kcontrol);
  1989. struct snd_soc_dapm_update *update = NULL;
  1990. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1991. ucontrol->value.integer.value[0]);
  1992. if (ucontrol->value.integer.value[0])
  1993. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1994. update);
  1995. else
  1996. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1997. update);
  1998. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1999. return 1;
  2000. }
  2001. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2002. struct snd_ctl_elem_value *ucontrol)
  2003. {
  2004. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2005. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2006. ucontrol->value.integer.value[0]);
  2007. return 0;
  2008. }
  2009. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2010. struct snd_ctl_elem_value *ucontrol)
  2011. {
  2012. struct snd_soc_dapm_widget *widget =
  2013. snd_soc_dapm_kcontrol_widget(kcontrol);
  2014. struct snd_soc_dapm_update *update = NULL;
  2015. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2016. ucontrol->value.integer.value[0]);
  2017. if (ucontrol->value.integer.value[0])
  2018. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2019. update);
  2020. else
  2021. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2022. update);
  2023. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2024. return 1;
  2025. }
  2026. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2027. struct snd_ctl_elem_value *ucontrol)
  2028. {
  2029. ucontrol->value.integer.value[0] = usb_switch_enable;
  2030. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2031. ucontrol->value.integer.value[0]);
  2032. return 0;
  2033. }
  2034. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2035. struct snd_ctl_elem_value *ucontrol)
  2036. {
  2037. struct snd_soc_dapm_widget *widget =
  2038. snd_soc_dapm_kcontrol_widget(kcontrol);
  2039. struct snd_soc_dapm_update *update = NULL;
  2040. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2041. ucontrol->value.integer.value[0]);
  2042. if (ucontrol->value.integer.value[0])
  2043. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2044. 1, update);
  2045. else
  2046. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2047. 0, update);
  2048. usb_switch_enable = ucontrol->value.integer.value[0];
  2049. return 1;
  2050. }
  2051. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2052. struct snd_ctl_elem_value *ucontrol)
  2053. {
  2054. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2055. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2056. ucontrol->value.integer.value[0]);
  2057. return 0;
  2058. }
  2059. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2060. struct snd_ctl_elem_value *ucontrol)
  2061. {
  2062. struct snd_soc_dapm_widget *widget =
  2063. snd_soc_dapm_kcontrol_widget(kcontrol);
  2064. struct snd_soc_dapm_update *update = NULL;
  2065. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2066. ucontrol->value.integer.value[0]);
  2067. if (ucontrol->value.integer.value[0])
  2068. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2069. update);
  2070. else
  2071. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2072. update);
  2073. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2074. return 1;
  2075. }
  2076. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2077. struct snd_ctl_elem_value *ucontrol)
  2078. {
  2079. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2080. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2081. ucontrol->value.integer.value[0]);
  2082. return 0;
  2083. }
  2084. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2085. struct snd_ctl_elem_value *ucontrol)
  2086. {
  2087. struct snd_soc_dapm_widget *widget =
  2088. snd_soc_dapm_kcontrol_widget(kcontrol);
  2089. struct snd_soc_dapm_update *update = NULL;
  2090. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2091. ucontrol->value.integer.value[0]);
  2092. if (ucontrol->value.integer.value[0])
  2093. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2094. update);
  2095. else
  2096. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2097. update);
  2098. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2099. return 1;
  2100. }
  2101. static int msm_routing_get_tert_mi2s_switch_mixer(
  2102. struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2106. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2107. ucontrol->value.integer.value[0]);
  2108. return 0;
  2109. }
  2110. static int msm_routing_put_tert_mi2s_switch_mixer(
  2111. struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. struct snd_soc_dapm_widget *widget =
  2115. snd_soc_dapm_kcontrol_widget(kcontrol);
  2116. struct snd_soc_dapm_update *update = NULL;
  2117. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2118. ucontrol->value.integer.value[0]);
  2119. if (ucontrol->value.integer.value[0])
  2120. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2121. update);
  2122. else
  2123. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2124. update);
  2125. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2126. return 1;
  2127. }
  2128. static int msm_routing_get_quat_mi2s_switch_mixer(
  2129. struct snd_kcontrol *kcontrol,
  2130. struct snd_ctl_elem_value *ucontrol)
  2131. {
  2132. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2133. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2134. ucontrol->value.integer.value[0]);
  2135. return 0;
  2136. }
  2137. static int msm_routing_put_quat_mi2s_switch_mixer(
  2138. struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. struct snd_soc_dapm_widget *widget =
  2142. snd_soc_dapm_kcontrol_widget(kcontrol);
  2143. struct snd_soc_dapm_update *update = NULL;
  2144. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. if (ucontrol->value.integer.value[0])
  2147. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2148. update);
  2149. else
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2151. update);
  2152. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2153. return 1;
  2154. }
  2155. static int msm_routing_get_quin_mi2s_switch_mixer(
  2156. struct snd_kcontrol *kcontrol,
  2157. struct snd_ctl_elem_value *ucontrol)
  2158. {
  2159. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2160. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. return 0;
  2163. }
  2164. static int msm_routing_put_quin_mi2s_switch_mixer(
  2165. struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct snd_soc_dapm_widget *widget =
  2169. snd_soc_dapm_kcontrol_widget(kcontrol);
  2170. struct snd_soc_dapm_update *update = NULL;
  2171. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2172. ucontrol->value.integer.value[0]);
  2173. if (ucontrol->value.integer.value[0])
  2174. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2175. update);
  2176. else
  2177. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2178. update);
  2179. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2180. return 1;
  2181. }
  2182. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2183. struct snd_ctl_elem_value *ucontrol)
  2184. {
  2185. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2186. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2187. ucontrol->value.integer.value[0]);
  2188. return 0;
  2189. }
  2190. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2191. struct snd_ctl_elem_value *ucontrol)
  2192. {
  2193. struct snd_soc_dapm_widget *widget =
  2194. snd_soc_dapm_kcontrol_widget(kcontrol);
  2195. struct snd_soc_dapm_update *update = NULL;
  2196. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2197. ucontrol->value.integer.value[0]);
  2198. if (ucontrol->value.integer.value[0])
  2199. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2200. update);
  2201. else
  2202. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2203. update);
  2204. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2205. return 1;
  2206. }
  2207. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2208. struct snd_ctl_elem_value *ucontrol)
  2209. {
  2210. ucontrol->value.integer.value[0] = lsm_port_index;
  2211. return 0;
  2212. }
  2213. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2217. int mux = ucontrol->value.enumerated.item[0];
  2218. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2219. if (mux >= e->items) {
  2220. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2221. return -EINVAL;
  2222. }
  2223. pr_debug("%s: LSM enable %ld\n", __func__,
  2224. ucontrol->value.integer.value[0]);
  2225. switch (ucontrol->value.integer.value[0]) {
  2226. case 1:
  2227. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2228. break;
  2229. case 2:
  2230. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2231. break;
  2232. case 3:
  2233. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2234. break;
  2235. case 4:
  2236. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2237. break;
  2238. case 5:
  2239. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2240. break;
  2241. case 6:
  2242. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2243. break;
  2244. case 7:
  2245. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2246. break;
  2247. case 8:
  2248. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2249. break;
  2250. case 9:
  2251. lsm_port = ADM_LSM_PORT_ID;
  2252. break;
  2253. case 10:
  2254. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2255. break;
  2256. default:
  2257. pr_err("Default lsm port");
  2258. break;
  2259. }
  2260. set_lsm_port(lsm_port);
  2261. lsm_port_index = ucontrol->value.integer.value[0];
  2262. return 0;
  2263. }
  2264. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2265. struct snd_ctl_elem_value *ucontrol)
  2266. {
  2267. int i;
  2268. u16 port_id;
  2269. enum afe_mad_type mad_type;
  2270. pr_debug("%s: enter\n", __func__);
  2271. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2272. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2273. strlen(lsm_port_text[i])))
  2274. break;
  2275. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2276. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2277. return -EINVAL;
  2278. }
  2279. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2280. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2281. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2282. strlen(lsm_port_text[7])))
  2283. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2284. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2285. strlen(lsm_port_text[8])))
  2286. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2287. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2288. strlen(lsm_port_text[10])))
  2289. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2290. mad_type = afe_port_get_mad_type(port_id);
  2291. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2292. mad_type);
  2293. switch (mad_type) {
  2294. case MAD_HW_NONE:
  2295. ucontrol->value.integer.value[0] = MADNONE;
  2296. break;
  2297. case MAD_HW_AUDIO:
  2298. ucontrol->value.integer.value[0] = MADAUDIO;
  2299. break;
  2300. case MAD_HW_BEACON:
  2301. ucontrol->value.integer.value[0] = MADBEACON;
  2302. break;
  2303. case MAD_HW_ULTRASOUND:
  2304. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2305. break;
  2306. case MAD_SW_AUDIO:
  2307. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2308. break;
  2309. default:
  2310. WARN(1, "Unknown\n");
  2311. return -EINVAL;
  2312. }
  2313. return 0;
  2314. }
  2315. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2316. struct snd_ctl_elem_value *ucontrol)
  2317. {
  2318. int i;
  2319. u16 port_id;
  2320. enum afe_mad_type mad_type;
  2321. pr_debug("%s: enter\n", __func__);
  2322. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2323. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2324. strlen(lsm_port_text[i])))
  2325. break;
  2326. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2327. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2328. return -EINVAL;
  2329. }
  2330. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2331. switch (ucontrol->value.integer.value[0]) {
  2332. case MADNONE:
  2333. mad_type = MAD_HW_NONE;
  2334. break;
  2335. case MADAUDIO:
  2336. mad_type = MAD_HW_AUDIO;
  2337. break;
  2338. case MADBEACON:
  2339. mad_type = MAD_HW_BEACON;
  2340. break;
  2341. case MADULTRASOUND:
  2342. mad_type = MAD_HW_ULTRASOUND;
  2343. break;
  2344. case MADSWAUDIO:
  2345. mad_type = MAD_SW_AUDIO;
  2346. break;
  2347. default:
  2348. WARN(1, "Unknown\n");
  2349. return -EINVAL;
  2350. }
  2351. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2352. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2353. strlen(lsm_port_text[7])))
  2354. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2355. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2356. strlen(lsm_port_text[8])))
  2357. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2358. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2359. strlen(lsm_port_text[10])))
  2360. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2361. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2362. mad_type);
  2363. return afe_port_set_mad_type(port_id, mad_type);
  2364. }
  2365. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2366. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2367. adm_override_chs_text);
  2368. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2369. {
  2370. int backend_id;
  2371. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2372. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2373. } else {
  2374. pr_err("%s: unsupported backend id: %s",
  2375. __func__, kcontrol->id.name);
  2376. return -EINVAL;
  2377. }
  2378. return backend_id;
  2379. }
  2380. static int msm_routing_adm_channel_config_get(
  2381. struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2385. if (backend_id >= 0) {
  2386. mutex_lock(&routing_lock);
  2387. ucontrol->value.integer.value[0] =
  2388. msm_bedais[backend_id].adm_override_ch;
  2389. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2390. ucontrol->value.integer.value[0], backend_id);
  2391. mutex_unlock(&routing_lock);
  2392. }
  2393. return 0;
  2394. }
  2395. static int msm_routing_adm_channel_config_put(
  2396. struct snd_kcontrol *kcontrol,
  2397. struct snd_ctl_elem_value *ucontrol)
  2398. {
  2399. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2400. if (backend_id >= 0) {
  2401. mutex_lock(&routing_lock);
  2402. msm_bedais[backend_id].adm_override_ch =
  2403. ucontrol->value.integer.value[0];
  2404. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2405. __func__, backend_id,
  2406. msm_bedais[backend_id].adm_override_ch);
  2407. mutex_unlock(&routing_lock);
  2408. }
  2409. return 0;
  2410. }
  2411. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2412. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2413. msm_routing_adm_channel_config_get,
  2414. msm_routing_adm_channel_config_put),
  2415. };
  2416. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2417. struct snd_ctl_elem_value *ucontrol)
  2418. {
  2419. mutex_lock(&routing_lock);
  2420. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2421. mutex_unlock(&routing_lock);
  2422. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2423. ucontrol->value.integer.value[0]);
  2424. return 0;
  2425. };
  2426. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2427. struct snd_ctl_elem_value *ucontrol)
  2428. {
  2429. struct aanc_data aanc_info;
  2430. mutex_lock(&routing_lock);
  2431. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2432. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2433. ucontrol->value.integer.value[0]);
  2434. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2435. if (ucontrol->value.integer.value[0] == 0) {
  2436. aanc_info.aanc_active = false;
  2437. aanc_info.aanc_tx_port = 0;
  2438. aanc_info.aanc_rx_port = 0;
  2439. } else {
  2440. aanc_info.aanc_active = true;
  2441. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2442. aanc_info.aanc_tx_port =
  2443. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2444. }
  2445. afe_set_aanc_info(&aanc_info);
  2446. mutex_unlock(&routing_lock);
  2447. return 0;
  2448. };
  2449. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2450. struct snd_ctl_elem_value *ucontrol)
  2451. {
  2452. int idx = 0, shift = 0;
  2453. struct soc_mixer_control *mc =
  2454. (struct soc_mixer_control *)kcontrol->private_value;
  2455. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2456. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2457. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2458. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2459. return -EINVAL;
  2460. }
  2461. if (test_bit(shift,
  2462. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2463. ucontrol->value.integer.value[0] = 1;
  2464. else
  2465. ucontrol->value.integer.value[0] = 0;
  2466. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2467. ucontrol->value.integer.value[0]);
  2468. return 0;
  2469. }
  2470. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2471. struct snd_ctl_elem_value *ucontrol)
  2472. {
  2473. int idx = 0, shift = 0;
  2474. struct soc_mixer_control *mc =
  2475. (struct soc_mixer_control *)kcontrol->private_value;
  2476. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2477. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2478. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2479. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2480. return -EINVAL;
  2481. }
  2482. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2483. __func__, mc->shift, mc->rshift,
  2484. ucontrol->value.integer.value[0], idx, shift);
  2485. if (ucontrol->value.integer.value[0]) {
  2486. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2487. msm_bedais[mc->rshift].port_id);
  2488. set_bit(shift,
  2489. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2490. } else {
  2491. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2492. msm_bedais[mc->rshift].port_id);
  2493. clear_bit(shift,
  2494. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2495. }
  2496. return 1;
  2497. }
  2498. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2499. struct snd_ctl_elem_value *ucontrol)
  2500. {
  2501. u16 fe_id = 0;
  2502. fe_id = ((struct soc_mixer_control *)
  2503. kcontrol->private_value)->shift;
  2504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2506. return -EINVAL;
  2507. }
  2508. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2509. return 0;
  2510. }
  2511. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2512. struct snd_ctl_elem_value *ucontrol)
  2513. {
  2514. u16 fe_id = 0;
  2515. fe_id = ((struct soc_mixer_control *)
  2516. kcontrol->private_value)->shift;
  2517. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2518. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2519. return -EINVAL;
  2520. }
  2521. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2522. return 1;
  2523. }
  2524. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2525. struct snd_ctl_elem_value *ucontrol)
  2526. {
  2527. u16 fe_id = 0;
  2528. fe_id = ((struct soc_multi_mixer_control *)
  2529. kcontrol->private_value)->shift;
  2530. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2531. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2532. return -EINVAL;
  2533. }
  2534. ucontrol->value.integer.value[0] =
  2535. channel_mixer[fe_id].output_channel;
  2536. return 0;
  2537. }
  2538. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2539. struct snd_ctl_elem_value *ucontrol)
  2540. {
  2541. u16 fe_id = 0;
  2542. fe_id = ((struct soc_multi_mixer_control *)
  2543. kcontrol->private_value)->shift;
  2544. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2545. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2546. return -EINVAL;
  2547. }
  2548. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2549. fe_id,
  2550. (unsigned int)(ucontrol->value.integer.value[0]));
  2551. channel_mixer[fe_id].output_channel =
  2552. (unsigned int)(ucontrol->value.integer.value[0]);
  2553. return 1;
  2554. }
  2555. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2556. /* If new backend is added, need update this array */
  2557. static const char *const be_name[] = {
  2558. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2559. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2560. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2561. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2562. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2563. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2564. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2565. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2566. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2567. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2568. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2569. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2570. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2571. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2572. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2573. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2574. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2575. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2576. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2577. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2578. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2579. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2580. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2581. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2582. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2583. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2584. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2585. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2586. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2587. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2588. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2589. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2590. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2591. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2592. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2593. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2594. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2595. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2596. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2597. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2598. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2599. };
  2600. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2601. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2602. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2603. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2604. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2605. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2606. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2607. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2608. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2609. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2610. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2611. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2612. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2613. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2614. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2615. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2616. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2617. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2618. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2619. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2620. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2621. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2622. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2623. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2624. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2625. unsigned int channels,
  2626. unsigned int items, const char *const names[])
  2627. {
  2628. if (uinfo->value.enumerated.item >= items)
  2629. uinfo->value.enumerated.item = items - 1;
  2630. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2631. sizeof(uinfo->value.enumerated.name),
  2632. "ALSA: too long item name '%s'\n",
  2633. names[uinfo->value.enumerated.item]);
  2634. strlcpy(uinfo->value.enumerated.name,
  2635. names[uinfo->value.enumerated.item],
  2636. sizeof(uinfo->value.enumerated.name));
  2637. return 0;
  2638. }
  2639. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_info *uinfo)
  2641. {
  2642. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2643. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2644. uinfo->count = 1;
  2645. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2646. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2647. return 0;
  2648. }
  2649. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2650. struct snd_ctl_elem_value *ucontrol)
  2651. {
  2652. u16 fe_id = 0;
  2653. fe_id = ((struct soc_enum *)
  2654. kcontrol->private_value)->shift_l;
  2655. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2656. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2657. return -EINVAL;
  2658. }
  2659. pr_debug("%s: FE %d %s\n", __func__,
  2660. fe_id,
  2661. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2662. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2663. return 0;
  2664. }
  2665. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2666. struct snd_ctl_elem_value *ucontrol)
  2667. {
  2668. u16 fe_id = 0;
  2669. fe_id = ((struct soc_enum *)
  2670. kcontrol->private_value)->shift_l;
  2671. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2672. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2673. return -EINVAL;
  2674. }
  2675. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2676. pr_debug("%s: %s FE %d\n", __func__,
  2677. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2678. fe_id);
  2679. return 0;
  2680. }
  2681. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_info *uinfo)
  2683. {
  2684. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2685. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2686. uinfo->count = 1;
  2687. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2688. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2689. return 0;
  2690. }
  2691. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2692. struct snd_ctl_elem_value *ucontrol)
  2693. {
  2694. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2695. u16 fe_id = 0, in_ch = 0;
  2696. fe_id = e->shift_l;
  2697. in_ch = e->shift_r;
  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 (in_ch >= ADM_MAX_CHANNELS) {
  2703. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2704. return -EINVAL;
  2705. }
  2706. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2707. return 1;
  2708. }
  2709. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2710. struct snd_ctl_elem_value *ucontrol)
  2711. {
  2712. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2713. u16 fe_id = 0, in_ch = 0;
  2714. fe_id = e->shift_l;
  2715. in_ch = e->shift_r;
  2716. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2717. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2718. return -EINVAL;
  2719. }
  2720. if (in_ch >= ADM_MAX_CHANNELS) {
  2721. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2722. return -EINVAL;
  2723. }
  2724. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2725. return 1;
  2726. }
  2727. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2728. struct snd_ctl_elem_info *uinfo)
  2729. {
  2730. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2731. uinfo->count = ADM_MAX_CHANNELS;
  2732. uinfo->value.integer.min = 0;
  2733. uinfo->value.integer.max = WEIGHT_0_DB;
  2734. return 0;
  2735. }
  2736. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. u16 fe_id = 0, out_ch = 0;
  2740. int i, weight;
  2741. fe_id = ((struct soc_multi_mixer_control *)
  2742. kcontrol->private_value)->shift;
  2743. out_ch = ((struct soc_multi_mixer_control *)
  2744. kcontrol->private_value)->rshift;
  2745. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2746. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2747. return -EINVAL;
  2748. }
  2749. if (out_ch >= ADM_MAX_CHANNELS) {
  2750. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2751. return -EINVAL;
  2752. }
  2753. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2754. __func__, fe_id,
  2755. ucontrol->value.integer.value[0],
  2756. ucontrol->value.integer.value[1],
  2757. ucontrol->value.integer.value[2],
  2758. ucontrol->value.integer.value[3],
  2759. ucontrol->value.integer.value[4],
  2760. ucontrol->value.integer.value[5],
  2761. ucontrol->value.integer.value[6],
  2762. ucontrol->value.integer.value[7]);
  2763. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2764. weight = ucontrol->value.integer.value[i];
  2765. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2766. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2767. __func__, fe_id, out_ch, i,
  2768. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2769. }
  2770. return 0;
  2771. }
  2772. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2773. struct snd_ctl_elem_value *ucontrol)
  2774. {
  2775. u16 fe_id = 0, out_ch = 0;
  2776. int i;
  2777. fe_id = ((struct soc_multi_mixer_control *)
  2778. kcontrol->private_value)->shift;
  2779. out_ch = ((struct soc_multi_mixer_control *)
  2780. kcontrol->private_value)->rshift;
  2781. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2782. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2783. return -EINVAL;
  2784. }
  2785. if (out_ch >= ADM_MAX_CHANNELS) {
  2786. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2787. return -EINVAL;
  2788. }
  2789. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2790. ucontrol->value.integer.value[i] =
  2791. channel_mixer[fe_id].channel_weight[out_ch][i];
  2792. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2793. __func__, fe_id,
  2794. ucontrol->value.integer.value[0],
  2795. ucontrol->value.integer.value[1],
  2796. ucontrol->value.integer.value[2],
  2797. ucontrol->value.integer.value[3],
  2798. ucontrol->value.integer.value[4],
  2799. ucontrol->value.integer.value[5],
  2800. ucontrol->value.integer.value[6],
  2801. ucontrol->value.integer.value[7]);
  2802. return 0;
  2803. }
  2804. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2805. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2806. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2807. msm_pcm_get_channel_rule_index,
  2808. msm_pcm_put_channel_rule_index),
  2809. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2810. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2811. msm_pcm_get_channel_rule_index,
  2812. msm_pcm_put_channel_rule_index),
  2813. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2814. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2815. msm_pcm_get_channel_rule_index,
  2816. msm_pcm_put_channel_rule_index),
  2817. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2818. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2819. msm_pcm_get_channel_rule_index,
  2820. msm_pcm_put_channel_rule_index),
  2821. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2822. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2823. msm_pcm_get_channel_rule_index,
  2824. msm_pcm_put_channel_rule_index),
  2825. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2826. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2827. msm_pcm_get_channel_rule_index,
  2828. msm_pcm_put_channel_rule_index),
  2829. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2830. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2831. msm_pcm_get_out_chs,
  2832. msm_pcm_put_out_chs),
  2833. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2834. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2835. msm_pcm_get_out_chs,
  2836. msm_pcm_put_out_chs),
  2837. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2838. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2839. msm_pcm_get_out_chs,
  2840. msm_pcm_put_out_chs),
  2841. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2842. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2843. msm_pcm_get_out_chs,
  2844. msm_pcm_put_out_chs),
  2845. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2846. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2847. msm_pcm_get_out_chs,
  2848. msm_pcm_put_out_chs),
  2849. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2850. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2851. msm_pcm_get_out_chs,
  2852. msm_pcm_put_out_chs),
  2853. {
  2854. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2855. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2856. .name = "MultiMedia1 Channel Mixer",
  2857. .info = msm_pcm_channel_mixer_info,
  2858. .get = msm_pcm_channel_mixer_get,
  2859. .put = msm_pcm_channel_mixer_put,
  2860. .private_value = (unsigned long)&(mm1_channel_mux)
  2861. },
  2862. {
  2863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2864. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2865. .name = "MultiMedia2 Channel Mixer",
  2866. .info = msm_pcm_channel_mixer_info,
  2867. .get = msm_pcm_channel_mixer_get,
  2868. .put = msm_pcm_channel_mixer_put,
  2869. .private_value = (unsigned long)&(mm2_channel_mux)
  2870. },
  2871. {
  2872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2874. .name = "MultiMedia3 Channel Mixer",
  2875. .info = msm_pcm_channel_mixer_info,
  2876. .get = msm_pcm_channel_mixer_get,
  2877. .put = msm_pcm_channel_mixer_put,
  2878. .private_value = (unsigned long)&(mm3_channel_mux)
  2879. },
  2880. {
  2881. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2882. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2883. .name = "MultiMedia4 Channel Mixer",
  2884. .info = msm_pcm_channel_mixer_info,
  2885. .get = msm_pcm_channel_mixer_get,
  2886. .put = msm_pcm_channel_mixer_put,
  2887. .private_value = (unsigned long)&(mm4_channel_mux)
  2888. },
  2889. {
  2890. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2892. .name = "MultiMedia1 Output Channel1",
  2893. .info = msm_pcm_channel_weight_info,
  2894. .get = msm_pcm_channel_weight_get,
  2895. .put = msm_pcm_channel_weight_put,
  2896. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2897. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2898. },
  2899. {
  2900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2901. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2902. .name = "MultiMedia1 Output Channel2",
  2903. .info = msm_pcm_channel_weight_info,
  2904. .get = msm_pcm_channel_weight_get,
  2905. .put = msm_pcm_channel_weight_put,
  2906. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2907. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2908. },
  2909. {
  2910. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2911. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2912. .name = "MultiMedia1 Output Channel3",
  2913. .info = msm_pcm_channel_weight_info,
  2914. .get = msm_pcm_channel_weight_get,
  2915. .put = msm_pcm_channel_weight_put,
  2916. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2917. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2918. },
  2919. {
  2920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2922. .name = "MultiMedia1 Output Channel4",
  2923. .info = msm_pcm_channel_weight_info,
  2924. .get = msm_pcm_channel_weight_get,
  2925. .put = msm_pcm_channel_weight_put,
  2926. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2927. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2928. },
  2929. {
  2930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2931. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2932. .name = "MultiMedia1 Output Channel5",
  2933. .info = msm_pcm_channel_weight_info,
  2934. .get = msm_pcm_channel_weight_get,
  2935. .put = msm_pcm_channel_weight_put,
  2936. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2937. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2938. },
  2939. {
  2940. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2941. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2942. .name = "MultiMedia1 Output Channel6",
  2943. .info = msm_pcm_channel_weight_info,
  2944. .get = msm_pcm_channel_weight_get,
  2945. .put = msm_pcm_channel_weight_put,
  2946. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2947. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2948. },
  2949. {
  2950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2952. .name = "MultiMedia1 Output Channel7",
  2953. .info = msm_pcm_channel_weight_info,
  2954. .get = msm_pcm_channel_weight_get,
  2955. .put = msm_pcm_channel_weight_put,
  2956. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2957. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2958. },
  2959. {
  2960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2961. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2962. .name = "MultiMedia1 Output Channel8",
  2963. .info = msm_pcm_channel_weight_info,
  2964. .get = msm_pcm_channel_weight_get,
  2965. .put = msm_pcm_channel_weight_put,
  2966. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2967. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2968. },
  2969. {
  2970. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2971. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2972. .name = "MultiMedia2 Output Channel1",
  2973. .info = msm_pcm_channel_weight_info,
  2974. .get = msm_pcm_channel_weight_get,
  2975. .put = msm_pcm_channel_weight_put,
  2976. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2977. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2978. },
  2979. {
  2980. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2981. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2982. .name = "MultiMedia2 Output Channel2",
  2983. .info = msm_pcm_channel_weight_info,
  2984. .get = msm_pcm_channel_weight_get,
  2985. .put = msm_pcm_channel_weight_put,
  2986. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2987. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2988. },
  2989. {
  2990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2991. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2992. .name = "MultiMedia2 Output Channel3",
  2993. .info = msm_pcm_channel_weight_info,
  2994. .get = msm_pcm_channel_weight_get,
  2995. .put = msm_pcm_channel_weight_put,
  2996. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2997. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2998. },
  2999. {
  3000. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3001. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3002. .name = "MultiMedia3 Output Channel1",
  3003. .info = msm_pcm_channel_weight_info,
  3004. .get = msm_pcm_channel_weight_get,
  3005. .put = msm_pcm_channel_weight_put,
  3006. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3007. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3008. },
  3009. {
  3010. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3011. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3012. .name = "MultiMedia3 Output Channel2",
  3013. .info = msm_pcm_channel_weight_info,
  3014. .get = msm_pcm_channel_weight_get,
  3015. .put = msm_pcm_channel_weight_put,
  3016. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3017. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3018. },
  3019. {
  3020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3021. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3022. .name = "MultiMedia1 Channel1",
  3023. .info = msm_pcm_channel_input_be_info,
  3024. .get = msm_pcm_channel_input_be_get,
  3025. .put = msm_pcm_channel_input_be_put,
  3026. .private_value = (unsigned long)&(mm1_ch1_enum)
  3027. },
  3028. {
  3029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3031. .name = "MultiMedia1 Channel2",
  3032. .info = msm_pcm_channel_input_be_info,
  3033. .get = msm_pcm_channel_input_be_get,
  3034. .put = msm_pcm_channel_input_be_put,
  3035. .private_value = (unsigned long)&(mm1_ch2_enum)
  3036. },
  3037. {
  3038. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3039. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3040. .name = "MultiMedia1 Channel3",
  3041. .info = msm_pcm_channel_input_be_info,
  3042. .get = msm_pcm_channel_input_be_get,
  3043. .put = msm_pcm_channel_input_be_put,
  3044. .private_value = (unsigned long)&(mm1_ch3_enum)
  3045. },
  3046. {
  3047. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3048. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3049. .name = "MultiMedia1 Channel4",
  3050. .info = msm_pcm_channel_input_be_info,
  3051. .get = msm_pcm_channel_input_be_get,
  3052. .put = msm_pcm_channel_input_be_put,
  3053. .private_value = (unsigned long)&(mm1_ch4_enum)
  3054. },
  3055. {
  3056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3058. .name = "MultiMedia1 Channel5",
  3059. .info = msm_pcm_channel_input_be_info,
  3060. .get = msm_pcm_channel_input_be_get,
  3061. .put = msm_pcm_channel_input_be_put,
  3062. .private_value = (unsigned long)&(mm1_ch5_enum)
  3063. },
  3064. {
  3065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3067. .name = "MultiMedia1 Channel6",
  3068. .info = msm_pcm_channel_input_be_info,
  3069. .get = msm_pcm_channel_input_be_get,
  3070. .put = msm_pcm_channel_input_be_put,
  3071. .private_value = (unsigned long)&(mm1_ch6_enum)
  3072. },
  3073. {
  3074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3075. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3076. .name = "MultiMedia1 Channel7",
  3077. .info = msm_pcm_channel_input_be_info,
  3078. .get = msm_pcm_channel_input_be_get,
  3079. .put = msm_pcm_channel_input_be_put,
  3080. .private_value = (unsigned long)&(mm1_ch7_enum)
  3081. },
  3082. {
  3083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3085. .name = "MultiMedia1 Channel8",
  3086. .info = msm_pcm_channel_input_be_info,
  3087. .get = msm_pcm_channel_input_be_get,
  3088. .put = msm_pcm_channel_input_be_put,
  3089. .private_value = (unsigned long)&(mm1_ch8_enum)
  3090. },
  3091. };
  3092. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3093. struct snd_ctl_elem_value *ucontrol)
  3094. {
  3095. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3096. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3097. ucontrol->value.integer.value[0]);
  3098. return 0;
  3099. }
  3100. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3101. struct snd_ctl_elem_value *ucontrol)
  3102. {
  3103. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3104. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3105. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3106. return 0;
  3107. }
  3108. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3109. "Four", "Five", "Six", "Seven", "Eight"};
  3110. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3111. struct snd_ctl_elem_value *ucontrol)
  3112. {
  3113. switch (msm_ec_ref_bit_format) {
  3114. case SNDRV_PCM_FORMAT_S24_LE:
  3115. ucontrol->value.integer.value[0] = 2;
  3116. break;
  3117. case SNDRV_PCM_FORMAT_S16_LE:
  3118. ucontrol->value.integer.value[0] = 1;
  3119. break;
  3120. default:
  3121. ucontrol->value.integer.value[0] = 0;
  3122. break;
  3123. }
  3124. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3125. __func__, ucontrol->value.integer.value[0]);
  3126. return 0;
  3127. }
  3128. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3129. struct snd_ctl_elem_value *ucontrol)
  3130. {
  3131. u16 bit_width = 0;
  3132. switch (ucontrol->value.integer.value[0]) {
  3133. case 2:
  3134. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3135. break;
  3136. case 1:
  3137. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3138. break;
  3139. default:
  3140. msm_ec_ref_bit_format = 0;
  3141. break;
  3142. }
  3143. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3144. bit_width = 16;
  3145. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3146. bit_width = 24;
  3147. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3148. __func__, msm_ec_ref_bit_format);
  3149. adm_ec_ref_rx_bit_width(bit_width);
  3150. return 0;
  3151. }
  3152. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3153. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3154. struct snd_ctl_elem_value *ucontrol)
  3155. {
  3156. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3157. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3158. __func__, ucontrol->value.integer.value[0]);
  3159. return 0;
  3160. }
  3161. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3162. struct snd_ctl_elem_value *ucontrol)
  3163. {
  3164. switch (ucontrol->value.integer.value[0]) {
  3165. case 0:
  3166. msm_ec_ref_sampling_rate = 0;
  3167. break;
  3168. case 1:
  3169. msm_ec_ref_sampling_rate = 8000;
  3170. break;
  3171. case 2:
  3172. msm_ec_ref_sampling_rate = 16000;
  3173. break;
  3174. case 3:
  3175. msm_ec_ref_sampling_rate = 32000;
  3176. break;
  3177. case 4:
  3178. msm_ec_ref_sampling_rate = 44100;
  3179. break;
  3180. case 5:
  3181. msm_ec_ref_sampling_rate = 48000;
  3182. break;
  3183. case 6:
  3184. msm_ec_ref_sampling_rate = 96000;
  3185. break;
  3186. case 7:
  3187. msm_ec_ref_sampling_rate = 192000;
  3188. break;
  3189. case 8:
  3190. msm_ec_ref_sampling_rate = 384000;
  3191. break;
  3192. default:
  3193. msm_ec_ref_sampling_rate = 48000;
  3194. break;
  3195. }
  3196. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3197. __func__, msm_ec_ref_sampling_rate);
  3198. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3199. return 0;
  3200. }
  3201. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3202. "32000", "44100", "48000", "96000", "192000", "384000"};
  3203. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3204. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3205. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3206. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3207. };
  3208. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3209. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3210. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3211. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3212. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3213. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3214. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3215. };
  3216. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3217. struct snd_ctl_elem_value *ucontrol)
  3218. {
  3219. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3220. mutex_lock(&routing_lock);
  3221. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3222. mutex_unlock(&routing_lock);
  3223. return 0;
  3224. }
  3225. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. int ec_ref_port_id;
  3229. struct snd_soc_dapm_widget *widget =
  3230. snd_soc_dapm_kcontrol_widget(kcontrol);
  3231. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3232. struct snd_soc_dapm_update *update = NULL;
  3233. mutex_lock(&routing_lock);
  3234. switch (ucontrol->value.integer.value[0]) {
  3235. case 0:
  3236. msm_route_ec_ref_rx = 0;
  3237. ec_ref_port_id = AFE_PORT_INVALID;
  3238. break;
  3239. case 1:
  3240. msm_route_ec_ref_rx = 1;
  3241. ec_ref_port_id = SLIMBUS_0_RX;
  3242. break;
  3243. case 2:
  3244. msm_route_ec_ref_rx = 2;
  3245. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3246. break;
  3247. case 3:
  3248. msm_route_ec_ref_rx = 3;
  3249. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3250. break;
  3251. case 4:
  3252. msm_route_ec_ref_rx = 4;
  3253. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3254. break;
  3255. case 5:
  3256. msm_route_ec_ref_rx = 5;
  3257. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3258. break;
  3259. case 6:
  3260. msm_route_ec_ref_rx = 6;
  3261. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3262. break;
  3263. case 7:
  3264. msm_route_ec_ref_rx = 7;
  3265. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3266. break;
  3267. case 9:
  3268. msm_route_ec_ref_rx = 9;
  3269. ec_ref_port_id = SLIMBUS_5_RX;
  3270. break;
  3271. case 10:
  3272. msm_route_ec_ref_rx = 10;
  3273. ec_ref_port_id = SLIMBUS_1_TX;
  3274. break;
  3275. case 11:
  3276. msm_route_ec_ref_rx = 11;
  3277. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3278. break;
  3279. case 12:
  3280. msm_route_ec_ref_rx = 12;
  3281. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3282. break;
  3283. case 13:
  3284. msm_route_ec_ref_rx = 13;
  3285. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3286. break;
  3287. case 14:
  3288. msm_route_ec_ref_rx = 14;
  3289. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3290. break;
  3291. case 15:
  3292. msm_route_ec_ref_rx = 15;
  3293. ec_ref_port_id = SLIMBUS_6_RX;
  3294. break;
  3295. case 16:
  3296. msm_route_ec_ref_rx = 16;
  3297. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3298. break;
  3299. case 17:
  3300. msm_route_ec_ref_rx = 17;
  3301. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3302. break;
  3303. case 18:
  3304. msm_route_ec_ref_rx = 18;
  3305. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3306. break;
  3307. case 19:
  3308. msm_route_ec_ref_rx = 19;
  3309. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3310. break;
  3311. case 20:
  3312. msm_route_ec_ref_rx = 20;
  3313. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3314. break;
  3315. case 21:
  3316. msm_route_ec_ref_rx = 21;
  3317. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3318. break;
  3319. case 22:
  3320. msm_route_ec_ref_rx = 22;
  3321. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3322. break;
  3323. case 23:
  3324. msm_route_ec_ref_rx = 23;
  3325. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3326. break;
  3327. default:
  3328. msm_route_ec_ref_rx = 0; /* NONE */
  3329. pr_err("%s EC ref rx %ld not valid\n",
  3330. __func__, ucontrol->value.integer.value[0]);
  3331. ec_ref_port_id = AFE_PORT_INVALID;
  3332. break;
  3333. }
  3334. adm_ec_ref_rx_id(ec_ref_port_id);
  3335. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3336. __func__, msm_route_ec_ref_rx);
  3337. mutex_unlock(&routing_lock);
  3338. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3339. msm_route_ec_ref_rx, e, update);
  3340. return 0;
  3341. }
  3342. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3343. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3344. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3345. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3346. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3347. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3348. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3349. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3350. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3351. };
  3352. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3353. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3354. msm_route_ec_ref_rx_enum[0],
  3355. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3356. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3357. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3358. msm_route_ec_ref_rx_enum[0],
  3359. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3360. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3361. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3362. msm_route_ec_ref_rx_enum[0],
  3363. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3364. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3365. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3366. msm_route_ec_ref_rx_enum[0],
  3367. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3368. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3369. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3370. msm_route_ec_ref_rx_enum[0],
  3371. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3372. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3373. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3374. msm_route_ec_ref_rx_enum[0],
  3375. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3376. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3377. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3378. msm_route_ec_ref_rx_enum[0],
  3379. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3380. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3381. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3382. msm_route_ec_ref_rx_enum[0],
  3383. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3384. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3385. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3386. msm_route_ec_ref_rx_enum[0],
  3387. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3388. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3389. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3390. msm_route_ec_ref_rx_enum[0],
  3391. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3392. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3393. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3394. msm_route_ec_ref_rx_enum[0],
  3395. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3396. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3397. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3398. msm_route_ec_ref_rx_enum[0],
  3399. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3400. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3401. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3402. msm_route_ec_ref_rx_enum[0],
  3403. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3404. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3405. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3406. msm_route_ec_ref_rx_enum[0],
  3407. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3408. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3409. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3410. msm_route_ec_ref_rx_enum[0],
  3411. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3412. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3413. struct snd_ctl_elem_value *ucontrol)
  3414. {
  3415. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3416. mutex_lock(&routing_lock);
  3417. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3418. mutex_unlock(&routing_lock);
  3419. return 0;
  3420. }
  3421. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3422. struct snd_ctl_elem_value *ucontrol)
  3423. {
  3424. struct snd_soc_dapm_widget *widget =
  3425. snd_soc_dapm_kcontrol_widget(kcontrol);
  3426. int mux = ucontrol->value.enumerated.item[0];
  3427. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3428. int ret = 1;
  3429. bool state = true;
  3430. uint16_t ext_ec_ref_port_id;
  3431. struct snd_soc_dapm_update *update = NULL;
  3432. if (mux >= e->items) {
  3433. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3434. return -EINVAL;
  3435. }
  3436. mutex_lock(&routing_lock);
  3437. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3438. switch (msm_route_ext_ec_ref) {
  3439. case EXT_EC_REF_PRI_MI2S_TX:
  3440. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3441. break;
  3442. case EXT_EC_REF_SEC_MI2S_TX:
  3443. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3444. break;
  3445. case EXT_EC_REF_TERT_MI2S_TX:
  3446. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3447. break;
  3448. case EXT_EC_REF_QUAT_MI2S_TX:
  3449. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3450. break;
  3451. case EXT_EC_REF_QUIN_MI2S_TX:
  3452. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3453. break;
  3454. case EXT_EC_REF_SLIM_1_TX:
  3455. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3456. break;
  3457. case EXT_EC_REF_NONE:
  3458. default:
  3459. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3460. state = false;
  3461. break;
  3462. }
  3463. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3464. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3465. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3466. mutex_unlock(&routing_lock);
  3467. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3468. update);
  3469. } else {
  3470. ret = -EINVAL;
  3471. mutex_unlock(&routing_lock);
  3472. }
  3473. return ret;
  3474. }
  3475. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3476. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3477. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3478. "SLIM_1_TX"};
  3479. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3480. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3481. };
  3482. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3483. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3484. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3485. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3487. MSM_BACKEND_DAI_PRI_I2S_RX,
  3488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3489. msm_routing_put_audio_mixer),
  3490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3491. MSM_BACKEND_DAI_PRI_I2S_RX,
  3492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3493. msm_routing_put_audio_mixer),
  3494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3495. MSM_BACKEND_DAI_PRI_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3499. MSM_BACKEND_DAI_PRI_I2S_RX,
  3500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3501. msm_routing_put_audio_mixer),
  3502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3503. MSM_BACKEND_DAI_PRI_I2S_RX,
  3504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3505. msm_routing_put_audio_mixer),
  3506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3507. MSM_BACKEND_DAI_PRI_I2S_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3511. MSM_BACKEND_DAI_PRI_I2S_RX,
  3512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3513. msm_routing_put_audio_mixer),
  3514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3515. MSM_BACKEND_DAI_PRI_I2S_RX,
  3516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3517. msm_routing_put_audio_mixer),
  3518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3519. MSM_BACKEND_DAI_PRI_I2S_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3523. MSM_BACKEND_DAI_PRI_I2S_RX,
  3524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3525. msm_routing_put_audio_mixer),
  3526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3527. MSM_BACKEND_DAI_PRI_I2S_RX,
  3528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3529. msm_routing_put_audio_mixer),
  3530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3531. MSM_BACKEND_DAI_PRI_I2S_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3535. MSM_BACKEND_DAI_PRI_I2S_RX,
  3536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3537. msm_routing_put_audio_mixer),
  3538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3539. MSM_BACKEND_DAI_PRI_I2S_RX,
  3540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3541. msm_routing_put_audio_mixer),
  3542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3543. MSM_BACKEND_DAI_PRI_I2S_RX,
  3544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3545. msm_routing_put_audio_mixer),
  3546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3547. MSM_BACKEND_DAI_PRI_I2S_RX,
  3548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3549. msm_routing_put_audio_mixer),
  3550. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3551. MSM_BACKEND_DAI_PRI_I2S_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3555. MSM_BACKEND_DAI_PRI_I2S_RX,
  3556. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3557. msm_routing_put_audio_mixer),
  3558. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3559. MSM_BACKEND_DAI_PRI_I2S_RX,
  3560. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3561. msm_routing_put_audio_mixer),
  3562. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3563. MSM_BACKEND_DAI_PRI_I2S_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3567. MSM_BACKEND_DAI_PRI_I2S_RX,
  3568. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3569. msm_routing_put_audio_mixer),
  3570. };
  3571. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3572. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3573. MSM_BACKEND_DAI_SEC_I2S_RX,
  3574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3575. msm_routing_put_audio_mixer),
  3576. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3577. MSM_BACKEND_DAI_SEC_I2S_RX,
  3578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3579. msm_routing_put_audio_mixer),
  3580. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3581. MSM_BACKEND_DAI_SEC_I2S_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3585. MSM_BACKEND_DAI_SEC_I2S_RX,
  3586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3587. msm_routing_put_audio_mixer),
  3588. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3589. MSM_BACKEND_DAI_SEC_I2S_RX,
  3590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3591. msm_routing_put_audio_mixer),
  3592. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3593. MSM_BACKEND_DAI_SEC_I2S_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3597. MSM_BACKEND_DAI_SEC_I2S_RX,
  3598. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3599. msm_routing_put_audio_mixer),
  3600. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3601. MSM_BACKEND_DAI_SEC_I2S_RX,
  3602. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3603. msm_routing_put_audio_mixer),
  3604. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3605. MSM_BACKEND_DAI_SEC_I2S_RX,
  3606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3607. msm_routing_put_audio_mixer),
  3608. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3609. MSM_BACKEND_DAI_SEC_I2S_RX,
  3610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3611. msm_routing_put_audio_mixer),
  3612. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3613. MSM_BACKEND_DAI_SEC_I2S_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3617. MSM_BACKEND_DAI_SEC_I2S_RX,
  3618. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3619. msm_routing_put_audio_mixer),
  3620. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3621. MSM_BACKEND_DAI_SEC_I2S_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3625. MSM_BACKEND_DAI_SEC_I2S_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3629. MSM_BACKEND_DAI_SEC_I2S_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_SEC_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_SEC_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_SEC_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_SEC_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_SEC_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_SEC_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. };
  3657. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3658. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3659. MSM_BACKEND_DAI_SPDIF_RX,
  3660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3661. msm_routing_put_audio_mixer),
  3662. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3663. MSM_BACKEND_DAI_SPDIF_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3667. MSM_BACKEND_DAI_SPDIF_RX,
  3668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3669. msm_routing_put_audio_mixer),
  3670. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3671. MSM_BACKEND_DAI_SPDIF_RX,
  3672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3673. msm_routing_put_audio_mixer),
  3674. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3675. MSM_BACKEND_DAI_SPDIF_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3679. MSM_BACKEND_DAI_SPDIF_RX,
  3680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3681. msm_routing_put_audio_mixer),
  3682. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3683. MSM_BACKEND_DAI_SPDIF_RX,
  3684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3685. msm_routing_put_audio_mixer),
  3686. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3687. MSM_BACKEND_DAI_SPDIF_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3691. MSM_BACKEND_DAI_SPDIF_RX,
  3692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3693. msm_routing_put_audio_mixer),
  3694. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3695. MSM_BACKEND_DAI_SPDIF_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3699. MSM_BACKEND_DAI_SPDIF_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_SPDIF_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_SPDIF_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_SPDIF_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_SPDIF_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SPDIF_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SPDIF_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SPDIF_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SPDIF_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SPDIF_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SPDIF_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. };
  3743. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3744. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3745. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3747. msm_routing_put_audio_mixer),
  3748. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3749. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3753. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3755. msm_routing_put_audio_mixer),
  3756. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3757. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3759. msm_routing_put_audio_mixer),
  3760. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3761. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3765. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3769. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3773. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3775. msm_routing_put_audio_mixer),
  3776. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3777. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3779. msm_routing_put_audio_mixer),
  3780. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. };
  3809. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3810. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3811. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3815. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3816. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3817. msm_routing_put_audio_mixer),
  3818. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3819. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3820. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3821. msm_routing_put_audio_mixer),
  3822. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3823. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3827. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3829. msm_routing_put_audio_mixer),
  3830. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3831. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3835. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3836. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3837. msm_routing_put_audio_mixer),
  3838. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3839. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3840. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3841. msm_routing_put_audio_mixer),
  3842. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3843. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3847. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3848. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3849. msm_routing_put_audio_mixer),
  3850. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3851. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3855. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3859. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3860. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3861. msm_routing_put_audio_mixer),
  3862. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3863. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. };
  3895. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3899. msm_routing_put_audio_mixer),
  3900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3903. msm_routing_put_audio_mixer),
  3904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3911. msm_routing_put_audio_mixer),
  3912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3915. msm_routing_put_audio_mixer),
  3916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3917. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3921. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3923. msm_routing_put_audio_mixer),
  3924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3925. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3929. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3933. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3935. msm_routing_put_audio_mixer),
  3936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3937. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3939. msm_routing_put_audio_mixer),
  3940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3941. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. };
  3981. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3983. MSM_BACKEND_DAI_MI2S_RX,
  3984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3985. msm_routing_put_audio_mixer),
  3986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3987. MSM_BACKEND_DAI_MI2S_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3991. MSM_BACKEND_DAI_MI2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3995. MSM_BACKEND_DAI_MI2S_RX,
  3996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3997. msm_routing_put_audio_mixer),
  3998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3999. MSM_BACKEND_DAI_MI2S_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4003. MSM_BACKEND_DAI_MI2S_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4007. MSM_BACKEND_DAI_MI2S_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4011. MSM_BACKEND_DAI_MI2S_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4015. MSM_BACKEND_DAI_MI2S_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4019. MSM_BACKEND_DAI_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4023. MSM_BACKEND_DAI_MI2S_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_MI2S_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_MI2S_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_MI2S_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_MI2S_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_MI2S_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_MI2S_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_MI2S_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_MI2S_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. };
  4067. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4068. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4069. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4073. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4085. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4089. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4093. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4097. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4099. msm_routing_put_audio_mixer),
  4100. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4101. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. };
  4153. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4163. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4167. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. };
  4239. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4240. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. };
  4317. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. };
  4323. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4324. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4382. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4383. msm_routing_put_audio_mixer),
  4384. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4387. msm_routing_put_audio_mixer),
  4388. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. };
  4409. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4410. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. };
  4495. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4496. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4497. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4501. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4505. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4533. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4537. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4541. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. };
  4561. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. };
  4627. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_HDMI_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_HDMI_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_HDMI_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4641. MSM_BACKEND_DAI_HDMI_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4645. MSM_BACKEND_DAI_HDMI_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_HDMI_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_HDMI_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4657. MSM_BACKEND_DAI_HDMI_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4661. MSM_BACKEND_DAI_HDMI_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4665. MSM_BACKEND_DAI_HDMI_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4669. MSM_BACKEND_DAI_HDMI_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4673. MSM_BACKEND_DAI_HDMI_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4677. MSM_BACKEND_DAI_HDMI_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4681. MSM_BACKEND_DAI_HDMI_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4685. MSM_BACKEND_DAI_HDMI_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_HDMI_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_HDMI_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_HDMI_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_HDMI_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_HDMI_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_HDMI_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. };
  4713. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4714. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4727. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4747. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4751. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4755. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. };
  4779. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4837. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4841. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. };
  4845. /* incall music delivery mixer */
  4846. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4847. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4852. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4856. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4858. msm_routing_put_audio_mixer),
  4859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4860. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4862. msm_routing_put_audio_mixer),
  4863. };
  4864. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. };
  4882. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. };
  4900. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4901. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4902. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4906. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4910. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4914. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4918. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4922. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4926. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4927. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4928. msm_routing_put_audio_mixer),
  4929. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4930. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4931. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4932. msm_routing_put_audio_mixer),
  4933. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4934. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4938. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4940. msm_routing_put_audio_mixer),
  4941. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4942. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4943. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4944. msm_routing_put_audio_mixer),
  4945. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4946. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. };
  4966. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4990. msm_routing_put_audio_mixer),
  4991. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4993. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4994. msm_routing_put_audio_mixer),
  4995. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4996. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5000. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5008. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. };
  5032. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5033. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_USB_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5038. MSM_BACKEND_DAI_USB_RX,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5042. MSM_BACKEND_DAI_USB_RX,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5046. MSM_BACKEND_DAI_USB_RX,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5050. MSM_BACKEND_DAI_USB_RX,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5054. MSM_BACKEND_DAI_USB_RX,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5058. MSM_BACKEND_DAI_USB_RX,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5062. MSM_BACKEND_DAI_USB_RX,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5066. MSM_BACKEND_DAI_USB_RX,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5070. MSM_BACKEND_DAI_USB_RX,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5074. MSM_BACKEND_DAI_USB_RX,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5078. MSM_BACKEND_DAI_USB_RX,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5082. MSM_BACKEND_DAI_USB_RX,
  5083. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5084. msm_routing_put_audio_mixer),
  5085. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5086. MSM_BACKEND_DAI_USB_RX,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5090. MSM_BACKEND_DAI_USB_RX,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5094. MSM_BACKEND_DAI_USB_RX,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. };
  5098. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5112. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5116. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5120. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5124. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5128. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5132. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5134. msm_routing_put_audio_mixer),
  5135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5136. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5140. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5144. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5148. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5152. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5156. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. };
  5184. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5186. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5190. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5194. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5196. msm_routing_put_audio_mixer),
  5197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5198. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5200. msm_routing_put_audio_mixer),
  5201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5202. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5206. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5210. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5212. msm_routing_put_audio_mixer),
  5213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5214. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5218. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5222. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5226. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5228. msm_routing_put_audio_mixer),
  5229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5230. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5234. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. };
  5250. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5251. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_INT_FM_RX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_INT_FM_RX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5260. MSM_BACKEND_DAI_INT_FM_RX,
  5261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5262. msm_routing_put_audio_mixer),
  5263. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5264. MSM_BACKEND_DAI_INT_FM_RX,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5268. MSM_BACKEND_DAI_INT_FM_RX,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5272. MSM_BACKEND_DAI_INT_FM_RX,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5276. MSM_BACKEND_DAI_INT_FM_RX,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5280. MSM_BACKEND_DAI_INT_FM_RX,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5284. MSM_BACKEND_DAI_INT_FM_RX,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_INT_FM_RX,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_INT_FM_RX,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_INT_FM_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_INT_FM_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_INT_FM_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_INT_FM_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_INT_FM_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_INT_FM_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_INT_FM_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_INT_FM_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_INT_FM_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_INT_FM_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. };
  5336. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5337. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_AFE_PCM_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_AFE_PCM_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_AFE_PCM_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_AFE_PCM_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_AFE_PCM_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_AFE_PCM_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_AFE_PCM_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_AFE_PCM_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_AFE_PCM_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_AFE_PCM_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_AFE_PCM_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_AFE_PCM_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_AFE_PCM_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_AFE_PCM_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_AFE_PCM_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_AFE_PCM_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_AFE_PCM_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_AFE_PCM_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_AFE_PCM_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_AFE_PCM_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_AFE_PCM_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. };
  5422. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_AUXPCM_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_AUXPCM_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_AUXPCM_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_AUXPCM_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_AUXPCM_RX,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_AUXPCM_RX,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_AUXPCM_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_AUXPCM_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_AUXPCM_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_AUXPCM_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_AUXPCM_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_AUXPCM_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_AUXPCM_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_AUXPCM_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_AUXPCM_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_AUXPCM_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_AUXPCM_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_AUXPCM_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_AUXPCM_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_AUXPCM_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_AUXPCM_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. };
  5508. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5509. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. };
  5594. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5595. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. };
  5660. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5661. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. };
  5726. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. };
  5792. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. };
  5858. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5859. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  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 pri_tdm_rx_2_mixer_controls[] = {
  5925. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. };
  5990. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5991. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. };
  6056. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6057. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. };
  6122. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6123. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. };
  6188. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6189. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. };
  6254. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6255. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. };
  6320. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6321. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. };
  6386. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6387. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. };
  6452. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6453. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. };
  6518. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6519. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. };
  6584. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6585. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. };
  6650. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6651. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. };
  6716. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. };
  6782. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  6783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. };
  6848. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  6849. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. };
  6918. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  6919. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. };
  6984. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  6985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. };
  7054. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7055. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. };
  7124. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. };
  7194. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. };
  7264. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. };
  7330. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. };
  7400. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. };
  7470. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. };
  7540. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7541. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_PRI_I2S_TX,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_MI2S_TX,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_AUXPCM_TX,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_INT_FM_TX,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_AFE_PCM_TX,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_USB_TX,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. };
  7722. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  7723. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_INT_FM_TX,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_MI2S_TX,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_USB_TX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. };
  7860. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  7861. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_INT_FM_TX,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_MI2S_TX,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_AFE_PCM_TX,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_AUXPCM_TX,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. };
  7998. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  7999. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_INT_FM_TX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_AFE_PCM_TX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_TX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. };
  8132. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8133. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_FM_TX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_MI2S_TX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_AFE_PCM_TX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_AUXPCM_TX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_USB_TX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. };
  8290. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8291. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_FM_TX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_AUXPCM_TX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_USB_TX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. };
  8428. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_INT_FM_TX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_AFE_PCM_TX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_USB_TX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. };
  8570. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8571. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_INT_FM_TX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_AFE_PCM_TX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_USB_TX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_MI2S_TX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_AUXPCM_TX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. };
  8712. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  8713. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_INT_FM_TX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_AFE_PCM_TX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. };
  8794. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  8795. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_INT_FM_TX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_AFE_PCM_TX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_USB_TX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_MI2S_TX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_AUXPCM_TX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. };
  8900. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  8901. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_INT_FM_TX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_AFE_PCM_TX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. };
  8942. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  8943. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_INT_FM_TX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_AFE_PCM_TX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. };
  8984. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  8985. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_INT_FM_TX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_AFE_PCM_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. };
  9026. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9027. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. };
  9128. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_INT_FM_TX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_AFE_PCM_TX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. };
  9170. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_INT_FM_TX,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_AFE_PCM_TX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. };
  9212. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9213. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_I2S_RX,
  9215. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9216. msm_routing_put_voice_mixer),
  9217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_I2S_RX,
  9219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9220. msm_routing_put_voice_mixer),
  9221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_I2S_RX,
  9223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9224. msm_routing_put_voice_mixer),
  9225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_I2S_RX,
  9227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9228. msm_routing_put_voice_mixer),
  9229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_I2S_RX,
  9231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9232. msm_routing_put_voice_mixer),
  9233. };
  9234. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9235. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_SEC_I2S_RX,
  9237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9238. msm_routing_put_voice_mixer),
  9239. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_SEC_I2S_RX,
  9241. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9242. msm_routing_put_voice_mixer),
  9243. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_SEC_I2S_RX,
  9245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9246. msm_routing_put_voice_mixer),
  9247. };
  9248. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9252. msm_routing_put_voice_mixer),
  9253. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9255. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9256. msm_routing_put_voice_mixer),
  9257. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9259. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9260. msm_routing_put_voice_mixer),
  9261. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9263. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9264. msm_routing_put_voice_mixer),
  9265. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9267. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9268. msm_routing_put_voice_mixer),
  9269. };
  9270. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9274. msm_routing_put_voice_mixer),
  9275. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9277. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9278. msm_routing_put_voice_mixer),
  9279. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9281. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9282. msm_routing_put_voice_mixer),
  9283. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9285. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9286. msm_routing_put_voice_mixer),
  9287. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9289. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9290. msm_routing_put_voice_mixer),
  9291. };
  9292. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9295. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9296. msm_routing_put_voice_mixer),
  9297. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9299. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9300. msm_routing_put_voice_mixer),
  9301. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9304. msm_routing_put_voice_mixer),
  9305. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9307. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9308. msm_routing_put_voice_mixer),
  9309. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9311. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9312. msm_routing_put_voice_mixer),
  9313. };
  9314. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_USB_RX,
  9317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9318. msm_routing_put_voice_mixer),
  9319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_USB_RX,
  9321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9322. msm_routing_put_voice_mixer),
  9323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_USB_RX,
  9325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9326. msm_routing_put_voice_mixer),
  9327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_USB_RX,
  9329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9330. msm_routing_put_voice_mixer),
  9331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_USB_RX,
  9333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9334. msm_routing_put_voice_mixer),
  9335. };
  9336. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9340. msm_routing_put_voice_mixer),
  9341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9344. msm_routing_put_voice_mixer),
  9345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9348. msm_routing_put_voice_mixer),
  9349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9352. msm_routing_put_voice_mixer),
  9353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9356. msm_routing_put_voice_mixer),
  9357. };
  9358. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9362. msm_routing_put_voice_mixer),
  9363. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9366. msm_routing_put_voice_mixer),
  9367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9370. msm_routing_put_voice_mixer),
  9371. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9373. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9374. msm_routing_put_voice_mixer),
  9375. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9377. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9378. msm_routing_put_voice_mixer),
  9379. };
  9380. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9381. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9383. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9384. msm_routing_put_voice_mixer),
  9385. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9387. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9388. msm_routing_put_voice_mixer),
  9389. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9392. msm_routing_put_voice_mixer),
  9393. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9396. msm_routing_put_voice_mixer),
  9397. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9399. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9400. msm_routing_put_voice_mixer),
  9401. };
  9402. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9403. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_MI2S_RX,
  9405. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9406. msm_routing_put_voice_mixer),
  9407. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_MI2S_RX,
  9409. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9410. msm_routing_put_voice_mixer),
  9411. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_MI2S_RX,
  9413. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9414. msm_routing_put_voice_mixer),
  9415. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_MI2S_RX,
  9417. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9418. msm_routing_put_voice_mixer),
  9419. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_MI2S_RX,
  9421. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9422. msm_routing_put_voice_mixer),
  9423. };
  9424. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  9425. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9427. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9428. msm_routing_put_voice_mixer),
  9429. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9431. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9432. msm_routing_put_voice_mixer),
  9433. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9435. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9436. msm_routing_put_voice_mixer),
  9437. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9439. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9440. msm_routing_put_voice_mixer),
  9441. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9443. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9444. msm_routing_put_voice_mixer),
  9445. };
  9446. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  9447. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9449. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9450. msm_routing_put_voice_mixer),
  9451. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9453. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9454. msm_routing_put_voice_mixer),
  9455. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9457. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9458. msm_routing_put_voice_mixer),
  9459. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9461. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9462. msm_routing_put_voice_mixer),
  9463. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_INT0_MI2S_RX,
  9465. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9466. msm_routing_put_voice_mixer),
  9467. };
  9468. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  9469. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9472. msm_routing_put_voice_mixer),
  9473. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9475. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9476. msm_routing_put_voice_mixer),
  9477. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9480. msm_routing_put_voice_mixer),
  9481. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9484. msm_routing_put_voice_mixer),
  9485. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_INT4_MI2S_RX,
  9487. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9488. msm_routing_put_voice_mixer),
  9489. };
  9490. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  9491. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9493. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9494. msm_routing_put_voice_mixer),
  9495. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9497. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9498. msm_routing_put_voice_mixer),
  9499. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9501. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9502. msm_routing_put_voice_mixer),
  9503. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9505. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9506. msm_routing_put_voice_mixer),
  9507. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9509. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9510. msm_routing_put_voice_mixer),
  9511. };
  9512. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  9513. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9516. msm_routing_put_voice_mixer),
  9517. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9519. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9520. msm_routing_put_voice_mixer),
  9521. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9524. msm_routing_put_voice_mixer),
  9525. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9528. msm_routing_put_voice_mixer),
  9529. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9532. msm_routing_put_voice_mixer),
  9533. };
  9534. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  9535. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9537. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9538. msm_routing_put_voice_mixer),
  9539. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9541. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9542. msm_routing_put_voice_mixer),
  9543. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9545. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9546. msm_routing_put_voice_mixer),
  9547. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9550. msm_routing_put_voice_mixer),
  9551. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9553. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9554. msm_routing_put_voice_mixer),
  9555. };
  9556. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  9557. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_AFE_PCM_RX,
  9559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9560. msm_routing_put_voice_mixer),
  9561. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_AFE_PCM_RX,
  9563. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9564. msm_routing_put_voice_mixer),
  9565. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_AFE_PCM_RX,
  9567. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9568. msm_routing_put_voice_mixer),
  9569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_AFE_PCM_RX,
  9571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9572. msm_routing_put_voice_mixer),
  9573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_AFE_PCM_RX,
  9575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9576. msm_routing_put_voice_mixer),
  9577. };
  9578. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  9579. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_AUXPCM_RX,
  9581. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9582. msm_routing_put_voice_mixer),
  9583. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_AUXPCM_RX,
  9585. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9586. msm_routing_put_voice_mixer),
  9587. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_AUXPCM_RX,
  9589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9590. msm_routing_put_voice_mixer),
  9591. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_AUXPCM_RX,
  9593. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9594. msm_routing_put_voice_mixer),
  9595. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_AUXPCM_RX,
  9597. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9598. msm_routing_put_voice_mixer),
  9599. };
  9600. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  9601. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9604. msm_routing_put_voice_mixer),
  9605. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9607. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9608. msm_routing_put_voice_mixer),
  9609. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9611. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9612. msm_routing_put_voice_mixer),
  9613. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9615. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9616. msm_routing_put_voice_mixer),
  9617. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9619. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9620. msm_routing_put_voice_mixer),
  9621. };
  9622. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  9623. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9625. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9626. msm_routing_put_voice_mixer),
  9627. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9629. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9630. msm_routing_put_voice_mixer),
  9631. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9634. msm_routing_put_voice_mixer),
  9635. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9637. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9638. msm_routing_put_voice_mixer),
  9639. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9641. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9642. msm_routing_put_voice_mixer),
  9643. };
  9644. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  9645. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9647. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9648. msm_routing_put_voice_mixer),
  9649. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9651. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9652. msm_routing_put_voice_mixer),
  9653. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9655. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9656. msm_routing_put_voice_mixer),
  9657. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9659. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9660. msm_routing_put_voice_mixer),
  9661. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9663. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9664. msm_routing_put_voice_mixer),
  9665. };
  9666. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  9667. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9669. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9670. msm_routing_put_voice_mixer),
  9671. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9673. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9674. msm_routing_put_voice_mixer),
  9675. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9677. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9678. msm_routing_put_voice_mixer),
  9679. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9682. msm_routing_put_voice_mixer),
  9683. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9685. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9686. msm_routing_put_voice_mixer),
  9687. };
  9688. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  9689. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_HDMI_RX,
  9691. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9692. msm_routing_put_voice_mixer),
  9693. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_HDMI_RX,
  9695. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9696. msm_routing_put_voice_mixer),
  9697. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_HDMI_RX,
  9699. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9700. msm_routing_put_voice_mixer),
  9701. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_HDMI_RX,
  9703. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9704. msm_routing_put_voice_mixer),
  9705. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_HDMI_RX,
  9707. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9708. msm_routing_put_voice_mixer),
  9709. };
  9710. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  9711. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  9713. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9714. msm_routing_put_voice_mixer),
  9715. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  9717. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9718. msm_routing_put_voice_mixer),
  9719. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  9721. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9722. msm_routing_put_voice_mixer),
  9723. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  9725. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9726. msm_routing_put_voice_mixer),
  9727. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  9729. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9730. msm_routing_put_voice_mixer),
  9731. };
  9732. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  9733. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  9735. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9736. msm_routing_put_voice_mixer),
  9737. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  9739. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9740. msm_routing_put_voice_mixer),
  9741. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  9743. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9744. msm_routing_put_voice_mixer),
  9745. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  9747. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9748. msm_routing_put_voice_mixer),
  9749. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  9751. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9752. msm_routing_put_voice_mixer),
  9753. };
  9754. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  9755. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9757. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9758. msm_routing_put_voice_mixer),
  9759. };
  9760. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  9761. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_EXTPROC_RX,
  9763. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9764. msm_routing_put_voice_mixer),
  9765. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_EXTPROC_RX,
  9767. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9768. msm_routing_put_voice_mixer),
  9769. };
  9770. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  9771. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9773. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9774. msm_routing_put_voice_mixer),
  9775. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9777. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9778. msm_routing_put_voice_mixer),
  9779. };
  9780. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  9781. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9783. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9784. msm_routing_put_voice_mixer),
  9785. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9787. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9788. msm_routing_put_voice_mixer),
  9789. };
  9790. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  9791. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_PRI_I2S_TX,
  9793. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9794. msm_routing_put_voice_mixer),
  9795. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_MI2S_TX,
  9797. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9798. msm_routing_put_voice_mixer),
  9799. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9801. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9802. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9804. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9805. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  9807. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9808. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  9810. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9811. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9813. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9814. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9816. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9817. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9819. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9820. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9822. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9823. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  9825. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9826. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  9828. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9829. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  9831. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9832. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9834. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9835. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  9837. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9838. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_USB_TX,
  9840. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9841. msm_routing_put_voice_mixer),
  9842. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  9844. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9845. };
  9846. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  9847. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_PRI_I2S_TX,
  9849. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9850. msm_routing_put_voice_mixer),
  9851. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_MI2S_TX,
  9853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9854. msm_routing_put_voice_mixer),
  9855. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9857. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9858. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9860. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9861. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  9863. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9864. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  9865. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  9866. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9867. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9869. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9870. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9872. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9873. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9875. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9876. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  9877. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9878. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9879. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  9881. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9882. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  9884. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9885. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  9887. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9888. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9890. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9891. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9893. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9894. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  9896. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  9897. };
  9898. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  9899. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_PRI_I2S_TX,
  9901. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9902. msm_routing_put_voice_mixer),
  9903. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_MI2S_TX,
  9905. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9906. msm_routing_put_voice_mixer),
  9907. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9909. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9910. msm_routing_put_voice_mixer),
  9911. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9913. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9914. msm_routing_put_voice_mixer),
  9915. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_AFE_PCM_TX,
  9917. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9918. msm_routing_put_voice_mixer),
  9919. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_AUXPCM_TX,
  9921. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9922. msm_routing_put_voice_mixer),
  9923. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9925. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9926. msm_routing_put_voice_mixer),
  9927. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9929. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9930. msm_routing_put_voice_mixer),
  9931. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9933. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9934. msm_routing_put_voice_mixer),
  9935. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9938. msm_routing_put_voice_mixer),
  9939. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9942. msm_routing_put_voice_mixer),
  9943. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9945. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9946. msm_routing_put_voice_mixer),
  9947. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9949. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9950. msm_routing_put_voice_mixer),
  9951. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9953. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9954. msm_routing_put_voice_mixer),
  9955. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9957. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9958. msm_routing_put_voice_mixer),
  9959. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_USB_TX,
  9961. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9962. msm_routing_put_voice_mixer),
  9963. };
  9964. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  9965. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_EXTPROC_TX,
  9967. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9968. msm_routing_put_voice_stub_mixer),
  9969. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9971. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9972. msm_routing_put_voice_stub_mixer),
  9973. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9975. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9976. msm_routing_put_voice_stub_mixer),
  9977. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  9979. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9980. msm_routing_put_voice_stub_mixer),
  9981. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_MI2S_TX,
  9983. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9984. msm_routing_put_voice_stub_mixer),
  9985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9987. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9988. msm_routing_put_voice_stub_mixer),
  9989. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9991. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9992. msm_routing_put_voice_stub_mixer),
  9993. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9995. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  9996. msm_routing_put_voice_stub_mixer),
  9997. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9999. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10000. msm_routing_put_voice_stub_mixer),
  10001. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_AUXPCM_TX,
  10003. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10004. msm_routing_put_voice_stub_mixer),
  10005. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10007. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10008. msm_routing_put_voice_stub_mixer),
  10009. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10011. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10012. msm_routing_put_voice_stub_mixer),
  10013. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10015. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10016. msm_routing_put_voice_stub_mixer),
  10017. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10019. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10020. msm_routing_put_voice_stub_mixer),
  10021. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10023. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10024. msm_routing_put_voice_stub_mixer),
  10025. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10027. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10028. msm_routing_put_voice_stub_mixer),
  10029. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_AFE_PCM_TX,
  10031. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10032. msm_routing_put_voice_stub_mixer),
  10033. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10035. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10036. msm_routing_put_voice_stub_mixer),
  10037. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10039. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10040. msm_routing_put_voice_stub_mixer),
  10041. };
  10042. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10043. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_EXTPROC_TX,
  10045. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10046. msm_routing_put_voice_stub_mixer),
  10047. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10049. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10050. msm_routing_put_voice_stub_mixer),
  10051. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10053. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10054. msm_routing_put_voice_stub_mixer),
  10055. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_AUXPCM_TX,
  10057. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10058. msm_routing_put_voice_stub_mixer),
  10059. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10061. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10062. msm_routing_put_voice_stub_mixer),
  10063. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10065. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10066. msm_routing_put_voice_stub_mixer),
  10067. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10069. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10070. msm_routing_put_voice_stub_mixer),
  10071. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10073. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10074. msm_routing_put_voice_stub_mixer),
  10075. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10077. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10078. msm_routing_put_voice_stub_mixer),
  10079. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10081. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10082. msm_routing_put_voice_stub_mixer),
  10083. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_AFE_PCM_TX,
  10085. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10086. msm_routing_put_voice_stub_mixer),
  10087. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10089. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10090. msm_routing_put_voice_stub_mixer),
  10091. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10093. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10094. msm_routing_put_voice_stub_mixer),
  10095. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10097. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10098. msm_routing_put_voice_stub_mixer),
  10099. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10101. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10102. msm_routing_put_voice_stub_mixer),
  10103. };
  10104. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10105. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_EXTPROC_TX,
  10107. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10108. msm_routing_put_voice_stub_mixer),
  10109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10111. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10112. msm_routing_put_voice_stub_mixer),
  10113. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10115. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10116. msm_routing_put_voice_stub_mixer),
  10117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_AUXPCM_TX,
  10119. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10120. msm_routing_put_voice_stub_mixer),
  10121. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10123. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10124. msm_routing_put_voice_stub_mixer),
  10125. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10127. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10128. msm_routing_put_voice_stub_mixer),
  10129. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10131. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10132. msm_routing_put_voice_stub_mixer),
  10133. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10135. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10136. msm_routing_put_voice_stub_mixer),
  10137. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10139. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10140. msm_routing_put_voice_stub_mixer),
  10141. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10143. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10144. msm_routing_put_voice_stub_mixer),
  10145. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_AFE_PCM_TX,
  10147. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10148. msm_routing_put_voice_stub_mixer),
  10149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10151. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10152. msm_routing_put_voice_stub_mixer),
  10153. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10155. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10156. msm_routing_put_voice_stub_mixer),
  10157. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10159. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10160. msm_routing_put_voice_stub_mixer),
  10161. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10163. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10164. msm_routing_put_voice_stub_mixer),
  10165. };
  10166. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10167. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_PRI_I2S_TX,
  10169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10170. msm_routing_put_voice_mixer),
  10171. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10173. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10174. msm_routing_put_voice_mixer),
  10175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10177. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10178. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10179. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_AFE_PCM_TX,
  10181. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10182. msm_routing_put_voice_mixer),
  10183. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_AUXPCM_TX,
  10185. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10186. msm_routing_put_voice_mixer),
  10187. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10189. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10190. msm_routing_put_voice_mixer),
  10191. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10193. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10194. msm_routing_put_voice_mixer),
  10195. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10197. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10198. msm_routing_put_voice_mixer),
  10199. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10201. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10202. msm_routing_put_voice_mixer),
  10203. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_MI2S_TX,
  10205. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10206. msm_routing_put_voice_mixer),
  10207. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10210. msm_routing_put_voice_mixer),
  10211. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10214. msm_routing_put_voice_mixer),
  10215. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10217. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10218. msm_routing_put_voice_mixer),
  10219. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10221. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10222. msm_routing_put_voice_mixer),
  10223. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10225. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10226. msm_routing_put_voice_mixer),
  10227. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_USB_TX,
  10229. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10230. msm_routing_put_voice_mixer),
  10231. };
  10232. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10235. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10236. msm_routing_put_port_mixer),
  10237. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10239. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10240. msm_routing_put_port_mixer),
  10241. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10243. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10244. msm_routing_put_port_mixer),
  10245. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10247. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10248. msm_routing_put_port_mixer),
  10249. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10251. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10252. msm_routing_put_port_mixer),
  10253. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10255. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10256. msm_routing_put_port_mixer),
  10257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10259. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10260. msm_routing_put_port_mixer),
  10261. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10263. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10264. msm_routing_put_port_mixer),
  10265. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10267. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10268. msm_routing_put_port_mixer),
  10269. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10271. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10272. msm_routing_put_port_mixer),
  10273. };
  10274. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10275. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10277. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10278. msm_routing_put_port_mixer),
  10279. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10281. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10282. msm_routing_put_port_mixer),
  10283. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10285. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10286. msm_routing_put_port_mixer),
  10287. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10289. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10290. msm_routing_put_port_mixer),
  10291. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10293. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10294. msm_routing_put_port_mixer),
  10295. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10297. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10298. msm_routing_put_port_mixer),
  10299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10302. msm_routing_put_port_mixer),
  10303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10305. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10306. msm_routing_put_port_mixer),
  10307. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10309. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10310. msm_routing_put_port_mixer),
  10311. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10313. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10314. msm_routing_put_port_mixer),
  10315. };
  10316. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10317. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10319. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10320. msm_routing_put_port_mixer),
  10321. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10323. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10324. msm_routing_put_port_mixer),
  10325. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10327. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10328. msm_routing_put_port_mixer),
  10329. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10331. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10332. msm_routing_put_port_mixer),
  10333. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10335. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10336. msm_routing_put_port_mixer),
  10337. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10339. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10340. msm_routing_put_port_mixer),
  10341. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10343. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10344. msm_routing_put_port_mixer),
  10345. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10347. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10351. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10352. msm_routing_put_port_mixer),
  10353. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10355. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10356. msm_routing_put_port_mixer),
  10357. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10359. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10360. msm_routing_put_port_mixer),
  10361. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10363. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10364. msm_routing_put_port_mixer),
  10365. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10367. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10371. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10372. msm_routing_put_port_mixer),
  10373. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10375. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10376. msm_routing_put_port_mixer),
  10377. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10379. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10380. msm_routing_put_port_mixer),
  10381. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10383. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10384. msm_routing_put_port_mixer),
  10385. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10387. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10388. msm_routing_put_port_mixer),
  10389. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10391. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10392. msm_routing_put_port_mixer),
  10393. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10396. msm_routing_put_port_mixer),
  10397. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10399. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10400. msm_routing_put_port_mixer),
  10401. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10403. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  10404. msm_routing_put_port_mixer),
  10405. };
  10406. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  10407. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_AUXPCM_RX,
  10409. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10410. msm_routing_put_port_mixer),
  10411. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_AUXPCM_RX,
  10413. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10414. msm_routing_put_port_mixer),
  10415. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_AUXPCM_RX,
  10417. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10418. msm_routing_put_port_mixer),
  10419. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_AUXPCM_RX,
  10421. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10422. msm_routing_put_port_mixer),
  10423. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_AUXPCM_RX,
  10425. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  10426. msm_routing_put_port_mixer),
  10427. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_AUXPCM_RX,
  10429. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10430. msm_routing_put_port_mixer),
  10431. };
  10432. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  10433. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10435. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10436. msm_routing_put_port_mixer),
  10437. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10439. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10440. msm_routing_put_port_mixer),
  10441. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10443. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10444. msm_routing_put_port_mixer),
  10445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10447. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10448. msm_routing_put_port_mixer),
  10449. };
  10450. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  10451. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10453. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10454. msm_routing_put_port_mixer),
  10455. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10457. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10458. msm_routing_put_port_mixer),
  10459. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10461. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10462. msm_routing_put_port_mixer),
  10463. };
  10464. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  10465. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10467. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10468. msm_routing_put_port_mixer),
  10469. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10471. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10472. msm_routing_put_port_mixer),
  10473. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10475. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10476. msm_routing_put_port_mixer),
  10477. };
  10478. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  10479. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10481. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10482. msm_routing_put_port_mixer),
  10483. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10485. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10486. msm_routing_put_port_mixer),
  10487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10490. msm_routing_put_port_mixer),
  10491. };
  10492. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  10493. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10495. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10496. msm_routing_put_port_mixer),
  10497. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10499. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  10500. msm_routing_put_port_mixer),
  10501. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10503. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10504. msm_routing_put_port_mixer),
  10505. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10507. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10508. msm_routing_put_port_mixer),
  10509. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10511. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10512. msm_routing_put_port_mixer),
  10513. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10515. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10516. msm_routing_put_port_mixer),
  10517. };
  10518. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  10519. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10521. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  10522. msm_routing_put_port_mixer),
  10523. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10525. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10526. msm_routing_put_port_mixer),
  10527. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10529. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  10530. msm_routing_put_port_mixer),
  10531. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10533. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  10534. msm_routing_put_port_mixer),
  10535. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10537. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  10538. msm_routing_put_port_mixer),
  10539. };
  10540. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  10541. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10543. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10544. msm_routing_put_port_mixer),
  10545. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10547. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10548. msm_routing_put_port_mixer),
  10549. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10551. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10552. msm_routing_put_port_mixer),
  10553. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10555. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10556. msm_routing_put_port_mixer),
  10557. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10559. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10560. msm_routing_put_port_mixer),
  10561. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10563. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10564. msm_routing_put_port_mixer),
  10565. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10567. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10568. msm_routing_put_port_mixer),
  10569. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10571. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10572. msm_routing_put_port_mixer),
  10573. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10575. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10576. msm_routing_put_port_mixer),
  10577. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10579. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10580. msm_routing_put_port_mixer),
  10581. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10583. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10584. msm_routing_put_port_mixer),
  10585. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10587. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10588. msm_routing_put_port_mixer),
  10589. };
  10590. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  10591. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10593. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10594. msm_routing_put_port_mixer),
  10595. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10597. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10598. msm_routing_put_port_mixer),
  10599. };
  10600. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  10601. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_AFE_PCM_RX,
  10603. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10604. msm_routing_put_port_mixer),
  10605. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_AFE_PCM_RX,
  10607. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10608. msm_routing_put_port_mixer),
  10609. };
  10610. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  10611. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_HDMI_RX,
  10613. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10614. msm_routing_put_port_mixer),
  10615. };
  10616. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  10617. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10619. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10620. msm_routing_put_port_mixer),
  10621. };
  10622. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  10623. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10625. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10626. msm_routing_put_port_mixer),
  10627. };
  10628. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  10629. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_SEC_I2S_RX,
  10631. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10632. msm_routing_put_port_mixer),
  10633. };
  10634. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  10635. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_MI2S_RX,
  10637. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10638. msm_routing_put_port_mixer),
  10639. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_MI2S_RX,
  10641. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10642. msm_routing_put_port_mixer),
  10643. };
  10644. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  10645. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10647. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10648. msm_routing_put_port_mixer),
  10649. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10651. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10652. msm_routing_put_port_mixer),
  10653. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10655. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10656. msm_routing_put_port_mixer),
  10657. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10659. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10660. msm_routing_put_port_mixer),
  10661. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10663. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10664. msm_routing_put_port_mixer),
  10665. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10667. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10668. msm_routing_put_port_mixer),
  10669. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10671. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10672. msm_routing_put_port_mixer),
  10673. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10675. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10676. msm_routing_put_port_mixer),
  10677. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10679. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10680. msm_routing_put_port_mixer),
  10681. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10683. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10684. msm_routing_put_port_mixer),
  10685. };
  10686. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  10687. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_USB_RX,
  10689. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  10690. msm_routing_put_port_mixer),
  10691. };
  10692. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  10693. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10695. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10696. msm_routing_put_port_mixer),
  10697. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10700. msm_routing_put_port_mixer),
  10701. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10703. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10704. msm_routing_put_port_mixer),
  10705. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10707. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10708. msm_routing_put_port_mixer),
  10709. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10711. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10712. msm_routing_put_port_mixer),
  10713. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10715. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10716. msm_routing_put_port_mixer),
  10717. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10719. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10720. msm_routing_put_port_mixer),
  10721. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10723. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10724. msm_routing_put_port_mixer),
  10725. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10727. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10728. msm_routing_put_port_mixer),
  10729. };
  10730. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  10731. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10733. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10734. msm_routing_put_port_mixer),
  10735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10737. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10738. msm_routing_put_port_mixer),
  10739. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10741. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10742. msm_routing_put_port_mixer),
  10743. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10745. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10746. msm_routing_put_port_mixer),
  10747. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10749. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10750. msm_routing_put_port_mixer),
  10751. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10753. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10754. msm_routing_put_port_mixer),
  10755. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10757. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10758. msm_routing_put_port_mixer),
  10759. };
  10760. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  10761. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10763. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10764. msm_routing_get_port_mixer,
  10765. msm_routing_put_port_mixer),
  10766. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10768. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10769. msm_routing_get_port_mixer,
  10770. msm_routing_put_port_mixer),
  10771. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10773. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10774. msm_routing_get_port_mixer,
  10775. msm_routing_put_port_mixer),
  10776. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10778. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10779. msm_routing_get_port_mixer,
  10780. msm_routing_put_port_mixer),
  10781. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10783. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10784. msm_routing_get_port_mixer,
  10785. msm_routing_put_port_mixer),
  10786. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10788. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10789. msm_routing_get_port_mixer,
  10790. msm_routing_put_port_mixer),
  10791. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10793. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10794. msm_routing_get_port_mixer,
  10795. msm_routing_put_port_mixer),
  10796. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10798. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10799. msm_routing_get_port_mixer,
  10800. msm_routing_put_port_mixer),
  10801. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10803. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  10804. msm_routing_get_port_mixer,
  10805. msm_routing_put_port_mixer),
  10806. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10808. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  10809. msm_routing_get_port_mixer,
  10810. msm_routing_put_port_mixer),
  10811. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10813. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  10814. msm_routing_get_port_mixer,
  10815. msm_routing_put_port_mixer),
  10816. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10818. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  10819. msm_routing_get_port_mixer,
  10820. msm_routing_put_port_mixer),
  10821. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10823. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10824. msm_routing_get_port_mixer,
  10825. msm_routing_put_port_mixer),
  10826. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10828. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10829. msm_routing_get_port_mixer,
  10830. msm_routing_put_port_mixer),
  10831. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10833. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10834. msm_routing_get_port_mixer,
  10835. msm_routing_put_port_mixer),
  10836. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10838. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10839. msm_routing_get_port_mixer,
  10840. msm_routing_put_port_mixer),
  10841. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10843. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10844. msm_routing_get_port_mixer,
  10845. msm_routing_put_port_mixer),
  10846. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10848. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10849. msm_routing_get_port_mixer,
  10850. msm_routing_put_port_mixer),
  10851. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10853. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10854. msm_routing_get_port_mixer,
  10855. msm_routing_put_port_mixer),
  10856. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  10858. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10859. msm_routing_get_port_mixer,
  10860. msm_routing_put_port_mixer),
  10861. };
  10862. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  10863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10866. msm_routing_get_port_mixer,
  10867. msm_routing_put_port_mixer),
  10868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10871. msm_routing_get_port_mixer,
  10872. msm_routing_put_port_mixer),
  10873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10876. msm_routing_get_port_mixer,
  10877. msm_routing_put_port_mixer),
  10878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10881. msm_routing_get_port_mixer,
  10882. msm_routing_put_port_mixer),
  10883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10886. msm_routing_get_port_mixer,
  10887. msm_routing_put_port_mixer),
  10888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10889. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10891. msm_routing_get_port_mixer,
  10892. msm_routing_put_port_mixer),
  10893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10896. msm_routing_get_port_mixer,
  10897. msm_routing_put_port_mixer),
  10898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10901. msm_routing_get_port_mixer,
  10902. msm_routing_put_port_mixer),
  10903. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10905. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  10906. msm_routing_get_port_mixer,
  10907. msm_routing_put_port_mixer),
  10908. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10910. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  10911. msm_routing_get_port_mixer,
  10912. msm_routing_put_port_mixer),
  10913. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10915. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  10916. msm_routing_get_port_mixer,
  10917. msm_routing_put_port_mixer),
  10918. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10920. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  10921. msm_routing_get_port_mixer,
  10922. msm_routing_put_port_mixer),
  10923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10926. msm_routing_get_port_mixer,
  10927. msm_routing_put_port_mixer),
  10928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10931. msm_routing_get_port_mixer,
  10932. msm_routing_put_port_mixer),
  10933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10936. msm_routing_get_port_mixer,
  10937. msm_routing_put_port_mixer),
  10938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10941. msm_routing_get_port_mixer,
  10942. msm_routing_put_port_mixer),
  10943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10946. msm_routing_get_port_mixer,
  10947. msm_routing_put_port_mixer),
  10948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10951. msm_routing_get_port_mixer,
  10952. msm_routing_put_port_mixer),
  10953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10956. msm_routing_get_port_mixer,
  10957. msm_routing_put_port_mixer),
  10958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10959. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10961. msm_routing_get_port_mixer,
  10962. msm_routing_put_port_mixer),
  10963. };
  10964. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  10965. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10967. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10968. msm_routing_get_port_mixer,
  10969. msm_routing_put_port_mixer),
  10970. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10972. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10973. msm_routing_get_port_mixer,
  10974. msm_routing_put_port_mixer),
  10975. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10977. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10978. msm_routing_get_port_mixer,
  10979. msm_routing_put_port_mixer),
  10980. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10982. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10983. msm_routing_get_port_mixer,
  10984. msm_routing_put_port_mixer),
  10985. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10987. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10988. msm_routing_get_port_mixer,
  10989. msm_routing_put_port_mixer),
  10990. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10992. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10993. msm_routing_get_port_mixer,
  10994. msm_routing_put_port_mixer),
  10995. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10997. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10998. msm_routing_get_port_mixer,
  10999. msm_routing_put_port_mixer),
  11000. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11002. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11003. msm_routing_get_port_mixer,
  11004. msm_routing_put_port_mixer),
  11005. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11007. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11008. msm_routing_get_port_mixer,
  11009. msm_routing_put_port_mixer),
  11010. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11012. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11013. msm_routing_get_port_mixer,
  11014. msm_routing_put_port_mixer),
  11015. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11017. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11018. msm_routing_get_port_mixer,
  11019. msm_routing_put_port_mixer),
  11020. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11022. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11023. msm_routing_get_port_mixer,
  11024. msm_routing_put_port_mixer),
  11025. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11027. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11028. msm_routing_get_port_mixer,
  11029. msm_routing_put_port_mixer),
  11030. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11032. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11033. msm_routing_get_port_mixer,
  11034. msm_routing_put_port_mixer),
  11035. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11037. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11038. msm_routing_get_port_mixer,
  11039. msm_routing_put_port_mixer),
  11040. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11042. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11043. msm_routing_get_port_mixer,
  11044. msm_routing_put_port_mixer),
  11045. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11047. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11048. msm_routing_get_port_mixer,
  11049. msm_routing_put_port_mixer),
  11050. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11052. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11053. msm_routing_get_port_mixer,
  11054. msm_routing_put_port_mixer),
  11055. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11057. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11058. msm_routing_get_port_mixer,
  11059. msm_routing_put_port_mixer),
  11060. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11062. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11063. msm_routing_get_port_mixer,
  11064. msm_routing_put_port_mixer),
  11065. };
  11066. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11067. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11069. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11070. msm_routing_get_port_mixer,
  11071. msm_routing_put_port_mixer),
  11072. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11074. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11075. msm_routing_get_port_mixer,
  11076. msm_routing_put_port_mixer),
  11077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11080. msm_routing_get_port_mixer,
  11081. msm_routing_put_port_mixer),
  11082. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11084. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11085. msm_routing_get_port_mixer,
  11086. msm_routing_put_port_mixer),
  11087. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11089. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11090. msm_routing_get_port_mixer,
  11091. msm_routing_put_port_mixer),
  11092. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11094. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11095. msm_routing_get_port_mixer,
  11096. msm_routing_put_port_mixer),
  11097. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11099. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11100. msm_routing_get_port_mixer,
  11101. msm_routing_put_port_mixer),
  11102. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11104. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11105. msm_routing_get_port_mixer,
  11106. msm_routing_put_port_mixer),
  11107. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11109. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11110. msm_routing_get_port_mixer,
  11111. msm_routing_put_port_mixer),
  11112. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11114. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11115. msm_routing_get_port_mixer,
  11116. msm_routing_put_port_mixer),
  11117. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11119. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11120. msm_routing_get_port_mixer,
  11121. msm_routing_put_port_mixer),
  11122. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11124. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11125. msm_routing_get_port_mixer,
  11126. msm_routing_put_port_mixer),
  11127. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11129. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11130. msm_routing_get_port_mixer,
  11131. msm_routing_put_port_mixer),
  11132. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11134. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11135. msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11139. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11140. msm_routing_get_port_mixer,
  11141. msm_routing_put_port_mixer),
  11142. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11144. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11145. msm_routing_get_port_mixer,
  11146. msm_routing_put_port_mixer),
  11147. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11149. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11150. msm_routing_get_port_mixer,
  11151. msm_routing_put_port_mixer),
  11152. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11154. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11155. msm_routing_get_port_mixer,
  11156. msm_routing_put_port_mixer),
  11157. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11159. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11160. msm_routing_get_port_mixer,
  11161. msm_routing_put_port_mixer),
  11162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11164. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11165. msm_routing_get_port_mixer,
  11166. msm_routing_put_port_mixer),
  11167. };
  11168. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11169. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11171. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11172. msm_routing_get_port_mixer,
  11173. msm_routing_put_port_mixer),
  11174. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11176. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11177. msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11181. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11182. msm_routing_get_port_mixer,
  11183. msm_routing_put_port_mixer),
  11184. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11186. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11187. msm_routing_get_port_mixer,
  11188. msm_routing_put_port_mixer),
  11189. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11191. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11192. msm_routing_get_port_mixer,
  11193. msm_routing_put_port_mixer),
  11194. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11196. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11197. msm_routing_get_port_mixer,
  11198. msm_routing_put_port_mixer),
  11199. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11201. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11202. msm_routing_get_port_mixer,
  11203. msm_routing_put_port_mixer),
  11204. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11205. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11206. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11207. msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11211. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11212. msm_routing_get_port_mixer,
  11213. msm_routing_put_port_mixer),
  11214. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11216. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11217. msm_routing_get_port_mixer,
  11218. msm_routing_put_port_mixer),
  11219. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11221. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11222. msm_routing_get_port_mixer,
  11223. msm_routing_put_port_mixer),
  11224. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11225. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11226. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11227. msm_routing_get_port_mixer,
  11228. msm_routing_put_port_mixer),
  11229. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11231. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11232. msm_routing_get_port_mixer,
  11233. msm_routing_put_port_mixer),
  11234. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11236. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11237. msm_routing_get_port_mixer,
  11238. msm_routing_put_port_mixer),
  11239. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11241. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11242. msm_routing_get_port_mixer,
  11243. msm_routing_put_port_mixer),
  11244. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11246. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11247. msm_routing_get_port_mixer,
  11248. msm_routing_put_port_mixer),
  11249. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11251. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11252. msm_routing_get_port_mixer,
  11253. msm_routing_put_port_mixer),
  11254. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11256. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11257. msm_routing_get_port_mixer,
  11258. msm_routing_put_port_mixer),
  11259. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11261. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11262. msm_routing_get_port_mixer,
  11263. msm_routing_put_port_mixer),
  11264. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11266. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11267. msm_routing_get_port_mixer,
  11268. msm_routing_put_port_mixer),
  11269. };
  11270. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11271. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11273. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11274. msm_routing_get_port_mixer,
  11275. msm_routing_put_port_mixer),
  11276. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11278. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11279. msm_routing_get_port_mixer,
  11280. msm_routing_put_port_mixer),
  11281. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11283. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11284. msm_routing_get_port_mixer,
  11285. msm_routing_put_port_mixer),
  11286. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11288. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11289. msm_routing_get_port_mixer,
  11290. msm_routing_put_port_mixer),
  11291. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11293. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11294. msm_routing_get_port_mixer,
  11295. msm_routing_put_port_mixer),
  11296. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11298. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11299. msm_routing_get_port_mixer,
  11300. msm_routing_put_port_mixer),
  11301. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11303. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11304. msm_routing_get_port_mixer,
  11305. msm_routing_put_port_mixer),
  11306. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11307. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11308. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11309. msm_routing_get_port_mixer,
  11310. msm_routing_put_port_mixer),
  11311. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11313. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11314. msm_routing_get_port_mixer,
  11315. msm_routing_put_port_mixer),
  11316. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11318. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11319. msm_routing_get_port_mixer,
  11320. msm_routing_put_port_mixer),
  11321. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11323. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11324. msm_routing_get_port_mixer,
  11325. msm_routing_put_port_mixer),
  11326. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11328. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11329. msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11333. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11334. msm_routing_get_port_mixer,
  11335. msm_routing_put_port_mixer),
  11336. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11338. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11339. msm_routing_get_port_mixer,
  11340. msm_routing_put_port_mixer),
  11341. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11343. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11344. msm_routing_get_port_mixer,
  11345. msm_routing_put_port_mixer),
  11346. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11348. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11349. msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11353. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11354. msm_routing_get_port_mixer,
  11355. msm_routing_put_port_mixer),
  11356. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11358. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11359. msm_routing_get_port_mixer,
  11360. msm_routing_put_port_mixer),
  11361. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11363. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11364. msm_routing_get_port_mixer,
  11365. msm_routing_put_port_mixer),
  11366. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11368. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11369. msm_routing_get_port_mixer,
  11370. msm_routing_put_port_mixer),
  11371. };
  11372. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  11373. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11375. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11376. msm_routing_get_port_mixer,
  11377. msm_routing_put_port_mixer),
  11378. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11380. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11381. msm_routing_get_port_mixer,
  11382. msm_routing_put_port_mixer),
  11383. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11385. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11386. msm_routing_get_port_mixer,
  11387. msm_routing_put_port_mixer),
  11388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11391. msm_routing_get_port_mixer,
  11392. msm_routing_put_port_mixer),
  11393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11395. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11396. msm_routing_get_port_mixer,
  11397. msm_routing_put_port_mixer),
  11398. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11400. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11401. msm_routing_get_port_mixer,
  11402. msm_routing_put_port_mixer),
  11403. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11405. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11406. msm_routing_get_port_mixer,
  11407. msm_routing_put_port_mixer),
  11408. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11410. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11411. msm_routing_get_port_mixer,
  11412. msm_routing_put_port_mixer),
  11413. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11415. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11416. msm_routing_get_port_mixer,
  11417. msm_routing_put_port_mixer),
  11418. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11420. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11421. msm_routing_get_port_mixer,
  11422. msm_routing_put_port_mixer),
  11423. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11425. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11426. msm_routing_get_port_mixer,
  11427. msm_routing_put_port_mixer),
  11428. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11430. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11431. msm_routing_get_port_mixer,
  11432. msm_routing_put_port_mixer),
  11433. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11435. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11436. msm_routing_get_port_mixer,
  11437. msm_routing_put_port_mixer),
  11438. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11440. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11441. msm_routing_get_port_mixer,
  11442. msm_routing_put_port_mixer),
  11443. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11445. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11446. msm_routing_get_port_mixer,
  11447. msm_routing_put_port_mixer),
  11448. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11450. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11451. msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11455. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11456. msm_routing_get_port_mixer,
  11457. msm_routing_put_port_mixer),
  11458. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11460. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11461. msm_routing_get_port_mixer,
  11462. msm_routing_put_port_mixer),
  11463. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11465. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11466. msm_routing_get_port_mixer,
  11467. msm_routing_put_port_mixer),
  11468. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  11470. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11471. msm_routing_get_port_mixer,
  11472. msm_routing_put_port_mixer),
  11473. };
  11474. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  11475. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11477. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11478. msm_routing_get_port_mixer,
  11479. msm_routing_put_port_mixer),
  11480. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11482. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11483. msm_routing_get_port_mixer,
  11484. msm_routing_put_port_mixer),
  11485. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11487. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11488. msm_routing_get_port_mixer,
  11489. msm_routing_put_port_mixer),
  11490. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11492. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11493. msm_routing_get_port_mixer,
  11494. msm_routing_put_port_mixer),
  11495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11497. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11498. msm_routing_get_port_mixer,
  11499. msm_routing_put_port_mixer),
  11500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11502. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11503. msm_routing_get_port_mixer,
  11504. msm_routing_put_port_mixer),
  11505. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11507. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11508. msm_routing_get_port_mixer,
  11509. msm_routing_put_port_mixer),
  11510. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11512. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11513. msm_routing_get_port_mixer,
  11514. msm_routing_put_port_mixer),
  11515. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11517. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11518. msm_routing_get_port_mixer,
  11519. msm_routing_put_port_mixer),
  11520. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11522. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11523. msm_routing_get_port_mixer,
  11524. msm_routing_put_port_mixer),
  11525. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11527. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11528. msm_routing_get_port_mixer,
  11529. msm_routing_put_port_mixer),
  11530. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11532. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11533. msm_routing_get_port_mixer,
  11534. msm_routing_put_port_mixer),
  11535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11537. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11538. msm_routing_get_port_mixer,
  11539. msm_routing_put_port_mixer),
  11540. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11542. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11543. msm_routing_get_port_mixer,
  11544. msm_routing_put_port_mixer),
  11545. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11547. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11548. msm_routing_get_port_mixer,
  11549. msm_routing_put_port_mixer),
  11550. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11552. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11553. msm_routing_get_port_mixer,
  11554. msm_routing_put_port_mixer),
  11555. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11557. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11558. msm_routing_get_port_mixer,
  11559. msm_routing_put_port_mixer),
  11560. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11562. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11563. msm_routing_get_port_mixer,
  11564. msm_routing_put_port_mixer),
  11565. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11567. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11568. msm_routing_get_port_mixer,
  11569. msm_routing_put_port_mixer),
  11570. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  11572. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11573. msm_routing_get_port_mixer,
  11574. msm_routing_put_port_mixer),
  11575. };
  11576. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  11577. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11579. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11580. msm_routing_get_port_mixer,
  11581. msm_routing_put_port_mixer),
  11582. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11584. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11585. msm_routing_get_port_mixer,
  11586. msm_routing_put_port_mixer),
  11587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11589. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11590. msm_routing_get_port_mixer,
  11591. msm_routing_put_port_mixer),
  11592. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11594. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11595. msm_routing_get_port_mixer,
  11596. msm_routing_put_port_mixer),
  11597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11599. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11600. msm_routing_get_port_mixer,
  11601. msm_routing_put_port_mixer),
  11602. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11604. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11605. msm_routing_get_port_mixer,
  11606. msm_routing_put_port_mixer),
  11607. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11609. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11610. msm_routing_get_port_mixer,
  11611. msm_routing_put_port_mixer),
  11612. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11614. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11615. msm_routing_get_port_mixer,
  11616. msm_routing_put_port_mixer),
  11617. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11619. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  11620. msm_routing_get_port_mixer,
  11621. msm_routing_put_port_mixer),
  11622. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11624. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  11625. msm_routing_get_port_mixer,
  11626. msm_routing_put_port_mixer),
  11627. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11629. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  11630. msm_routing_get_port_mixer,
  11631. msm_routing_put_port_mixer),
  11632. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11634. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  11635. msm_routing_get_port_mixer,
  11636. msm_routing_put_port_mixer),
  11637. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11639. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11640. msm_routing_get_port_mixer,
  11641. msm_routing_put_port_mixer),
  11642. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11644. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11645. msm_routing_get_port_mixer,
  11646. msm_routing_put_port_mixer),
  11647. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11649. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11650. msm_routing_get_port_mixer,
  11651. msm_routing_put_port_mixer),
  11652. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11654. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11655. msm_routing_get_port_mixer,
  11656. msm_routing_put_port_mixer),
  11657. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11659. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11660. msm_routing_get_port_mixer,
  11661. msm_routing_put_port_mixer),
  11662. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11664. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11665. msm_routing_get_port_mixer,
  11666. msm_routing_put_port_mixer),
  11667. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11669. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11670. msm_routing_get_port_mixer,
  11671. msm_routing_put_port_mixer),
  11672. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  11674. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11675. msm_routing_get_port_mixer,
  11676. msm_routing_put_port_mixer),
  11677. };
  11678. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  11679. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11681. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11682. msm_routing_get_port_mixer,
  11683. msm_routing_put_port_mixer),
  11684. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11686. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11687. msm_routing_get_port_mixer,
  11688. msm_routing_put_port_mixer),
  11689. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11691. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11692. msm_routing_get_port_mixer,
  11693. msm_routing_put_port_mixer),
  11694. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11696. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11697. msm_routing_get_port_mixer,
  11698. msm_routing_put_port_mixer),
  11699. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11701. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11702. msm_routing_get_port_mixer,
  11703. msm_routing_put_port_mixer),
  11704. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11706. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11707. msm_routing_get_port_mixer,
  11708. msm_routing_put_port_mixer),
  11709. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11711. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11712. msm_routing_get_port_mixer,
  11713. msm_routing_put_port_mixer),
  11714. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11716. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11717. msm_routing_get_port_mixer,
  11718. msm_routing_put_port_mixer),
  11719. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11721. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  11722. msm_routing_get_port_mixer,
  11723. msm_routing_put_port_mixer),
  11724. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11726. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  11727. msm_routing_get_port_mixer,
  11728. msm_routing_put_port_mixer),
  11729. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11731. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  11732. msm_routing_get_port_mixer,
  11733. msm_routing_put_port_mixer),
  11734. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11736. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  11737. msm_routing_get_port_mixer,
  11738. msm_routing_put_port_mixer),
  11739. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11741. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11742. msm_routing_get_port_mixer,
  11743. msm_routing_put_port_mixer),
  11744. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11746. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11747. msm_routing_get_port_mixer,
  11748. msm_routing_put_port_mixer),
  11749. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11751. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11752. msm_routing_get_port_mixer,
  11753. msm_routing_put_port_mixer),
  11754. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11756. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11757. msm_routing_get_port_mixer,
  11758. msm_routing_put_port_mixer),
  11759. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11761. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11762. msm_routing_get_port_mixer,
  11763. msm_routing_put_port_mixer),
  11764. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11766. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11767. msm_routing_get_port_mixer,
  11768. msm_routing_put_port_mixer),
  11769. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11771. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11772. msm_routing_get_port_mixer,
  11773. msm_routing_put_port_mixer),
  11774. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  11776. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11777. msm_routing_get_port_mixer,
  11778. msm_routing_put_port_mixer),
  11779. };
  11780. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  11781. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11783. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11784. msm_routing_get_port_mixer,
  11785. msm_routing_put_port_mixer),
  11786. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11788. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11789. msm_routing_get_port_mixer,
  11790. msm_routing_put_port_mixer),
  11791. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11793. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11794. msm_routing_get_port_mixer,
  11795. msm_routing_put_port_mixer),
  11796. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11798. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11799. msm_routing_get_port_mixer,
  11800. msm_routing_put_port_mixer),
  11801. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11803. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11804. msm_routing_get_port_mixer,
  11805. msm_routing_put_port_mixer),
  11806. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11808. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11809. msm_routing_get_port_mixer,
  11810. msm_routing_put_port_mixer),
  11811. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11813. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11814. msm_routing_get_port_mixer,
  11815. msm_routing_put_port_mixer),
  11816. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11818. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11819. msm_routing_get_port_mixer,
  11820. msm_routing_put_port_mixer),
  11821. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11823. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  11824. msm_routing_get_port_mixer,
  11825. msm_routing_put_port_mixer),
  11826. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11828. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  11829. msm_routing_get_port_mixer,
  11830. msm_routing_put_port_mixer),
  11831. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11833. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  11834. msm_routing_get_port_mixer,
  11835. msm_routing_put_port_mixer),
  11836. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11838. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  11839. msm_routing_get_port_mixer,
  11840. msm_routing_put_port_mixer),
  11841. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11843. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11844. msm_routing_get_port_mixer,
  11845. msm_routing_put_port_mixer),
  11846. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11848. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11849. msm_routing_get_port_mixer,
  11850. msm_routing_put_port_mixer),
  11851. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11853. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11854. msm_routing_get_port_mixer,
  11855. msm_routing_put_port_mixer),
  11856. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11858. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11859. msm_routing_get_port_mixer,
  11860. msm_routing_put_port_mixer),
  11861. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11863. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11864. msm_routing_get_port_mixer,
  11865. msm_routing_put_port_mixer),
  11866. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11868. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11869. msm_routing_get_port_mixer,
  11870. msm_routing_put_port_mixer),
  11871. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11873. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11874. msm_routing_get_port_mixer,
  11875. msm_routing_put_port_mixer),
  11876. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11878. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11879. msm_routing_get_port_mixer,
  11880. msm_routing_put_port_mixer),
  11881. };
  11882. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  11883. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11885. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11886. msm_routing_get_port_mixer,
  11887. msm_routing_put_port_mixer),
  11888. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11890. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11891. msm_routing_get_port_mixer,
  11892. msm_routing_put_port_mixer),
  11893. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11895. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11896. msm_routing_get_port_mixer,
  11897. msm_routing_put_port_mixer),
  11898. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11900. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11901. msm_routing_get_port_mixer,
  11902. msm_routing_put_port_mixer),
  11903. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11905. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11906. msm_routing_get_port_mixer,
  11907. msm_routing_put_port_mixer),
  11908. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11910. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11911. msm_routing_get_port_mixer,
  11912. msm_routing_put_port_mixer),
  11913. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11915. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11916. msm_routing_get_port_mixer,
  11917. msm_routing_put_port_mixer),
  11918. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11920. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11921. msm_routing_get_port_mixer,
  11922. msm_routing_put_port_mixer),
  11923. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11925. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  11926. msm_routing_get_port_mixer,
  11927. msm_routing_put_port_mixer),
  11928. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11930. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  11931. msm_routing_get_port_mixer,
  11932. msm_routing_put_port_mixer),
  11933. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11935. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  11936. msm_routing_get_port_mixer,
  11937. msm_routing_put_port_mixer),
  11938. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11940. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  11941. msm_routing_get_port_mixer,
  11942. msm_routing_put_port_mixer),
  11943. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11945. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11946. msm_routing_get_port_mixer,
  11947. msm_routing_put_port_mixer),
  11948. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11950. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11951. msm_routing_get_port_mixer,
  11952. msm_routing_put_port_mixer),
  11953. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11955. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11956. msm_routing_get_port_mixer,
  11957. msm_routing_put_port_mixer),
  11958. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11960. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11961. msm_routing_get_port_mixer,
  11962. msm_routing_put_port_mixer),
  11963. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11965. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11966. msm_routing_get_port_mixer,
  11967. msm_routing_put_port_mixer),
  11968. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11970. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11971. msm_routing_get_port_mixer,
  11972. msm_routing_put_port_mixer),
  11973. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11975. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11976. msm_routing_get_port_mixer,
  11977. msm_routing_put_port_mixer),
  11978. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11980. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11981. msm_routing_get_port_mixer,
  11982. msm_routing_put_port_mixer),
  11983. };
  11984. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  11985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11988. msm_routing_get_port_mixer,
  11989. msm_routing_put_port_mixer),
  11990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11993. msm_routing_get_port_mixer,
  11994. msm_routing_put_port_mixer),
  11995. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11997. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  11998. msm_routing_get_port_mixer,
  11999. msm_routing_put_port_mixer),
  12000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12003. msm_routing_get_port_mixer,
  12004. msm_routing_put_port_mixer),
  12005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12008. msm_routing_get_port_mixer,
  12009. msm_routing_put_port_mixer),
  12010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12013. msm_routing_get_port_mixer,
  12014. msm_routing_put_port_mixer),
  12015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12018. msm_routing_get_port_mixer,
  12019. msm_routing_put_port_mixer),
  12020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12021. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12023. msm_routing_get_port_mixer,
  12024. msm_routing_put_port_mixer),
  12025. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12027. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12028. msm_routing_get_port_mixer,
  12029. msm_routing_put_port_mixer),
  12030. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12032. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12033. msm_routing_get_port_mixer,
  12034. msm_routing_put_port_mixer),
  12035. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12037. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12038. msm_routing_get_port_mixer,
  12039. msm_routing_put_port_mixer),
  12040. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12042. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12043. msm_routing_get_port_mixer,
  12044. msm_routing_put_port_mixer),
  12045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12048. msm_routing_get_port_mixer,
  12049. msm_routing_put_port_mixer),
  12050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12053. msm_routing_get_port_mixer,
  12054. msm_routing_put_port_mixer),
  12055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12058. msm_routing_get_port_mixer,
  12059. msm_routing_put_port_mixer),
  12060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12063. msm_routing_get_port_mixer,
  12064. msm_routing_put_port_mixer),
  12065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12068. msm_routing_get_port_mixer,
  12069. msm_routing_put_port_mixer),
  12070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12073. msm_routing_get_port_mixer,
  12074. msm_routing_put_port_mixer),
  12075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12078. msm_routing_get_port_mixer,
  12079. msm_routing_put_port_mixer),
  12080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12083. msm_routing_get_port_mixer,
  12084. msm_routing_put_port_mixer),
  12085. };
  12086. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12087. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12089. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12090. msm_routing_get_port_mixer,
  12091. msm_routing_put_port_mixer),
  12092. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12094. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12095. msm_routing_get_port_mixer,
  12096. msm_routing_put_port_mixer),
  12097. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12100. msm_routing_get_port_mixer,
  12101. msm_routing_put_port_mixer),
  12102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12104. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12105. msm_routing_get_port_mixer,
  12106. msm_routing_put_port_mixer),
  12107. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12109. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12110. msm_routing_get_port_mixer,
  12111. msm_routing_put_port_mixer),
  12112. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12113. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12114. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12115. msm_routing_get_port_mixer,
  12116. msm_routing_put_port_mixer),
  12117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12119. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12120. msm_routing_get_port_mixer,
  12121. msm_routing_put_port_mixer),
  12122. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12124. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12125. msm_routing_get_port_mixer,
  12126. msm_routing_put_port_mixer),
  12127. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12129. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12130. msm_routing_get_port_mixer,
  12131. msm_routing_put_port_mixer),
  12132. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12134. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12135. msm_routing_get_port_mixer,
  12136. msm_routing_put_port_mixer),
  12137. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12139. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12140. msm_routing_get_port_mixer,
  12141. msm_routing_put_port_mixer),
  12142. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12144. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12145. msm_routing_get_port_mixer,
  12146. msm_routing_put_port_mixer),
  12147. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12149. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12150. msm_routing_get_port_mixer,
  12151. msm_routing_put_port_mixer),
  12152. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12154. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12155. msm_routing_get_port_mixer,
  12156. msm_routing_put_port_mixer),
  12157. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12159. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12160. msm_routing_get_port_mixer,
  12161. msm_routing_put_port_mixer),
  12162. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12164. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12165. msm_routing_get_port_mixer,
  12166. msm_routing_put_port_mixer),
  12167. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12169. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12170. msm_routing_get_port_mixer,
  12171. msm_routing_put_port_mixer),
  12172. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12174. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12175. msm_routing_get_port_mixer,
  12176. msm_routing_put_port_mixer),
  12177. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12179. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12180. msm_routing_get_port_mixer,
  12181. msm_routing_put_port_mixer),
  12182. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12184. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12185. msm_routing_get_port_mixer,
  12186. msm_routing_put_port_mixer),
  12187. };
  12188. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12189. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12191. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12192. msm_routing_get_port_mixer,
  12193. msm_routing_put_port_mixer),
  12194. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12196. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12197. msm_routing_get_port_mixer,
  12198. msm_routing_put_port_mixer),
  12199. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12201. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12202. msm_routing_get_port_mixer,
  12203. msm_routing_put_port_mixer),
  12204. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12206. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12207. msm_routing_get_port_mixer,
  12208. msm_routing_put_port_mixer),
  12209. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12211. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12212. msm_routing_get_port_mixer,
  12213. msm_routing_put_port_mixer),
  12214. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12216. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12217. msm_routing_get_port_mixer,
  12218. msm_routing_put_port_mixer),
  12219. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12221. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12222. msm_routing_get_port_mixer,
  12223. msm_routing_put_port_mixer),
  12224. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12226. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12227. msm_routing_get_port_mixer,
  12228. msm_routing_put_port_mixer),
  12229. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12231. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12232. msm_routing_get_port_mixer,
  12233. msm_routing_put_port_mixer),
  12234. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12236. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12237. msm_routing_get_port_mixer,
  12238. msm_routing_put_port_mixer),
  12239. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12241. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12242. msm_routing_get_port_mixer,
  12243. msm_routing_put_port_mixer),
  12244. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12246. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12247. msm_routing_get_port_mixer,
  12248. msm_routing_put_port_mixer),
  12249. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12251. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12252. msm_routing_get_port_mixer,
  12253. msm_routing_put_port_mixer),
  12254. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12256. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12257. msm_routing_get_port_mixer,
  12258. msm_routing_put_port_mixer),
  12259. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12261. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12262. msm_routing_get_port_mixer,
  12263. msm_routing_put_port_mixer),
  12264. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12266. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12267. msm_routing_get_port_mixer,
  12268. msm_routing_put_port_mixer),
  12269. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12271. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12272. msm_routing_get_port_mixer,
  12273. msm_routing_put_port_mixer),
  12274. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12276. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12277. msm_routing_get_port_mixer,
  12278. msm_routing_put_port_mixer),
  12279. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12281. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12282. msm_routing_get_port_mixer,
  12283. msm_routing_put_port_mixer),
  12284. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12286. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12287. msm_routing_get_port_mixer,
  12288. msm_routing_put_port_mixer),
  12289. };
  12290. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12291. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12293. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12294. msm_routing_get_port_mixer,
  12295. msm_routing_put_port_mixer),
  12296. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12298. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12299. msm_routing_get_port_mixer,
  12300. msm_routing_put_port_mixer),
  12301. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12303. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12304. msm_routing_get_port_mixer,
  12305. msm_routing_put_port_mixer),
  12306. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12308. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12309. msm_routing_get_port_mixer,
  12310. msm_routing_put_port_mixer),
  12311. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12313. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12314. msm_routing_get_port_mixer,
  12315. msm_routing_put_port_mixer),
  12316. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12318. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12319. msm_routing_get_port_mixer,
  12320. msm_routing_put_port_mixer),
  12321. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12323. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12324. msm_routing_get_port_mixer,
  12325. msm_routing_put_port_mixer),
  12326. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12328. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12329. msm_routing_get_port_mixer,
  12330. msm_routing_put_port_mixer),
  12331. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12333. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12334. msm_routing_get_port_mixer,
  12335. msm_routing_put_port_mixer),
  12336. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12338. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12339. msm_routing_get_port_mixer,
  12340. msm_routing_put_port_mixer),
  12341. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12343. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12344. msm_routing_get_port_mixer,
  12345. msm_routing_put_port_mixer),
  12346. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12348. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12349. msm_routing_get_port_mixer,
  12350. msm_routing_put_port_mixer),
  12351. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12353. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12354. msm_routing_get_port_mixer,
  12355. msm_routing_put_port_mixer),
  12356. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12358. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12359. msm_routing_get_port_mixer,
  12360. msm_routing_put_port_mixer),
  12361. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12363. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12364. msm_routing_get_port_mixer,
  12365. msm_routing_put_port_mixer),
  12366. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12368. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12369. msm_routing_get_port_mixer,
  12370. msm_routing_put_port_mixer),
  12371. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12373. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12374. msm_routing_get_port_mixer,
  12375. msm_routing_put_port_mixer),
  12376. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12378. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12379. msm_routing_get_port_mixer,
  12380. msm_routing_put_port_mixer),
  12381. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12383. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12384. msm_routing_get_port_mixer,
  12385. msm_routing_put_port_mixer),
  12386. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12388. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12389. msm_routing_get_port_mixer,
  12390. msm_routing_put_port_mixer),
  12391. };
  12392. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  12393. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12395. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12396. msm_routing_get_port_mixer,
  12397. msm_routing_put_port_mixer),
  12398. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12400. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12401. msm_routing_get_port_mixer,
  12402. msm_routing_put_port_mixer),
  12403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12406. msm_routing_get_port_mixer,
  12407. msm_routing_put_port_mixer),
  12408. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12410. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12411. msm_routing_get_port_mixer,
  12412. msm_routing_put_port_mixer),
  12413. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12415. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12416. msm_routing_get_port_mixer,
  12417. msm_routing_put_port_mixer),
  12418. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12420. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12421. msm_routing_get_port_mixer,
  12422. msm_routing_put_port_mixer),
  12423. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12425. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12426. msm_routing_get_port_mixer,
  12427. msm_routing_put_port_mixer),
  12428. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12430. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12431. msm_routing_get_port_mixer,
  12432. msm_routing_put_port_mixer),
  12433. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12435. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12436. msm_routing_get_port_mixer,
  12437. msm_routing_put_port_mixer),
  12438. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12440. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12441. msm_routing_get_port_mixer,
  12442. msm_routing_put_port_mixer),
  12443. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12445. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12446. msm_routing_get_port_mixer,
  12447. msm_routing_put_port_mixer),
  12448. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12450. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12451. msm_routing_get_port_mixer,
  12452. msm_routing_put_port_mixer),
  12453. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12455. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12456. msm_routing_get_port_mixer,
  12457. msm_routing_put_port_mixer),
  12458. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12460. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12461. msm_routing_get_port_mixer,
  12462. msm_routing_put_port_mixer),
  12463. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12465. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12466. msm_routing_get_port_mixer,
  12467. msm_routing_put_port_mixer),
  12468. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12470. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12471. msm_routing_get_port_mixer,
  12472. msm_routing_put_port_mixer),
  12473. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12475. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12476. msm_routing_get_port_mixer,
  12477. msm_routing_put_port_mixer),
  12478. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12480. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12481. msm_routing_get_port_mixer,
  12482. msm_routing_put_port_mixer),
  12483. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12485. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12486. msm_routing_get_port_mixer,
  12487. msm_routing_put_port_mixer),
  12488. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  12490. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12491. msm_routing_get_port_mixer,
  12492. msm_routing_put_port_mixer),
  12493. };
  12494. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  12495. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12497. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12498. msm_routing_get_port_mixer,
  12499. msm_routing_put_port_mixer),
  12500. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12502. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12503. msm_routing_get_port_mixer,
  12504. msm_routing_put_port_mixer),
  12505. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12507. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12508. msm_routing_get_port_mixer,
  12509. msm_routing_put_port_mixer),
  12510. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12512. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12513. msm_routing_get_port_mixer,
  12514. msm_routing_put_port_mixer),
  12515. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12517. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12518. msm_routing_get_port_mixer,
  12519. msm_routing_put_port_mixer),
  12520. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12522. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12523. msm_routing_get_port_mixer,
  12524. msm_routing_put_port_mixer),
  12525. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12527. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12528. msm_routing_get_port_mixer,
  12529. msm_routing_put_port_mixer),
  12530. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12532. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12533. msm_routing_get_port_mixer,
  12534. msm_routing_put_port_mixer),
  12535. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12537. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12538. msm_routing_get_port_mixer,
  12539. msm_routing_put_port_mixer),
  12540. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12542. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12543. msm_routing_get_port_mixer,
  12544. msm_routing_put_port_mixer),
  12545. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12547. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12548. msm_routing_get_port_mixer,
  12549. msm_routing_put_port_mixer),
  12550. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12552. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12553. msm_routing_get_port_mixer,
  12554. msm_routing_put_port_mixer),
  12555. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12557. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12558. msm_routing_get_port_mixer,
  12559. msm_routing_put_port_mixer),
  12560. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12561. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12562. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12563. msm_routing_get_port_mixer,
  12564. msm_routing_put_port_mixer),
  12565. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12567. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12568. msm_routing_get_port_mixer,
  12569. msm_routing_put_port_mixer),
  12570. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12572. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12573. msm_routing_get_port_mixer,
  12574. msm_routing_put_port_mixer),
  12575. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12577. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12578. msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12582. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12583. msm_routing_get_port_mixer,
  12584. msm_routing_put_port_mixer),
  12585. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12587. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12588. msm_routing_get_port_mixer,
  12589. msm_routing_put_port_mixer),
  12590. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  12592. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12593. msm_routing_get_port_mixer,
  12594. msm_routing_put_port_mixer),
  12595. };
  12596. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  12597. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12599. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12600. msm_routing_get_port_mixer,
  12601. msm_routing_put_port_mixer),
  12602. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12604. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12605. msm_routing_get_port_mixer,
  12606. msm_routing_put_port_mixer),
  12607. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12609. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12610. msm_routing_get_port_mixer,
  12611. msm_routing_put_port_mixer),
  12612. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12614. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12615. msm_routing_get_port_mixer,
  12616. msm_routing_put_port_mixer),
  12617. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12619. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12620. msm_routing_get_port_mixer,
  12621. msm_routing_put_port_mixer),
  12622. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12624. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12625. msm_routing_get_port_mixer,
  12626. msm_routing_put_port_mixer),
  12627. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12629. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12630. msm_routing_get_port_mixer,
  12631. msm_routing_put_port_mixer),
  12632. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12634. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12635. msm_routing_get_port_mixer,
  12636. msm_routing_put_port_mixer),
  12637. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12639. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12640. msm_routing_get_port_mixer,
  12641. msm_routing_put_port_mixer),
  12642. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12644. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12645. msm_routing_get_port_mixer,
  12646. msm_routing_put_port_mixer),
  12647. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12649. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12650. msm_routing_get_port_mixer,
  12651. msm_routing_put_port_mixer),
  12652. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12654. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12655. msm_routing_get_port_mixer,
  12656. msm_routing_put_port_mixer),
  12657. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12659. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12660. msm_routing_get_port_mixer,
  12661. msm_routing_put_port_mixer),
  12662. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12664. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12665. msm_routing_get_port_mixer,
  12666. msm_routing_put_port_mixer),
  12667. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12669. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12670. msm_routing_get_port_mixer,
  12671. msm_routing_put_port_mixer),
  12672. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12674. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12675. msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12679. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12680. msm_routing_get_port_mixer,
  12681. msm_routing_put_port_mixer),
  12682. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12684. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12685. msm_routing_get_port_mixer,
  12686. msm_routing_put_port_mixer),
  12687. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12689. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12690. msm_routing_get_port_mixer,
  12691. msm_routing_put_port_mixer),
  12692. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12694. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12695. msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. };
  12698. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  12699. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12701. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12702. msm_routing_get_port_mixer,
  12703. msm_routing_put_port_mixer),
  12704. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12706. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12707. msm_routing_get_port_mixer,
  12708. msm_routing_put_port_mixer),
  12709. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12711. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12712. msm_routing_get_port_mixer,
  12713. msm_routing_put_port_mixer),
  12714. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12716. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12717. msm_routing_get_port_mixer,
  12718. msm_routing_put_port_mixer),
  12719. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12721. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12722. msm_routing_get_port_mixer,
  12723. msm_routing_put_port_mixer),
  12724. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12726. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12727. msm_routing_get_port_mixer,
  12728. msm_routing_put_port_mixer),
  12729. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12731. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12732. msm_routing_get_port_mixer,
  12733. msm_routing_put_port_mixer),
  12734. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12736. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12737. msm_routing_get_port_mixer,
  12738. msm_routing_put_port_mixer),
  12739. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12741. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12742. msm_routing_get_port_mixer,
  12743. msm_routing_put_port_mixer),
  12744. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12746. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12747. msm_routing_get_port_mixer,
  12748. msm_routing_put_port_mixer),
  12749. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12751. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12752. msm_routing_get_port_mixer,
  12753. msm_routing_put_port_mixer),
  12754. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12756. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12757. msm_routing_get_port_mixer,
  12758. msm_routing_put_port_mixer),
  12759. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12761. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12762. msm_routing_get_port_mixer,
  12763. msm_routing_put_port_mixer),
  12764. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12766. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12767. msm_routing_get_port_mixer,
  12768. msm_routing_put_port_mixer),
  12769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12771. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12772. msm_routing_get_port_mixer,
  12773. msm_routing_put_port_mixer),
  12774. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12776. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12777. msm_routing_get_port_mixer,
  12778. msm_routing_put_port_mixer),
  12779. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12781. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12782. msm_routing_get_port_mixer,
  12783. msm_routing_put_port_mixer),
  12784. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12786. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12787. msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12791. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12792. msm_routing_get_port_mixer,
  12793. msm_routing_put_port_mixer),
  12794. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12796. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12797. msm_routing_get_port_mixer,
  12798. msm_routing_put_port_mixer),
  12799. };
  12800. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  12801. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12803. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12807. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12811. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12812. msm_routing_put_port_mixer),
  12813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12815. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12816. msm_routing_put_port_mixer),
  12817. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12819. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12820. msm_routing_put_port_mixer),
  12821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12827. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. };
  12830. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  12831. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12833. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12834. msm_routing_put_port_mixer),
  12835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12837. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12838. msm_routing_put_port_mixer),
  12839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12842. msm_routing_put_port_mixer),
  12843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12845. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12846. msm_routing_put_port_mixer),
  12847. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12849. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12850. msm_routing_put_port_mixer),
  12851. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12853. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12861. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12862. msm_routing_put_port_mixer),
  12863. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12865. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12866. msm_routing_put_port_mixer),
  12867. };
  12868. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  12869. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12871. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12872. msm_routing_put_listen_mixer),
  12873. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12875. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12876. msm_routing_put_listen_mixer),
  12877. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12879. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12880. msm_routing_put_listen_mixer),
  12881. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12883. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12884. msm_routing_put_listen_mixer),
  12885. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  12887. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12888. msm_routing_put_listen_mixer),
  12889. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12891. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12892. msm_routing_put_listen_mixer),
  12893. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12895. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12896. msm_routing_put_listen_mixer),
  12897. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12899. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  12900. msm_routing_put_listen_mixer),
  12901. };
  12902. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  12903. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12905. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12906. msm_routing_put_listen_mixer),
  12907. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  12908. SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12910. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12911. msm_routing_put_listen_mixer),
  12912. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12914. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12915. msm_routing_put_listen_mixer),
  12916. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12918. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12919. msm_routing_put_listen_mixer),
  12920. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  12922. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12923. msm_routing_put_listen_mixer),
  12924. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12926. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12927. msm_routing_put_listen_mixer),
  12928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12930. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12931. msm_routing_put_listen_mixer),
  12932. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12934. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  12935. msm_routing_put_listen_mixer),
  12936. };
  12937. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  12938. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12940. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12941. msm_routing_put_listen_mixer),
  12942. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12944. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12945. msm_routing_put_listen_mixer),
  12946. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12948. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12949. msm_routing_put_listen_mixer),
  12950. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12952. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12953. msm_routing_put_listen_mixer),
  12954. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  12956. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12957. msm_routing_put_listen_mixer),
  12958. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12960. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12961. msm_routing_put_listen_mixer),
  12962. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12964. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12965. msm_routing_put_listen_mixer),
  12966. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12968. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  12969. msm_routing_put_listen_mixer),
  12970. };
  12971. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  12972. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12974. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12975. msm_routing_put_listen_mixer),
  12976. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12978. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12979. msm_routing_put_listen_mixer),
  12980. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12982. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12983. msm_routing_put_listen_mixer),
  12984. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12986. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12987. msm_routing_put_listen_mixer),
  12988. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  12990. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12991. msm_routing_put_listen_mixer),
  12992. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12994. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12995. msm_routing_put_listen_mixer),
  12996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12998. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  12999. msm_routing_put_listen_mixer),
  13000. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13002. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13003. msm_routing_put_listen_mixer),
  13004. };
  13005. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13006. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13008. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13009. msm_routing_put_listen_mixer),
  13010. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13012. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13013. msm_routing_put_listen_mixer),
  13014. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13016. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13017. msm_routing_put_listen_mixer),
  13018. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13020. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13021. msm_routing_put_listen_mixer),
  13022. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13024. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13025. msm_routing_put_listen_mixer),
  13026. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13028. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13029. msm_routing_put_listen_mixer),
  13030. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13032. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13033. msm_routing_put_listen_mixer),
  13034. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13036. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13037. msm_routing_put_listen_mixer),
  13038. };
  13039. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13040. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13042. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13043. msm_routing_put_listen_mixer),
  13044. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13046. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13047. msm_routing_put_listen_mixer),
  13048. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13050. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13051. msm_routing_put_listen_mixer),
  13052. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13054. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13055. msm_routing_put_listen_mixer),
  13056. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13058. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13059. msm_routing_put_listen_mixer),
  13060. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13062. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13063. msm_routing_put_listen_mixer),
  13064. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13066. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13067. msm_routing_put_listen_mixer),
  13068. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13070. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13071. msm_routing_put_listen_mixer),
  13072. };
  13073. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13074. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13076. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13077. msm_routing_put_listen_mixer),
  13078. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13080. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13081. msm_routing_put_listen_mixer),
  13082. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13084. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13085. msm_routing_put_listen_mixer),
  13086. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13088. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13089. msm_routing_put_listen_mixer),
  13090. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13092. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13093. msm_routing_put_listen_mixer),
  13094. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13096. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13097. msm_routing_put_listen_mixer),
  13098. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13100. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13101. msm_routing_put_listen_mixer),
  13102. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13104. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13105. msm_routing_put_listen_mixer),
  13106. };
  13107. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13108. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13110. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13111. msm_routing_put_listen_mixer),
  13112. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13114. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13115. msm_routing_put_listen_mixer),
  13116. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13118. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13119. msm_routing_put_listen_mixer),
  13120. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13122. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13123. msm_routing_put_listen_mixer),
  13124. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13126. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13127. msm_routing_put_listen_mixer),
  13128. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13130. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13131. msm_routing_put_listen_mixer),
  13132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13134. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13135. msm_routing_put_listen_mixer),
  13136. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13138. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13139. msm_routing_put_listen_mixer),
  13140. };
  13141. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13142. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13143. 0, 1, 0, msm_routing_get_switch_mixer,
  13144. msm_routing_put_switch_mixer);
  13145. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13146. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13147. 0, 1, 0, msm_routing_get_switch_mixer,
  13148. msm_routing_put_switch_mixer);
  13149. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13150. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13151. 0, 1, 0, msm_routing_get_switch_mixer,
  13152. msm_routing_put_switch_mixer);
  13153. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13154. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13155. 0, 1, 0, msm_routing_get_switch_mixer,
  13156. msm_routing_put_switch_mixer);
  13157. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13158. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13159. 0, 1, 0, msm_routing_get_switch_mixer,
  13160. msm_routing_put_switch_mixer);
  13161. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13162. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13163. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13164. msm_routing_put_fm_pcmrx_switch_mixer);
  13165. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13166. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13167. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13168. msm_routing_put_int0_mi2s_switch_mixer);
  13169. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13170. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13171. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13172. msm_routing_put_int4_mi2s_switch_mixer);
  13173. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13174. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13175. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13176. msm_routing_put_pri_mi2s_switch_mixer);
  13177. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13178. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13179. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13180. msm_routing_put_sec_mi2s_switch_mixer);
  13181. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13182. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13183. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13184. msm_routing_put_tert_mi2s_switch_mixer);
  13185. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13186. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13187. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13188. msm_routing_put_quat_mi2s_switch_mixer);
  13189. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13190. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13191. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13192. msm_routing_put_quin_mi2s_switch_mixer);
  13193. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13194. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13195. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13196. msm_routing_put_hfp_switch_mixer);
  13197. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13198. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13199. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13200. msm_routing_put_hfp_switch_mixer);
  13201. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13202. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13203. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13204. msm_routing_put_hfp_switch_mixer);
  13205. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13206. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13207. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13208. msm_routing_put_hfp_switch_mixer);
  13209. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13210. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13211. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13212. msm_routing_put_usb_switch_mixer);
  13213. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13214. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13215. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13216. msm_routing_a2dp_switch_mixer_put);
  13217. static const struct soc_enum lsm_port_enum =
  13218. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13219. static const char * const lsm_func_text[] = {
  13220. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13221. };
  13222. static const struct soc_enum lsm_func_enum =
  13223. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13224. static const struct snd_kcontrol_new lsm_controls[] = {
  13225. /* kcontrol of lsm_function */
  13226. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13227. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13228. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13229. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13230. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13231. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13232. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13233. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13234. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13235. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13236. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13237. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13238. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13239. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13240. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13241. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13242. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13243. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13244. /* kcontrol of lsm_port */
  13245. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13246. msm_routing_lsm_port_get,
  13247. msm_routing_lsm_port_put),
  13248. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13249. msm_routing_lsm_port_get,
  13250. msm_routing_lsm_port_put),
  13251. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13252. msm_routing_lsm_port_get,
  13253. msm_routing_lsm_port_put),
  13254. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  13255. msm_routing_lsm_port_get,
  13256. msm_routing_lsm_port_put),
  13257. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  13258. msm_routing_lsm_port_get,
  13259. msm_routing_lsm_port_put),
  13260. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  13261. msm_routing_lsm_port_get,
  13262. msm_routing_lsm_port_put),
  13263. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  13264. msm_routing_lsm_port_get,
  13265. msm_routing_lsm_port_put),
  13266. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  13267. msm_routing_lsm_port_get,
  13268. msm_routing_lsm_port_put),
  13269. };
  13270. static const char * const aanc_slim_0_rx_text[] = {
  13271. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  13272. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  13273. };
  13274. static const struct soc_enum aanc_slim_0_rx_enum =
  13275. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  13276. aanc_slim_0_rx_text);
  13277. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  13278. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  13279. msm_routing_slim_0_rx_aanc_mux_get,
  13280. msm_routing_slim_0_rx_aanc_mux_put)
  13281. };
  13282. static int msm_routing_get_stereo_to_custom_stereo_control(
  13283. struct snd_kcontrol *kcontrol,
  13284. struct snd_ctl_elem_value *ucontrol)
  13285. {
  13286. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  13287. return 0;
  13288. }
  13289. static int msm_routing_put_stereo_to_custom_stereo_control(
  13290. struct snd_kcontrol *kcontrol,
  13291. struct snd_ctl_elem_value *ucontrol)
  13292. {
  13293. int flag = 0, i = 0, rc = 0, idx = 0;
  13294. int be_index = 0, port_id, topo_id;
  13295. unsigned int session_id = 0;
  13296. uint16_t op_FL_ip_FL_weight = 0;
  13297. uint16_t op_FL_ip_FR_weight = 0;
  13298. uint16_t op_FR_ip_FL_weight = 0;
  13299. uint16_t op_FR_ip_FR_weight = 0;
  13300. flag = ucontrol->value.integer.value[0];
  13301. pr_debug("%s E flag %d\n", __func__, flag);
  13302. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  13303. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  13304. __func__, is_custom_stereo_on, flag);
  13305. return 0;
  13306. }
  13307. is_custom_stereo_on = flag ? true : false;
  13308. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  13309. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  13310. port_id = msm_bedais[be_index].port_id;
  13311. if (!msm_bedais[be_index].active)
  13312. continue;
  13313. if ((port_id != SLIMBUS_0_RX) &&
  13314. (port_id != RT_PROXY_PORT_001_RX) &&
  13315. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  13316. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  13317. continue;
  13318. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  13319. MSM_FRONTEND_DAI_MM_SIZE) {
  13320. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  13321. LEGACY_PCM_MODE)
  13322. goto skip_send_custom_stereo;
  13323. session_id =
  13324. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  13325. if (is_custom_stereo_on) {
  13326. op_FL_ip_FL_weight =
  13327. Q14_GAIN_ZERO_POINT_FIVE;
  13328. op_FL_ip_FR_weight =
  13329. Q14_GAIN_ZERO_POINT_FIVE;
  13330. op_FR_ip_FL_weight =
  13331. Q14_GAIN_ZERO_POINT_FIVE;
  13332. op_FR_ip_FR_weight =
  13333. Q14_GAIN_ZERO_POINT_FIVE;
  13334. } else {
  13335. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  13336. op_FL_ip_FR_weight = 0;
  13337. op_FR_ip_FL_weight = 0;
  13338. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  13339. }
  13340. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  13341. unsigned long copp =
  13342. session_copp_map[i]
  13343. [SESSION_TYPE_RX][be_index];
  13344. if (!test_bit(idx, &copp))
  13345. goto skip_send_custom_stereo;
  13346. topo_id = adm_get_topology_for_port_copp_idx(
  13347. msm_bedais[be_index].port_id, idx);
  13348. if (topo_id < 0)
  13349. pr_debug("%s:Err:custom stereo topo %d",
  13350. __func__, topo_id);
  13351. pr_debug("idx %d\n", idx);
  13352. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  13353. rc = msm_ds2_dap_set_custom_stereo_onoff
  13354. (msm_bedais[be_index].port_id,
  13355. idx, is_custom_stereo_on);
  13356. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  13357. rc = dolby_dap_set_custom_stereo_onoff(
  13358. msm_bedais[be_index].port_id,
  13359. idx, is_custom_stereo_on);
  13360. else
  13361. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  13362. (msm_bedais[be_index].port_id,
  13363. idx, session_id,
  13364. op_FL_ip_FL_weight,
  13365. op_FL_ip_FR_weight,
  13366. op_FR_ip_FL_weight,
  13367. op_FR_ip_FR_weight);
  13368. if (rc < 0)
  13369. skip_send_custom_stereo:
  13370. pr_err("%s: err setting custom stereo\n",
  13371. __func__);
  13372. }
  13373. }
  13374. }
  13375. return 0;
  13376. }
  13377. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  13378. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  13379. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  13380. msm_routing_put_stereo_to_custom_stereo_control),
  13381. };
  13382. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  13383. struct snd_ctl_elem_value *ucontrol)
  13384. {
  13385. return 0;
  13386. }
  13387. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  13388. struct snd_ctl_elem_value *ucontrol)
  13389. {
  13390. int i = 0, j;
  13391. int num_app_types = ucontrol->value.integer.value[i++];
  13392. pr_debug("%s\n", __func__);
  13393. memset(app_type_cfg, 0, MAX_APP_TYPES*
  13394. sizeof(struct msm_pcm_routing_app_type_data));
  13395. if (num_app_types > MAX_APP_TYPES) {
  13396. pr_err("%s: number of app types exceed the max supported\n",
  13397. __func__);
  13398. return -EINVAL;
  13399. }
  13400. for (j = 0; j < num_app_types; j++) {
  13401. app_type_cfg[j].app_type =
  13402. ucontrol->value.integer.value[i++];
  13403. app_type_cfg[j].sample_rate =
  13404. ucontrol->value.integer.value[i++];
  13405. app_type_cfg[j].bit_width =
  13406. ucontrol->value.integer.value[i++];
  13407. }
  13408. return 0;
  13409. }
  13410. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  13411. struct snd_ctl_elem_value *ucontrol)
  13412. {
  13413. int j, fe_id, be_id, port_type;
  13414. int ret = 0;
  13415. unsigned long copp;
  13416. struct msm_pcm_routing_bdai_data *bedai;
  13417. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  13418. SESSION_TYPE_RX;
  13419. int app_type = ucontrol->value.integer.value[1];
  13420. int gain = (ucontrol->value.integer.value[2] +
  13421. ucontrol->value.integer.value[3])/2;
  13422. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  13423. MSM_AFE_PORT_TYPE_TX;
  13424. mutex_lock(&routing_lock);
  13425. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  13426. if (is_be_dai_extproc(be_id))
  13427. continue;
  13428. bedai = &msm_bedais[be_id];
  13429. if (afe_get_port_type(bedai->port_id) != port_type)
  13430. continue;
  13431. if (!bedai->active)
  13432. continue;
  13433. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  13434. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  13435. continue;
  13436. if (app_type !=
  13437. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  13438. continue;
  13439. copp = session_copp_map[fe_id][dir][be_id];
  13440. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  13441. if (!test_bit(j, &copp))
  13442. continue;
  13443. ret |= adm_set_volume(bedai->port_id, j, gain);
  13444. }
  13445. }
  13446. }
  13447. mutex_unlock(&routing_lock);
  13448. return ret ? -EINVAL : 0;
  13449. }
  13450. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  13451. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  13452. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  13453. msm_routing_put_app_type_cfg_control),
  13454. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  13455. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  13456. };
  13457. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  13458. struct snd_ctl_elem_value *ucontrol)
  13459. {
  13460. int copp_idx, fe_id, be_id, port_type;
  13461. int ret = 0;
  13462. unsigned long copp;
  13463. struct msm_pcm_routing_bdai_data *bedai;
  13464. u8 *packed_params = NULL;
  13465. struct param_hdr_v3 param_hdr;
  13466. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  13467. sizeof(uint32_t));
  13468. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  13469. SESSION_TYPE_RX;
  13470. int app_type = ucontrol->value.integer.value[1];
  13471. int module_id = ucontrol->value.integer.value[2];
  13472. int instance_id = ucontrol->value.integer.value[3];
  13473. int param_id = ucontrol->value.integer.value[4];
  13474. int param_value = ucontrol->value.integer.value[5];
  13475. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  13476. MSM_AFE_PORT_TYPE_TX;
  13477. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  13478. __func__, app_type, module_id,
  13479. instance_id, param_id, param_value);
  13480. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  13481. if (!packed_params)
  13482. return -ENOMEM;
  13483. memset(&param_hdr, 0, sizeof(param_hdr));
  13484. param_hdr.module_id = module_id;
  13485. param_hdr.instance_id = instance_id;
  13486. param_hdr.param_id = param_id;
  13487. param_hdr.param_size = sizeof(uint32_t);
  13488. packed_param_size = 0;
  13489. mutex_lock(&routing_lock);
  13490. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  13491. if (is_be_dai_extproc(be_id))
  13492. continue;
  13493. bedai = &msm_bedais[be_id];
  13494. if (afe_get_port_type(bedai->port_id) != port_type)
  13495. continue;
  13496. if (!bedai->active)
  13497. continue;
  13498. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  13499. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  13500. continue;
  13501. if (app_type !=
  13502. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  13503. continue;
  13504. copp = session_copp_map[fe_id][dir][be_id];
  13505. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  13506. copp_idx++) {
  13507. if (!test_bit(copp_idx, &copp))
  13508. continue;
  13509. ret = q6common_pack_pp_params(packed_params,
  13510. &param_hdr,
  13511. (u8 *) &param_value,
  13512. &packed_param_size);
  13513. if (ret) {
  13514. pr_err("%s: Failed to pack params, error %d\n",
  13515. __func__, ret);
  13516. goto done;
  13517. }
  13518. ret = adm_set_pp_params(bedai->port_id,
  13519. copp_idx, NULL,
  13520. packed_params,
  13521. packed_param_size);
  13522. if (ret) {
  13523. pr_err("%s: Setting param failed with err=%d\n",
  13524. __func__, ret);
  13525. ret = -EINVAL;
  13526. goto done;
  13527. }
  13528. }
  13529. }
  13530. }
  13531. done:
  13532. mutex_unlock(&routing_lock);
  13533. kfree(packed_params);
  13534. return ret;
  13535. }
  13536. static const struct snd_kcontrol_new module_cfg_controls[] = {
  13537. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  13538. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  13539. };
  13540. static int msm_routing_get_lsm_app_type_cfg_control(
  13541. struct snd_kcontrol *kcontrol,
  13542. struct snd_ctl_elem_value *ucontrol)
  13543. {
  13544. return 0;
  13545. }
  13546. static int msm_routing_put_lsm_app_type_cfg_control(
  13547. struct snd_kcontrol *kcontrol,
  13548. struct snd_ctl_elem_value *ucontrol)
  13549. {
  13550. int i = 0, j;
  13551. int num_app_types = ucontrol->value.integer.value[i++];
  13552. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  13553. sizeof(struct msm_pcm_routing_app_type_data));
  13554. if (num_app_types > MAX_APP_TYPES) {
  13555. pr_err("%s: number of app types exceed the max supported\n",
  13556. __func__);
  13557. return -EINVAL;
  13558. }
  13559. for (j = 0; j < num_app_types; j++) {
  13560. lsm_app_type_cfg[j].app_type =
  13561. ucontrol->value.integer.value[i++];
  13562. lsm_app_type_cfg[j].sample_rate =
  13563. ucontrol->value.integer.value[i++];
  13564. lsm_app_type_cfg[j].bit_width =
  13565. ucontrol->value.integer.value[i++];
  13566. }
  13567. return 0;
  13568. }
  13569. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  13570. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  13571. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  13572. msm_routing_put_lsm_app_type_cfg_control),
  13573. };
  13574. static int msm_routing_get_use_ds1_or_ds2_control(
  13575. struct snd_kcontrol *kcontrol,
  13576. struct snd_ctl_elem_value *ucontrol)
  13577. {
  13578. ucontrol->value.integer.value[0] = is_ds2_on;
  13579. return 0;
  13580. }
  13581. static int msm_routing_put_use_ds1_or_ds2_control(
  13582. struct snd_kcontrol *kcontrol,
  13583. struct snd_ctl_elem_value *ucontrol)
  13584. {
  13585. is_ds2_on = ucontrol->value.integer.value[0];
  13586. return 0;
  13587. }
  13588. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  13589. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  13590. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  13591. msm_routing_put_use_ds1_or_ds2_control),
  13592. };
  13593. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  13594. struct snd_ctl_elem_value *ucontrol) {
  13595. int rc = 0;
  13596. int be_idx = 0;
  13597. char *param_value;
  13598. int *update_param_value;
  13599. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  13600. struct param_hdr_v3 param_hdr;
  13601. param_value = kzalloc(param_size, GFP_KERNEL);
  13602. if (!param_value)
  13603. return -ENOMEM;
  13604. memset(&param_hdr, 0, sizeof(param_hdr));
  13605. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  13606. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  13607. break;
  13608. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  13609. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  13610. param_hdr.instance_id = INSTANCE_ID_0;
  13611. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  13612. param_hdr.param_size = param_size;
  13613. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  13614. NULL, &param_hdr, (u8 *) param_value);
  13615. if (rc) {
  13616. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  13617. kfree(param_value);
  13618. return -EINVAL;
  13619. }
  13620. update_param_value = (int *)param_value;
  13621. ucontrol->value.integer.value[0] = update_param_value[0];
  13622. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  13623. __func__, update_param_value[0]);
  13624. }
  13625. kfree(param_value);
  13626. return 0;
  13627. }
  13628. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  13629. struct snd_ctl_elem_value *ucontrol)
  13630. {
  13631. voc_session_id = ucontrol->value.integer.value[0];
  13632. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  13633. return 0;
  13634. }
  13635. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  13636. struct snd_ctl_elem_value *ucontrol)
  13637. {
  13638. ucontrol->value.integer.value[0] = voc_session_id;
  13639. return 0;
  13640. }
  13641. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  13642. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  13643. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  13644. msm_voc_session_id_put),
  13645. };
  13646. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  13647. struct snd_ctl_elem_info *uinfo)
  13648. {
  13649. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  13650. uinfo->count = sizeof(struct sound_focus_param);
  13651. return 0;
  13652. }
  13653. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  13654. struct snd_ctl_elem_value *ucontrol)
  13655. {
  13656. int ret = 0;
  13657. struct sound_focus_param soundFocusData;
  13658. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  13659. sizeof(struct sound_focus_param));
  13660. ret = voc_set_sound_focus(soundFocusData);
  13661. if (ret) {
  13662. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  13663. __func__, ret);
  13664. ret = -EINVAL;
  13665. }
  13666. return ret;
  13667. }
  13668. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  13669. struct snd_ctl_elem_value *ucontrol)
  13670. {
  13671. int ret = 0;
  13672. struct sound_focus_param soundFocusData;
  13673. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  13674. ret = voc_get_sound_focus(&soundFocusData);
  13675. if (ret) {
  13676. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  13677. __func__, ret);
  13678. ret = -EINVAL;
  13679. goto done;
  13680. }
  13681. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  13682. sizeof(struct sound_focus_param));
  13683. done:
  13684. return ret;
  13685. }
  13686. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  13687. struct snd_ctl_elem_info *uinfo)
  13688. {
  13689. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  13690. uinfo->count = sizeof(struct source_tracking_param);
  13691. return 0;
  13692. }
  13693. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  13694. struct snd_ctl_elem_value *ucontrol)
  13695. {
  13696. int ret = 0;
  13697. struct source_tracking_param sourceTrackingData;
  13698. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  13699. ret = voc_get_source_tracking(&sourceTrackingData);
  13700. if (ret) {
  13701. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  13702. __func__, ret);
  13703. ret = -EINVAL;
  13704. goto done;
  13705. }
  13706. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  13707. sizeof(struct source_tracking_param));
  13708. done:
  13709. return ret;
  13710. }
  13711. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  13712. int *copp_idx)
  13713. {
  13714. int i, idx, be_idx;
  13715. int ret = 0;
  13716. unsigned long copp;
  13717. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  13718. ret = q6audio_validate_port(port_id);
  13719. if (ret < 0) {
  13720. pr_err("%s: port validation failed id 0x%x ret %d\n",
  13721. __func__, port_id, ret);
  13722. ret = -EINVAL;
  13723. goto done;
  13724. }
  13725. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  13726. if (msm_bedais[be_idx].port_id == port_id)
  13727. break;
  13728. }
  13729. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  13730. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  13731. ret = -EINVAL;
  13732. goto done;
  13733. }
  13734. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  13735. MSM_FRONTEND_DAI_MM_SIZE) {
  13736. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  13737. copp = session_copp_map[i]
  13738. [session_type][be_idx];
  13739. if (test_bit(idx, &copp))
  13740. break;
  13741. }
  13742. if (idx >= MAX_COPPS_PER_PORT)
  13743. continue;
  13744. else
  13745. break;
  13746. }
  13747. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  13748. pr_err("%s: Invalid FE, exiting\n", __func__);
  13749. ret = -EINVAL;
  13750. goto done;
  13751. }
  13752. *copp_idx = idx;
  13753. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  13754. done:
  13755. return ret;
  13756. }
  13757. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  13758. const char *prefix, int *port_id)
  13759. {
  13760. int ret = 0;
  13761. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  13762. /*
  13763. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  13764. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  13765. * and compare the string with the backend name to derive the port id.
  13766. */
  13767. if (!strcmp(kcontrol->id.name + strlen(prefix),
  13768. "SLIMBUS_0")) {
  13769. *port_id = SLIMBUS_0_TX;
  13770. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  13771. "TERT_MI2S")) {
  13772. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  13773. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  13774. "INT3_MI2S")) {
  13775. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  13776. } else {
  13777. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  13778. __func__, kcontrol->id.name);
  13779. ret = -EINVAL;
  13780. goto done;
  13781. }
  13782. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  13783. __func__, kcontrol->id.name, *port_id);
  13784. done:
  13785. return ret;
  13786. }
  13787. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  13788. struct snd_ctl_elem_value *ucontrol)
  13789. {
  13790. int ret = 0;
  13791. struct sound_focus_param soundFocusData;
  13792. int port_id, copp_idx;
  13793. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  13794. "Sound Focus Audio Tx ", &port_id);
  13795. if (ret != 0) {
  13796. pr_err("%s: Error in deriving port id, err=%d\n",
  13797. __func__, ret);
  13798. ret = -EINVAL;
  13799. goto done;
  13800. }
  13801. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  13802. &copp_idx);
  13803. if (ret) {
  13804. pr_err("%s: Could not get copp idx for port_id=%d\n",
  13805. __func__, port_id);
  13806. ret = -EINVAL;
  13807. goto done;
  13808. }
  13809. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  13810. sizeof(struct sound_focus_param));
  13811. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  13812. if (ret) {
  13813. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  13814. __func__, ret);
  13815. ret = -EINVAL;
  13816. goto done;
  13817. }
  13818. done:
  13819. return ret;
  13820. }
  13821. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  13822. struct snd_ctl_elem_value *ucontrol)
  13823. {
  13824. int ret = 0;
  13825. struct sound_focus_param soundFocusData;
  13826. int port_id, copp_idx;
  13827. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  13828. "Sound Focus Audio Tx ", &port_id);
  13829. if (ret) {
  13830. pr_err("%s: Error in deriving port id, err=%d\n",
  13831. __func__, ret);
  13832. ret = -EINVAL;
  13833. goto done;
  13834. }
  13835. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  13836. &copp_idx);
  13837. if (ret) {
  13838. pr_err("%s: Could not get copp idx for port_id=%d\n",
  13839. __func__, port_id);
  13840. ret = -EINVAL;
  13841. goto done;
  13842. }
  13843. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  13844. if (ret) {
  13845. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  13846. __func__, ret);
  13847. ret = -EINVAL;
  13848. goto done;
  13849. }
  13850. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  13851. sizeof(struct sound_focus_param));
  13852. done:
  13853. return ret;
  13854. }
  13855. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  13856. struct snd_ctl_elem_value *ucontrol)
  13857. {
  13858. int ret = 0;
  13859. struct source_tracking_param sourceTrackingData;
  13860. int port_id, copp_idx;
  13861. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  13862. "Source Tracking Audio Tx ", &port_id);
  13863. if (ret) {
  13864. pr_err("%s: Error in deriving port id, err=%d\n",
  13865. __func__, ret);
  13866. ret = -EINVAL;
  13867. goto done;
  13868. }
  13869. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  13870. &copp_idx);
  13871. if (ret) {
  13872. pr_err("%s: Could not get copp idx for port_id=%d\n",
  13873. __func__, port_id);
  13874. ret = -EINVAL;
  13875. goto done;
  13876. }
  13877. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  13878. if (ret) {
  13879. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  13880. __func__, ret);
  13881. ret = -EINVAL;
  13882. goto done;
  13883. }
  13884. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  13885. sizeof(struct source_tracking_param));
  13886. done:
  13887. return ret;
  13888. }
  13889. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  13890. {
  13891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13893. .name = "Sound Focus Voice Tx SLIMBUS_0",
  13894. .info = msm_sound_focus_info,
  13895. .get = msm_voice_sound_focus_get,
  13896. .put = msm_voice_sound_focus_put,
  13897. },
  13898. {
  13899. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13901. .name = "Source Tracking Voice Tx SLIMBUS_0",
  13902. .info = msm_source_tracking_info,
  13903. .get = msm_voice_source_tracking_get,
  13904. },
  13905. {
  13906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13907. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13908. .name = "Sound Focus Audio Tx SLIMBUS_0",
  13909. .info = msm_sound_focus_info,
  13910. .get = msm_audio_sound_focus_get,
  13911. .put = msm_audio_sound_focus_put,
  13912. },
  13913. {
  13914. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13916. .name = "Source Tracking Audio Tx SLIMBUS_0",
  13917. .info = msm_source_tracking_info,
  13918. .get = msm_audio_source_tracking_get,
  13919. },
  13920. {
  13921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13923. .name = "Sound Focus Voice Tx TERT_MI2S",
  13924. .info = msm_sound_focus_info,
  13925. .get = msm_voice_sound_focus_get,
  13926. .put = msm_voice_sound_focus_put,
  13927. },
  13928. {
  13929. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13931. .name = "Source Tracking Voice Tx TERT_MI2S",
  13932. .info = msm_source_tracking_info,
  13933. .get = msm_voice_source_tracking_get,
  13934. },
  13935. {
  13936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13937. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13938. .name = "Sound Focus Audio Tx TERT_MI2S",
  13939. .info = msm_sound_focus_info,
  13940. .get = msm_audio_sound_focus_get,
  13941. .put = msm_audio_sound_focus_put,
  13942. },
  13943. {
  13944. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13946. .name = "Source Tracking Audio Tx TERT_MI2S",
  13947. .info = msm_source_tracking_info,
  13948. .get = msm_audio_source_tracking_get,
  13949. },
  13950. {
  13951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13953. .name = "Sound Focus Voice Tx INT3_MI2S",
  13954. .info = msm_sound_focus_info,
  13955. .get = msm_voice_sound_focus_get,
  13956. .put = msm_voice_sound_focus_put,
  13957. },
  13958. {
  13959. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13961. .name = "Source Tracking Voice Tx INT3_MI2S",
  13962. .info = msm_source_tracking_info,
  13963. .get = msm_voice_source_tracking_get,
  13964. },
  13965. {
  13966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  13967. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13968. .name = "Sound Focus Audio Tx INT3_MI2S",
  13969. .info = msm_sound_focus_info,
  13970. .get = msm_audio_sound_focus_get,
  13971. .put = msm_audio_sound_focus_put,
  13972. },
  13973. {
  13974. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  13975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  13976. .name = "Source Tracking Audio Tx INT3_MI2S",
  13977. .info = msm_source_tracking_info,
  13978. .get = msm_audio_source_tracking_get,
  13979. },
  13980. };
  13981. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  13982. struct snd_ctl_elem_value *ucontrol)
  13983. {
  13984. int ret = 0;
  13985. int item;
  13986. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  13987. pr_debug("%s item is %d\n", __func__,
  13988. ucontrol->value.enumerated.item[0]);
  13989. mutex_lock(&routing_lock);
  13990. item = ucontrol->value.enumerated.item[0];
  13991. if (item < e->items) {
  13992. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  13993. __func__, e->shift_l, e->values[item]);
  13994. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  13995. e->values[item] < MSM_BACKEND_DAI_MAX)
  13996. /* Enable feedback TX path */
  13997. ret = afe_spk_prot_feed_back_cfg(
  13998. msm_bedais[e->values[item]].port_id,
  13999. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14000. else {
  14001. pr_debug("%s values are out of range item %d\n",
  14002. __func__, e->values[item]);
  14003. /* Disable feedback TX path */
  14004. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14005. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14006. else
  14007. ret = -EINVAL;
  14008. }
  14009. } else {
  14010. pr_err("%s item value is out of range item\n", __func__);
  14011. ret = -EINVAL;
  14012. }
  14013. mutex_unlock(&routing_lock);
  14014. return ret;
  14015. }
  14016. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14017. struct snd_ctl_elem_value *ucontrol)
  14018. {
  14019. int ret = 0;
  14020. int item;
  14021. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14022. pr_debug("%s item is %d\n", __func__,
  14023. ucontrol->value.enumerated.item[0]);
  14024. mutex_lock(&routing_lock);
  14025. item = ucontrol->value.enumerated.item[0];
  14026. if (item < e->items) {
  14027. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14028. __func__, e->shift_l, e->values[item]);
  14029. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14030. e->values[item] < MSM_BACKEND_DAI_MAX)
  14031. /* Enable feedback TX path */
  14032. ret = afe_spk_prot_feed_back_cfg(
  14033. msm_bedais[e->values[item]].port_id,
  14034. msm_bedais[e->shift_l].port_id,
  14035. 1, 1, 1);
  14036. else {
  14037. pr_debug("%s values are out of range item %d\n",
  14038. __func__, e->values[item]);
  14039. /* Disable feedback TX path */
  14040. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14041. ret = afe_spk_prot_feed_back_cfg(0,
  14042. 0, 0, 0, 0);
  14043. else
  14044. ret = -EINVAL;
  14045. }
  14046. } else {
  14047. pr_err("%s item value is out of range item\n", __func__);
  14048. ret = -EINVAL;
  14049. }
  14050. mutex_unlock(&routing_lock);
  14051. return ret;
  14052. }
  14053. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14054. struct snd_ctl_elem_value *ucontrol)
  14055. {
  14056. pr_debug("%s\n", __func__);
  14057. return 0;
  14058. }
  14059. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14060. struct snd_ctl_elem_value *ucontrol)
  14061. {
  14062. pr_debug("%s\n", __func__);
  14063. ucontrol->value.enumerated.item[0] = 0;
  14064. return 0;
  14065. }
  14066. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14067. "ZERO", "SLIM4_TX"
  14068. };
  14069. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14070. "ZERO", "SLIM4_TX"
  14071. };
  14072. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14073. "ZERO", "SENARY_TX"
  14074. };
  14075. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14076. "ZERO", "INT5_MI2S_TX"
  14077. };
  14078. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14079. "ZERO", "INT5_MI2S_TX"
  14080. };
  14081. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14082. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14083. };
  14084. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14085. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14086. };
  14087. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14088. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14089. };
  14090. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14091. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14092. };
  14093. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14094. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14095. };
  14096. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14097. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14098. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14099. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14100. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14101. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14102. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14103. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14104. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14105. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14106. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14107. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14108. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14109. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14110. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14111. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14112. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14113. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14114. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14115. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14116. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14117. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14118. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14119. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14120. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14121. spkr_prot_put_vi_lch_port);
  14122. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14123. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14124. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14125. spkr_prot_put_vi_rch_port);
  14126. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14127. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14128. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14129. spkr_prot_put_vi_lch_port);
  14130. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14131. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14132. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14133. spkr_prot_put_vi_lch_port);
  14134. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14135. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14136. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14137. spkr_prot_put_vi_rch_port);
  14138. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14139. /* Frontend AIF */
  14140. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14141. * Stream name must contains substring of front-end dai name
  14142. */
  14143. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14144. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14145. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14146. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14147. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14148. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14149. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14150. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14151. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14152. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14153. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14154. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14155. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14156. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14157. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14158. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14159. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14160. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14161. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14162. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14163. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14164. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14165. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14166. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14167. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14168. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14169. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14170. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14171. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14172. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14173. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14174. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14175. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14176. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14177. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14178. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14179. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14180. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14181. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14182. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14183. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14184. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14185. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14186. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14187. 0, 0, 0, 0),
  14188. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14189. 0, 0, 0, 0),
  14190. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14191. 0, 0, 0, 0),
  14192. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14193. 0, 0, 0, 0),
  14194. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  14195. 0, 0, 0, 0),
  14196. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  14197. 0, 0, 0, 0),
  14198. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  14199. 0, 0, 0, 0),
  14200. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  14201. 0, 0, 0, 0),
  14202. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  14203. 0, 0, 0, 0),
  14204. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  14205. 0, 0, 0, 0),
  14206. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  14207. 0, 0, 0, 0),
  14208. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  14209. 0, 0, 0, 0),
  14210. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  14211. 0, 0, 0, 0),
  14212. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  14213. 0, 0, 0, 0),
  14214. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  14215. 0, 0, 0, 0),
  14216. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  14217. 0, 0, 0, 0),
  14218. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  14219. 0, 0, 0, 0),
  14220. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  14221. 0, 0, 0, 0),
  14222. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  14223. 0, 0, 0, 0),
  14224. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  14225. 0, 0, 0, 0),
  14226. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  14227. 0, 0, 0, 0),
  14228. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  14229. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  14230. 0, 0, 0, 0),
  14231. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  14232. "INT0 MI2S_RX Hostless Playback",
  14233. 0, 0, 0, 0),
  14234. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  14235. "INT4 MI2S_RX Hostless Playback",
  14236. 0, 0, 0, 0),
  14237. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  14238. "Primary MI2S_RX Hostless Playback",
  14239. 0, 0, 0, 0),
  14240. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  14241. "Secondary MI2S_RX Hostless Playback",
  14242. 0, 0, 0, 0),
  14243. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  14244. "Tertiary MI2S_RX Hostless Playback",
  14245. 0, 0, 0, 0),
  14246. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  14247. "Quaternary MI2S_RX Hostless Playback",
  14248. 0, 0, 0, 0),
  14249. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  14250. "Quinary MI2S_RX Hostless Playback",
  14251. 0, 0, 0, 0),
  14252. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  14253. 0, 0, 0, 0),
  14254. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  14255. 0, 0, 0, 0),
  14256. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  14257. 0, 0, 0, 0),
  14258. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  14259. 0, 0, 0, 0),
  14260. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  14261. 0, 0, 0, 0),
  14262. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  14263. "INT3 MI2S_TX Hostless Capture",
  14264. 0, 0, 0, 0),
  14265. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  14266. "Tertiary MI2S_TX Hostless Capture",
  14267. 0, 0, 0, 0),
  14268. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  14269. "Secondary MI2S_TX Hostless Capture",
  14270. 0, 0, 0, 0),
  14271. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  14272. "Primary MI2S_TX Hostless Capture",
  14273. 0, 0, 0, 0),
  14274. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  14275. 0, 0, 0, 0),
  14276. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  14277. 0, 0, 0, 0),
  14278. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  14279. "Quaternary MI2S_TX Hostless Capture",
  14280. 0, 0, 0, 0),
  14281. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  14282. "Quinary MI2S_TX Hostless Capture",
  14283. 0, 0, 0, 0),
  14284. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  14285. "Primary TDM0 Hostless Playback",
  14286. 0, 0, 0, 0),
  14287. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  14288. "Primary TDM0 Hostless Capture",
  14289. 0, 0, 0, 0),
  14290. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  14291. "Primary TDM1 Hostless Playback",
  14292. 0, 0, 0, 0),
  14293. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  14294. "Primary TDM1 Hostless Capture",
  14295. 0, 0, 0, 0),
  14296. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  14297. "Primary TDM2 Hostless Playback",
  14298. 0, 0, 0, 0),
  14299. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  14300. "Primary TDM2 Hostless Capture",
  14301. 0, 0, 0, 0),
  14302. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  14303. "Primary TDM3 Hostless Playback",
  14304. 0, 0, 0, 0),
  14305. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  14306. "Primary TDM3 Hostless Capture",
  14307. 0, 0, 0, 0),
  14308. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  14309. "Primary TDM4 Hostless Playback",
  14310. 0, 0, 0, 0),
  14311. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  14312. "Primary TDM4 Hostless Capture",
  14313. 0, 0, 0, 0),
  14314. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  14315. "Primary TDM5 Hostless Playback",
  14316. 0, 0, 0, 0),
  14317. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  14318. "Primary TDM5 Hostless Capture",
  14319. 0, 0, 0, 0),
  14320. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  14321. "Primary TDM6 Hostless Playback",
  14322. 0, 0, 0, 0),
  14323. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  14324. "Primary TDM6 Hostless Capture",
  14325. 0, 0, 0, 0),
  14326. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  14327. "Primary TDM7 Hostless Playback",
  14328. 0, 0, 0, 0),
  14329. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  14330. "Primary TDM7 Hostless Capture",
  14331. 0, 0, 0, 0),
  14332. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  14333. "Secondary TDM0 Hostless Playback",
  14334. 0, 0, 0, 0),
  14335. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  14336. "Secondary TDM0 Hostless Capture",
  14337. 0, 0, 0, 0),
  14338. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  14339. "Secondary TDM1 Hostless Playback",
  14340. 0, 0, 0, 0),
  14341. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  14342. "Secondary TDM1 Hostless Capture",
  14343. 0, 0, 0, 0),
  14344. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  14345. "Secondary TDM2 Hostless Playback",
  14346. 0, 0, 0, 0),
  14347. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  14348. "Secondary TDM2 Hostless Capture",
  14349. 0, 0, 0, 0),
  14350. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  14351. "Secondary TDM3 Hostless Playback",
  14352. 0, 0, 0, 0),
  14353. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  14354. "Secondary TDM3 Hostless Capture",
  14355. 0, 0, 0, 0),
  14356. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  14357. "Secondary TDM4 Hostless Playback",
  14358. 0, 0, 0, 0),
  14359. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  14360. "Secondary TDM4 Hostless Capture",
  14361. 0, 0, 0, 0),
  14362. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  14363. "Secondary TDM5 Hostless Playback",
  14364. 0, 0, 0, 0),
  14365. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  14366. "Secondary TDM5 Hostless Capture",
  14367. 0, 0, 0, 0),
  14368. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  14369. "Secondary TDM6 Hostless Playback",
  14370. 0, 0, 0, 0),
  14371. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  14372. "Secondary TDM6 Hostless Capture",
  14373. 0, 0, 0, 0),
  14374. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  14375. "Secondary TDM7 Hostless Playback",
  14376. 0, 0, 0, 0),
  14377. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  14378. "Secondary TDM7 Hostless Capture",
  14379. 0, 0, 0, 0),
  14380. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  14381. "Tertiary TDM0 Hostless Playback",
  14382. 0, 0, 0, 0),
  14383. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  14384. "Tertiary TDM0 Hostless Capture",
  14385. 0, 0, 0, 0),
  14386. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  14387. "Tertiary TDM1 Hostless Playback",
  14388. 0, 0, 0, 0),
  14389. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  14390. "Tertiary TDM1 Hostless Capture",
  14391. 0, 0, 0, 0),
  14392. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  14393. "Tertiary TDM2 Hostless Playback",
  14394. 0, 0, 0, 0),
  14395. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  14396. "Tertiary TDM2 Hostless Capture",
  14397. 0, 0, 0, 0),
  14398. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  14399. "Tertiary TDM3 Hostless Playback",
  14400. 0, 0, 0, 0),
  14401. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  14402. "Tertiary TDM3 Hostless Capture",
  14403. 0, 0, 0, 0),
  14404. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  14405. "Tertiary TDM4 Hostless Playback",
  14406. 0, 0, 0, 0),
  14407. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  14408. "Tertiary TDM4 Hostless Capture",
  14409. 0, 0, 0, 0),
  14410. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  14411. "Tertiary TDM5 Hostless Playback",
  14412. 0, 0, 0, 0),
  14413. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  14414. "Tertiary TDM5 Hostless Capture",
  14415. 0, 0, 0, 0),
  14416. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  14417. "Tertiary TDM6 Hostless Playback",
  14418. 0, 0, 0, 0),
  14419. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  14420. "Tertiary TDM6 Hostless Capture",
  14421. 0, 0, 0, 0),
  14422. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  14423. "Tertiary TDM7 Hostless Playback",
  14424. 0, 0, 0, 0),
  14425. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  14426. "Tertiary TDM7 Hostless Capture",
  14427. 0, 0, 0, 0),
  14428. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  14429. "Quaternary TDM0 Hostless Playback",
  14430. 0, 0, 0, 0),
  14431. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  14432. "Quaternary TDM0 Hostless Capture",
  14433. 0, 0, 0, 0),
  14434. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  14435. "Quaternary TDM1 Hostless Playback",
  14436. 0, 0, 0, 0),
  14437. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  14438. "Quaternary TDM1 Hostless Capture",
  14439. 0, 0, 0, 0),
  14440. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  14441. "Quaternary TDM2 Hostless Playback",
  14442. 0, 0, 0, 0),
  14443. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  14444. "Quaternary TDM2 Hostless Capture",
  14445. 0, 0, 0, 0),
  14446. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  14447. "Quaternary TDM3 Hostless Playback",
  14448. 0, 0, 0, 0),
  14449. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  14450. "Quaternary TDM3 Hostless Capture",
  14451. 0, 0, 0, 0),
  14452. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  14453. "Quaternary TDM4 Hostless Playback",
  14454. 0, 0, 0, 0),
  14455. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  14456. "Quaternary TDM4 Hostless Capture",
  14457. 0, 0, 0, 0),
  14458. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  14459. "Quaternary TDM5 Hostless Playback",
  14460. 0, 0, 0, 0),
  14461. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  14462. "Quaternary TDM5 Hostless Capture",
  14463. 0, 0, 0, 0),
  14464. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  14465. "Quaternary TDM6 Hostless Playback",
  14466. 0, 0, 0, 0),
  14467. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  14468. "Quaternary TDM6 Hostless Capture",
  14469. 0, 0, 0, 0),
  14470. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  14471. "Quaternary TDM7 Hostless Playback",
  14472. 0, 0, 0, 0),
  14473. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  14474. "Quaternary TDM7 Hostless Capture",
  14475. 0, 0, 0, 0),
  14476. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  14477. "Quinary TDM0 Hostless Playback",
  14478. 0, 0, 0, 0),
  14479. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  14480. "Quinary TDM0 Hostless Capture",
  14481. 0, 0, 0, 0),
  14482. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  14483. "Quinary TDM1 Hostless Playback",
  14484. 0, 0, 0, 0),
  14485. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  14486. "Quinary TDM1 Hostless Capture",
  14487. 0, 0, 0, 0),
  14488. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  14489. "Quinary TDM2 Hostless Playback",
  14490. 0, 0, 0, 0),
  14491. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  14492. "Quinary TDM2 Hostless Capture",
  14493. 0, 0, 0, 0),
  14494. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  14495. "Quinary TDM3 Hostless Playback",
  14496. 0, 0, 0, 0),
  14497. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  14498. "Quinary TDM3 Hostless Capture",
  14499. 0, 0, 0, 0),
  14500. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  14501. "Quinary TDM4 Hostless Playback",
  14502. 0, 0, 0, 0),
  14503. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  14504. "Quinary TDM4 Hostless Capture",
  14505. 0, 0, 0, 0),
  14506. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  14507. "Quinary TDM5 Hostless Playback",
  14508. 0, 0, 0, 0),
  14509. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  14510. "Quinary TDM5 Hostless Capture",
  14511. 0, 0, 0, 0),
  14512. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  14513. "Quinary TDM6 Hostless Playback",
  14514. 0, 0, 0, 0),
  14515. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  14516. "Quinary TDM6 Hostless Capture",
  14517. 0, 0, 0, 0),
  14518. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  14519. "Quinary TDM7 Hostless Playback",
  14520. 0, 0, 0, 0),
  14521. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  14522. "Quinary TDM7 Hostless Capture",
  14523. 0, 0, 0, 0),
  14524. /* LSM */
  14525. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  14526. 0, 0, 0, 0),
  14527. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  14528. 0, 0, 0, 0),
  14529. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  14530. 0, 0, 0, 0),
  14531. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  14532. 0, 0, 0, 0),
  14533. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  14534. 0, 0, 0, 0),
  14535. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  14536. 0, 0, 0, 0),
  14537. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  14538. 0, 0, 0, 0),
  14539. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  14540. 0, 0, 0, 0),
  14541. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  14542. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  14543. /* Backend AIF */
  14544. /* Stream name equals to backend dai link stream name */
  14545. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  14546. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  14547. 0, 0, 0, 0),
  14548. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  14549. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  14550. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  14551. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  14552. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  14553. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  14554. 0, 0, 0, 0),
  14555. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  14556. 0, 0, 0, 0),
  14557. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  14558. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  14559. 0, 0, 0, 0),
  14560. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  14561. 0, 0, 0, 0),
  14562. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  14563. 0, 0, 0, 0),
  14564. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  14565. "Secondary MI2S Playback SD1",
  14566. 0, 0, 0, 0),
  14567. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  14568. 0, 0, 0, 0),
  14569. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  14570. 0, 0, 0, 0),
  14571. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  14572. 0, 0, 0, 0),
  14573. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  14574. 0, 0, 0, 0),
  14575. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  14576. 0, 0, 0, 0),
  14577. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  14578. 0, 0, 0, 0),
  14579. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  14580. 0, 0, 0, 0),
  14581. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  14582. 0, 0, 0, 0),
  14583. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  14584. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  14585. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  14586. 0, 0, 0, 0),
  14587. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  14588. 0, 0, 0, 0),
  14589. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  14590. 0, 0, 0, 0),
  14591. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  14592. 0, 0, 0, 0),
  14593. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  14594. 0, 0, 0, 0),
  14595. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  14596. 0, 0, 0, 0),
  14597. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  14598. 0, 0, 0, 0),
  14599. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  14600. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  14601. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  14602. 0, 0, 0, 0),
  14603. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  14604. 0, 0, 0, 0),
  14605. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  14606. 0, 0, 0, 0),
  14607. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  14608. 0, 0, 0, 0),
  14609. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  14610. 0, 0, 0, 0),
  14611. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  14612. 0, 0, 0, 0),
  14613. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  14614. 0, 0, 0, 0),
  14615. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  14616. 0, 0, 0, 0),
  14617. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  14618. 0, 0, 0, 0),
  14619. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  14620. 0, 0, 0, 0),
  14621. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  14622. 0, 0, 0, 0),
  14623. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  14624. 0, 0, 0, 0),
  14625. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  14626. 0, 0, 0, 0),
  14627. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  14628. 0, 0, 0, 0),
  14629. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  14630. 0, 0, 0, 0),
  14631. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  14632. 0, 0, 0, 0),
  14633. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  14634. 0, 0, 0, 0),
  14635. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  14636. 0, 0, 0, 0),
  14637. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  14638. 0, 0, 0, 0),
  14639. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  14640. 0, 0, 0, 0),
  14641. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  14642. 0, 0, 0, 0),
  14643. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  14644. 0, 0, 0, 0),
  14645. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  14646. 0, 0, 0, 0),
  14647. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  14648. 0, 0, 0, 0),
  14649. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  14650. 0, 0, 0, 0),
  14651. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  14652. 0, 0, 0, 0),
  14653. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  14654. 0, 0, 0, 0),
  14655. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  14656. 0, 0, 0, 0),
  14657. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  14658. 0, 0, 0, 0),
  14659. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  14660. 0, 0, 0, 0),
  14661. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  14662. 0, 0, 0, 0),
  14663. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  14664. 0, 0, 0, 0),
  14665. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  14666. 0, 0, 0, 0),
  14667. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  14668. 0, 0, 0, 0),
  14669. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  14670. 0, 0, 0, 0),
  14671. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  14672. 0, 0, 0, 0),
  14673. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  14674. 0, 0, 0, 0),
  14675. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  14676. 0, 0, 0, 0),
  14677. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  14678. 0, 0, 0, 0),
  14679. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  14680. 0, 0, 0, 0),
  14681. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  14682. 0, 0, 0, 0),
  14683. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  14684. 0, 0, 0, 0),
  14685. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  14686. 0, 0, 0, 0),
  14687. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  14688. 0, 0, 0, 0),
  14689. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  14690. 0, 0, 0, 0),
  14691. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  14692. 0, 0, 0, 0),
  14693. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  14694. 0, 0, 0, 0),
  14695. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  14696. 0, 0, 0, 0),
  14697. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  14698. 0, 0, 0, 0),
  14699. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  14700. 0, 0, 0, 0),
  14701. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  14702. 0, 0, 0, 0),
  14703. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  14704. 0, 0, 0, 0),
  14705. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  14706. 0, 0, 0, 0),
  14707. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  14708. 0, 0, 0, 0),
  14709. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  14710. 0, 0, 0, 0),
  14711. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  14712. 0, 0, 0, 0),
  14713. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  14714. 0, 0, 0, 0),
  14715. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  14716. 0, 0, 0, 0),
  14717. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  14718. 0, 0, 0, 0),
  14719. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  14720. 0, 0, 0, 0),
  14721. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  14722. 0, 0, 0, 0),
  14723. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  14724. 0, 0, 0, 0),
  14725. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  14726. 0, 0, 0, 0),
  14727. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  14728. 0, 0, 0, 0),
  14729. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  14730. 0, 0, 0, 0),
  14731. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  14732. 0, 0, 0, 0),
  14733. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  14734. 0, 0, 0, 0),
  14735. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  14736. 0, 0, 0, 0),
  14737. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  14738. 0, 0, 0, 0),
  14739. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  14740. 0, 0, 0, 0),
  14741. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  14742. 0, 0, 0, 0),
  14743. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  14744. 0, 0, 0, 0),
  14745. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  14746. 0, 0, 0, 0),
  14747. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  14748. 0, 0, 0, 0),
  14749. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  14750. 0, 0, 0, 0),
  14751. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  14752. 0, 0, 0, 0),
  14753. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  14754. 0, 0, 0, 0),
  14755. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  14756. 0, 0, 0, 0),
  14757. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  14758. 0, 0, 0, 0),
  14759. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  14760. 0, 0, 0, 0),
  14761. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  14762. 0, 0, 0, 0),
  14763. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  14764. 0, 0, 0, 0),
  14765. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  14766. 0, 0, 0, 0),
  14767. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  14768. 0, 0, 0, 0),
  14769. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  14770. 0, 0, 0, 0),
  14771. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  14772. 0, 0, 0, 0),
  14773. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  14774. 0, 0, 0, 0),
  14775. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  14776. 0, 0, 0, 0),
  14777. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  14778. 0, 0, 0, 0),
  14779. /* incall */
  14780. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  14781. 0, 0, 0, 0),
  14782. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  14783. 0, 0, 0, 0),
  14784. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  14785. 0, 0, 0, 0),
  14786. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  14787. 0, 0, 0, 0),
  14788. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  14789. 0, 0, 0, 0),
  14790. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  14791. 0, 0, 0, 0),
  14792. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  14793. 0, 0, 0, 0),
  14794. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  14795. 0, 0, 0, 0),
  14796. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  14797. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  14798. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  14799. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  14800. 0, 0, 0, 0),
  14801. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  14802. 0, 0, 0, 0),
  14803. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  14804. 0, 0, 0, 0),
  14805. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  14806. 0, 0, 0, 0),
  14807. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  14808. 0, 0, 0, 0),
  14809. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  14810. 0, 0, 0, 0),
  14811. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  14812. 0, 0, 0, 0),
  14813. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  14814. 0, 0, 0, 0),
  14815. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  14816. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  14817. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  14818. 0, 0, 0, 0),
  14819. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  14820. 0, 0, 0, 0),
  14821. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  14822. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  14823. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  14824. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  14825. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  14826. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  14827. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  14828. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  14829. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  14830. /* In- call recording */
  14831. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  14832. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  14833. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  14834. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  14835. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  14836. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  14837. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  14838. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  14839. /* Switch Definitions */
  14840. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  14841. &slim_fm_switch_mixer_controls),
  14842. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  14843. &slim1_fm_switch_mixer_controls),
  14844. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  14845. &slim3_fm_switch_mixer_controls),
  14846. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  14847. &slim4_fm_switch_mixer_controls),
  14848. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  14849. &slim6_fm_switch_mixer_controls),
  14850. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14851. &pcm_rx_switch_mixer_controls),
  14852. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14853. &int0_mi2s_rx_switch_mixer_controls),
  14854. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14855. &int4_mi2s_rx_switch_mixer_controls),
  14856. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14857. &pri_mi2s_rx_switch_mixer_controls),
  14858. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14859. &sec_mi2s_rx_switch_mixer_controls),
  14860. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14861. &tert_mi2s_rx_switch_mixer_controls),
  14862. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14863. &quat_mi2s_rx_switch_mixer_controls),
  14864. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  14865. &quin_mi2s_rx_switch_mixer_controls),
  14866. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  14867. &hfp_pri_aux_switch_mixer_controls),
  14868. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  14869. &hfp_aux_switch_mixer_controls),
  14870. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  14871. &hfp_int_switch_mixer_controls),
  14872. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  14873. &hfp_slim7_switch_mixer_controls),
  14874. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  14875. &usb_switch_mixer_controls),
  14876. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  14877. &a2dp_slim7_switch_mixer_controls),
  14878. /* Mixer definitions */
  14879. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14880. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  14881. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14882. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  14883. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14884. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  14885. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14886. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  14887. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14888. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  14889. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14890. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  14891. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  14892. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  14893. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  14894. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  14895. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  14896. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  14897. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14898. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  14899. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14900. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  14901. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14902. quaternary_mi2s_rx_mixer_controls,
  14903. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  14904. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14905. tertiary_mi2s_rx_mixer_controls,
  14906. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  14907. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14908. secondary_mi2s_rx_mixer_controls,
  14909. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  14910. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14911. secondary_mi2s_rx2_mixer_controls,
  14912. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  14913. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14914. primary_mi2s_rx_mixer_controls,
  14915. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  14916. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14917. int0_mi2s_rx_mixer_controls,
  14918. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  14919. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14920. int4_mi2s_rx_mixer_controls,
  14921. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  14922. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  14923. quinary_mi2s_rx_mixer_controls,
  14924. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  14925. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14926. pri_tdm_rx_0_mixer_controls,
  14927. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  14928. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14929. pri_tdm_rx_1_mixer_controls,
  14930. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  14931. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14932. pri_tdm_rx_2_mixer_controls,
  14933. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  14934. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14935. pri_tdm_rx_3_mixer_controls,
  14936. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  14937. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14938. pri_tdm_tx_0_mixer_controls,
  14939. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  14940. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14941. sec_tdm_rx_0_mixer_controls,
  14942. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  14943. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14944. sec_tdm_rx_1_mixer_controls,
  14945. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  14946. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14947. sec_tdm_rx_2_mixer_controls,
  14948. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  14949. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14950. sec_tdm_rx_3_mixer_controls,
  14951. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  14952. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14953. sec_tdm_tx_0_mixer_controls,
  14954. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  14955. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14956. tert_tdm_rx_0_mixer_controls,
  14957. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  14958. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14959. tert_tdm_tx_0_mixer_controls,
  14960. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  14961. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14962. tert_tdm_rx_1_mixer_controls,
  14963. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  14964. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14965. tert_tdm_rx_2_mixer_controls,
  14966. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  14967. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14968. tert_tdm_rx_3_mixer_controls,
  14969. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  14970. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14971. tert_tdm_rx_4_mixer_controls,
  14972. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  14973. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14974. quat_tdm_rx_0_mixer_controls,
  14975. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  14976. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14977. quat_tdm_tx_0_mixer_controls,
  14978. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  14979. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14980. quat_tdm_rx_1_mixer_controls,
  14981. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  14982. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14983. quat_tdm_rx_2_mixer_controls,
  14984. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  14985. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14986. quat_tdm_rx_3_mixer_controls,
  14987. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  14988. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14989. quin_tdm_rx_0_mixer_controls,
  14990. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  14991. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14992. quin_tdm_tx_0_mixer_controls,
  14993. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  14994. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14995. quin_tdm_rx_1_mixer_controls,
  14996. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  14997. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  14998. quin_tdm_rx_2_mixer_controls,
  14999. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15000. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15001. quin_tdm_rx_3_mixer_controls,
  15002. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15003. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15004. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15005. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15006. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15007. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15008. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15009. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15010. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15011. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15012. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15013. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15014. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15015. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15016. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15017. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15018. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15019. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15020. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15021. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15022. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15023. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15024. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15025. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15026. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15027. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15028. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15029. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15030. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15031. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15032. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15033. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15034. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15035. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15036. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15037. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15038. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15039. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15040. tert_auxpcm_rx_mixer_controls,
  15041. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15042. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15043. quat_auxpcm_rx_mixer_controls,
  15044. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15045. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15046. quin_auxpcm_rx_mixer_controls,
  15047. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15048. /* incall */
  15049. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15050. incall_music_delivery_mixer_controls,
  15051. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15052. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15053. incall_music2_delivery_mixer_controls,
  15054. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15055. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15056. slimbus_4_rx_mixer_controls,
  15057. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15058. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15059. slimbus_6_rx_mixer_controls,
  15060. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15061. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15062. usb_audio_rx_mixer_controls,
  15063. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15064. /* Voice Mixer */
  15065. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15066. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15067. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15068. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15069. SND_SOC_NOPM, 0, 0,
  15070. sec_i2s_rx_voice_mixer_controls,
  15071. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15072. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15073. SND_SOC_NOPM, 0, 0,
  15074. sec_mi2s_rx_voice_mixer_controls,
  15075. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15076. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15077. SND_SOC_NOPM, 0, 0,
  15078. slimbus_rx_voice_mixer_controls,
  15079. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15080. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15081. SND_SOC_NOPM, 0, 0,
  15082. bt_sco_rx_voice_mixer_controls,
  15083. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15084. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15085. SND_SOC_NOPM, 0, 0,
  15086. afe_pcm_rx_voice_mixer_controls,
  15087. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15088. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15089. SND_SOC_NOPM, 0, 0,
  15090. aux_pcm_rx_voice_mixer_controls,
  15091. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15092. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15093. SND_SOC_NOPM, 0, 0,
  15094. sec_aux_pcm_rx_voice_mixer_controls,
  15095. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15096. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15097. SND_SOC_NOPM, 0, 0,
  15098. tert_aux_pcm_rx_voice_mixer_controls,
  15099. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15100. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15101. SND_SOC_NOPM, 0, 0,
  15102. quat_aux_pcm_rx_voice_mixer_controls,
  15103. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15104. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15105. SND_SOC_NOPM, 0, 0,
  15106. quin_aux_pcm_rx_voice_mixer_controls,
  15107. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15108. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15109. SND_SOC_NOPM, 0, 0,
  15110. hdmi_rx_voice_mixer_controls,
  15111. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15112. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15113. SND_SOC_NOPM, 0, 0,
  15114. mi2s_rx_voice_mixer_controls,
  15115. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15116. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15117. SND_SOC_NOPM, 0, 0,
  15118. pri_mi2s_rx_voice_mixer_controls,
  15119. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15120. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15121. SND_SOC_NOPM, 0, 0,
  15122. int0_mi2s_rx_voice_mixer_controls,
  15123. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15124. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15125. SND_SOC_NOPM, 0, 0,
  15126. int4_mi2s_rx_voice_mixer_controls,
  15127. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15128. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15129. SND_SOC_NOPM, 0, 0,
  15130. tert_mi2s_rx_voice_mixer_controls,
  15131. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15132. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15133. SND_SOC_NOPM, 0, 0,
  15134. quat_mi2s_rx_voice_mixer_controls,
  15135. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15136. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15137. SND_SOC_NOPM, 0, 0,
  15138. quin_mi2s_rx_voice_mixer_controls,
  15139. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15140. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15141. SND_SOC_NOPM, 0, 0,
  15142. quat_tdm_rx_2_voice_mixer_controls,
  15143. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15144. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15145. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15146. ARRAY_SIZE(tx_voip_mixer_controls)),
  15147. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15148. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15149. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15150. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15151. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15152. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15153. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15154. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15155. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15156. int_bt_a2dp_rx_mixer_controls,
  15157. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15158. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15159. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15160. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15161. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15162. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15163. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15164. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15165. tx_voice2_stub_mixer_controls,
  15166. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15167. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15168. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15169. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15170. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15171. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15172. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15173. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15174. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  15175. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  15176. SND_SOC_NOPM, 0, 0,
  15177. slimbus_6_rx_voice_mixer_controls,
  15178. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  15179. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15180. slimbus_7_rx_voice_mixer_controls,
  15181. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  15182. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15183. slimbus_8_rx_voice_mixer_controls,
  15184. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  15185. /* port mixer */
  15186. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  15187. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  15188. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  15189. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  15190. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  15191. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  15192. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  15193. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  15194. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  15195. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  15196. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  15197. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  15198. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  15199. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  15200. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  15201. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  15202. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  15203. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  15204. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15205. sbus_1_rx_port_mixer_controls,
  15206. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  15207. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15208. bt_sco_rx_port_mixer_controls,
  15209. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  15210. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  15211. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  15212. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  15213. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  15214. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  15215. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  15216. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  15217. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  15218. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  15219. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port1 Mixer",
  15220. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  15221. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  15222. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  15223. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  15224. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  15225. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  15226. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  15227. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  15228. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  15229. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  15230. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  15231. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15232. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  15233. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15234. primary_mi2s_rx_port_mixer_controls,
  15235. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  15236. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15237. sec_mi2s_rx_port_mixer_controls,
  15238. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  15239. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15240. tert_mi2s_rx_port_mixer_controls,
  15241. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  15242. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15243. quat_mi2s_rx_port_mixer_controls,
  15244. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  15245. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15246. quin_mi2s_rx_port_mixer_controls,
  15247. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  15248. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15249. pri_tdm_rx_0_port_mixer_controls,
  15250. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  15251. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15252. pri_tdm_rx_1_port_mixer_controls,
  15253. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  15254. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15255. pri_tdm_rx_2_port_mixer_controls,
  15256. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  15257. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15258. pri_tdm_rx_3_port_mixer_controls,
  15259. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  15260. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15261. sec_tdm_rx_0_port_mixer_controls,
  15262. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  15263. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15264. sec_tdm_rx_1_port_mixer_controls,
  15265. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  15266. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15267. sec_tdm_rx_2_port_mixer_controls,
  15268. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  15269. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15270. sec_tdm_rx_3_port_mixer_controls,
  15271. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  15272. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15273. tert_tdm_rx_0_port_mixer_controls,
  15274. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  15275. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15276. tert_tdm_rx_1_port_mixer_controls,
  15277. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  15278. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15279. tert_tdm_rx_2_port_mixer_controls,
  15280. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  15281. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15282. tert_tdm_rx_3_port_mixer_controls,
  15283. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  15284. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15285. quat_tdm_rx_0_port_mixer_controls,
  15286. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  15287. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15288. quat_tdm_rx_1_port_mixer_controls,
  15289. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  15290. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15291. quat_tdm_rx_2_port_mixer_controls,
  15292. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  15293. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15294. quat_tdm_rx_3_port_mixer_controls,
  15295. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  15296. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  15297. quin_tdm_rx_0_port_mixer_controls,
  15298. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  15299. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  15300. quin_tdm_rx_1_port_mixer_controls,
  15301. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  15302. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  15303. quin_tdm_rx_2_port_mixer_controls,
  15304. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  15305. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  15306. quin_tdm_rx_3_port_mixer_controls,
  15307. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  15308. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15309. int0_mi2s_rx_port_mixer_controls,
  15310. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  15311. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15312. int4_mi2s_rx_port_mixer_controls,
  15313. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  15314. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  15315. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  15316. ARRAY_SIZE(tx_qchat_mixer_controls)),
  15317. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  15318. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  15319. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  15320. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  15321. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  15322. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  15323. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  15324. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  15325. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  15326. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  15327. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  15328. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  15329. /* lsm mixer definitions */
  15330. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  15331. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  15332. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  15333. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  15334. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  15335. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  15336. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  15337. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  15338. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  15339. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  15340. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  15341. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  15342. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  15343. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  15344. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  15345. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  15346. /* Virtual Pins to force backends ON atm */
  15347. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  15348. SND_SOC_DAPM_INPUT("BE_IN"),
  15349. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  15350. &slim0_rx_vi_fb_lch_mux),
  15351. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  15352. &slim0_rx_vi_fb_rch_mux),
  15353. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  15354. &mi2s_rx_vi_fb_mux),
  15355. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  15356. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  15357. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  15358. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  15359. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  15360. &voc_ext_ec_mux),
  15361. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  15362. &ext_ec_ref_mux_ul1),
  15363. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  15364. &ext_ec_ref_mux_ul2),
  15365. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  15366. &ext_ec_ref_mux_ul3),
  15367. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  15368. &ext_ec_ref_mux_ul4),
  15369. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  15370. &ext_ec_ref_mux_ul5),
  15371. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  15372. &ext_ec_ref_mux_ul6),
  15373. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  15374. &ext_ec_ref_mux_ul8),
  15375. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  15376. &ext_ec_ref_mux_ul9),
  15377. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  15378. &ext_ec_ref_mux_ul10),
  15379. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  15380. &ext_ec_ref_mux_ul16),
  15381. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  15382. &ext_ec_ref_mux_ul17),
  15383. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  15384. &ext_ec_ref_mux_ul18),
  15385. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  15386. &ext_ec_ref_mux_ul19),
  15387. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  15388. &ext_ec_ref_mux_ul28),
  15389. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  15390. &ext_ec_ref_mux_ul29),
  15391. };
  15392. static const struct snd_soc_dapm_route intercon[] = {
  15393. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15394. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15395. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15396. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15397. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15398. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15399. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15400. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15401. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15402. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15403. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15404. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15405. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15406. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15407. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15408. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15409. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  15410. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15411. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15412. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15413. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15414. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15415. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15416. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15417. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15418. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15419. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15420. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15421. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15422. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15423. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15424. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15425. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15426. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  15427. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15428. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15429. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15430. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15431. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15432. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15433. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15434. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15435. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15436. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15437. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15438. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15439. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15440. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15441. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15442. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15443. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  15444. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15445. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15446. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15447. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15448. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15449. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15450. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15451. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15452. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15453. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15454. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15455. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15456. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15457. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15458. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15459. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15460. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  15461. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15462. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15463. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15464. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15465. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15466. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15467. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15468. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15469. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15470. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15471. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15472. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15473. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15474. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15475. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15476. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15477. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  15478. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  15479. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  15480. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  15481. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  15482. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  15483. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  15484. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  15485. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  15486. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  15487. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  15488. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  15489. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  15490. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  15491. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  15492. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  15493. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  15494. {"HDMI", NULL, "HDMI Mixer"},
  15495. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  15496. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  15497. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  15498. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  15499. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  15500. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  15501. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  15502. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  15503. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  15504. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  15505. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  15506. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  15507. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  15508. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  15509. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  15510. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  15511. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  15512. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  15513. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  15514. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  15515. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  15516. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  15517. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  15518. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  15519. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  15520. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  15521. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  15522. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  15523. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  15524. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  15525. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  15526. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  15527. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  15528. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  15529. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15530. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15531. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15532. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15533. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15534. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15535. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15536. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15537. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15538. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15539. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15540. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15541. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15542. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15543. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15544. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15545. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  15546. /* incall */
  15547. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  15548. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  15549. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  15550. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  15551. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  15552. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15553. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15554. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15555. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15556. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  15557. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15558. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15559. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15560. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15561. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  15562. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15563. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15564. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15565. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15566. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15567. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15568. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15569. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15570. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15571. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15572. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15573. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15574. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15575. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15576. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15577. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15578. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  15579. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15580. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15581. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15582. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15583. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15584. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15585. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15586. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15587. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15588. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15589. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15590. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15591. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15592. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15593. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15594. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15595. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  15596. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15597. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15598. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15599. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15600. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15601. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15602. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15603. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15604. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15605. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15606. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15607. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15608. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15609. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15610. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15611. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15612. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  15613. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  15614. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  15615. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  15616. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  15617. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  15618. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  15619. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  15620. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  15621. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15622. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15623. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  15624. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15625. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15626. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15627. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15628. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15629. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15630. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15631. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15632. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15633. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15634. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15635. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15636. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15637. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15638. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15639. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15640. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15641. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15642. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15643. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15644. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15645. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15646. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15647. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15648. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15649. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15650. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15651. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15652. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15653. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15654. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15655. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15656. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15657. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15658. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15659. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15660. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15661. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15662. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15663. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15664. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15665. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15666. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  15667. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15668. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15669. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15670. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15671. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15672. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15673. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15674. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  15675. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15676. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15677. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15678. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15679. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15680. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15681. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15682. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15683. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15684. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15685. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15686. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15687. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15688. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15689. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15690. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  15691. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15692. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15693. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15694. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15695. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15696. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15697. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15698. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15699. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15700. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15701. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15702. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15703. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15704. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15705. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  15706. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15707. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15708. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15709. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15710. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15711. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15712. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15713. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15714. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15715. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15716. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15717. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15718. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15719. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15720. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  15721. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15722. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  15723. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15724. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15725. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15726. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15727. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15728. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15729. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15730. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15731. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15732. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15733. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15734. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15735. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15736. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15737. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15738. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15739. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15740. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  15741. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15742. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15743. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15744. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15745. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15746. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15747. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15748. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15749. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15750. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15751. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15752. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15753. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15754. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15755. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15756. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  15757. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15758. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15759. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15760. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15761. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15762. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15763. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15764. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15765. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15766. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15767. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15768. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15769. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15770. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15771. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15772. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  15773. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15774. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15775. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  15776. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  15777. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  15778. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  15779. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  15780. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  15781. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  15782. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  15783. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  15784. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  15785. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  15786. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  15787. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  15788. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  15789. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  15790. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  15791. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15792. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15793. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15794. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15795. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15796. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15797. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15798. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15799. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15800. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15801. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15802. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15803. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15804. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15805. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15806. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15807. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  15808. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15809. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15810. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15811. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15812. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15813. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15814. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15815. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15816. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15817. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15818. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15819. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15820. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15821. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15822. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15823. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15824. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  15825. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15826. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15827. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15828. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15829. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15830. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15831. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15832. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15833. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15834. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15835. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15836. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15837. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15838. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15839. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15840. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15841. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  15842. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15843. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15844. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15845. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15846. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15847. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15848. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15849. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15850. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15851. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15852. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15853. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15854. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15855. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15856. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15857. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15858. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  15859. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15860. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15861. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15862. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15863. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15864. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15865. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15866. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15867. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15868. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15869. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15870. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15871. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15872. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15873. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15874. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15875. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  15876. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15877. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15878. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15879. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15880. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15881. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15882. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15883. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15884. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15885. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15886. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15887. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15888. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15889. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15890. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15891. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15892. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  15893. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15894. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15895. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15896. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15897. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15898. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15899. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15900. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15901. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15902. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15903. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15904. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15905. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15906. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15907. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15908. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15909. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  15910. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15911. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15912. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15913. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15914. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15915. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15916. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15917. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15918. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15919. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15920. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15921. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15922. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15923. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15924. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15925. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15926. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  15927. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15928. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15929. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15930. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15931. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15932. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15933. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15934. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15935. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15936. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15937. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15938. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15939. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15940. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15941. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15942. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15943. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  15944. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15945. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15946. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15947. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15948. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15949. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15950. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15951. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15952. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15953. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15954. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15955. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15956. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15957. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15958. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15959. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15960. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  15961. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15962. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15963. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15964. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15965. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15966. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15967. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15968. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15969. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15970. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15971. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15972. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15973. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15974. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15975. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15976. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15977. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  15978. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15979. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15980. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15981. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15982. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  15983. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  15984. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  15985. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  15986. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  15987. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  15988. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  15989. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  15990. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  15991. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  15992. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  15993. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  15994. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  15995. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  15996. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  15997. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  15998. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  15999. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16000. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16001. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16002. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16003. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16004. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16005. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16006. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16007. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16008. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16009. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16010. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16011. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16012. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16013. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16014. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16015. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16016. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16017. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16018. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16019. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16020. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16021. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16022. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16023. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16024. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16025. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16026. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16027. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16028. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16029. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16030. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16031. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16032. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16033. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16034. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16035. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16036. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16037. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16038. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16039. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16040. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16041. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16042. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16043. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16044. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16045. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16046. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16047. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16048. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16049. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16050. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16051. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16052. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16053. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16054. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16055. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16056. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16057. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16058. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16059. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16060. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16061. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16062. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16063. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16064. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16065. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16066. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16067. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16068. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16069. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16070. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16071. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16072. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16073. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16074. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16075. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16076. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16077. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16078. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16079. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16080. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16081. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16082. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16083. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16084. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16085. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16086. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16087. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16088. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16089. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16090. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16091. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16092. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16093. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16094. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16095. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16096. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16097. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16098. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16099. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16100. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16101. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16102. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16103. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16104. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16105. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16106. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16107. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16108. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16109. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16110. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16111. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16112. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16113. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16114. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16115. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16116. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16117. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16118. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16119. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16120. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16121. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16122. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16123. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16124. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16125. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16126. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16127. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16128. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16129. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16130. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16131. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16132. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16133. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16134. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16135. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16136. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16137. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16138. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16139. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16140. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16141. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16142. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16143. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16144. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16145. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16146. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16147. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16148. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16149. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16150. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16151. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  16152. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16153. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16154. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16155. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16156. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16157. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16158. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16159. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16160. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16161. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16162. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16163. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16164. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16165. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16166. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16167. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16168. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16169. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  16170. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16171. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16172. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16173. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16174. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16175. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16176. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16177. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16178. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16179. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16180. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16181. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16182. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16183. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16184. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16185. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16186. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  16187. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16188. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16189. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16190. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16191. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16192. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16193. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16194. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16195. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16196. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16197. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16198. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16199. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16200. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16201. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16202. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16203. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16204. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  16205. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16206. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16207. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16208. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16209. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16210. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16211. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16212. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16213. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16214. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16215. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16216. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16217. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16218. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16219. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16220. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16221. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16222. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  16223. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16224. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16225. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16226. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16227. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16228. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16229. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16230. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16231. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16232. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16233. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16234. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16235. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16236. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16237. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16238. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16239. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16240. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  16241. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  16242. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  16243. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  16244. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  16245. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  16246. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  16247. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  16248. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16249. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16250. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16251. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  16252. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  16253. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16254. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16255. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16256. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16257. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16258. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16259. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16260. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  16261. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  16262. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  16263. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  16264. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  16265. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  16266. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  16267. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  16268. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  16269. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  16270. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  16271. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  16272. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  16273. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  16274. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  16275. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  16276. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  16277. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  16278. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  16279. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  16280. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  16281. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  16282. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16283. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16284. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  16285. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16286. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16287. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16288. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16289. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16290. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16291. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16292. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16293. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16294. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16295. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16296. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16297. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16298. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  16299. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16300. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16301. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16302. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16303. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16304. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16305. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16306. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16307. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16308. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16309. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16310. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  16311. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  16312. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16313. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  16314. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16315. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16316. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16317. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16318. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16319. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16320. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16321. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16322. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16323. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16324. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16325. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16326. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16327. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16328. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16329. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16330. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16331. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16332. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16333. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16334. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16335. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16336. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16337. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16338. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16339. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16340. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16341. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16342. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16343. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16344. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16345. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16346. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16347. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16348. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16349. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16350. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16351. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16352. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16353. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16354. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16355. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16356. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16357. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16358. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16359. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16360. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16361. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16362. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16363. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16364. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16365. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16366. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16367. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16368. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16369. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16370. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16371. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16372. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16373. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16374. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16375. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16376. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16377. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16378. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16379. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16380. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16381. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16382. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16383. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16384. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16385. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16386. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16387. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16388. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16389. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16390. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16391. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16392. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16393. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16394. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16395. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16396. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16397. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16398. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16399. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16400. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16401. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16402. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16403. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16404. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16405. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16406. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16407. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16408. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16409. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16410. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16411. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16412. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16413. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16414. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16415. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16416. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16417. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16418. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16419. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16420. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16421. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16422. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16423. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16424. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16425. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16426. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16427. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16428. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16429. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16430. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16431. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16432. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16433. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16434. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16435. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16436. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16437. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16438. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16439. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16440. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16441. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16442. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16443. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16444. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16445. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16446. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16447. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16448. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16449. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16450. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16451. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16452. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16453. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16454. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16455. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16456. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16457. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16458. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16459. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16460. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16461. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16462. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16463. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16464. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16465. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16466. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16467. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16468. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16469. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16470. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16471. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16472. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16473. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16474. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16475. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16476. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16477. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16478. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  16479. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16480. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16481. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16482. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16483. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16484. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16485. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16486. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16487. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16488. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16489. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16490. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16491. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16492. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16493. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16494. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16495. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  16496. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  16497. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  16498. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  16499. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16500. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16501. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16502. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16503. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16504. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16505. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16506. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  16507. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  16508. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  16509. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  16510. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  16511. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  16512. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  16513. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  16514. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16515. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  16516. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  16517. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  16518. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  16519. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16520. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  16521. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  16522. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  16523. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16524. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16525. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16526. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16527. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16528. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16529. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16530. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16531. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16532. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16533. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16534. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16535. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16536. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16537. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16538. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16539. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  16540. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  16541. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16542. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16543. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16544. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16545. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16546. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16547. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16548. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16549. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16550. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16551. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16552. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16553. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16554. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16555. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16556. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16557. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  16558. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  16559. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16560. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16561. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16562. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16563. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16564. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16565. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16566. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16567. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16568. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16569. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16570. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16571. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16572. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16573. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16574. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16575. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  16576. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16577. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16578. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16579. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16580. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16581. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16582. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16583. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16584. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16585. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16586. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16587. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16588. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16589. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16590. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16591. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16592. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  16593. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16594. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16595. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16596. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16597. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16598. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16599. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16600. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16601. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16602. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16603. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16604. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  16605. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16606. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16607. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16608. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16609. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16610. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16611. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16612. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16613. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16614. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16615. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16616. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16617. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16618. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16619. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16620. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16621. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16622. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16623. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16624. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16625. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16626. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16627. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  16628. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  16629. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16630. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  16631. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  16632. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  16633. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  16634. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  16635. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  16636. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  16637. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  16638. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  16639. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  16640. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  16641. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  16642. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  16643. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  16644. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  16645. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16646. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16647. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16648. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16649. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16650. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16651. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16652. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16653. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16654. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16655. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16656. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16657. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16658. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16659. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16660. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16661. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  16662. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16663. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16664. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16665. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16666. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16667. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16668. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16669. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16670. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16671. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16672. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16673. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16674. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16675. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16676. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16677. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16678. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  16679. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16680. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16681. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16682. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16683. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16684. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16685. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16686. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16687. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16688. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16689. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16690. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16691. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16692. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16693. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16694. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16695. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  16696. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16697. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16698. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16699. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16700. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16701. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16702. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16703. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16704. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16705. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16706. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16707. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16708. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16709. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16710. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16711. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16712. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  16713. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16714. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16715. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16716. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16717. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16718. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16719. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16720. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16721. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16722. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16723. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16724. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16725. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16726. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16727. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16728. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16729. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  16730. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16731. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16732. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16733. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16734. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16735. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  16736. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16737. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16738. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16739. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  16740. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16741. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16742. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16743. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16744. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16745. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  16746. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16747. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16748. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16749. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16750. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16751. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  16752. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16753. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16754. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16755. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16756. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16757. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  16758. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16759. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16760. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16761. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16762. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16763. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  16764. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16765. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16766. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16767. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16768. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16769. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  16770. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  16771. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16772. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16773. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16774. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16775. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  16776. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16777. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16778. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16779. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16780. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16781. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  16782. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16783. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16784. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16785. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16786. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16787. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  16788. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16789. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16790. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16791. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16792. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16793. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  16794. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16795. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16796. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16797. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16798. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16799. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  16800. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16801. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16802. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16803. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16804. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16805. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  16806. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16807. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16808. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16809. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16810. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16811. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  16812. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16813. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16814. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16815. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16816. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16817. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  16818. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16819. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16820. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16821. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16822. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16823. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  16824. {"HDMI", NULL, "HDMI_DL_HL"},
  16825. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16826. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16827. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16828. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16829. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16830. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  16831. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16832. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16833. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16834. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16835. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16836. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  16837. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16838. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16839. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16840. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16841. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16842. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  16843. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16844. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16845. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16846. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16847. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16848. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  16849. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16850. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16851. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  16852. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16853. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16854. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  16855. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16856. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16857. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16858. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16859. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  16860. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  16861. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  16862. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16863. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  16864. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  16865. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  16866. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  16867. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16868. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16869. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16870. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16871. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  16872. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  16873. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  16874. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  16875. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  16876. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16877. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16878. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16879. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16880. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  16881. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16882. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  16883. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  16884. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  16885. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16886. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16887. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16888. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16889. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16890. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16891. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16892. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16893. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16894. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16895. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16896. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16897. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16898. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16899. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16900. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16901. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16902. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16903. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16904. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16905. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16906. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16907. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16908. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16909. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16910. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16911. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16912. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16913. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16914. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16915. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16916. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16917. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16918. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  16919. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  16920. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  16921. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  16922. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  16923. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  16924. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16925. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16926. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16927. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16928. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16929. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16930. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16931. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16932. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16933. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16934. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16935. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16936. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16937. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16938. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16939. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16940. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16941. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16942. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16943. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16944. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16945. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  16946. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16947. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16948. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16949. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16950. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16951. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16952. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16953. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16954. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16955. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16956. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  16957. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  16958. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  16959. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  16960. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  16961. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  16962. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  16963. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  16964. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  16965. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  16966. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  16967. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  16968. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  16969. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  16970. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  16971. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  16972. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  16973. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  16974. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  16975. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  16976. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  16977. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  16978. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  16979. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  16980. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  16981. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  16982. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  16983. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  16984. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  16985. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  16986. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  16987. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  16988. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  16989. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  16990. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  16991. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  16992. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  16993. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  16994. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  16995. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  16996. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  16997. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  16998. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  16999. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17000. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17001. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17002. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17003. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17004. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17005. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17006. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17007. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17008. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17009. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17010. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17011. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17012. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17013. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17014. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17015. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17016. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17017. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17018. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17019. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17020. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17021. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17022. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17023. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17024. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17025. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17026. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17027. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17028. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17029. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17030. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17031. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17032. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17033. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17034. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17035. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17036. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17037. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17038. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17039. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17040. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17041. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17042. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17043. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17044. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17045. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17046. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17047. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17048. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17049. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17050. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17051. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17052. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17053. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17054. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17055. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17056. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17057. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17058. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17059. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17060. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17061. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17062. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17063. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17064. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17065. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17066. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17067. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17068. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17069. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17070. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17071. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17072. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17073. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17074. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17075. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17076. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17077. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17078. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17079. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17080. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17081. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17082. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  17083. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17084. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17085. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17086. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17087. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17088. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17089. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  17090. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17091. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17092. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17093. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17094. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17095. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17096. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  17097. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17098. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17099. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17100. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17101. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17102. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17103. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  17104. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  17105. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  17106. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  17107. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  17108. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  17109. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  17110. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  17111. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  17112. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  17113. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  17114. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  17115. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  17116. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  17117. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  17118. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  17119. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  17120. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  17121. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  17122. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  17123. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  17124. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  17125. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  17126. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  17127. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  17128. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  17129. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  17130. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  17131. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  17132. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  17133. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  17134. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  17135. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  17136. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  17137. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  17138. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  17139. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  17140. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  17141. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  17142. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  17143. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  17144. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  17145. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  17146. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  17147. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  17148. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  17149. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  17150. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  17151. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  17152. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  17153. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  17154. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  17155. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  17156. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  17157. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  17158. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  17159. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  17160. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  17161. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  17162. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  17163. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  17164. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  17165. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  17166. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  17167. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  17168. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  17169. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  17170. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  17171. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  17172. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  17173. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  17174. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  17175. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  17176. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  17177. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  17178. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  17179. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  17180. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  17181. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  17182. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  17183. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  17184. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  17185. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  17186. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  17187. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  17188. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  17189. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  17190. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  17191. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  17192. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  17193. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  17194. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  17195. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  17196. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  17197. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  17198. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  17199. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  17200. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  17201. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  17202. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  17203. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  17204. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  17205. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  17206. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  17207. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  17208. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17209. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17210. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17211. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17212. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17213. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17214. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17215. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17216. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17217. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17218. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17219. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17220. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17221. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17222. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17223. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17224. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17225. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17226. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17227. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17228. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  17229. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17230. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17231. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17232. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17233. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17234. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17235. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17236. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17237. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17238. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17239. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17240. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17241. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17242. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17243. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17244. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17245. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17246. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17247. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17248. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17249. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  17250. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17251. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17252. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17253. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17254. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17255. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17256. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17257. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17258. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17259. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17260. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17261. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17262. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17263. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17264. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17265. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17266. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17267. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17268. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17269. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17270. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  17271. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17272. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17273. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17274. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17275. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17276. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17277. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17278. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17279. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17280. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17281. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17282. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17283. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17284. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17285. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17286. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17287. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17288. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17289. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17290. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17291. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  17292. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17293. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17294. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17295. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17296. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17297. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17298. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17299. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17300. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17301. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17302. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17303. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17304. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17305. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17306. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17307. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17308. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17309. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17310. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17311. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17312. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  17313. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17314. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17315. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17316. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17317. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17318. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17319. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17320. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17321. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17322. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17323. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17324. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17325. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17326. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17327. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17328. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17329. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17330. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17331. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17332. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17333. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  17334. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17335. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17336. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17337. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17338. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17339. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17340. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17341. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17342. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17343. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17344. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17345. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17346. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17347. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17348. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17349. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17350. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17351. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17352. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17353. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17354. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  17355. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17356. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17357. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17358. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17359. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17360. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17361. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17362. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17363. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17364. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17365. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17366. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17367. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17368. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17369. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17370. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17371. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17372. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17373. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17374. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17375. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  17376. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17377. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17378. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17379. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17380. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17381. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17382. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17383. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17384. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17385. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17386. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17387. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17388. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17389. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17390. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17391. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17392. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17393. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17394. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17395. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17396. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  17397. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17398. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17399. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17400. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17401. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17402. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17403. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17404. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17405. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17406. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17407. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17408. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17409. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17410. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17411. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17412. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17413. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17414. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17415. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17416. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17417. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  17418. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17419. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17420. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17421. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17422. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17423. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17424. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17425. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17426. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17427. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17428. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17429. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17430. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17431. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17432. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17433. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17434. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17435. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17436. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17437. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17438. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  17439. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17440. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17441. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17442. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17443. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17444. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17445. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17446. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17447. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17448. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17449. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17450. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17451. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17452. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17453. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17454. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17455. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17456. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17457. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17458. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17459. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  17460. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17461. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17462. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17463. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17464. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17465. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17466. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17467. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17468. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17469. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17470. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17471. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17472. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17473. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17474. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17475. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17476. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17477. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17478. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17479. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17480. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  17481. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17482. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17483. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17484. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17485. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17486. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17487. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17488. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17489. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17490. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17491. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17492. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17493. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17494. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17495. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17496. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17497. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17498. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17499. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17500. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17501. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  17502. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17503. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17504. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17505. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17506. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17507. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17508. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17509. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17510. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17511. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17512. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17513. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17514. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17515. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17516. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17517. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17518. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17519. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17520. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17521. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17522. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  17523. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17524. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17525. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17526. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17527. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17528. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17529. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17530. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17531. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17532. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17533. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17534. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17535. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17536. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17537. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17538. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17539. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17540. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17541. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17542. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17543. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  17544. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17545. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17546. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17547. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17548. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17549. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17550. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17551. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17552. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17553. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17554. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17555. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17556. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17557. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17558. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17559. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17560. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17561. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17562. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17563. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17564. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  17565. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17566. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17567. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17568. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17569. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17570. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17571. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17572. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17573. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17574. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17575. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17576. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17577. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17578. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17579. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17580. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17581. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17582. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17583. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17584. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17585. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  17586. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17587. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17588. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17589. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17590. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17591. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17592. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17593. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17594. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17595. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17596. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17597. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17598. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17599. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17600. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17601. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17602. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17603. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17604. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17605. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17606. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  17607. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17608. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17609. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17610. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17611. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17612. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17613. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17614. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17615. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17616. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17617. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17618. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17619. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17620. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17621. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17622. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17623. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17624. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17625. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17626. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17627. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  17628. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17629. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17630. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17631. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17632. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17633. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17634. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17635. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17636. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17637. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17638. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  17639. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17640. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17641. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17642. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17643. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17644. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17645. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17646. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17647. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17648. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17649. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  17650. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17651. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17652. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17653. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17654. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17655. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17656. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17657. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17658. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17659. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17660. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17661. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17662. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17663. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17664. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17665. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17666. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17667. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  17668. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17669. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17670. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  17671. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17672. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  17673. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  17674. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  17675. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  17676. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17677. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17678. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17679. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17680. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17681. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17682. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  17683. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17684. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17685. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17686. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17687. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  17688. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17689. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17690. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17691. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  17692. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17693. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17694. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17695. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  17696. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17697. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17698. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17699. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  17700. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  17701. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17702. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17703. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  17704. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17705. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17706. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17707. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17708. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17709. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  17710. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17711. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17712. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17713. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17714. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17715. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  17716. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17717. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17718. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  17719. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  17720. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  17721. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17722. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  17723. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17724. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17725. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  17726. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17727. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17728. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  17729. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17730. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17731. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  17732. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  17733. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17734. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  17735. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17736. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17737. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  17738. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17739. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17740. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  17741. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17742. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17743. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  17744. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17745. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17746. {"STUB_RX", NULL, "STUB_RX Mixer"},
  17747. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17748. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17749. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  17750. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17751. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17752. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  17753. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17754. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17755. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17756. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17757. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17758. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  17759. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17760. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17761. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17762. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17763. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17764. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  17765. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17766. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  17767. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17768. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  17769. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17770. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17771. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  17772. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  17773. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17774. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  17775. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  17776. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  17777. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  17778. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17779. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17780. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17781. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  17782. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17783. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17784. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17785. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17786. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17787. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17788. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17789. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17790. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  17791. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17792. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  17793. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17794. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  17795. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  17796. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  17797. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17798. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  17799. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17800. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  17801. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  17802. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17803. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17804. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17805. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17806. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17807. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17808. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17809. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17810. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17811. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17812. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  17813. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17814. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17815. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17816. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17817. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17818. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17819. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17820. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17821. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17822. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  17823. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17824. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17825. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17826. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17827. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17828. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17829. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17830. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  17831. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17832. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17833. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17834. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17835. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17836. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17837. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17838. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17839. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17840. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  17841. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17842. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17843. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17844. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17845. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17846. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17847. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17848. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  17849. /* Backend Enablement */
  17850. {"BE_OUT", NULL, "PRI_I2S_RX"},
  17851. {"BE_OUT", NULL, "SEC_I2S_RX"},
  17852. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  17853. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  17854. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  17855. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  17856. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  17857. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  17858. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  17859. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  17860. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  17861. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  17862. {"BE_OUT", NULL, "HDMI"},
  17863. {"BE_OUT", NULL, "DISPLAY_PORT"},
  17864. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  17865. {"BE_OUT", NULL, "SPDIF_RX"},
  17866. {"BE_OUT", NULL, "MI2S_RX"},
  17867. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  17868. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  17869. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  17870. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  17871. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  17872. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  17873. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  17874. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  17875. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  17876. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  17877. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  17878. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  17879. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  17880. {"BE_OUT", NULL, "INT_FM_RX"},
  17881. {"BE_OUT", NULL, "PCM_RX"},
  17882. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  17883. {"BE_OUT", NULL, "AUX_PCM_RX"},
  17884. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  17885. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  17886. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  17887. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  17888. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  17889. {"BE_OUT", NULL, "INT_FM_RX"},
  17890. {"BE_OUT", NULL, "PCM_RX"},
  17891. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  17892. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  17893. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  17894. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  17895. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  17896. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  17897. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  17898. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  17899. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  17900. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  17901. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  17902. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  17903. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  17904. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  17905. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  17906. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  17907. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  17908. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  17909. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  17910. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  17911. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  17912. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  17913. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  17914. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  17915. {"PRI_I2S_TX", NULL, "BE_IN"},
  17916. {"MI2S_TX", NULL, "BE_IN"},
  17917. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  17918. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  17919. {"PRI_MI2S_TX", NULL, "BE_IN"},
  17920. {"TERT_MI2S_TX", NULL, "BE_IN"},
  17921. {"INT0_MI2S_TX", NULL, "BE_IN"},
  17922. {"INT2_MI2S_TX", NULL, "BE_IN"},
  17923. {"INT3_MI2S_TX", NULL, "BE_IN"},
  17924. {"INT4_MI2S_TX", NULL, "BE_IN"},
  17925. {"INT5_MI2S_TX", NULL, "BE_IN"},
  17926. {"SEC_MI2S_TX", NULL, "BE_IN"},
  17927. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  17928. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  17929. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  17930. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  17931. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  17932. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  17933. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  17934. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  17935. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  17936. {"USB_AUDIO_TX", NULL, "BE_IN" },
  17937. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  17938. {"INT_FM_TX", NULL, "BE_IN"},
  17939. {"PCM_TX", NULL, "BE_IN"},
  17940. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  17941. {"BE_OUT", NULL, "STUB_RX"},
  17942. {"STUB_TX", NULL, "BE_IN"},
  17943. {"STUB_1_TX", NULL, "BE_IN"},
  17944. {"BE_OUT", NULL, "AUX_PCM_RX"},
  17945. {"AUX_PCM_TX", NULL, "BE_IN"},
  17946. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  17947. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  17948. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  17949. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  17950. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  17951. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  17952. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  17953. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  17954. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  17955. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  17956. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  17957. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  17958. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  17959. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  17960. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  17961. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  17962. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  17963. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  17964. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  17965. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  17966. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  17967. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  17968. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  17969. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  17970. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  17971. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  17972. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  17973. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  17974. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  17975. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  17976. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  17977. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  17978. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  17979. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  17980. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  17981. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  17982. };
  17983. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  17984. struct snd_pcm_hw_params *params)
  17985. {
  17986. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  17987. unsigned int be_id = rtd->dai_link->id;
  17988. if (be_id >= MSM_BACKEND_DAI_MAX) {
  17989. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  17990. return -EINVAL;
  17991. }
  17992. mutex_lock(&routing_lock);
  17993. msm_bedais[be_id].sample_rate = params_rate(params);
  17994. msm_bedais[be_id].channel = params_channels(params);
  17995. msm_bedais[be_id].format = params_format(params);
  17996. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  17997. __func__, msm_bedais[be_id].sample_rate,
  17998. msm_bedais[be_id].format, be_id);
  17999. mutex_unlock(&routing_lock);
  18000. return 0;
  18001. }
  18002. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18003. {
  18004. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18005. unsigned int be_id = rtd->dai_link->id;
  18006. int i, session_type, path_type, topology;
  18007. struct msm_pcm_routing_bdai_data *bedai;
  18008. struct msm_pcm_routing_fdai_data *fdai;
  18009. pr_debug("%s: substream->pcm->id:%s\n",
  18010. __func__, substream->pcm->id);
  18011. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18012. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18013. return -EINVAL;
  18014. }
  18015. bedai = &msm_bedais[be_id];
  18016. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18017. 0 : 1);
  18018. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18019. path_type = ADM_PATH_PLAYBACK;
  18020. else
  18021. path_type = ADM_PATH_LIVE_REC;
  18022. mutex_lock(&routing_lock);
  18023. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18024. if (!is_mm_lsm_fe_id(i))
  18025. continue;
  18026. fdai = &fe_dai_map[i][session_type];
  18027. if (fdai->strm_id != INVALID_SESSION) {
  18028. int idx;
  18029. int port_id;
  18030. unsigned long copp =
  18031. session_copp_map[i][session_type][be_id];
  18032. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18033. if (test_bit(idx, &copp))
  18034. break;
  18035. fdai->be_srate = bedai->sample_rate;
  18036. port_id = bedai->port_id;
  18037. topology = adm_get_topology_for_port_copp_idx(port_id,
  18038. idx);
  18039. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18040. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18041. __func__, copp, i, session_type, be_id,
  18042. topology);
  18043. clear_bit(idx,
  18044. &session_copp_map[i][session_type][be_id]);
  18045. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18046. (bedai->passthr_mode[i] == LEGACY_PCM))
  18047. msm_pcm_routing_deinit_pp(bedai->port_id,
  18048. topology);
  18049. }
  18050. }
  18051. bedai->active = 0;
  18052. bedai->sample_rate = 0;
  18053. bedai->channel = 0;
  18054. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  18055. if (bedai->passthr_mode[i] != LISTEN)
  18056. bedai->passthr_mode[i] = LEGACY_PCM;
  18057. }
  18058. mutex_unlock(&routing_lock);
  18059. return 0;
  18060. }
  18061. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  18062. {
  18063. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18064. unsigned int be_id = rtd->dai_link->id;
  18065. int i, path_type, topology;
  18066. int session_type = INVALID_SESSION;
  18067. struct msm_pcm_routing_bdai_data *bedai;
  18068. u32 channels, sample_rate;
  18069. uint16_t bits_per_sample = 16, voc_path_type;
  18070. struct msm_pcm_routing_fdai_data *fdai;
  18071. u32 session_id;
  18072. struct media_format_info voc_be_media_format;
  18073. bool is_lsm;
  18074. pr_debug("%s: substream->pcm->id:%s\n",
  18075. __func__, substream->pcm->id);
  18076. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18077. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18078. return -EINVAL;
  18079. }
  18080. bedai = &msm_bedais[be_id];
  18081. mutex_lock(&routing_lock);
  18082. if (bedai->active == 1)
  18083. goto done; /* Ignore prepare if back-end already active */
  18084. /* AFE port is not active at this point. However, still
  18085. * go ahead setting active flag under the notion that
  18086. * QDSP6 is able to handle ADM starting before AFE port
  18087. * is started.
  18088. */
  18089. bedai->active = 1;
  18090. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18091. if (!(is_mm_lsm_fe_id(i) &&
  18092. route_check_fe_id_adm_support(i)))
  18093. continue;
  18094. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  18095. if (bedai->passthr_mode[i] != LEGACY_PCM)
  18096. path_type = ADM_PATH_COMPRESSED_RX;
  18097. else
  18098. path_type = ADM_PATH_PLAYBACK;
  18099. session_type = SESSION_TYPE_RX;
  18100. } else {
  18101. path_type = ADM_PATH_LIVE_REC;
  18102. session_type = SESSION_TYPE_TX;
  18103. }
  18104. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  18105. (i <= MSM_FRONTEND_DAI_LSM8);
  18106. fdai = &fe_dai_map[i][session_type];
  18107. if (fdai->strm_id != INVALID_SESSION) {
  18108. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  18109. if (session_type == SESSION_TYPE_TX &&
  18110. fdai->be_srate &&
  18111. (fdai->be_srate != bedai->sample_rate)) {
  18112. pr_debug("%s: flush strm %d diff BE rates\n",
  18113. __func__,
  18114. fdai->strm_id);
  18115. if (fdai->event_info.event_func)
  18116. fdai->event_info.event_func(
  18117. MSM_PCM_RT_EVT_BUF_RECFG,
  18118. fdai->event_info.priv_data);
  18119. fdai->be_srate = 0; /* might not need it */
  18120. }
  18121. bits_per_sample = msm_routing_get_bit_width(
  18122. bedai->format);
  18123. app_type =
  18124. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  18125. if (app_type && is_lsm) {
  18126. app_type_idx =
  18127. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  18128. sample_rate =
  18129. fe_dai_app_type_cfg[i][session_type][be_id]
  18130. .sample_rate;
  18131. bits_per_sample =
  18132. lsm_app_type_cfg[app_type_idx].bit_width;
  18133. } else if (app_type) {
  18134. app_type_idx =
  18135. msm_pcm_routing_get_app_type_idx(app_type);
  18136. sample_rate =
  18137. fe_dai_app_type_cfg[i][session_type]
  18138. [be_id].sample_rate;
  18139. bits_per_sample =
  18140. app_type_cfg[app_type_idx].bit_width;
  18141. } else
  18142. sample_rate = bedai->sample_rate;
  18143. /*
  18144. * check if ADM needs to be configured with different
  18145. * channel mapping than backend
  18146. */
  18147. if (!bedai->adm_override_ch)
  18148. channels = bedai->channel;
  18149. else
  18150. channels = bedai->adm_override_ch;
  18151. acdb_dev_id =
  18152. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  18153. topology = msm_routing_get_adm_topology(i, session_type,
  18154. be_id);
  18155. copp_idx = adm_open(bedai->port_id, path_type,
  18156. sample_rate, channels, topology,
  18157. fdai->perf_mode, bits_per_sample,
  18158. app_type, acdb_dev_id);
  18159. if ((copp_idx < 0) ||
  18160. (copp_idx >= MAX_COPPS_PER_PORT)) {
  18161. pr_err("%s: adm open failed\n", __func__);
  18162. mutex_unlock(&routing_lock);
  18163. return -EINVAL;
  18164. }
  18165. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  18166. __func__, i, session_type, be_id);
  18167. set_bit(copp_idx,
  18168. &session_copp_map[i][session_type][be_id]);
  18169. if (msm_is_resample_needed(
  18170. sample_rate,
  18171. bedai->sample_rate))
  18172. adm_copp_mfc_cfg(
  18173. bedai->port_id, copp_idx,
  18174. bedai->sample_rate);
  18175. msm_pcm_routing_build_matrix(i, session_type, path_type,
  18176. fdai->perf_mode,
  18177. bedai->passthr_mode[i]);
  18178. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18179. (bedai->passthr_mode[i] == LEGACY_PCM))
  18180. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  18181. topology, channels);
  18182. }
  18183. }
  18184. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18185. session_id = msm_pcm_routing_get_voc_sessionid(i);
  18186. if (session_id) {
  18187. pr_debug("%s voice session_id: 0x%x\n", __func__,
  18188. session_id);
  18189. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18190. voc_path_type = RX_PATH;
  18191. else
  18192. voc_path_type = TX_PATH;
  18193. voc_set_route_flag(session_id, voc_path_type, 1);
  18194. memset(&voc_be_media_format, 0,
  18195. sizeof(struct media_format_info));
  18196. voc_be_media_format.port_id = bedai->port_id;
  18197. voc_be_media_format.num_channels = bedai->channel;
  18198. voc_be_media_format.sample_rate = bedai->sample_rate;
  18199. voc_be_media_format.bits_per_sample = bedai->format;
  18200. /* Defaulting this to 1 for voice call usecases */
  18201. voc_be_media_format.channel_mapping[0] = 1;
  18202. voc_set_device_config(session_id, voc_path_type,
  18203. &voc_be_media_format);
  18204. if (voc_get_route_flag(session_id, RX_PATH) &&
  18205. voc_get_route_flag(session_id, TX_PATH))
  18206. voc_enable_device(session_id);
  18207. }
  18208. }
  18209. /* Check if backend is an external ec ref port and set as needed */
  18210. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  18211. memset(&voc_be_media_format, 0,
  18212. sizeof(struct media_format_info));
  18213. /* Get format info for ec ref port from msm_bedais[] */
  18214. voc_be_media_format.port_id = bedai->port_id;
  18215. voc_be_media_format.num_channels = bedai->channel;
  18216. voc_be_media_format.bits_per_sample = bedai->format;
  18217. voc_be_media_format.sample_rate = bedai->sample_rate;
  18218. /* Defaulting this to 1 for voice call usecases */
  18219. voc_be_media_format.channel_mapping[0] = 1;
  18220. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  18221. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  18222. __func__, voc_be_media_format.port_id,
  18223. voc_be_media_format.num_channels,
  18224. voc_be_media_format.bits_per_sample,
  18225. voc_be_media_format.sample_rate);
  18226. }
  18227. done:
  18228. mutex_unlock(&routing_lock);
  18229. return 0;
  18230. }
  18231. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  18232. int fe_id)
  18233. {
  18234. int index, topo_id, be_idx;
  18235. unsigned long pp_config = 0;
  18236. bool mute_on;
  18237. int latency;
  18238. bool compr_passthr_mode = true;
  18239. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  18240. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  18241. pr_err("%s: Device pp params on invalid port %d\n",
  18242. __func__, port_id);
  18243. return -EINVAL;
  18244. }
  18245. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  18246. if (port_id == msm_bedais[be_idx].port_id)
  18247. break;
  18248. }
  18249. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  18250. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  18251. return -EINVAL;
  18252. }
  18253. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  18254. if (msm_bedais_pp_params[index].port_id == port_id)
  18255. break;
  18256. }
  18257. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  18258. pr_err("%s: Invalid backend pp params index %d\n",
  18259. __func__, index);
  18260. return -EINVAL;
  18261. }
  18262. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  18263. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  18264. pr_err("%s: Invalid passthrough topology 0x%x\n",
  18265. __func__, topo_id);
  18266. return -EINVAL;
  18267. }
  18268. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  18269. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  18270. compr_passthr_mode = false;
  18271. pp_config = msm_bedais_pp_params[index].pp_params_config;
  18272. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  18273. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  18274. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  18275. mute_on = msm_bedais_pp_params[index].mute_on;
  18276. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  18277. adm_send_compressed_device_mute(port_id,
  18278. copp_idx,
  18279. mute_on);
  18280. }
  18281. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  18282. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  18283. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  18284. &pp_config);
  18285. latency = msm_bedais_pp_params[index].latency;
  18286. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  18287. adm_send_compressed_device_latency(port_id,
  18288. copp_idx,
  18289. latency);
  18290. }
  18291. return 0;
  18292. }
  18293. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  18294. struct snd_ctl_elem_value *ucontrol)
  18295. {
  18296. int pp_id = ucontrol->value.integer.value[0];
  18297. int port_id = 0;
  18298. int index, be_idx, i, topo_id, idx;
  18299. bool mute;
  18300. int latency;
  18301. bool compr_passthr_mode = true;
  18302. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  18303. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  18304. port_id = msm_bedais[be_idx].port_id;
  18305. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  18306. break;
  18307. }
  18308. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  18309. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  18310. return -EINVAL;
  18311. }
  18312. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  18313. if (msm_bedais_pp_params[index].port_id == port_id)
  18314. break;
  18315. }
  18316. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  18317. pr_err("%s: Invalid pp params backend index %d\n",
  18318. __func__, index);
  18319. return -EINVAL;
  18320. }
  18321. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  18322. MSM_FRONTEND_DAI_MM_SIZE) {
  18323. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  18324. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  18325. compr_passthr_mode = false;
  18326. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  18327. unsigned long copp =
  18328. session_copp_map[i]
  18329. [SESSION_TYPE_RX][be_idx];
  18330. if (!test_bit(idx, &copp))
  18331. continue;
  18332. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  18333. idx);
  18334. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  18335. continue;
  18336. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  18337. __func__, port_id, copp, msm_bedais[be_idx].active,
  18338. msm_bedais[be_idx].passthr_mode[i]);
  18339. switch (pp_id) {
  18340. case ADM_PP_PARAM_MUTE_ID:
  18341. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  18342. mute = ucontrol->value.integer.value[1] ? true : false;
  18343. msm_bedais_pp_params[index].mute_on = mute;
  18344. set_bit(ADM_PP_PARAM_MUTE_BIT,
  18345. &msm_bedais_pp_params[index].pp_params_config);
  18346. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  18347. adm_send_compressed_device_mute(port_id,
  18348. idx, mute);
  18349. break;
  18350. case ADM_PP_PARAM_LATENCY_ID:
  18351. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  18352. msm_bedais_pp_params[index].latency =
  18353. ucontrol->value.integer.value[1];
  18354. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  18355. &msm_bedais_pp_params[index].pp_params_config);
  18356. latency = msm_bedais_pp_params[index].latency =
  18357. ucontrol->value.integer.value[1];
  18358. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  18359. adm_send_compressed_device_latency(port_id,
  18360. idx, latency);
  18361. break;
  18362. default:
  18363. pr_info("%s, device pp param %d not supported\n",
  18364. __func__, pp_id);
  18365. break;
  18366. }
  18367. }
  18368. }
  18369. return 0;
  18370. }
  18371. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  18372. struct snd_ctl_elem_value *ucontrol)
  18373. {
  18374. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  18375. return 0;
  18376. }
  18377. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  18378. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  18379. 0, 3, msm_routing_get_device_pp_params_mixer,
  18380. msm_routing_put_device_pp_params_mixer),
  18381. };
  18382. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  18383. struct snd_ctl_elem_value *ucontrol)
  18384. {
  18385. ucontrol->value.integer.value[0] =
  18386. core_get_license_status(ASM_MEDIA_FMT_APTX);
  18387. pr_debug("%s: status %ld\n", __func__,
  18388. ucontrol->value.integer.value[0]);
  18389. return 0;
  18390. }
  18391. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  18392. struct snd_ctl_elem_value *ucontrol)
  18393. {
  18394. int32_t status = 0;
  18395. status = core_set_license(ucontrol->value.integer.value[0],
  18396. APTX_CLASSIC_DEC_LICENSE_ID);
  18397. pr_debug("%s: status %d\n", __func__, status);
  18398. return status;
  18399. }
  18400. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  18401. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  18402. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  18403. msm_aptx_dec_license_control_put),
  18404. };
  18405. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  18406. struct snd_ctl_elem_info *uinfo)
  18407. {
  18408. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  18409. uinfo->count = sizeof(be_dai_name_table);
  18410. return 0;
  18411. }
  18412. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  18413. unsigned int __user *bytes,
  18414. unsigned int size)
  18415. {
  18416. int i;
  18417. int ret;
  18418. if (size < sizeof(be_dai_name_table)) {
  18419. pr_err("%s: invalid size %d requested, returning\n",
  18420. __func__, size);
  18421. ret = -EINVAL;
  18422. goto done;
  18423. }
  18424. /*
  18425. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  18426. * needed when adding new backends
  18427. */
  18428. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  18429. be_dai_name_table[i].be_id = i;
  18430. strlcpy(be_dai_name_table[i].be_name,
  18431. msm_bedais[i].name,
  18432. LPASS_BE_NAME_MAX_LENGTH);
  18433. }
  18434. ret = copy_to_user(bytes, &be_dai_name_table,
  18435. sizeof(be_dai_name_table));
  18436. if (ret) {
  18437. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  18438. ret = -EFAULT;
  18439. }
  18440. done:
  18441. return ret;
  18442. }
  18443. static const struct snd_kcontrol_new
  18444. msm_routing_be_dai_name_table_mixer_controls[] = {
  18445. {
  18446. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  18447. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  18448. .info = msm_routing_be_dai_name_table_info,
  18449. .name = "Backend DAI Name Table",
  18450. .tlv.c = snd_soc_bytes_tlv_callback,
  18451. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  18452. .max = sizeof(be_dai_name_table),
  18453. .get = msm_routing_be_dai_name_table_tlv_get,
  18454. }
  18455. },
  18456. };
  18457. static int msm_routing_stereo_channel_reverse_control_get(
  18458. struct snd_kcontrol *kcontrol,
  18459. struct snd_ctl_elem_value *ucontrol)
  18460. {
  18461. ucontrol->value.integer.value[0] = swap_ch;
  18462. pr_debug("%s: Swap channel value: %ld\n", __func__,
  18463. ucontrol->value.integer.value[0]);
  18464. return 0;
  18465. }
  18466. static int msm_routing_stereo_channel_reverse_control_put(
  18467. struct snd_kcontrol *kcontrol,
  18468. struct snd_ctl_elem_value *ucontrol)
  18469. {
  18470. int i, idx, be_index, port_id;
  18471. int ret = 0;
  18472. unsigned long copp;
  18473. pr_debug("%s Swap channel value:%ld\n", __func__,
  18474. ucontrol->value.integer.value[0]);
  18475. swap_ch = ucontrol->value.integer.value[0];
  18476. mutex_lock(&routing_lock);
  18477. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  18478. port_id = msm_bedais[be_index].port_id;
  18479. if (!msm_bedais[be_index].active)
  18480. continue;
  18481. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  18482. MSM_FRONTEND_DAI_MM_SIZE) {
  18483. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  18484. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  18485. if (!test_bit(idx, &copp))
  18486. continue;
  18487. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  18488. __func__, port_id, idx);
  18489. ret = adm_swap_speaker_channels(
  18490. port_id, idx,
  18491. msm_bedais[be_index].sample_rate,
  18492. swap_ch);
  18493. if (ret) {
  18494. pr_err("%s:Swap_channel failed, err=%d\n",
  18495. __func__, ret);
  18496. goto done;
  18497. }
  18498. }
  18499. }
  18500. }
  18501. done:
  18502. mutex_unlock(&routing_lock);
  18503. return ret;
  18504. }
  18505. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  18506. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  18507. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  18508. msm_routing_stereo_channel_reverse_control_put),
  18509. };
  18510. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  18511. struct snd_ctl_elem_info *uinfo)
  18512. {
  18513. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  18514. uinfo->count = 1;
  18515. return 0;
  18516. }
  18517. static int msm_routing_instance_id_support_put(
  18518. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  18519. {
  18520. bool supported = ucontrol->value.integer.value[0] ? true : false;
  18521. q6common_update_instance_id_support(supported);
  18522. return 0;
  18523. }
  18524. static int msm_routing_instance_id_support_get(
  18525. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  18526. {
  18527. bool supported = false;
  18528. supported = q6common_is_instance_id_supported();
  18529. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  18530. return 0;
  18531. }
  18532. static const struct snd_kcontrol_new
  18533. msm_routing_feature_support_mixer_controls[] = {
  18534. {
  18535. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  18536. SNDRV_CTL_ELEM_ACCESS_WRITE,
  18537. .info = msm_routing_instance_id_support_info,
  18538. .name = "Instance ID Support",
  18539. .put = msm_routing_instance_id_support_put,
  18540. .get = msm_routing_instance_id_support_get,
  18541. },
  18542. };
  18543. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  18544. .hw_params = msm_pcm_routing_hw_params,
  18545. .close = msm_pcm_routing_close,
  18546. .prepare = msm_pcm_routing_prepare,
  18547. };
  18548. /* Not used but frame seems to require it */
  18549. static int msm_routing_probe(struct snd_soc_platform *platform)
  18550. {
  18551. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  18552. ARRAY_SIZE(msm_qdsp6_widgets));
  18553. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  18554. ARRAY_SIZE(intercon));
  18555. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  18556. snd_soc_add_platform_controls(platform, lsm_controls,
  18557. ARRAY_SIZE(lsm_controls));
  18558. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  18559. ARRAY_SIZE(aanc_slim_0_rx_mux));
  18560. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  18561. ARRAY_SIZE(msm_voc_session_controls));
  18562. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  18563. ARRAY_SIZE(app_type_cfg_controls));
  18564. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  18565. ARRAY_SIZE(lsm_app_type_cfg_controls));
  18566. snd_soc_add_platform_controls(platform, module_cfg_controls,
  18567. ARRAY_SIZE(module_cfg_controls));
  18568. snd_soc_add_platform_controls(platform,
  18569. stereo_to_custom_stereo_controls,
  18570. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  18571. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  18572. ARRAY_SIZE(ec_ref_param_controls));
  18573. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  18574. ARRAY_SIZE(channel_mixer_controls));
  18575. msm_qti_pp_add_controls(platform);
  18576. msm_dts_srs_tm_add_controls(platform);
  18577. msm_dolby_dap_add_controls(platform);
  18578. snd_soc_add_platform_controls(platform,
  18579. use_ds1_or_ds2_controls,
  18580. ARRAY_SIZE(use_ds1_or_ds2_controls));
  18581. snd_soc_add_platform_controls(platform,
  18582. device_pp_params_mixer_controls,
  18583. ARRAY_SIZE(device_pp_params_mixer_controls));
  18584. snd_soc_add_platform_controls(platform,
  18585. msm_routing_be_dai_name_table_mixer_controls,
  18586. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  18587. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  18588. ARRAY_SIZE(msm_source_tracking_controls));
  18589. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  18590. ARRAY_SIZE(adm_channel_config_controls));
  18591. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  18592. ARRAY_SIZE(aptx_dec_license_controls));
  18593. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  18594. ARRAY_SIZE(stereo_channel_reverse_control));
  18595. snd_soc_add_platform_controls(
  18596. platform, msm_routing_feature_support_mixer_controls,
  18597. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  18598. return 0;
  18599. }
  18600. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  18601. {
  18602. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  18603. }
  18604. void msm_routing_pcm_free(struct snd_pcm *pcm)
  18605. {
  18606. msm_pcm_routing_hwdep_free(pcm);
  18607. }
  18608. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  18609. .ops = &msm_routing_pcm_ops,
  18610. .probe = msm_routing_probe,
  18611. .pcm_new = msm_routing_pcm_new,
  18612. .pcm_free = msm_routing_pcm_free,
  18613. };
  18614. static int msm_routing_pcm_probe(struct platform_device *pdev)
  18615. {
  18616. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  18617. return snd_soc_register_platform(&pdev->dev,
  18618. &msm_soc_routing_platform);
  18619. }
  18620. static int msm_routing_pcm_remove(struct platform_device *pdev)
  18621. {
  18622. snd_soc_unregister_platform(&pdev->dev);
  18623. return 0;
  18624. }
  18625. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  18626. {.compatible = "qcom,msm-pcm-routing"},
  18627. {}
  18628. };
  18629. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  18630. static struct platform_driver msm_routing_pcm_driver = {
  18631. .driver = {
  18632. .name = "msm-pcm-routing",
  18633. .owner = THIS_MODULE,
  18634. .of_match_table = msm_pcm_routing_dt_match,
  18635. },
  18636. .probe = msm_routing_pcm_probe,
  18637. .remove = msm_routing_pcm_remove,
  18638. };
  18639. int msm_routing_check_backend_enabled(int fedai_id)
  18640. {
  18641. int i;
  18642. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  18643. /* bad ID assigned in machine driver */
  18644. pr_err("%s: bad MM ID\n", __func__);
  18645. return 0;
  18646. }
  18647. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  18648. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  18649. return msm_bedais[i].active;
  18650. }
  18651. return 0;
  18652. }
  18653. static int get_cal_type_index(int32_t cal_type)
  18654. {
  18655. int ret = -EINVAL;
  18656. switch (cal_type) {
  18657. case ADM_TOPOLOGY_CAL_TYPE:
  18658. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  18659. break;
  18660. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  18661. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  18662. break;
  18663. default:
  18664. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  18665. }
  18666. return ret;
  18667. }
  18668. static int msm_routing_set_cal(int32_t cal_type,
  18669. size_t data_size, void *data)
  18670. {
  18671. int ret = 0;
  18672. int cal_index;
  18673. pr_debug("%s\n", __func__);
  18674. cal_index = get_cal_type_index(cal_type);
  18675. if (cal_index < 0) {
  18676. pr_err("%s: Could not get cal index %d\n",
  18677. __func__, cal_index);
  18678. ret = -EINVAL;
  18679. goto done;
  18680. }
  18681. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  18682. if (ret < 0) {
  18683. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  18684. __func__, ret, cal_type);
  18685. ret = -EINVAL;
  18686. goto done;
  18687. }
  18688. done:
  18689. return ret;
  18690. }
  18691. static void msm_routing_delete_cal_data(void)
  18692. {
  18693. pr_debug("%s\n", __func__);
  18694. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  18695. }
  18696. static int msm_routing_init_cal_data(void)
  18697. {
  18698. int ret = 0;
  18699. struct cal_type_info cal_type_info[] = {
  18700. {{ADM_TOPOLOGY_CAL_TYPE,
  18701. {NULL, NULL, NULL,
  18702. msm_routing_set_cal, NULL, NULL} },
  18703. {NULL, NULL, cal_utils_match_buf_num} },
  18704. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  18705. {NULL, NULL, NULL,
  18706. msm_routing_set_cal, NULL, NULL} },
  18707. {NULL, NULL, cal_utils_match_buf_num} },
  18708. };
  18709. pr_debug("%s\n", __func__);
  18710. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  18711. &cal_type_info[0]);
  18712. if (ret < 0) {
  18713. pr_err("%s: could not create cal type!\n",
  18714. __func__);
  18715. ret = -EINVAL;
  18716. goto err;
  18717. }
  18718. return ret;
  18719. err:
  18720. msm_routing_delete_cal_data();
  18721. return ret;
  18722. }
  18723. int __init msm_soc_routing_platform_init(void)
  18724. {
  18725. mutex_init(&routing_lock);
  18726. if (msm_routing_init_cal_data())
  18727. pr_err("%s: could not init cal data!\n", __func__);
  18728. afe_set_routing_callback(
  18729. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  18730. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  18731. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  18732. return platform_driver_register(&msm_routing_pcm_driver);
  18733. }
  18734. void msm_soc_routing_platform_exit(void)
  18735. {
  18736. msm_routing_delete_cal_data();
  18737. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  18738. mutex_destroy(&routing_lock);
  18739. platform_driver_unregister(&msm_routing_pcm_driver);
  18740. }
  18741. MODULE_DESCRIPTION("MSM routing platform driver");
  18742. MODULE_LICENSE("GPL v2");