registers.h 285 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822
  1. /*
  2. * include/linux/mfd/wm8994/registers.h -- Register definitions for WM8994
  3. *
  4. * Copyright 2009 Wolfson Microelectronics PLC.
  5. *
  6. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifndef __MFD_WM8994_REGISTERS_H__
  15. #define __MFD_WM8994_REGISTERS_H__
  16. /*
  17. * Register values.
  18. */
  19. #define WM8994_SOFTWARE_RESET 0x00
  20. #define WM8994_POWER_MANAGEMENT_1 0x01
  21. #define WM8994_POWER_MANAGEMENT_2 0x02
  22. #define WM8994_POWER_MANAGEMENT_3 0x03
  23. #define WM8994_POWER_MANAGEMENT_4 0x04
  24. #define WM8994_POWER_MANAGEMENT_5 0x05
  25. #define WM8994_POWER_MANAGEMENT_6 0x06
  26. #define WM8994_INPUT_MIXER_1 0x15
  27. #define WM8994_LEFT_LINE_INPUT_1_2_VOLUME 0x18
  28. #define WM8994_LEFT_LINE_INPUT_3_4_VOLUME 0x19
  29. #define WM8994_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
  30. #define WM8994_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
  31. #define WM8994_LEFT_OUTPUT_VOLUME 0x1C
  32. #define WM8994_RIGHT_OUTPUT_VOLUME 0x1D
  33. #define WM8994_LINE_OUTPUTS_VOLUME 0x1E
  34. #define WM8994_HPOUT2_VOLUME 0x1F
  35. #define WM8994_LEFT_OPGA_VOLUME 0x20
  36. #define WM8994_RIGHT_OPGA_VOLUME 0x21
  37. #define WM8994_SPKMIXL_ATTENUATION 0x22
  38. #define WM8994_SPKMIXR_ATTENUATION 0x23
  39. #define WM8994_SPKOUT_MIXERS 0x24
  40. #define WM8994_CLASSD 0x25
  41. #define WM8994_SPEAKER_VOLUME_LEFT 0x26
  42. #define WM8994_SPEAKER_VOLUME_RIGHT 0x27
  43. #define WM8994_INPUT_MIXER_2 0x28
  44. #define WM8994_INPUT_MIXER_3 0x29
  45. #define WM8994_INPUT_MIXER_4 0x2A
  46. #define WM8994_INPUT_MIXER_5 0x2B
  47. #define WM8994_INPUT_MIXER_6 0x2C
  48. #define WM8994_OUTPUT_MIXER_1 0x2D
  49. #define WM8994_OUTPUT_MIXER_2 0x2E
  50. #define WM8994_OUTPUT_MIXER_3 0x2F
  51. #define WM8994_OUTPUT_MIXER_4 0x30
  52. #define WM8994_OUTPUT_MIXER_5 0x31
  53. #define WM8994_OUTPUT_MIXER_6 0x32
  54. #define WM8994_HPOUT2_MIXER 0x33
  55. #define WM8994_LINE_MIXER_1 0x34
  56. #define WM8994_LINE_MIXER_2 0x35
  57. #define WM8994_SPEAKER_MIXER 0x36
  58. #define WM8994_ADDITIONAL_CONTROL 0x37
  59. #define WM8994_ANTIPOP_1 0x38
  60. #define WM8994_ANTIPOP_2 0x39
  61. #define WM8994_MICBIAS 0x3A
  62. #define WM8994_LDO_1 0x3B
  63. #define WM8994_LDO_2 0x3C
  64. #define WM8958_MICBIAS1 0x3D
  65. #define WM8958_MICBIAS2 0x3E
  66. #define WM8994_CHARGE_PUMP_1 0x4C
  67. #define WM8958_CHARGE_PUMP_2 0x4D
  68. #define WM8994_CLASS_W_1 0x51
  69. #define WM8994_DC_SERVO_1 0x54
  70. #define WM8994_DC_SERVO_2 0x55
  71. #define WM8994_DC_SERVO_4 0x57
  72. #define WM8994_DC_SERVO_READBACK 0x58
  73. #define WM8994_DC_SERVO_4E 0x59
  74. #define WM8994_ANALOGUE_HP_1 0x60
  75. #define WM8958_MIC_DETECT_1 0xD0
  76. #define WM8958_MIC_DETECT_2 0xD1
  77. #define WM8958_MIC_DETECT_3 0xD2
  78. #define WM8994_CHIP_REVISION 0x100
  79. #define WM8994_CONTROL_INTERFACE 0x101
  80. #define WM8994_WRITE_SEQUENCER_CTRL_1 0x110
  81. #define WM8994_WRITE_SEQUENCER_CTRL_2 0x111
  82. #define WM8994_AIF1_CLOCKING_1 0x200
  83. #define WM8994_AIF1_CLOCKING_2 0x201
  84. #define WM8994_AIF2_CLOCKING_1 0x204
  85. #define WM8994_AIF2_CLOCKING_2 0x205
  86. #define WM8994_CLOCKING_1 0x208
  87. #define WM8994_CLOCKING_2 0x209
  88. #define WM8994_AIF1_RATE 0x210
  89. #define WM8994_AIF2_RATE 0x211
  90. #define WM8994_RATE_STATUS 0x212
  91. #define WM8994_FLL1_CONTROL_1 0x220
  92. #define WM8994_FLL1_CONTROL_2 0x221
  93. #define WM8994_FLL1_CONTROL_3 0x222
  94. #define WM8994_FLL1_CONTROL_4 0x223
  95. #define WM8994_FLL1_CONTROL_5 0x224
  96. #define WM8958_FLL1_EFS_1 0x226
  97. #define WM8958_FLL1_EFS_2 0x227
  98. #define WM8994_FLL2_CONTROL_1 0x240
  99. #define WM8994_FLL2_CONTROL_2 0x241
  100. #define WM8994_FLL2_CONTROL_3 0x242
  101. #define WM8994_FLL2_CONTROL_4 0x243
  102. #define WM8994_FLL2_CONTROL_5 0x244
  103. #define WM8958_FLL2_EFS_1 0x246
  104. #define WM8958_FLL2_EFS_2 0x247
  105. #define WM8994_AIF1_CONTROL_1 0x300
  106. #define WM8994_AIF1_CONTROL_2 0x301
  107. #define WM8994_AIF1_MASTER_SLAVE 0x302
  108. #define WM8994_AIF1_BCLK 0x303
  109. #define WM8994_AIF1ADC_LRCLK 0x304
  110. #define WM8994_AIF1DAC_LRCLK 0x305
  111. #define WM8994_AIF1DAC_DATA 0x306
  112. #define WM8994_AIF1ADC_DATA 0x307
  113. #define WM8994_AIF2_CONTROL_1 0x310
  114. #define WM8994_AIF2_CONTROL_2 0x311
  115. #define WM8994_AIF2_MASTER_SLAVE 0x312
  116. #define WM8994_AIF2_BCLK 0x313
  117. #define WM8994_AIF2ADC_LRCLK 0x314
  118. #define WM8994_AIF2DAC_LRCLK 0x315
  119. #define WM8994_AIF2DAC_DATA 0x316
  120. #define WM8994_AIF2ADC_DATA 0x317
  121. #define WM1811_AIF2TX_CONTROL 0x318
  122. #define WM8958_AIF3_CONTROL_1 0x320
  123. #define WM8958_AIF3_CONTROL_2 0x321
  124. #define WM8958_AIF3DAC_DATA 0x322
  125. #define WM8958_AIF3ADC_DATA 0x323
  126. #define WM8994_AIF1_ADC1_LEFT_VOLUME 0x400
  127. #define WM8994_AIF1_ADC1_RIGHT_VOLUME 0x401
  128. #define WM8994_AIF1_DAC1_LEFT_VOLUME 0x402
  129. #define WM8994_AIF1_DAC1_RIGHT_VOLUME 0x403
  130. #define WM8994_AIF1_ADC2_LEFT_VOLUME 0x404
  131. #define WM8994_AIF1_ADC2_RIGHT_VOLUME 0x405
  132. #define WM8994_AIF1_DAC2_LEFT_VOLUME 0x406
  133. #define WM8994_AIF1_DAC2_RIGHT_VOLUME 0x407
  134. #define WM8994_AIF1_ADC1_FILTERS 0x410
  135. #define WM8994_AIF1_ADC2_FILTERS 0x411
  136. #define WM8994_AIF1_DAC1_FILTERS_1 0x420
  137. #define WM8994_AIF1_DAC1_FILTERS_2 0x421
  138. #define WM8994_AIF1_DAC2_FILTERS_1 0x422
  139. #define WM8994_AIF1_DAC2_FILTERS_2 0x423
  140. #define WM8958_AIF1_DAC1_NOISE_GATE 0x430
  141. #define WM8958_AIF1_DAC2_NOISE_GATE 0x431
  142. #define WM8994_AIF1_DRC1_1 0x440
  143. #define WM8994_AIF1_DRC1_2 0x441
  144. #define WM8994_AIF1_DRC1_3 0x442
  145. #define WM8994_AIF1_DRC1_4 0x443
  146. #define WM8994_AIF1_DRC1_5 0x444
  147. #define WM8994_AIF1_DRC2_1 0x450
  148. #define WM8994_AIF1_DRC2_2 0x451
  149. #define WM8994_AIF1_DRC2_3 0x452
  150. #define WM8994_AIF1_DRC2_4 0x453
  151. #define WM8994_AIF1_DRC2_5 0x454
  152. #define WM8994_AIF1_DAC1_EQ_GAINS_1 0x480
  153. #define WM8994_AIF1_DAC1_EQ_GAINS_2 0x481
  154. #define WM8994_AIF1_DAC1_EQ_BAND_1_A 0x482
  155. #define WM8994_AIF1_DAC1_EQ_BAND_1_B 0x483
  156. #define WM8994_AIF1_DAC1_EQ_BAND_1_PG 0x484
  157. #define WM8994_AIF1_DAC1_EQ_BAND_2_A 0x485
  158. #define WM8994_AIF1_DAC1_EQ_BAND_2_B 0x486
  159. #define WM8994_AIF1_DAC1_EQ_BAND_2_C 0x487
  160. #define WM8994_AIF1_DAC1_EQ_BAND_2_PG 0x488
  161. #define WM8994_AIF1_DAC1_EQ_BAND_3_A 0x489
  162. #define WM8994_AIF1_DAC1_EQ_BAND_3_B 0x48A
  163. #define WM8994_AIF1_DAC1_EQ_BAND_3_C 0x48B
  164. #define WM8994_AIF1_DAC1_EQ_BAND_3_PG 0x48C
  165. #define WM8994_AIF1_DAC1_EQ_BAND_4_A 0x48D
  166. #define WM8994_AIF1_DAC1_EQ_BAND_4_B 0x48E
  167. #define WM8994_AIF1_DAC1_EQ_BAND_4_C 0x48F
  168. #define WM8994_AIF1_DAC1_EQ_BAND_4_PG 0x490
  169. #define WM8994_AIF1_DAC1_EQ_BAND_5_A 0x491
  170. #define WM8994_AIF1_DAC1_EQ_BAND_5_B 0x492
  171. #define WM8994_AIF1_DAC1_EQ_BAND_5_PG 0x493
  172. #define WM8994_AIF1_DAC1_EQ_BAND_1_C 0x494
  173. #define WM8994_AIF1_DAC2_EQ_GAINS_1 0x4A0
  174. #define WM8994_AIF1_DAC2_EQ_GAINS_2 0x4A1
  175. #define WM8994_AIF1_DAC2_EQ_BAND_1_A 0x4A2
  176. #define WM8994_AIF1_DAC2_EQ_BAND_1_B 0x4A3
  177. #define WM8994_AIF1_DAC2_EQ_BAND_1_PG 0x4A4
  178. #define WM8994_AIF1_DAC2_EQ_BAND_2_A 0x4A5
  179. #define WM8994_AIF1_DAC2_EQ_BAND_2_B 0x4A6
  180. #define WM8994_AIF1_DAC2_EQ_BAND_2_C 0x4A7
  181. #define WM8994_AIF1_DAC2_EQ_BAND_2_PG 0x4A8
  182. #define WM8994_AIF1_DAC2_EQ_BAND_3_A 0x4A9
  183. #define WM8994_AIF1_DAC2_EQ_BAND_3_B 0x4AA
  184. #define WM8994_AIF1_DAC2_EQ_BAND_3_C 0x4AB
  185. #define WM8994_AIF1_DAC2_EQ_BAND_3_PG 0x4AC
  186. #define WM8994_AIF1_DAC2_EQ_BAND_4_A 0x4AD
  187. #define WM8994_AIF1_DAC2_EQ_BAND_4_B 0x4AE
  188. #define WM8994_AIF1_DAC2_EQ_BAND_4_C 0x4AF
  189. #define WM8994_AIF1_DAC2_EQ_BAND_4_PG 0x4B0
  190. #define WM8994_AIF1_DAC2_EQ_BAND_5_A 0x4B1
  191. #define WM8994_AIF1_DAC2_EQ_BAND_5_B 0x4B2
  192. #define WM8994_AIF1_DAC2_EQ_BAND_5_PG 0x4B3
  193. #define WM8994_AIF1_DAC2_EQ_BAND_1_C 0x4B4
  194. #define WM8994_AIF2_ADC_LEFT_VOLUME 0x500
  195. #define WM8994_AIF2_ADC_RIGHT_VOLUME 0x501
  196. #define WM8994_AIF2_DAC_LEFT_VOLUME 0x502
  197. #define WM8994_AIF2_DAC_RIGHT_VOLUME 0x503
  198. #define WM8994_AIF2_ADC_FILTERS 0x510
  199. #define WM8994_AIF2_DAC_FILTERS_1 0x520
  200. #define WM8994_AIF2_DAC_FILTERS_2 0x521
  201. #define WM8958_AIF2_DAC_NOISE_GATE 0x530
  202. #define WM8994_AIF2_DRC_1 0x540
  203. #define WM8994_AIF2_DRC_2 0x541
  204. #define WM8994_AIF2_DRC_3 0x542
  205. #define WM8994_AIF2_DRC_4 0x543
  206. #define WM8994_AIF2_DRC_5 0x544
  207. #define WM8994_AIF2_EQ_GAINS_1 0x580
  208. #define WM8994_AIF2_EQ_GAINS_2 0x581
  209. #define WM8994_AIF2_EQ_BAND_1_A 0x582
  210. #define WM8994_AIF2_EQ_BAND_1_B 0x583
  211. #define WM8994_AIF2_EQ_BAND_1_PG 0x584
  212. #define WM8994_AIF2_EQ_BAND_2_A 0x585
  213. #define WM8994_AIF2_EQ_BAND_2_B 0x586
  214. #define WM8994_AIF2_EQ_BAND_2_C 0x587
  215. #define WM8994_AIF2_EQ_BAND_2_PG 0x588
  216. #define WM8994_AIF2_EQ_BAND_3_A 0x589
  217. #define WM8994_AIF2_EQ_BAND_3_B 0x58A
  218. #define WM8994_AIF2_EQ_BAND_3_C 0x58B
  219. #define WM8994_AIF2_EQ_BAND_3_PG 0x58C
  220. #define WM8994_AIF2_EQ_BAND_4_A 0x58D
  221. #define WM8994_AIF2_EQ_BAND_4_B 0x58E
  222. #define WM8994_AIF2_EQ_BAND_4_C 0x58F
  223. #define WM8994_AIF2_EQ_BAND_4_PG 0x590
  224. #define WM8994_AIF2_EQ_BAND_5_A 0x591
  225. #define WM8994_AIF2_EQ_BAND_5_B 0x592
  226. #define WM8994_AIF2_EQ_BAND_5_PG 0x593
  227. #define WM8994_AIF2_EQ_BAND_1_C 0x594
  228. #define WM8994_DAC1_MIXER_VOLUMES 0x600
  229. #define WM8994_DAC1_LEFT_MIXER_ROUTING 0x601
  230. #define WM8994_DAC1_RIGHT_MIXER_ROUTING 0x602
  231. #define WM8994_DAC2_MIXER_VOLUMES 0x603
  232. #define WM8994_DAC2_LEFT_MIXER_ROUTING 0x604
  233. #define WM8994_DAC2_RIGHT_MIXER_ROUTING 0x605
  234. #define WM8994_AIF1_ADC1_LEFT_MIXER_ROUTING 0x606
  235. #define WM8994_AIF1_ADC1_RIGHT_MIXER_ROUTING 0x607
  236. #define WM8994_AIF1_ADC2_LEFT_MIXER_ROUTING 0x608
  237. #define WM8994_AIF1_ADC2_RIGHT_MIXER_ROUTING 0x609
  238. #define WM8994_DAC1_LEFT_VOLUME 0x610
  239. #define WM8994_DAC1_RIGHT_VOLUME 0x611
  240. #define WM8994_DAC2_LEFT_VOLUME 0x612
  241. #define WM8994_DAC2_RIGHT_VOLUME 0x613
  242. #define WM8994_DAC_SOFTMUTE 0x614
  243. #define WM8994_OVERSAMPLING 0x620
  244. #define WM8994_SIDETONE 0x621
  245. #define WM8994_GPIO_1 0x700
  246. #define WM8994_GPIO_2 0x701
  247. #define WM8994_GPIO_3 0x702
  248. #define WM8994_GPIO_4 0x703
  249. #define WM8994_GPIO_5 0x704
  250. #define WM8994_GPIO_6 0x705
  251. #define WM1811_JACKDET_CTRL 0x705
  252. #define WM8994_GPIO_7 0x706
  253. #define WM8994_GPIO_8 0x707
  254. #define WM8994_GPIO_9 0x708
  255. #define WM8994_GPIO_10 0x709
  256. #define WM8994_GPIO_11 0x70A
  257. #define WM8994_PULL_CONTROL_1 0x720
  258. #define WM8994_PULL_CONTROL_2 0x721
  259. #define WM8994_INTERRUPT_STATUS_1 0x730
  260. #define WM8994_INTERRUPT_STATUS_2 0x731
  261. #define WM8994_INTERRUPT_RAW_STATUS_2 0x732
  262. #define WM8994_INTERRUPT_STATUS_1_MASK 0x738
  263. #define WM8994_INTERRUPT_STATUS_2_MASK 0x739
  264. #define WM8994_INTERRUPT_CONTROL 0x740
  265. #define WM8994_IRQ_DEBOUNCE 0x748
  266. #define WM8958_DSP2_PROGRAM 0x900
  267. #define WM8958_DSP2_CONFIG 0x901
  268. #define WM8958_DSP2_MAGICNUM 0xA00
  269. #define WM8958_DSP2_RELEASEYEAR 0xA01
  270. #define WM8958_DSP2_RELEASEMONTHDAY 0xA02
  271. #define WM8958_DSP2_RELEASETIME 0xA03
  272. #define WM8958_DSP2_VERMAJMIN 0xA04
  273. #define WM8958_DSP2_VERBUILD 0xA05
  274. #define WM8958_DSP2_TESTREG 0xA06
  275. #define WM8958_DSP2_XORREG 0xA07
  276. #define WM8958_DSP2_SHIFTMAXX 0xA08
  277. #define WM8958_DSP2_SHIFTMAXY 0xA09
  278. #define WM8958_DSP2_SHIFTMAXZ 0xA0A
  279. #define WM8958_DSP2_SHIFTMAXEXTLO 0xA0B
  280. #define WM8958_DSP2_AESSELECT 0xA0C
  281. #define WM8958_DSP2_EXECCONTROL 0xA0D
  282. #define WM8958_DSP2_SAMPLEBREAK 0xA0E
  283. #define WM8958_DSP2_COUNTBREAK 0xA0F
  284. #define WM8958_DSP2_INTSTATUS 0xA10
  285. #define WM8958_DSP2_EVENTSTATUS 0xA11
  286. #define WM8958_DSP2_INTMASK 0xA12
  287. #define WM8958_DSP2_CONFIGDWIDTH 0xA13
  288. #define WM8958_DSP2_CONFIGINSTR 0xA14
  289. #define WM8958_DSP2_CONFIGDMEM 0xA15
  290. #define WM8958_DSP2_CONFIGDELAYS 0xA16
  291. #define WM8958_DSP2_CONFIGNUMIO 0xA17
  292. #define WM8958_DSP2_CONFIGEXTDEPTH 0xA18
  293. #define WM8958_DSP2_CONFIGMULTIPLIER 0xA19
  294. #define WM8958_DSP2_CONFIGCTRLDWIDTH 0xA1A
  295. #define WM8958_DSP2_CONFIGPIPELINE 0xA1B
  296. #define WM8958_DSP2_SHIFTMAXEXTHI 0xA1C
  297. #define WM8958_DSP2_SWVERSIONREG 0xA1D
  298. #define WM8958_DSP2_CONFIGXMEM 0xA1E
  299. #define WM8958_DSP2_CONFIGYMEM 0xA1F
  300. #define WM8958_DSP2_CONFIGZMEM 0xA20
  301. #define WM8958_FW_BUILD_1 0x2000
  302. #define WM8958_FW_BUILD_0 0x2001
  303. #define WM8958_FW_ID_1 0x2002
  304. #define WM8958_FW_ID_0 0x2003
  305. #define WM8958_FW_MAJOR_1 0x2004
  306. #define WM8958_FW_MAJOR_0 0x2005
  307. #define WM8958_FW_MINOR_1 0x2006
  308. #define WM8958_FW_MINOR_0 0x2007
  309. #define WM8958_FW_PATCH_1 0x2008
  310. #define WM8958_FW_PATCH_0 0x2009
  311. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C1_1 0x2200
  312. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C1_2 0x2201
  313. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C2_1 0x2202
  314. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C2_2 0x2203
  315. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C3_1 0x2204
  316. #define WM8958_MBC_BAND_2_LOWER_CUTOFF_C3_2 0x2205
  317. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C2_1 0x2206
  318. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C2_2 0x2207
  319. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C3_1 0x2208
  320. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C3_2 0x2209
  321. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C1_1 0x220A
  322. #define WM8958_MBC_BAND_2_UPPER_CUTOFF_C1_2 0x220B
  323. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C1_1 0x220C
  324. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C1_2 0x220D
  325. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C2_1 0x220E
  326. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C2_2 0x220F
  327. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C3_1 0x2210
  328. #define WM8958_MBC_BAND_1_UPPER_CUTOFF_C3_2 0x2211
  329. #define WM8958_MBC_BAND_1_LOWER_CUTOFF_1 0x2212
  330. #define WM8958_MBC_BAND_1_LOWER_CUTOFF_2 0x2213
  331. #define WM8958_MBC_BAND_1_K_1 0x2400
  332. #define WM8958_MBC_BAND_1_K_2 0x2401
  333. #define WM8958_MBC_BAND_1_N1_1 0x2402
  334. #define WM8958_MBC_BAND_1_N1_2 0x2403
  335. #define WM8958_MBC_BAND_1_N2_1 0x2404
  336. #define WM8958_MBC_BAND_1_N2_2 0x2405
  337. #define WM8958_MBC_BAND_1_N3_1 0x2406
  338. #define WM8958_MBC_BAND_1_N3_2 0x2407
  339. #define WM8958_MBC_BAND_1_N4_1 0x2408
  340. #define WM8958_MBC_BAND_1_N4_2 0x2409
  341. #define WM8958_MBC_BAND_1_N5_1 0x240A
  342. #define WM8958_MBC_BAND_1_N5_2 0x240B
  343. #define WM8958_MBC_BAND_1_X1_1 0x240C
  344. #define WM8958_MBC_BAND_1_X1_2 0x240D
  345. #define WM8958_MBC_BAND_1_X2_1 0x240E
  346. #define WM8958_MBC_BAND_1_X2_2 0x240F
  347. #define WM8958_MBC_BAND_1_X3_1 0x2410
  348. #define WM8958_MBC_BAND_1_X3_2 0x2411
  349. #define WM8958_MBC_BAND_1_ATTACK_1 0x2412
  350. #define WM8958_MBC_BAND_1_ATTACK_2 0x2413
  351. #define WM8958_MBC_BAND_1_DECAY_1 0x2414
  352. #define WM8958_MBC_BAND_1_DECAY_2 0x2415
  353. #define WM8958_MBC_BAND_2_K_1 0x2416
  354. #define WM8958_MBC_BAND_2_K_2 0x2417
  355. #define WM8958_MBC_BAND_2_N1_1 0x2418
  356. #define WM8958_MBC_BAND_2_N1_2 0x2419
  357. #define WM8958_MBC_BAND_2_N2_1 0x241A
  358. #define WM8958_MBC_BAND_2_N2_2 0x241B
  359. #define WM8958_MBC_BAND_2_N3_1 0x241C
  360. #define WM8958_MBC_BAND_2_N3_2 0x241D
  361. #define WM8958_MBC_BAND_2_N4_1 0x241E
  362. #define WM8958_MBC_BAND_2_N4_2 0x241F
  363. #define WM8958_MBC_BAND_2_N5_1 0x2420
  364. #define WM8958_MBC_BAND_2_N5_2 0x2421
  365. #define WM8958_MBC_BAND_2_X1_1 0x2422
  366. #define WM8958_MBC_BAND_2_X1_2 0x2423
  367. #define WM8958_MBC_BAND_2_X2_1 0x2424
  368. #define WM8958_MBC_BAND_2_X2_2 0x2425
  369. #define WM8958_MBC_BAND_2_X3_1 0x2426
  370. #define WM8958_MBC_BAND_2_X3_2 0x2427
  371. #define WM8958_MBC_BAND_2_ATTACK_1 0x2428
  372. #define WM8958_MBC_BAND_2_ATTACK_2 0x2429
  373. #define WM8958_MBC_BAND_2_DECAY_1 0x242A
  374. #define WM8958_MBC_BAND_2_DECAY_2 0x242B
  375. #define WM8958_MBC_B2_PG2_1 0x242C
  376. #define WM8958_MBC_B2_PG2_2 0x242D
  377. #define WM8958_MBC_B1_PG2_1 0x242E
  378. #define WM8958_MBC_B1_PG2_2 0x242F
  379. #define WM8958_MBC_CROSSOVER_1 0x2600
  380. #define WM8958_MBC_CROSSOVER_2 0x2601
  381. #define WM8958_MBC_HPF_1 0x2602
  382. #define WM8958_MBC_HPF_2 0x2603
  383. #define WM8958_MBC_LPF_1 0x2606
  384. #define WM8958_MBC_LPF_2 0x2607
  385. #define WM8958_MBC_RMS_LIMIT_1 0x260A
  386. #define WM8958_MBC_RMS_LIMIT_2 0x260B
  387. #define WM8994_WRITE_SEQUENCER_0 0x3000
  388. #define WM8994_WRITE_SEQUENCER_1 0x3001
  389. #define WM8994_WRITE_SEQUENCER_2 0x3002
  390. #define WM8994_WRITE_SEQUENCER_3 0x3003
  391. #define WM8994_WRITE_SEQUENCER_4 0x3004
  392. #define WM8994_WRITE_SEQUENCER_5 0x3005
  393. #define WM8994_WRITE_SEQUENCER_6 0x3006
  394. #define WM8994_WRITE_SEQUENCER_7 0x3007
  395. #define WM8994_WRITE_SEQUENCER_8 0x3008
  396. #define WM8994_WRITE_SEQUENCER_9 0x3009
  397. #define WM8994_WRITE_SEQUENCER_10 0x300A
  398. #define WM8994_WRITE_SEQUENCER_11 0x300B
  399. #define WM8994_WRITE_SEQUENCER_12 0x300C
  400. #define WM8994_WRITE_SEQUENCER_13 0x300D
  401. #define WM8994_WRITE_SEQUENCER_14 0x300E
  402. #define WM8994_WRITE_SEQUENCER_15 0x300F
  403. #define WM8994_WRITE_SEQUENCER_16 0x3010
  404. #define WM8994_WRITE_SEQUENCER_17 0x3011
  405. #define WM8994_WRITE_SEQUENCER_18 0x3012
  406. #define WM8994_WRITE_SEQUENCER_19 0x3013
  407. #define WM8994_WRITE_SEQUENCER_20 0x3014
  408. #define WM8994_WRITE_SEQUENCER_21 0x3015
  409. #define WM8994_WRITE_SEQUENCER_22 0x3016
  410. #define WM8994_WRITE_SEQUENCER_23 0x3017
  411. #define WM8994_WRITE_SEQUENCER_24 0x3018
  412. #define WM8994_WRITE_SEQUENCER_25 0x3019
  413. #define WM8994_WRITE_SEQUENCER_26 0x301A
  414. #define WM8994_WRITE_SEQUENCER_27 0x301B
  415. #define WM8994_WRITE_SEQUENCER_28 0x301C
  416. #define WM8994_WRITE_SEQUENCER_29 0x301D
  417. #define WM8994_WRITE_SEQUENCER_30 0x301E
  418. #define WM8994_WRITE_SEQUENCER_31 0x301F
  419. #define WM8994_WRITE_SEQUENCER_32 0x3020
  420. #define WM8994_WRITE_SEQUENCER_33 0x3021
  421. #define WM8994_WRITE_SEQUENCER_34 0x3022
  422. #define WM8994_WRITE_SEQUENCER_35 0x3023
  423. #define WM8994_WRITE_SEQUENCER_36 0x3024
  424. #define WM8994_WRITE_SEQUENCER_37 0x3025
  425. #define WM8994_WRITE_SEQUENCER_38 0x3026
  426. #define WM8994_WRITE_SEQUENCER_39 0x3027
  427. #define WM8994_WRITE_SEQUENCER_40 0x3028
  428. #define WM8994_WRITE_SEQUENCER_41 0x3029
  429. #define WM8994_WRITE_SEQUENCER_42 0x302A
  430. #define WM8994_WRITE_SEQUENCER_43 0x302B
  431. #define WM8994_WRITE_SEQUENCER_44 0x302C
  432. #define WM8994_WRITE_SEQUENCER_45 0x302D
  433. #define WM8994_WRITE_SEQUENCER_46 0x302E
  434. #define WM8994_WRITE_SEQUENCER_47 0x302F
  435. #define WM8994_WRITE_SEQUENCER_48 0x3030
  436. #define WM8994_WRITE_SEQUENCER_49 0x3031
  437. #define WM8994_WRITE_SEQUENCER_50 0x3032
  438. #define WM8994_WRITE_SEQUENCER_51 0x3033
  439. #define WM8994_WRITE_SEQUENCER_52 0x3034
  440. #define WM8994_WRITE_SEQUENCER_53 0x3035
  441. #define WM8994_WRITE_SEQUENCER_54 0x3036
  442. #define WM8994_WRITE_SEQUENCER_55 0x3037
  443. #define WM8994_WRITE_SEQUENCER_56 0x3038
  444. #define WM8994_WRITE_SEQUENCER_57 0x3039
  445. #define WM8994_WRITE_SEQUENCER_58 0x303A
  446. #define WM8994_WRITE_SEQUENCER_59 0x303B
  447. #define WM8994_WRITE_SEQUENCER_60 0x303C
  448. #define WM8994_WRITE_SEQUENCER_61 0x303D
  449. #define WM8994_WRITE_SEQUENCER_62 0x303E
  450. #define WM8994_WRITE_SEQUENCER_63 0x303F
  451. #define WM8994_WRITE_SEQUENCER_64 0x3040
  452. #define WM8994_WRITE_SEQUENCER_65 0x3041
  453. #define WM8994_WRITE_SEQUENCER_66 0x3042
  454. #define WM8994_WRITE_SEQUENCER_67 0x3043
  455. #define WM8994_WRITE_SEQUENCER_68 0x3044
  456. #define WM8994_WRITE_SEQUENCER_69 0x3045
  457. #define WM8994_WRITE_SEQUENCER_70 0x3046
  458. #define WM8994_WRITE_SEQUENCER_71 0x3047
  459. #define WM8994_WRITE_SEQUENCER_72 0x3048
  460. #define WM8994_WRITE_SEQUENCER_73 0x3049
  461. #define WM8994_WRITE_SEQUENCER_74 0x304A
  462. #define WM8994_WRITE_SEQUENCER_75 0x304B
  463. #define WM8994_WRITE_SEQUENCER_76 0x304C
  464. #define WM8994_WRITE_SEQUENCER_77 0x304D
  465. #define WM8994_WRITE_SEQUENCER_78 0x304E
  466. #define WM8994_WRITE_SEQUENCER_79 0x304F
  467. #define WM8994_WRITE_SEQUENCER_80 0x3050
  468. #define WM8994_WRITE_SEQUENCER_81 0x3051
  469. #define WM8994_WRITE_SEQUENCER_82 0x3052
  470. #define WM8994_WRITE_SEQUENCER_83 0x3053
  471. #define WM8994_WRITE_SEQUENCER_84 0x3054
  472. #define WM8994_WRITE_SEQUENCER_85 0x3055
  473. #define WM8994_WRITE_SEQUENCER_86 0x3056
  474. #define WM8994_WRITE_SEQUENCER_87 0x3057
  475. #define WM8994_WRITE_SEQUENCER_88 0x3058
  476. #define WM8994_WRITE_SEQUENCER_89 0x3059
  477. #define WM8994_WRITE_SEQUENCER_90 0x305A
  478. #define WM8994_WRITE_SEQUENCER_91 0x305B
  479. #define WM8994_WRITE_SEQUENCER_92 0x305C
  480. #define WM8994_WRITE_SEQUENCER_93 0x305D
  481. #define WM8994_WRITE_SEQUENCER_94 0x305E
  482. #define WM8994_WRITE_SEQUENCER_95 0x305F
  483. #define WM8994_WRITE_SEQUENCER_96 0x3060
  484. #define WM8994_WRITE_SEQUENCER_97 0x3061
  485. #define WM8994_WRITE_SEQUENCER_98 0x3062
  486. #define WM8994_WRITE_SEQUENCER_99 0x3063
  487. #define WM8994_WRITE_SEQUENCER_100 0x3064
  488. #define WM8994_WRITE_SEQUENCER_101 0x3065
  489. #define WM8994_WRITE_SEQUENCER_102 0x3066
  490. #define WM8994_WRITE_SEQUENCER_103 0x3067
  491. #define WM8994_WRITE_SEQUENCER_104 0x3068
  492. #define WM8994_WRITE_SEQUENCER_105 0x3069
  493. #define WM8994_WRITE_SEQUENCER_106 0x306A
  494. #define WM8994_WRITE_SEQUENCER_107 0x306B
  495. #define WM8994_WRITE_SEQUENCER_108 0x306C
  496. #define WM8994_WRITE_SEQUENCER_109 0x306D
  497. #define WM8994_WRITE_SEQUENCER_110 0x306E
  498. #define WM8994_WRITE_SEQUENCER_111 0x306F
  499. #define WM8994_WRITE_SEQUENCER_112 0x3070
  500. #define WM8994_WRITE_SEQUENCER_113 0x3071
  501. #define WM8994_WRITE_SEQUENCER_114 0x3072
  502. #define WM8994_WRITE_SEQUENCER_115 0x3073
  503. #define WM8994_WRITE_SEQUENCER_116 0x3074
  504. #define WM8994_WRITE_SEQUENCER_117 0x3075
  505. #define WM8994_WRITE_SEQUENCER_118 0x3076
  506. #define WM8994_WRITE_SEQUENCER_119 0x3077
  507. #define WM8994_WRITE_SEQUENCER_120 0x3078
  508. #define WM8994_WRITE_SEQUENCER_121 0x3079
  509. #define WM8994_WRITE_SEQUENCER_122 0x307A
  510. #define WM8994_WRITE_SEQUENCER_123 0x307B
  511. #define WM8994_WRITE_SEQUENCER_124 0x307C
  512. #define WM8994_WRITE_SEQUENCER_125 0x307D
  513. #define WM8994_WRITE_SEQUENCER_126 0x307E
  514. #define WM8994_WRITE_SEQUENCER_127 0x307F
  515. #define WM8994_WRITE_SEQUENCER_128 0x3080
  516. #define WM8994_WRITE_SEQUENCER_129 0x3081
  517. #define WM8994_WRITE_SEQUENCER_130 0x3082
  518. #define WM8994_WRITE_SEQUENCER_131 0x3083
  519. #define WM8994_WRITE_SEQUENCER_132 0x3084
  520. #define WM8994_WRITE_SEQUENCER_133 0x3085
  521. #define WM8994_WRITE_SEQUENCER_134 0x3086
  522. #define WM8994_WRITE_SEQUENCER_135 0x3087
  523. #define WM8994_WRITE_SEQUENCER_136 0x3088
  524. #define WM8994_WRITE_SEQUENCER_137 0x3089
  525. #define WM8994_WRITE_SEQUENCER_138 0x308A
  526. #define WM8994_WRITE_SEQUENCER_139 0x308B
  527. #define WM8994_WRITE_SEQUENCER_140 0x308C
  528. #define WM8994_WRITE_SEQUENCER_141 0x308D
  529. #define WM8994_WRITE_SEQUENCER_142 0x308E
  530. #define WM8994_WRITE_SEQUENCER_143 0x308F
  531. #define WM8994_WRITE_SEQUENCER_144 0x3090
  532. #define WM8994_WRITE_SEQUENCER_145 0x3091
  533. #define WM8994_WRITE_SEQUENCER_146 0x3092
  534. #define WM8994_WRITE_SEQUENCER_147 0x3093
  535. #define WM8994_WRITE_SEQUENCER_148 0x3094
  536. #define WM8994_WRITE_SEQUENCER_149 0x3095
  537. #define WM8994_WRITE_SEQUENCER_150 0x3096
  538. #define WM8994_WRITE_SEQUENCER_151 0x3097
  539. #define WM8994_WRITE_SEQUENCER_152 0x3098
  540. #define WM8994_WRITE_SEQUENCER_153 0x3099
  541. #define WM8994_WRITE_SEQUENCER_154 0x309A
  542. #define WM8994_WRITE_SEQUENCER_155 0x309B
  543. #define WM8994_WRITE_SEQUENCER_156 0x309C
  544. #define WM8994_WRITE_SEQUENCER_157 0x309D
  545. #define WM8994_WRITE_SEQUENCER_158 0x309E
  546. #define WM8994_WRITE_SEQUENCER_159 0x309F
  547. #define WM8994_WRITE_SEQUENCER_160 0x30A0
  548. #define WM8994_WRITE_SEQUENCER_161 0x30A1
  549. #define WM8994_WRITE_SEQUENCER_162 0x30A2
  550. #define WM8994_WRITE_SEQUENCER_163 0x30A3
  551. #define WM8994_WRITE_SEQUENCER_164 0x30A4
  552. #define WM8994_WRITE_SEQUENCER_165 0x30A5
  553. #define WM8994_WRITE_SEQUENCER_166 0x30A6
  554. #define WM8994_WRITE_SEQUENCER_167 0x30A7
  555. #define WM8994_WRITE_SEQUENCER_168 0x30A8
  556. #define WM8994_WRITE_SEQUENCER_169 0x30A9
  557. #define WM8994_WRITE_SEQUENCER_170 0x30AA
  558. #define WM8994_WRITE_SEQUENCER_171 0x30AB
  559. #define WM8994_WRITE_SEQUENCER_172 0x30AC
  560. #define WM8994_WRITE_SEQUENCER_173 0x30AD
  561. #define WM8994_WRITE_SEQUENCER_174 0x30AE
  562. #define WM8994_WRITE_SEQUENCER_175 0x30AF
  563. #define WM8994_WRITE_SEQUENCER_176 0x30B0
  564. #define WM8994_WRITE_SEQUENCER_177 0x30B1
  565. #define WM8994_WRITE_SEQUENCER_178 0x30B2
  566. #define WM8994_WRITE_SEQUENCER_179 0x30B3
  567. #define WM8994_WRITE_SEQUENCER_180 0x30B4
  568. #define WM8994_WRITE_SEQUENCER_181 0x30B5
  569. #define WM8994_WRITE_SEQUENCER_182 0x30B6
  570. #define WM8994_WRITE_SEQUENCER_183 0x30B7
  571. #define WM8994_WRITE_SEQUENCER_184 0x30B8
  572. #define WM8994_WRITE_SEQUENCER_185 0x30B9
  573. #define WM8994_WRITE_SEQUENCER_186 0x30BA
  574. #define WM8994_WRITE_SEQUENCER_187 0x30BB
  575. #define WM8994_WRITE_SEQUENCER_188 0x30BC
  576. #define WM8994_WRITE_SEQUENCER_189 0x30BD
  577. #define WM8994_WRITE_SEQUENCER_190 0x30BE
  578. #define WM8994_WRITE_SEQUENCER_191 0x30BF
  579. #define WM8994_WRITE_SEQUENCER_192 0x30C0
  580. #define WM8994_WRITE_SEQUENCER_193 0x30C1
  581. #define WM8994_WRITE_SEQUENCER_194 0x30C2
  582. #define WM8994_WRITE_SEQUENCER_195 0x30C3
  583. #define WM8994_WRITE_SEQUENCER_196 0x30C4
  584. #define WM8994_WRITE_SEQUENCER_197 0x30C5
  585. #define WM8994_WRITE_SEQUENCER_198 0x30C6
  586. #define WM8994_WRITE_SEQUENCER_199 0x30C7
  587. #define WM8994_WRITE_SEQUENCER_200 0x30C8
  588. #define WM8994_WRITE_SEQUENCER_201 0x30C9
  589. #define WM8994_WRITE_SEQUENCER_202 0x30CA
  590. #define WM8994_WRITE_SEQUENCER_203 0x30CB
  591. #define WM8994_WRITE_SEQUENCER_204 0x30CC
  592. #define WM8994_WRITE_SEQUENCER_205 0x30CD
  593. #define WM8994_WRITE_SEQUENCER_206 0x30CE
  594. #define WM8994_WRITE_SEQUENCER_207 0x30CF
  595. #define WM8994_WRITE_SEQUENCER_208 0x30D0
  596. #define WM8994_WRITE_SEQUENCER_209 0x30D1
  597. #define WM8994_WRITE_SEQUENCER_210 0x30D2
  598. #define WM8994_WRITE_SEQUENCER_211 0x30D3
  599. #define WM8994_WRITE_SEQUENCER_212 0x30D4
  600. #define WM8994_WRITE_SEQUENCER_213 0x30D5
  601. #define WM8994_WRITE_SEQUENCER_214 0x30D6
  602. #define WM8994_WRITE_SEQUENCER_215 0x30D7
  603. #define WM8994_WRITE_SEQUENCER_216 0x30D8
  604. #define WM8994_WRITE_SEQUENCER_217 0x30D9
  605. #define WM8994_WRITE_SEQUENCER_218 0x30DA
  606. #define WM8994_WRITE_SEQUENCER_219 0x30DB
  607. #define WM8994_WRITE_SEQUENCER_220 0x30DC
  608. #define WM8994_WRITE_SEQUENCER_221 0x30DD
  609. #define WM8994_WRITE_SEQUENCER_222 0x30DE
  610. #define WM8994_WRITE_SEQUENCER_223 0x30DF
  611. #define WM8994_WRITE_SEQUENCER_224 0x30E0
  612. #define WM8994_WRITE_SEQUENCER_225 0x30E1
  613. #define WM8994_WRITE_SEQUENCER_226 0x30E2
  614. #define WM8994_WRITE_SEQUENCER_227 0x30E3
  615. #define WM8994_WRITE_SEQUENCER_228 0x30E4
  616. #define WM8994_WRITE_SEQUENCER_229 0x30E5
  617. #define WM8994_WRITE_SEQUENCER_230 0x30E6
  618. #define WM8994_WRITE_SEQUENCER_231 0x30E7
  619. #define WM8994_WRITE_SEQUENCER_232 0x30E8
  620. #define WM8994_WRITE_SEQUENCER_233 0x30E9
  621. #define WM8994_WRITE_SEQUENCER_234 0x30EA
  622. #define WM8994_WRITE_SEQUENCER_235 0x30EB
  623. #define WM8994_WRITE_SEQUENCER_236 0x30EC
  624. #define WM8994_WRITE_SEQUENCER_237 0x30ED
  625. #define WM8994_WRITE_SEQUENCER_238 0x30EE
  626. #define WM8994_WRITE_SEQUENCER_239 0x30EF
  627. #define WM8994_WRITE_SEQUENCER_240 0x30F0
  628. #define WM8994_WRITE_SEQUENCER_241 0x30F1
  629. #define WM8994_WRITE_SEQUENCER_242 0x30F2
  630. #define WM8994_WRITE_SEQUENCER_243 0x30F3
  631. #define WM8994_WRITE_SEQUENCER_244 0x30F4
  632. #define WM8994_WRITE_SEQUENCER_245 0x30F5
  633. #define WM8994_WRITE_SEQUENCER_246 0x30F6
  634. #define WM8994_WRITE_SEQUENCER_247 0x30F7
  635. #define WM8994_WRITE_SEQUENCER_248 0x30F8
  636. #define WM8994_WRITE_SEQUENCER_249 0x30F9
  637. #define WM8994_WRITE_SEQUENCER_250 0x30FA
  638. #define WM8994_WRITE_SEQUENCER_251 0x30FB
  639. #define WM8994_WRITE_SEQUENCER_252 0x30FC
  640. #define WM8994_WRITE_SEQUENCER_253 0x30FD
  641. #define WM8994_WRITE_SEQUENCER_254 0x30FE
  642. #define WM8994_WRITE_SEQUENCER_255 0x30FF
  643. #define WM8994_WRITE_SEQUENCER_256 0x3100
  644. #define WM8994_WRITE_SEQUENCER_257 0x3101
  645. #define WM8994_WRITE_SEQUENCER_258 0x3102
  646. #define WM8994_WRITE_SEQUENCER_259 0x3103
  647. #define WM8994_WRITE_SEQUENCER_260 0x3104
  648. #define WM8994_WRITE_SEQUENCER_261 0x3105
  649. #define WM8994_WRITE_SEQUENCER_262 0x3106
  650. #define WM8994_WRITE_SEQUENCER_263 0x3107
  651. #define WM8994_WRITE_SEQUENCER_264 0x3108
  652. #define WM8994_WRITE_SEQUENCER_265 0x3109
  653. #define WM8994_WRITE_SEQUENCER_266 0x310A
  654. #define WM8994_WRITE_SEQUENCER_267 0x310B
  655. #define WM8994_WRITE_SEQUENCER_268 0x310C
  656. #define WM8994_WRITE_SEQUENCER_269 0x310D
  657. #define WM8994_WRITE_SEQUENCER_270 0x310E
  658. #define WM8994_WRITE_SEQUENCER_271 0x310F
  659. #define WM8994_WRITE_SEQUENCER_272 0x3110
  660. #define WM8994_WRITE_SEQUENCER_273 0x3111
  661. #define WM8994_WRITE_SEQUENCER_274 0x3112
  662. #define WM8994_WRITE_SEQUENCER_275 0x3113
  663. #define WM8994_WRITE_SEQUENCER_276 0x3114
  664. #define WM8994_WRITE_SEQUENCER_277 0x3115
  665. #define WM8994_WRITE_SEQUENCER_278 0x3116
  666. #define WM8994_WRITE_SEQUENCER_279 0x3117
  667. #define WM8994_WRITE_SEQUENCER_280 0x3118
  668. #define WM8994_WRITE_SEQUENCER_281 0x3119
  669. #define WM8994_WRITE_SEQUENCER_282 0x311A
  670. #define WM8994_WRITE_SEQUENCER_283 0x311B
  671. #define WM8994_WRITE_SEQUENCER_284 0x311C
  672. #define WM8994_WRITE_SEQUENCER_285 0x311D
  673. #define WM8994_WRITE_SEQUENCER_286 0x311E
  674. #define WM8994_WRITE_SEQUENCER_287 0x311F
  675. #define WM8994_WRITE_SEQUENCER_288 0x3120
  676. #define WM8994_WRITE_SEQUENCER_289 0x3121
  677. #define WM8994_WRITE_SEQUENCER_290 0x3122
  678. #define WM8994_WRITE_SEQUENCER_291 0x3123
  679. #define WM8994_WRITE_SEQUENCER_292 0x3124
  680. #define WM8994_WRITE_SEQUENCER_293 0x3125
  681. #define WM8994_WRITE_SEQUENCER_294 0x3126
  682. #define WM8994_WRITE_SEQUENCER_295 0x3127
  683. #define WM8994_WRITE_SEQUENCER_296 0x3128
  684. #define WM8994_WRITE_SEQUENCER_297 0x3129
  685. #define WM8994_WRITE_SEQUENCER_298 0x312A
  686. #define WM8994_WRITE_SEQUENCER_299 0x312B
  687. #define WM8994_WRITE_SEQUENCER_300 0x312C
  688. #define WM8994_WRITE_SEQUENCER_301 0x312D
  689. #define WM8994_WRITE_SEQUENCER_302 0x312E
  690. #define WM8994_WRITE_SEQUENCER_303 0x312F
  691. #define WM8994_WRITE_SEQUENCER_304 0x3130
  692. #define WM8994_WRITE_SEQUENCER_305 0x3131
  693. #define WM8994_WRITE_SEQUENCER_306 0x3132
  694. #define WM8994_WRITE_SEQUENCER_307 0x3133
  695. #define WM8994_WRITE_SEQUENCER_308 0x3134
  696. #define WM8994_WRITE_SEQUENCER_309 0x3135
  697. #define WM8994_WRITE_SEQUENCER_310 0x3136
  698. #define WM8994_WRITE_SEQUENCER_311 0x3137
  699. #define WM8994_WRITE_SEQUENCER_312 0x3138
  700. #define WM8994_WRITE_SEQUENCER_313 0x3139
  701. #define WM8994_WRITE_SEQUENCER_314 0x313A
  702. #define WM8994_WRITE_SEQUENCER_315 0x313B
  703. #define WM8994_WRITE_SEQUENCER_316 0x313C
  704. #define WM8994_WRITE_SEQUENCER_317 0x313D
  705. #define WM8994_WRITE_SEQUENCER_318 0x313E
  706. #define WM8994_WRITE_SEQUENCER_319 0x313F
  707. #define WM8994_WRITE_SEQUENCER_320 0x3140
  708. #define WM8994_WRITE_SEQUENCER_321 0x3141
  709. #define WM8994_WRITE_SEQUENCER_322 0x3142
  710. #define WM8994_WRITE_SEQUENCER_323 0x3143
  711. #define WM8994_WRITE_SEQUENCER_324 0x3144
  712. #define WM8994_WRITE_SEQUENCER_325 0x3145
  713. #define WM8994_WRITE_SEQUENCER_326 0x3146
  714. #define WM8994_WRITE_SEQUENCER_327 0x3147
  715. #define WM8994_WRITE_SEQUENCER_328 0x3148
  716. #define WM8994_WRITE_SEQUENCER_329 0x3149
  717. #define WM8994_WRITE_SEQUENCER_330 0x314A
  718. #define WM8994_WRITE_SEQUENCER_331 0x314B
  719. #define WM8994_WRITE_SEQUENCER_332 0x314C
  720. #define WM8994_WRITE_SEQUENCER_333 0x314D
  721. #define WM8994_WRITE_SEQUENCER_334 0x314E
  722. #define WM8994_WRITE_SEQUENCER_335 0x314F
  723. #define WM8994_WRITE_SEQUENCER_336 0x3150
  724. #define WM8994_WRITE_SEQUENCER_337 0x3151
  725. #define WM8994_WRITE_SEQUENCER_338 0x3152
  726. #define WM8994_WRITE_SEQUENCER_339 0x3153
  727. #define WM8994_WRITE_SEQUENCER_340 0x3154
  728. #define WM8994_WRITE_SEQUENCER_341 0x3155
  729. #define WM8994_WRITE_SEQUENCER_342 0x3156
  730. #define WM8994_WRITE_SEQUENCER_343 0x3157
  731. #define WM8994_WRITE_SEQUENCER_344 0x3158
  732. #define WM8994_WRITE_SEQUENCER_345 0x3159
  733. #define WM8994_WRITE_SEQUENCER_346 0x315A
  734. #define WM8994_WRITE_SEQUENCER_347 0x315B
  735. #define WM8994_WRITE_SEQUENCER_348 0x315C
  736. #define WM8994_WRITE_SEQUENCER_349 0x315D
  737. #define WM8994_WRITE_SEQUENCER_350 0x315E
  738. #define WM8994_WRITE_SEQUENCER_351 0x315F
  739. #define WM8994_WRITE_SEQUENCER_352 0x3160
  740. #define WM8994_WRITE_SEQUENCER_353 0x3161
  741. #define WM8994_WRITE_SEQUENCER_354 0x3162
  742. #define WM8994_WRITE_SEQUENCER_355 0x3163
  743. #define WM8994_WRITE_SEQUENCER_356 0x3164
  744. #define WM8994_WRITE_SEQUENCER_357 0x3165
  745. #define WM8994_WRITE_SEQUENCER_358 0x3166
  746. #define WM8994_WRITE_SEQUENCER_359 0x3167
  747. #define WM8994_WRITE_SEQUENCER_360 0x3168
  748. #define WM8994_WRITE_SEQUENCER_361 0x3169
  749. #define WM8994_WRITE_SEQUENCER_362 0x316A
  750. #define WM8994_WRITE_SEQUENCER_363 0x316B
  751. #define WM8994_WRITE_SEQUENCER_364 0x316C
  752. #define WM8994_WRITE_SEQUENCER_365 0x316D
  753. #define WM8994_WRITE_SEQUENCER_366 0x316E
  754. #define WM8994_WRITE_SEQUENCER_367 0x316F
  755. #define WM8994_WRITE_SEQUENCER_368 0x3170
  756. #define WM8994_WRITE_SEQUENCER_369 0x3171
  757. #define WM8994_WRITE_SEQUENCER_370 0x3172
  758. #define WM8994_WRITE_SEQUENCER_371 0x3173
  759. #define WM8994_WRITE_SEQUENCER_372 0x3174
  760. #define WM8994_WRITE_SEQUENCER_373 0x3175
  761. #define WM8994_WRITE_SEQUENCER_374 0x3176
  762. #define WM8994_WRITE_SEQUENCER_375 0x3177
  763. #define WM8994_WRITE_SEQUENCER_376 0x3178
  764. #define WM8994_WRITE_SEQUENCER_377 0x3179
  765. #define WM8994_WRITE_SEQUENCER_378 0x317A
  766. #define WM8994_WRITE_SEQUENCER_379 0x317B
  767. #define WM8994_WRITE_SEQUENCER_380 0x317C
  768. #define WM8994_WRITE_SEQUENCER_381 0x317D
  769. #define WM8994_WRITE_SEQUENCER_382 0x317E
  770. #define WM8994_WRITE_SEQUENCER_383 0x317F
  771. #define WM8994_WRITE_SEQUENCER_384 0x3180
  772. #define WM8994_WRITE_SEQUENCER_385 0x3181
  773. #define WM8994_WRITE_SEQUENCER_386 0x3182
  774. #define WM8994_WRITE_SEQUENCER_387 0x3183
  775. #define WM8994_WRITE_SEQUENCER_388 0x3184
  776. #define WM8994_WRITE_SEQUENCER_389 0x3185
  777. #define WM8994_WRITE_SEQUENCER_390 0x3186
  778. #define WM8994_WRITE_SEQUENCER_391 0x3187
  779. #define WM8994_WRITE_SEQUENCER_392 0x3188
  780. #define WM8994_WRITE_SEQUENCER_393 0x3189
  781. #define WM8994_WRITE_SEQUENCER_394 0x318A
  782. #define WM8994_WRITE_SEQUENCER_395 0x318B
  783. #define WM8994_WRITE_SEQUENCER_396 0x318C
  784. #define WM8994_WRITE_SEQUENCER_397 0x318D
  785. #define WM8994_WRITE_SEQUENCER_398 0x318E
  786. #define WM8994_WRITE_SEQUENCER_399 0x318F
  787. #define WM8994_WRITE_SEQUENCER_400 0x3190
  788. #define WM8994_WRITE_SEQUENCER_401 0x3191
  789. #define WM8994_WRITE_SEQUENCER_402 0x3192
  790. #define WM8994_WRITE_SEQUENCER_403 0x3193
  791. #define WM8994_WRITE_SEQUENCER_404 0x3194
  792. #define WM8994_WRITE_SEQUENCER_405 0x3195
  793. #define WM8994_WRITE_SEQUENCER_406 0x3196
  794. #define WM8994_WRITE_SEQUENCER_407 0x3197
  795. #define WM8994_WRITE_SEQUENCER_408 0x3198
  796. #define WM8994_WRITE_SEQUENCER_409 0x3199
  797. #define WM8994_WRITE_SEQUENCER_410 0x319A
  798. #define WM8994_WRITE_SEQUENCER_411 0x319B
  799. #define WM8994_WRITE_SEQUENCER_412 0x319C
  800. #define WM8994_WRITE_SEQUENCER_413 0x319D
  801. #define WM8994_WRITE_SEQUENCER_414 0x319E
  802. #define WM8994_WRITE_SEQUENCER_415 0x319F
  803. #define WM8994_WRITE_SEQUENCER_416 0x31A0
  804. #define WM8994_WRITE_SEQUENCER_417 0x31A1
  805. #define WM8994_WRITE_SEQUENCER_418 0x31A2
  806. #define WM8994_WRITE_SEQUENCER_419 0x31A3
  807. #define WM8994_WRITE_SEQUENCER_420 0x31A4
  808. #define WM8994_WRITE_SEQUENCER_421 0x31A5
  809. #define WM8994_WRITE_SEQUENCER_422 0x31A6
  810. #define WM8994_WRITE_SEQUENCER_423 0x31A7
  811. #define WM8994_WRITE_SEQUENCER_424 0x31A8
  812. #define WM8994_WRITE_SEQUENCER_425 0x31A9
  813. #define WM8994_WRITE_SEQUENCER_426 0x31AA
  814. #define WM8994_WRITE_SEQUENCER_427 0x31AB
  815. #define WM8994_WRITE_SEQUENCER_428 0x31AC
  816. #define WM8994_WRITE_SEQUENCER_429 0x31AD
  817. #define WM8994_WRITE_SEQUENCER_430 0x31AE
  818. #define WM8994_WRITE_SEQUENCER_431 0x31AF
  819. #define WM8994_WRITE_SEQUENCER_432 0x31B0
  820. #define WM8994_WRITE_SEQUENCER_433 0x31B1
  821. #define WM8994_WRITE_SEQUENCER_434 0x31B2
  822. #define WM8994_WRITE_SEQUENCER_435 0x31B3
  823. #define WM8994_WRITE_SEQUENCER_436 0x31B4
  824. #define WM8994_WRITE_SEQUENCER_437 0x31B5
  825. #define WM8994_WRITE_SEQUENCER_438 0x31B6
  826. #define WM8994_WRITE_SEQUENCER_439 0x31B7
  827. #define WM8994_WRITE_SEQUENCER_440 0x31B8
  828. #define WM8994_WRITE_SEQUENCER_441 0x31B9
  829. #define WM8994_WRITE_SEQUENCER_442 0x31BA
  830. #define WM8994_WRITE_SEQUENCER_443 0x31BB
  831. #define WM8994_WRITE_SEQUENCER_444 0x31BC
  832. #define WM8994_WRITE_SEQUENCER_445 0x31BD
  833. #define WM8994_WRITE_SEQUENCER_446 0x31BE
  834. #define WM8994_WRITE_SEQUENCER_447 0x31BF
  835. #define WM8994_WRITE_SEQUENCER_448 0x31C0
  836. #define WM8994_WRITE_SEQUENCER_449 0x31C1
  837. #define WM8994_WRITE_SEQUENCER_450 0x31C2
  838. #define WM8994_WRITE_SEQUENCER_451 0x31C3
  839. #define WM8994_WRITE_SEQUENCER_452 0x31C4
  840. #define WM8994_WRITE_SEQUENCER_453 0x31C5
  841. #define WM8994_WRITE_SEQUENCER_454 0x31C6
  842. #define WM8994_WRITE_SEQUENCER_455 0x31C7
  843. #define WM8994_WRITE_SEQUENCER_456 0x31C8
  844. #define WM8994_WRITE_SEQUENCER_457 0x31C9
  845. #define WM8994_WRITE_SEQUENCER_458 0x31CA
  846. #define WM8994_WRITE_SEQUENCER_459 0x31CB
  847. #define WM8994_WRITE_SEQUENCER_460 0x31CC
  848. #define WM8994_WRITE_SEQUENCER_461 0x31CD
  849. #define WM8994_WRITE_SEQUENCER_462 0x31CE
  850. #define WM8994_WRITE_SEQUENCER_463 0x31CF
  851. #define WM8994_WRITE_SEQUENCER_464 0x31D0
  852. #define WM8994_WRITE_SEQUENCER_465 0x31D1
  853. #define WM8994_WRITE_SEQUENCER_466 0x31D2
  854. #define WM8994_WRITE_SEQUENCER_467 0x31D3
  855. #define WM8994_WRITE_SEQUENCER_468 0x31D4
  856. #define WM8994_WRITE_SEQUENCER_469 0x31D5
  857. #define WM8994_WRITE_SEQUENCER_470 0x31D6
  858. #define WM8994_WRITE_SEQUENCER_471 0x31D7
  859. #define WM8994_WRITE_SEQUENCER_472 0x31D8
  860. #define WM8994_WRITE_SEQUENCER_473 0x31D9
  861. #define WM8994_WRITE_SEQUENCER_474 0x31DA
  862. #define WM8994_WRITE_SEQUENCER_475 0x31DB
  863. #define WM8994_WRITE_SEQUENCER_476 0x31DC
  864. #define WM8994_WRITE_SEQUENCER_477 0x31DD
  865. #define WM8994_WRITE_SEQUENCER_478 0x31DE
  866. #define WM8994_WRITE_SEQUENCER_479 0x31DF
  867. #define WM8994_WRITE_SEQUENCER_480 0x31E0
  868. #define WM8994_WRITE_SEQUENCER_481 0x31E1
  869. #define WM8994_WRITE_SEQUENCER_482 0x31E2
  870. #define WM8994_WRITE_SEQUENCER_483 0x31E3
  871. #define WM8994_WRITE_SEQUENCER_484 0x31E4
  872. #define WM8994_WRITE_SEQUENCER_485 0x31E5
  873. #define WM8994_WRITE_SEQUENCER_486 0x31E6
  874. #define WM8994_WRITE_SEQUENCER_487 0x31E7
  875. #define WM8994_WRITE_SEQUENCER_488 0x31E8
  876. #define WM8994_WRITE_SEQUENCER_489 0x31E9
  877. #define WM8994_WRITE_SEQUENCER_490 0x31EA
  878. #define WM8994_WRITE_SEQUENCER_491 0x31EB
  879. #define WM8994_WRITE_SEQUENCER_492 0x31EC
  880. #define WM8994_WRITE_SEQUENCER_493 0x31ED
  881. #define WM8994_WRITE_SEQUENCER_494 0x31EE
  882. #define WM8994_WRITE_SEQUENCER_495 0x31EF
  883. #define WM8994_WRITE_SEQUENCER_496 0x31F0
  884. #define WM8994_WRITE_SEQUENCER_497 0x31F1
  885. #define WM8994_WRITE_SEQUENCER_498 0x31F2
  886. #define WM8994_WRITE_SEQUENCER_499 0x31F3
  887. #define WM8994_WRITE_SEQUENCER_500 0x31F4
  888. #define WM8994_WRITE_SEQUENCER_501 0x31F5
  889. #define WM8994_WRITE_SEQUENCER_502 0x31F6
  890. #define WM8994_WRITE_SEQUENCER_503 0x31F7
  891. #define WM8994_WRITE_SEQUENCER_504 0x31F8
  892. #define WM8994_WRITE_SEQUENCER_505 0x31F9
  893. #define WM8994_WRITE_SEQUENCER_506 0x31FA
  894. #define WM8994_WRITE_SEQUENCER_507 0x31FB
  895. #define WM8994_WRITE_SEQUENCER_508 0x31FC
  896. #define WM8994_WRITE_SEQUENCER_509 0x31FD
  897. #define WM8994_WRITE_SEQUENCER_510 0x31FE
  898. #define WM8994_WRITE_SEQUENCER_511 0x31FF
  899. #define WM8994_REGISTER_COUNT 736
  900. #define WM8994_MAX_REGISTER 0x31FF
  901. #define WM8994_MAX_CACHED_REGISTER 0x749
  902. /*
  903. * Field Definitions.
  904. */
  905. /*
  906. * R0 (0x00) - Software Reset
  907. */
  908. #define WM8994_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
  909. #define WM8994_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
  910. #define WM8994_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
  911. /*
  912. * R1 (0x01) - Power Management (1)
  913. */
  914. #define WM8994_SPKOUTR_ENA 0x2000 /* SPKOUTR_ENA */
  915. #define WM8994_SPKOUTR_ENA_MASK 0x2000 /* SPKOUTR_ENA */
  916. #define WM8994_SPKOUTR_ENA_SHIFT 13 /* SPKOUTR_ENA */
  917. #define WM8994_SPKOUTR_ENA_WIDTH 1 /* SPKOUTR_ENA */
  918. #define WM8994_SPKOUTL_ENA 0x1000 /* SPKOUTL_ENA */
  919. #define WM8994_SPKOUTL_ENA_MASK 0x1000 /* SPKOUTL_ENA */
  920. #define WM8994_SPKOUTL_ENA_SHIFT 12 /* SPKOUTL_ENA */
  921. #define WM8994_SPKOUTL_ENA_WIDTH 1 /* SPKOUTL_ENA */
  922. #define WM8994_HPOUT2_ENA 0x0800 /* HPOUT2_ENA */
  923. #define WM8994_HPOUT2_ENA_MASK 0x0800 /* HPOUT2_ENA */
  924. #define WM8994_HPOUT2_ENA_SHIFT 11 /* HPOUT2_ENA */
  925. #define WM8994_HPOUT2_ENA_WIDTH 1 /* HPOUT2_ENA */
  926. #define WM8994_HPOUT1L_ENA 0x0200 /* HPOUT1L_ENA */
  927. #define WM8994_HPOUT1L_ENA_MASK 0x0200 /* HPOUT1L_ENA */
  928. #define WM8994_HPOUT1L_ENA_SHIFT 9 /* HPOUT1L_ENA */
  929. #define WM8994_HPOUT1L_ENA_WIDTH 1 /* HPOUT1L_ENA */
  930. #define WM8994_HPOUT1R_ENA 0x0100 /* HPOUT1R_ENA */
  931. #define WM8994_HPOUT1R_ENA_MASK 0x0100 /* HPOUT1R_ENA */
  932. #define WM8994_HPOUT1R_ENA_SHIFT 8 /* HPOUT1R_ENA */
  933. #define WM8994_HPOUT1R_ENA_WIDTH 1 /* HPOUT1R_ENA */
  934. #define WM8994_MICB2_ENA 0x0020 /* MICB2_ENA */
  935. #define WM8994_MICB2_ENA_MASK 0x0020 /* MICB2_ENA */
  936. #define WM8994_MICB2_ENA_SHIFT 5 /* MICB2_ENA */
  937. #define WM8994_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  938. #define WM8994_MICB1_ENA 0x0010 /* MICB1_ENA */
  939. #define WM8994_MICB1_ENA_MASK 0x0010 /* MICB1_ENA */
  940. #define WM8994_MICB1_ENA_SHIFT 4 /* MICB1_ENA */
  941. #define WM8994_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  942. #define WM8994_VMID_SEL_MASK 0x0006 /* VMID_SEL - [2:1] */
  943. #define WM8994_VMID_SEL_SHIFT 1 /* VMID_SEL - [2:1] */
  944. #define WM8994_VMID_SEL_WIDTH 2 /* VMID_SEL - [2:1] */
  945. #define WM8994_BIAS_ENA 0x0001 /* BIAS_ENA */
  946. #define WM8994_BIAS_ENA_MASK 0x0001 /* BIAS_ENA */
  947. #define WM8994_BIAS_ENA_SHIFT 0 /* BIAS_ENA */
  948. #define WM8994_BIAS_ENA_WIDTH 1 /* BIAS_ENA */
  949. /*
  950. * R2 (0x02) - Power Management (2)
  951. */
  952. #define WM8994_TSHUT_ENA 0x4000 /* TSHUT_ENA */
  953. #define WM8994_TSHUT_ENA_MASK 0x4000 /* TSHUT_ENA */
  954. #define WM8994_TSHUT_ENA_SHIFT 14 /* TSHUT_ENA */
  955. #define WM8994_TSHUT_ENA_WIDTH 1 /* TSHUT_ENA */
  956. #define WM8994_TSHUT_OPDIS 0x2000 /* TSHUT_OPDIS */
  957. #define WM8994_TSHUT_OPDIS_MASK 0x2000 /* TSHUT_OPDIS */
  958. #define WM8994_TSHUT_OPDIS_SHIFT 13 /* TSHUT_OPDIS */
  959. #define WM8994_TSHUT_OPDIS_WIDTH 1 /* TSHUT_OPDIS */
  960. #define WM8994_OPCLK_ENA 0x0800 /* OPCLK_ENA */
  961. #define WM8994_OPCLK_ENA_MASK 0x0800 /* OPCLK_ENA */
  962. #define WM8994_OPCLK_ENA_SHIFT 11 /* OPCLK_ENA */
  963. #define WM8994_OPCLK_ENA_WIDTH 1 /* OPCLK_ENA */
  964. #define WM8994_MIXINL_ENA 0x0200 /* MIXINL_ENA */
  965. #define WM8994_MIXINL_ENA_MASK 0x0200 /* MIXINL_ENA */
  966. #define WM8994_MIXINL_ENA_SHIFT 9 /* MIXINL_ENA */
  967. #define WM8994_MIXINL_ENA_WIDTH 1 /* MIXINL_ENA */
  968. #define WM8994_MIXINR_ENA 0x0100 /* MIXINR_ENA */
  969. #define WM8994_MIXINR_ENA_MASK 0x0100 /* MIXINR_ENA */
  970. #define WM8994_MIXINR_ENA_SHIFT 8 /* MIXINR_ENA */
  971. #define WM8994_MIXINR_ENA_WIDTH 1 /* MIXINR_ENA */
  972. #define WM8994_IN2L_ENA 0x0080 /* IN2L_ENA */
  973. #define WM8994_IN2L_ENA_MASK 0x0080 /* IN2L_ENA */
  974. #define WM8994_IN2L_ENA_SHIFT 7 /* IN2L_ENA */
  975. #define WM8994_IN2L_ENA_WIDTH 1 /* IN2L_ENA */
  976. #define WM8994_IN1L_ENA 0x0040 /* IN1L_ENA */
  977. #define WM8994_IN1L_ENA_MASK 0x0040 /* IN1L_ENA */
  978. #define WM8994_IN1L_ENA_SHIFT 6 /* IN1L_ENA */
  979. #define WM8994_IN1L_ENA_WIDTH 1 /* IN1L_ENA */
  980. #define WM8994_IN2R_ENA 0x0020 /* IN2R_ENA */
  981. #define WM8994_IN2R_ENA_MASK 0x0020 /* IN2R_ENA */
  982. #define WM8994_IN2R_ENA_SHIFT 5 /* IN2R_ENA */
  983. #define WM8994_IN2R_ENA_WIDTH 1 /* IN2R_ENA */
  984. #define WM8994_IN1R_ENA 0x0010 /* IN1R_ENA */
  985. #define WM8994_IN1R_ENA_MASK 0x0010 /* IN1R_ENA */
  986. #define WM8994_IN1R_ENA_SHIFT 4 /* IN1R_ENA */
  987. #define WM8994_IN1R_ENA_WIDTH 1 /* IN1R_ENA */
  988. /*
  989. * R3 (0x03) - Power Management (3)
  990. */
  991. #define WM8994_LINEOUT1N_ENA 0x2000 /* LINEOUT1N_ENA */
  992. #define WM8994_LINEOUT1N_ENA_MASK 0x2000 /* LINEOUT1N_ENA */
  993. #define WM8994_LINEOUT1N_ENA_SHIFT 13 /* LINEOUT1N_ENA */
  994. #define WM8994_LINEOUT1N_ENA_WIDTH 1 /* LINEOUT1N_ENA */
  995. #define WM8994_LINEOUT1P_ENA 0x1000 /* LINEOUT1P_ENA */
  996. #define WM8994_LINEOUT1P_ENA_MASK 0x1000 /* LINEOUT1P_ENA */
  997. #define WM8994_LINEOUT1P_ENA_SHIFT 12 /* LINEOUT1P_ENA */
  998. #define WM8994_LINEOUT1P_ENA_WIDTH 1 /* LINEOUT1P_ENA */
  999. #define WM8994_LINEOUT2N_ENA 0x0800 /* LINEOUT2N_ENA */
  1000. #define WM8994_LINEOUT2N_ENA_MASK 0x0800 /* LINEOUT2N_ENA */
  1001. #define WM8994_LINEOUT2N_ENA_SHIFT 11 /* LINEOUT2N_ENA */
  1002. #define WM8994_LINEOUT2N_ENA_WIDTH 1 /* LINEOUT2N_ENA */
  1003. #define WM8994_LINEOUT2P_ENA 0x0400 /* LINEOUT2P_ENA */
  1004. #define WM8994_LINEOUT2P_ENA_MASK 0x0400 /* LINEOUT2P_ENA */
  1005. #define WM8994_LINEOUT2P_ENA_SHIFT 10 /* LINEOUT2P_ENA */
  1006. #define WM8994_LINEOUT2P_ENA_WIDTH 1 /* LINEOUT2P_ENA */
  1007. #define WM8994_SPKRVOL_ENA 0x0200 /* SPKRVOL_ENA */
  1008. #define WM8994_SPKRVOL_ENA_MASK 0x0200 /* SPKRVOL_ENA */
  1009. #define WM8994_SPKRVOL_ENA_SHIFT 9 /* SPKRVOL_ENA */
  1010. #define WM8994_SPKRVOL_ENA_WIDTH 1 /* SPKRVOL_ENA */
  1011. #define WM8994_SPKLVOL_ENA 0x0100 /* SPKLVOL_ENA */
  1012. #define WM8994_SPKLVOL_ENA_MASK 0x0100 /* SPKLVOL_ENA */
  1013. #define WM8994_SPKLVOL_ENA_SHIFT 8 /* SPKLVOL_ENA */
  1014. #define WM8994_SPKLVOL_ENA_WIDTH 1 /* SPKLVOL_ENA */
  1015. #define WM8994_MIXOUTLVOL_ENA 0x0080 /* MIXOUTLVOL_ENA */
  1016. #define WM8994_MIXOUTLVOL_ENA_MASK 0x0080 /* MIXOUTLVOL_ENA */
  1017. #define WM8994_MIXOUTLVOL_ENA_SHIFT 7 /* MIXOUTLVOL_ENA */
  1018. #define WM8994_MIXOUTLVOL_ENA_WIDTH 1 /* MIXOUTLVOL_ENA */
  1019. #define WM8994_MIXOUTRVOL_ENA 0x0040 /* MIXOUTRVOL_ENA */
  1020. #define WM8994_MIXOUTRVOL_ENA_MASK 0x0040 /* MIXOUTRVOL_ENA */
  1021. #define WM8994_MIXOUTRVOL_ENA_SHIFT 6 /* MIXOUTRVOL_ENA */
  1022. #define WM8994_MIXOUTRVOL_ENA_WIDTH 1 /* MIXOUTRVOL_ENA */
  1023. #define WM8994_MIXOUTL_ENA 0x0020 /* MIXOUTL_ENA */
  1024. #define WM8994_MIXOUTL_ENA_MASK 0x0020 /* MIXOUTL_ENA */
  1025. #define WM8994_MIXOUTL_ENA_SHIFT 5 /* MIXOUTL_ENA */
  1026. #define WM8994_MIXOUTL_ENA_WIDTH 1 /* MIXOUTL_ENA */
  1027. #define WM8994_MIXOUTR_ENA 0x0010 /* MIXOUTR_ENA */
  1028. #define WM8994_MIXOUTR_ENA_MASK 0x0010 /* MIXOUTR_ENA */
  1029. #define WM8994_MIXOUTR_ENA_SHIFT 4 /* MIXOUTR_ENA */
  1030. #define WM8994_MIXOUTR_ENA_WIDTH 1 /* MIXOUTR_ENA */
  1031. /*
  1032. * R4 (0x04) - Power Management (4)
  1033. */
  1034. #define WM8994_AIF2ADCL_ENA 0x2000 /* AIF2ADCL_ENA */
  1035. #define WM8994_AIF2ADCL_ENA_MASK 0x2000 /* AIF2ADCL_ENA */
  1036. #define WM8994_AIF2ADCL_ENA_SHIFT 13 /* AIF2ADCL_ENA */
  1037. #define WM8994_AIF2ADCL_ENA_WIDTH 1 /* AIF2ADCL_ENA */
  1038. #define WM8994_AIF2ADCR_ENA 0x1000 /* AIF2ADCR_ENA */
  1039. #define WM8994_AIF2ADCR_ENA_MASK 0x1000 /* AIF2ADCR_ENA */
  1040. #define WM8994_AIF2ADCR_ENA_SHIFT 12 /* AIF2ADCR_ENA */
  1041. #define WM8994_AIF2ADCR_ENA_WIDTH 1 /* AIF2ADCR_ENA */
  1042. #define WM8994_AIF1ADC2L_ENA 0x0800 /* AIF1ADC2L_ENA */
  1043. #define WM8994_AIF1ADC2L_ENA_MASK 0x0800 /* AIF1ADC2L_ENA */
  1044. #define WM8994_AIF1ADC2L_ENA_SHIFT 11 /* AIF1ADC2L_ENA */
  1045. #define WM8994_AIF1ADC2L_ENA_WIDTH 1 /* AIF1ADC2L_ENA */
  1046. #define WM8994_AIF1ADC2R_ENA 0x0400 /* AIF1ADC2R_ENA */
  1047. #define WM8994_AIF1ADC2R_ENA_MASK 0x0400 /* AIF1ADC2R_ENA */
  1048. #define WM8994_AIF1ADC2R_ENA_SHIFT 10 /* AIF1ADC2R_ENA */
  1049. #define WM8994_AIF1ADC2R_ENA_WIDTH 1 /* AIF1ADC2R_ENA */
  1050. #define WM8994_AIF1ADC1L_ENA 0x0200 /* AIF1ADC1L_ENA */
  1051. #define WM8994_AIF1ADC1L_ENA_MASK 0x0200 /* AIF1ADC1L_ENA */
  1052. #define WM8994_AIF1ADC1L_ENA_SHIFT 9 /* AIF1ADC1L_ENA */
  1053. #define WM8994_AIF1ADC1L_ENA_WIDTH 1 /* AIF1ADC1L_ENA */
  1054. #define WM8994_AIF1ADC1R_ENA 0x0100 /* AIF1ADC1R_ENA */
  1055. #define WM8994_AIF1ADC1R_ENA_MASK 0x0100 /* AIF1ADC1R_ENA */
  1056. #define WM8994_AIF1ADC1R_ENA_SHIFT 8 /* AIF1ADC1R_ENA */
  1057. #define WM8994_AIF1ADC1R_ENA_WIDTH 1 /* AIF1ADC1R_ENA */
  1058. #define WM8994_DMIC2L_ENA 0x0020 /* DMIC2L_ENA */
  1059. #define WM8994_DMIC2L_ENA_MASK 0x0020 /* DMIC2L_ENA */
  1060. #define WM8994_DMIC2L_ENA_SHIFT 5 /* DMIC2L_ENA */
  1061. #define WM8994_DMIC2L_ENA_WIDTH 1 /* DMIC2L_ENA */
  1062. #define WM8994_DMIC2R_ENA 0x0010 /* DMIC2R_ENA */
  1063. #define WM8994_DMIC2R_ENA_MASK 0x0010 /* DMIC2R_ENA */
  1064. #define WM8994_DMIC2R_ENA_SHIFT 4 /* DMIC2R_ENA */
  1065. #define WM8994_DMIC2R_ENA_WIDTH 1 /* DMIC2R_ENA */
  1066. #define WM8994_DMIC1L_ENA 0x0008 /* DMIC1L_ENA */
  1067. #define WM8994_DMIC1L_ENA_MASK 0x0008 /* DMIC1L_ENA */
  1068. #define WM8994_DMIC1L_ENA_SHIFT 3 /* DMIC1L_ENA */
  1069. #define WM8994_DMIC1L_ENA_WIDTH 1 /* DMIC1L_ENA */
  1070. #define WM8994_DMIC1R_ENA 0x0004 /* DMIC1R_ENA */
  1071. #define WM8994_DMIC1R_ENA_MASK 0x0004 /* DMIC1R_ENA */
  1072. #define WM8994_DMIC1R_ENA_SHIFT 2 /* DMIC1R_ENA */
  1073. #define WM8994_DMIC1R_ENA_WIDTH 1 /* DMIC1R_ENA */
  1074. #define WM8994_ADCL_ENA 0x0002 /* ADCL_ENA */
  1075. #define WM8994_ADCL_ENA_MASK 0x0002 /* ADCL_ENA */
  1076. #define WM8994_ADCL_ENA_SHIFT 1 /* ADCL_ENA */
  1077. #define WM8994_ADCL_ENA_WIDTH 1 /* ADCL_ENA */
  1078. #define WM8994_ADCR_ENA 0x0001 /* ADCR_ENA */
  1079. #define WM8994_ADCR_ENA_MASK 0x0001 /* ADCR_ENA */
  1080. #define WM8994_ADCR_ENA_SHIFT 0 /* ADCR_ENA */
  1081. #define WM8994_ADCR_ENA_WIDTH 1 /* ADCR_ENA */
  1082. /*
  1083. * R5 (0x05) - Power Management (5)
  1084. */
  1085. #define WM8994_AIF2DACL_ENA 0x2000 /* AIF2DACL_ENA */
  1086. #define WM8994_AIF2DACL_ENA_MASK 0x2000 /* AIF2DACL_ENA */
  1087. #define WM8994_AIF2DACL_ENA_SHIFT 13 /* AIF2DACL_ENA */
  1088. #define WM8994_AIF2DACL_ENA_WIDTH 1 /* AIF2DACL_ENA */
  1089. #define WM8994_AIF2DACR_ENA 0x1000 /* AIF2DACR_ENA */
  1090. #define WM8994_AIF2DACR_ENA_MASK 0x1000 /* AIF2DACR_ENA */
  1091. #define WM8994_AIF2DACR_ENA_SHIFT 12 /* AIF2DACR_ENA */
  1092. #define WM8994_AIF2DACR_ENA_WIDTH 1 /* AIF2DACR_ENA */
  1093. #define WM8994_AIF1DAC2L_ENA 0x0800 /* AIF1DAC2L_ENA */
  1094. #define WM8994_AIF1DAC2L_ENA_MASK 0x0800 /* AIF1DAC2L_ENA */
  1095. #define WM8994_AIF1DAC2L_ENA_SHIFT 11 /* AIF1DAC2L_ENA */
  1096. #define WM8994_AIF1DAC2L_ENA_WIDTH 1 /* AIF1DAC2L_ENA */
  1097. #define WM8994_AIF1DAC2R_ENA 0x0400 /* AIF1DAC2R_ENA */
  1098. #define WM8994_AIF1DAC2R_ENA_MASK 0x0400 /* AIF1DAC2R_ENA */
  1099. #define WM8994_AIF1DAC2R_ENA_SHIFT 10 /* AIF1DAC2R_ENA */
  1100. #define WM8994_AIF1DAC2R_ENA_WIDTH 1 /* AIF1DAC2R_ENA */
  1101. #define WM8994_AIF1DAC1L_ENA 0x0200 /* AIF1DAC1L_ENA */
  1102. #define WM8994_AIF1DAC1L_ENA_MASK 0x0200 /* AIF1DAC1L_ENA */
  1103. #define WM8994_AIF1DAC1L_ENA_SHIFT 9 /* AIF1DAC1L_ENA */
  1104. #define WM8994_AIF1DAC1L_ENA_WIDTH 1 /* AIF1DAC1L_ENA */
  1105. #define WM8994_AIF1DAC1R_ENA 0x0100 /* AIF1DAC1R_ENA */
  1106. #define WM8994_AIF1DAC1R_ENA_MASK 0x0100 /* AIF1DAC1R_ENA */
  1107. #define WM8994_AIF1DAC1R_ENA_SHIFT 8 /* AIF1DAC1R_ENA */
  1108. #define WM8994_AIF1DAC1R_ENA_WIDTH 1 /* AIF1DAC1R_ENA */
  1109. #define WM8994_DAC2L_ENA 0x0008 /* DAC2L_ENA */
  1110. #define WM8994_DAC2L_ENA_MASK 0x0008 /* DAC2L_ENA */
  1111. #define WM8994_DAC2L_ENA_SHIFT 3 /* DAC2L_ENA */
  1112. #define WM8994_DAC2L_ENA_WIDTH 1 /* DAC2L_ENA */
  1113. #define WM8994_DAC2R_ENA 0x0004 /* DAC2R_ENA */
  1114. #define WM8994_DAC2R_ENA_MASK 0x0004 /* DAC2R_ENA */
  1115. #define WM8994_DAC2R_ENA_SHIFT 2 /* DAC2R_ENA */
  1116. #define WM8994_DAC2R_ENA_WIDTH 1 /* DAC2R_ENA */
  1117. #define WM8994_DAC1L_ENA 0x0002 /* DAC1L_ENA */
  1118. #define WM8994_DAC1L_ENA_MASK 0x0002 /* DAC1L_ENA */
  1119. #define WM8994_DAC1L_ENA_SHIFT 1 /* DAC1L_ENA */
  1120. #define WM8994_DAC1L_ENA_WIDTH 1 /* DAC1L_ENA */
  1121. #define WM8994_DAC1R_ENA 0x0001 /* DAC1R_ENA */
  1122. #define WM8994_DAC1R_ENA_MASK 0x0001 /* DAC1R_ENA */
  1123. #define WM8994_DAC1R_ENA_SHIFT 0 /* DAC1R_ENA */
  1124. #define WM8994_DAC1R_ENA_WIDTH 1 /* DAC1R_ENA */
  1125. /*
  1126. * R6 (0x06) - Power Management (6)
  1127. */
  1128. #define WM8958_AIF3ADC_SRC_MASK 0x0600 /* AIF3ADC_SRC - [10:9] */
  1129. #define WM8958_AIF3ADC_SRC_SHIFT 9 /* AIF3ADC_SRC - [10:9] */
  1130. #define WM8958_AIF3ADC_SRC_WIDTH 2 /* AIF3ADC_SRC - [10:9] */
  1131. #define WM8958_AIF2DAC_SRC_MASK 0x0180 /* AIF2DAC_SRC - [8:7] */
  1132. #define WM8958_AIF2DAC_SRC_SHIFT 7 /* AIF2DAC_SRC - [8:7] */
  1133. #define WM8958_AIF2DAC_SRC_WIDTH 2 /* AIF2DAC_SRC - [8:7] */
  1134. #define WM8994_AIF3_TRI 0x0020 /* AIF3_TRI */
  1135. #define WM8994_AIF3_TRI_MASK 0x0020 /* AIF3_TRI */
  1136. #define WM8994_AIF3_TRI_SHIFT 5 /* AIF3_TRI */
  1137. #define WM8994_AIF3_TRI_WIDTH 1 /* AIF3_TRI */
  1138. #define WM8994_AIF3_ADCDAT_SRC_MASK 0x0018 /* AIF3_ADCDAT_SRC - [4:3] */
  1139. #define WM8994_AIF3_ADCDAT_SRC_SHIFT 3 /* AIF3_ADCDAT_SRC - [4:3] */
  1140. #define WM8994_AIF3_ADCDAT_SRC_WIDTH 2 /* AIF3_ADCDAT_SRC - [4:3] */
  1141. #define WM8994_AIF2_ADCDAT_SRC 0x0004 /* AIF2_ADCDAT_SRC */
  1142. #define WM8994_AIF2_ADCDAT_SRC_MASK 0x0004 /* AIF2_ADCDAT_SRC */
  1143. #define WM8994_AIF2_ADCDAT_SRC_SHIFT 2 /* AIF2_ADCDAT_SRC */
  1144. #define WM8994_AIF2_ADCDAT_SRC_WIDTH 1 /* AIF2_ADCDAT_SRC */
  1145. #define WM8994_AIF2_DACDAT_SRC 0x0002 /* AIF2_DACDAT_SRC */
  1146. #define WM8994_AIF2_DACDAT_SRC_MASK 0x0002 /* AIF2_DACDAT_SRC */
  1147. #define WM8994_AIF2_DACDAT_SRC_SHIFT 1 /* AIF2_DACDAT_SRC */
  1148. #define WM8994_AIF2_DACDAT_SRC_WIDTH 1 /* AIF2_DACDAT_SRC */
  1149. #define WM8994_AIF1_DACDAT_SRC 0x0001 /* AIF1_DACDAT_SRC */
  1150. #define WM8994_AIF1_DACDAT_SRC_MASK 0x0001 /* AIF1_DACDAT_SRC */
  1151. #define WM8994_AIF1_DACDAT_SRC_SHIFT 0 /* AIF1_DACDAT_SRC */
  1152. #define WM8994_AIF1_DACDAT_SRC_WIDTH 1 /* AIF1_DACDAT_SRC */
  1153. /*
  1154. * R21 (0x15) - Input Mixer (1)
  1155. */
  1156. #define WM8994_IN1RP_MIXINR_BOOST 0x0100 /* IN1RP_MIXINR_BOOST */
  1157. #define WM8994_IN1RP_MIXINR_BOOST_MASK 0x0100 /* IN1RP_MIXINR_BOOST */
  1158. #define WM8994_IN1RP_MIXINR_BOOST_SHIFT 8 /* IN1RP_MIXINR_BOOST */
  1159. #define WM8994_IN1RP_MIXINR_BOOST_WIDTH 1 /* IN1RP_MIXINR_BOOST */
  1160. #define WM8994_IN1LP_MIXINL_BOOST 0x0080 /* IN1LP_MIXINL_BOOST */
  1161. #define WM8994_IN1LP_MIXINL_BOOST_MASK 0x0080 /* IN1LP_MIXINL_BOOST */
  1162. #define WM8994_IN1LP_MIXINL_BOOST_SHIFT 7 /* IN1LP_MIXINL_BOOST */
  1163. #define WM8994_IN1LP_MIXINL_BOOST_WIDTH 1 /* IN1LP_MIXINL_BOOST */
  1164. #define WM8994_INPUTS_CLAMP 0x0040 /* INPUTS_CLAMP */
  1165. #define WM8994_INPUTS_CLAMP_MASK 0x0040 /* INPUTS_CLAMP */
  1166. #define WM8994_INPUTS_CLAMP_SHIFT 6 /* INPUTS_CLAMP */
  1167. #define WM8994_INPUTS_CLAMP_WIDTH 1 /* INPUTS_CLAMP */
  1168. /*
  1169. * R24 (0x18) - Left Line Input 1&2 Volume
  1170. */
  1171. #define WM8994_IN1_VU 0x0100 /* IN1_VU */
  1172. #define WM8994_IN1_VU_MASK 0x0100 /* IN1_VU */
  1173. #define WM8994_IN1_VU_SHIFT 8 /* IN1_VU */
  1174. #define WM8994_IN1_VU_WIDTH 1 /* IN1_VU */
  1175. #define WM8994_IN1L_MUTE 0x0080 /* IN1L_MUTE */
  1176. #define WM8994_IN1L_MUTE_MASK 0x0080 /* IN1L_MUTE */
  1177. #define WM8994_IN1L_MUTE_SHIFT 7 /* IN1L_MUTE */
  1178. #define WM8994_IN1L_MUTE_WIDTH 1 /* IN1L_MUTE */
  1179. #define WM8994_IN1L_ZC 0x0040 /* IN1L_ZC */
  1180. #define WM8994_IN1L_ZC_MASK 0x0040 /* IN1L_ZC */
  1181. #define WM8994_IN1L_ZC_SHIFT 6 /* IN1L_ZC */
  1182. #define WM8994_IN1L_ZC_WIDTH 1 /* IN1L_ZC */
  1183. #define WM8994_IN1L_VOL_MASK 0x001F /* IN1L_VOL - [4:0] */
  1184. #define WM8994_IN1L_VOL_SHIFT 0 /* IN1L_VOL - [4:0] */
  1185. #define WM8994_IN1L_VOL_WIDTH 5 /* IN1L_VOL - [4:0] */
  1186. /*
  1187. * R25 (0x19) - Left Line Input 3&4 Volume
  1188. */
  1189. #define WM8994_IN2_VU 0x0100 /* IN2_VU */
  1190. #define WM8994_IN2_VU_MASK 0x0100 /* IN2_VU */
  1191. #define WM8994_IN2_VU_SHIFT 8 /* IN2_VU */
  1192. #define WM8994_IN2_VU_WIDTH 1 /* IN2_VU */
  1193. #define WM8994_IN2L_MUTE 0x0080 /* IN2L_MUTE */
  1194. #define WM8994_IN2L_MUTE_MASK 0x0080 /* IN2L_MUTE */
  1195. #define WM8994_IN2L_MUTE_SHIFT 7 /* IN2L_MUTE */
  1196. #define WM8994_IN2L_MUTE_WIDTH 1 /* IN2L_MUTE */
  1197. #define WM8994_IN2L_ZC 0x0040 /* IN2L_ZC */
  1198. #define WM8994_IN2L_ZC_MASK 0x0040 /* IN2L_ZC */
  1199. #define WM8994_IN2L_ZC_SHIFT 6 /* IN2L_ZC */
  1200. #define WM8994_IN2L_ZC_WIDTH 1 /* IN2L_ZC */
  1201. #define WM8994_IN2L_VOL_MASK 0x001F /* IN2L_VOL - [4:0] */
  1202. #define WM8994_IN2L_VOL_SHIFT 0 /* IN2L_VOL - [4:0] */
  1203. #define WM8994_IN2L_VOL_WIDTH 5 /* IN2L_VOL - [4:0] */
  1204. /*
  1205. * R26 (0x1A) - Right Line Input 1&2 Volume
  1206. */
  1207. #define WM8994_IN1_VU 0x0100 /* IN1_VU */
  1208. #define WM8994_IN1_VU_MASK 0x0100 /* IN1_VU */
  1209. #define WM8994_IN1_VU_SHIFT 8 /* IN1_VU */
  1210. #define WM8994_IN1_VU_WIDTH 1 /* IN1_VU */
  1211. #define WM8994_IN1R_MUTE 0x0080 /* IN1R_MUTE */
  1212. #define WM8994_IN1R_MUTE_MASK 0x0080 /* IN1R_MUTE */
  1213. #define WM8994_IN1R_MUTE_SHIFT 7 /* IN1R_MUTE */
  1214. #define WM8994_IN1R_MUTE_WIDTH 1 /* IN1R_MUTE */
  1215. #define WM8994_IN1R_ZC 0x0040 /* IN1R_ZC */
  1216. #define WM8994_IN1R_ZC_MASK 0x0040 /* IN1R_ZC */
  1217. #define WM8994_IN1R_ZC_SHIFT 6 /* IN1R_ZC */
  1218. #define WM8994_IN1R_ZC_WIDTH 1 /* IN1R_ZC */
  1219. #define WM8994_IN1R_VOL_MASK 0x001F /* IN1R_VOL - [4:0] */
  1220. #define WM8994_IN1R_VOL_SHIFT 0 /* IN1R_VOL - [4:0] */
  1221. #define WM8994_IN1R_VOL_WIDTH 5 /* IN1R_VOL - [4:0] */
  1222. /*
  1223. * R27 (0x1B) - Right Line Input 3&4 Volume
  1224. */
  1225. #define WM8994_IN2_VU 0x0100 /* IN2_VU */
  1226. #define WM8994_IN2_VU_MASK 0x0100 /* IN2_VU */
  1227. #define WM8994_IN2_VU_SHIFT 8 /* IN2_VU */
  1228. #define WM8994_IN2_VU_WIDTH 1 /* IN2_VU */
  1229. #define WM8994_IN2R_MUTE 0x0080 /* IN2R_MUTE */
  1230. #define WM8994_IN2R_MUTE_MASK 0x0080 /* IN2R_MUTE */
  1231. #define WM8994_IN2R_MUTE_SHIFT 7 /* IN2R_MUTE */
  1232. #define WM8994_IN2R_MUTE_WIDTH 1 /* IN2R_MUTE */
  1233. #define WM8994_IN2R_ZC 0x0040 /* IN2R_ZC */
  1234. #define WM8994_IN2R_ZC_MASK 0x0040 /* IN2R_ZC */
  1235. #define WM8994_IN2R_ZC_SHIFT 6 /* IN2R_ZC */
  1236. #define WM8994_IN2R_ZC_WIDTH 1 /* IN2R_ZC */
  1237. #define WM8994_IN2R_VOL_MASK 0x001F /* IN2R_VOL - [4:0] */
  1238. #define WM8994_IN2R_VOL_SHIFT 0 /* IN2R_VOL - [4:0] */
  1239. #define WM8994_IN2R_VOL_WIDTH 5 /* IN2R_VOL - [4:0] */
  1240. /*
  1241. * R28 (0x1C) - Left Output Volume
  1242. */
  1243. #define WM8994_HPOUT1_VU 0x0100 /* HPOUT1_VU */
  1244. #define WM8994_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */
  1245. #define WM8994_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */
  1246. #define WM8994_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */
  1247. #define WM8994_HPOUT1L_ZC 0x0080 /* HPOUT1L_ZC */
  1248. #define WM8994_HPOUT1L_ZC_MASK 0x0080 /* HPOUT1L_ZC */
  1249. #define WM8994_HPOUT1L_ZC_SHIFT 7 /* HPOUT1L_ZC */
  1250. #define WM8994_HPOUT1L_ZC_WIDTH 1 /* HPOUT1L_ZC */
  1251. #define WM8994_HPOUT1L_MUTE_N 0x0040 /* HPOUT1L_MUTE_N */
  1252. #define WM8994_HPOUT1L_MUTE_N_MASK 0x0040 /* HPOUT1L_MUTE_N */
  1253. #define WM8994_HPOUT1L_MUTE_N_SHIFT 6 /* HPOUT1L_MUTE_N */
  1254. #define WM8994_HPOUT1L_MUTE_N_WIDTH 1 /* HPOUT1L_MUTE_N */
  1255. #define WM8994_HPOUT1L_VOL_MASK 0x003F /* HPOUT1L_VOL - [5:0] */
  1256. #define WM8994_HPOUT1L_VOL_SHIFT 0 /* HPOUT1L_VOL - [5:0] */
  1257. #define WM8994_HPOUT1L_VOL_WIDTH 6 /* HPOUT1L_VOL - [5:0] */
  1258. /*
  1259. * R29 (0x1D) - Right Output Volume
  1260. */
  1261. #define WM8994_HPOUT1_VU 0x0100 /* HPOUT1_VU */
  1262. #define WM8994_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */
  1263. #define WM8994_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */
  1264. #define WM8994_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */
  1265. #define WM8994_HPOUT1R_ZC 0x0080 /* HPOUT1R_ZC */
  1266. #define WM8994_HPOUT1R_ZC_MASK 0x0080 /* HPOUT1R_ZC */
  1267. #define WM8994_HPOUT1R_ZC_SHIFT 7 /* HPOUT1R_ZC */
  1268. #define WM8994_HPOUT1R_ZC_WIDTH 1 /* HPOUT1R_ZC */
  1269. #define WM8994_HPOUT1R_MUTE_N 0x0040 /* HPOUT1R_MUTE_N */
  1270. #define WM8994_HPOUT1R_MUTE_N_MASK 0x0040 /* HPOUT1R_MUTE_N */
  1271. #define WM8994_HPOUT1R_MUTE_N_SHIFT 6 /* HPOUT1R_MUTE_N */
  1272. #define WM8994_HPOUT1R_MUTE_N_WIDTH 1 /* HPOUT1R_MUTE_N */
  1273. #define WM8994_HPOUT1R_VOL_MASK 0x003F /* HPOUT1R_VOL - [5:0] */
  1274. #define WM8994_HPOUT1R_VOL_SHIFT 0 /* HPOUT1R_VOL - [5:0] */
  1275. #define WM8994_HPOUT1R_VOL_WIDTH 6 /* HPOUT1R_VOL - [5:0] */
  1276. /*
  1277. * R30 (0x1E) - Line Outputs Volume
  1278. */
  1279. #define WM8994_LINEOUT1N_MUTE 0x0040 /* LINEOUT1N_MUTE */
  1280. #define WM8994_LINEOUT1N_MUTE_MASK 0x0040 /* LINEOUT1N_MUTE */
  1281. #define WM8994_LINEOUT1N_MUTE_SHIFT 6 /* LINEOUT1N_MUTE */
  1282. #define WM8994_LINEOUT1N_MUTE_WIDTH 1 /* LINEOUT1N_MUTE */
  1283. #define WM8994_LINEOUT1P_MUTE 0x0020 /* LINEOUT1P_MUTE */
  1284. #define WM8994_LINEOUT1P_MUTE_MASK 0x0020 /* LINEOUT1P_MUTE */
  1285. #define WM8994_LINEOUT1P_MUTE_SHIFT 5 /* LINEOUT1P_MUTE */
  1286. #define WM8994_LINEOUT1P_MUTE_WIDTH 1 /* LINEOUT1P_MUTE */
  1287. #define WM8994_LINEOUT1_VOL 0x0010 /* LINEOUT1_VOL */
  1288. #define WM8994_LINEOUT1_VOL_MASK 0x0010 /* LINEOUT1_VOL */
  1289. #define WM8994_LINEOUT1_VOL_SHIFT 4 /* LINEOUT1_VOL */
  1290. #define WM8994_LINEOUT1_VOL_WIDTH 1 /* LINEOUT1_VOL */
  1291. #define WM8994_LINEOUT2N_MUTE 0x0004 /* LINEOUT2N_MUTE */
  1292. #define WM8994_LINEOUT2N_MUTE_MASK 0x0004 /* LINEOUT2N_MUTE */
  1293. #define WM8994_LINEOUT2N_MUTE_SHIFT 2 /* LINEOUT2N_MUTE */
  1294. #define WM8994_LINEOUT2N_MUTE_WIDTH 1 /* LINEOUT2N_MUTE */
  1295. #define WM8994_LINEOUT2P_MUTE 0x0002 /* LINEOUT2P_MUTE */
  1296. #define WM8994_LINEOUT2P_MUTE_MASK 0x0002 /* LINEOUT2P_MUTE */
  1297. #define WM8994_LINEOUT2P_MUTE_SHIFT 1 /* LINEOUT2P_MUTE */
  1298. #define WM8994_LINEOUT2P_MUTE_WIDTH 1 /* LINEOUT2P_MUTE */
  1299. #define WM8994_LINEOUT2_VOL 0x0001 /* LINEOUT2_VOL */
  1300. #define WM8994_LINEOUT2_VOL_MASK 0x0001 /* LINEOUT2_VOL */
  1301. #define WM8994_LINEOUT2_VOL_SHIFT 0 /* LINEOUT2_VOL */
  1302. #define WM8994_LINEOUT2_VOL_WIDTH 1 /* LINEOUT2_VOL */
  1303. /*
  1304. * R31 (0x1F) - HPOUT2 Volume
  1305. */
  1306. #define WM8994_HPOUT2_MUTE 0x0020 /* HPOUT2_MUTE */
  1307. #define WM8994_HPOUT2_MUTE_MASK 0x0020 /* HPOUT2_MUTE */
  1308. #define WM8994_HPOUT2_MUTE_SHIFT 5 /* HPOUT2_MUTE */
  1309. #define WM8994_HPOUT2_MUTE_WIDTH 1 /* HPOUT2_MUTE */
  1310. #define WM8994_HPOUT2_VOL 0x0010 /* HPOUT2_VOL */
  1311. #define WM8994_HPOUT2_VOL_MASK 0x0010 /* HPOUT2_VOL */
  1312. #define WM8994_HPOUT2_VOL_SHIFT 4 /* HPOUT2_VOL */
  1313. #define WM8994_HPOUT2_VOL_WIDTH 1 /* HPOUT2_VOL */
  1314. /*
  1315. * R32 (0x20) - Left OPGA Volume
  1316. */
  1317. #define WM8994_MIXOUT_VU 0x0100 /* MIXOUT_VU */
  1318. #define WM8994_MIXOUT_VU_MASK 0x0100 /* MIXOUT_VU */
  1319. #define WM8994_MIXOUT_VU_SHIFT 8 /* MIXOUT_VU */
  1320. #define WM8994_MIXOUT_VU_WIDTH 1 /* MIXOUT_VU */
  1321. #define WM8994_MIXOUTL_ZC 0x0080 /* MIXOUTL_ZC */
  1322. #define WM8994_MIXOUTL_ZC_MASK 0x0080 /* MIXOUTL_ZC */
  1323. #define WM8994_MIXOUTL_ZC_SHIFT 7 /* MIXOUTL_ZC */
  1324. #define WM8994_MIXOUTL_ZC_WIDTH 1 /* MIXOUTL_ZC */
  1325. #define WM8994_MIXOUTL_MUTE_N 0x0040 /* MIXOUTL_MUTE_N */
  1326. #define WM8994_MIXOUTL_MUTE_N_MASK 0x0040 /* MIXOUTL_MUTE_N */
  1327. #define WM8994_MIXOUTL_MUTE_N_SHIFT 6 /* MIXOUTL_MUTE_N */
  1328. #define WM8994_MIXOUTL_MUTE_N_WIDTH 1 /* MIXOUTL_MUTE_N */
  1329. #define WM8994_MIXOUTL_VOL_MASK 0x003F /* MIXOUTL_VOL - [5:0] */
  1330. #define WM8994_MIXOUTL_VOL_SHIFT 0 /* MIXOUTL_VOL - [5:0] */
  1331. #define WM8994_MIXOUTL_VOL_WIDTH 6 /* MIXOUTL_VOL - [5:0] */
  1332. /*
  1333. * R33 (0x21) - Right OPGA Volume
  1334. */
  1335. #define WM8994_MIXOUT_VU 0x0100 /* MIXOUT_VU */
  1336. #define WM8994_MIXOUT_VU_MASK 0x0100 /* MIXOUT_VU */
  1337. #define WM8994_MIXOUT_VU_SHIFT 8 /* MIXOUT_VU */
  1338. #define WM8994_MIXOUT_VU_WIDTH 1 /* MIXOUT_VU */
  1339. #define WM8994_MIXOUTR_ZC 0x0080 /* MIXOUTR_ZC */
  1340. #define WM8994_MIXOUTR_ZC_MASK 0x0080 /* MIXOUTR_ZC */
  1341. #define WM8994_MIXOUTR_ZC_SHIFT 7 /* MIXOUTR_ZC */
  1342. #define WM8994_MIXOUTR_ZC_WIDTH 1 /* MIXOUTR_ZC */
  1343. #define WM8994_MIXOUTR_MUTE_N 0x0040 /* MIXOUTR_MUTE_N */
  1344. #define WM8994_MIXOUTR_MUTE_N_MASK 0x0040 /* MIXOUTR_MUTE_N */
  1345. #define WM8994_MIXOUTR_MUTE_N_SHIFT 6 /* MIXOUTR_MUTE_N */
  1346. #define WM8994_MIXOUTR_MUTE_N_WIDTH 1 /* MIXOUTR_MUTE_N */
  1347. #define WM8994_MIXOUTR_VOL_MASK 0x003F /* MIXOUTR_VOL - [5:0] */
  1348. #define WM8994_MIXOUTR_VOL_SHIFT 0 /* MIXOUTR_VOL - [5:0] */
  1349. #define WM8994_MIXOUTR_VOL_WIDTH 6 /* MIXOUTR_VOL - [5:0] */
  1350. /*
  1351. * R34 (0x22) - SPKMIXL Attenuation
  1352. */
  1353. #define WM8994_DAC2L_SPKMIXL_VOL 0x0040 /* DAC2L_SPKMIXL_VOL */
  1354. #define WM8994_DAC2L_SPKMIXL_VOL_MASK 0x0040 /* DAC2L_SPKMIXL_VOL */
  1355. #define WM8994_DAC2L_SPKMIXL_VOL_SHIFT 6 /* DAC2L_SPKMIXL_VOL */
  1356. #define WM8994_DAC2L_SPKMIXL_VOL_WIDTH 1 /* DAC2L_SPKMIXL_VOL */
  1357. #define WM8994_MIXINL_SPKMIXL_VOL 0x0020 /* MIXINL_SPKMIXL_VOL */
  1358. #define WM8994_MIXINL_SPKMIXL_VOL_MASK 0x0020 /* MIXINL_SPKMIXL_VOL */
  1359. #define WM8994_MIXINL_SPKMIXL_VOL_SHIFT 5 /* MIXINL_SPKMIXL_VOL */
  1360. #define WM8994_MIXINL_SPKMIXL_VOL_WIDTH 1 /* MIXINL_SPKMIXL_VOL */
  1361. #define WM8994_IN1LP_SPKMIXL_VOL 0x0010 /* IN1LP_SPKMIXL_VOL */
  1362. #define WM8994_IN1LP_SPKMIXL_VOL_MASK 0x0010 /* IN1LP_SPKMIXL_VOL */
  1363. #define WM8994_IN1LP_SPKMIXL_VOL_SHIFT 4 /* IN1LP_SPKMIXL_VOL */
  1364. #define WM8994_IN1LP_SPKMIXL_VOL_WIDTH 1 /* IN1LP_SPKMIXL_VOL */
  1365. #define WM8994_MIXOUTL_SPKMIXL_VOL 0x0008 /* MIXOUTL_SPKMIXL_VOL */
  1366. #define WM8994_MIXOUTL_SPKMIXL_VOL_MASK 0x0008 /* MIXOUTL_SPKMIXL_VOL */
  1367. #define WM8994_MIXOUTL_SPKMIXL_VOL_SHIFT 3 /* MIXOUTL_SPKMIXL_VOL */
  1368. #define WM8994_MIXOUTL_SPKMIXL_VOL_WIDTH 1 /* MIXOUTL_SPKMIXL_VOL */
  1369. #define WM8994_DAC1L_SPKMIXL_VOL 0x0004 /* DAC1L_SPKMIXL_VOL */
  1370. #define WM8994_DAC1L_SPKMIXL_VOL_MASK 0x0004 /* DAC1L_SPKMIXL_VOL */
  1371. #define WM8994_DAC1L_SPKMIXL_VOL_SHIFT 2 /* DAC1L_SPKMIXL_VOL */
  1372. #define WM8994_DAC1L_SPKMIXL_VOL_WIDTH 1 /* DAC1L_SPKMIXL_VOL */
  1373. #define WM8994_SPKMIXL_VOL_MASK 0x0003 /* SPKMIXL_VOL - [1:0] */
  1374. #define WM8994_SPKMIXL_VOL_SHIFT 0 /* SPKMIXL_VOL - [1:0] */
  1375. #define WM8994_SPKMIXL_VOL_WIDTH 2 /* SPKMIXL_VOL - [1:0] */
  1376. /*
  1377. * R35 (0x23) - SPKMIXR Attenuation
  1378. */
  1379. #define WM8994_SPKOUT_CLASSAB 0x0100 /* SPKOUT_CLASSAB */
  1380. #define WM8994_SPKOUT_CLASSAB_MASK 0x0100 /* SPKOUT_CLASSAB */
  1381. #define WM8994_SPKOUT_CLASSAB_SHIFT 8 /* SPKOUT_CLASSAB */
  1382. #define WM8994_SPKOUT_CLASSAB_WIDTH 1 /* SPKOUT_CLASSAB */
  1383. #define WM8994_DAC2R_SPKMIXR_VOL 0x0040 /* DAC2R_SPKMIXR_VOL */
  1384. #define WM8994_DAC2R_SPKMIXR_VOL_MASK 0x0040 /* DAC2R_SPKMIXR_VOL */
  1385. #define WM8994_DAC2R_SPKMIXR_VOL_SHIFT 6 /* DAC2R_SPKMIXR_VOL */
  1386. #define WM8994_DAC2R_SPKMIXR_VOL_WIDTH 1 /* DAC2R_SPKMIXR_VOL */
  1387. #define WM8994_MIXINR_SPKMIXR_VOL 0x0020 /* MIXINR_SPKMIXR_VOL */
  1388. #define WM8994_MIXINR_SPKMIXR_VOL_MASK 0x0020 /* MIXINR_SPKMIXR_VOL */
  1389. #define WM8994_MIXINR_SPKMIXR_VOL_SHIFT 5 /* MIXINR_SPKMIXR_VOL */
  1390. #define WM8994_MIXINR_SPKMIXR_VOL_WIDTH 1 /* MIXINR_SPKMIXR_VOL */
  1391. #define WM8994_IN1RP_SPKMIXR_VOL 0x0010 /* IN1RP_SPKMIXR_VOL */
  1392. #define WM8994_IN1RP_SPKMIXR_VOL_MASK 0x0010 /* IN1RP_SPKMIXR_VOL */
  1393. #define WM8994_IN1RP_SPKMIXR_VOL_SHIFT 4 /* IN1RP_SPKMIXR_VOL */
  1394. #define WM8994_IN1RP_SPKMIXR_VOL_WIDTH 1 /* IN1RP_SPKMIXR_VOL */
  1395. #define WM8994_MIXOUTR_SPKMIXR_VOL 0x0008 /* MIXOUTR_SPKMIXR_VOL */
  1396. #define WM8994_MIXOUTR_SPKMIXR_VOL_MASK 0x0008 /* MIXOUTR_SPKMIXR_VOL */
  1397. #define WM8994_MIXOUTR_SPKMIXR_VOL_SHIFT 3 /* MIXOUTR_SPKMIXR_VOL */
  1398. #define WM8994_MIXOUTR_SPKMIXR_VOL_WIDTH 1 /* MIXOUTR_SPKMIXR_VOL */
  1399. #define WM8994_DAC1R_SPKMIXR_VOL 0x0004 /* DAC1R_SPKMIXR_VOL */
  1400. #define WM8994_DAC1R_SPKMIXR_VOL_MASK 0x0004 /* DAC1R_SPKMIXR_VOL */
  1401. #define WM8994_DAC1R_SPKMIXR_VOL_SHIFT 2 /* DAC1R_SPKMIXR_VOL */
  1402. #define WM8994_DAC1R_SPKMIXR_VOL_WIDTH 1 /* DAC1R_SPKMIXR_VOL */
  1403. #define WM8994_SPKMIXR_VOL_MASK 0x0003 /* SPKMIXR_VOL - [1:0] */
  1404. #define WM8994_SPKMIXR_VOL_SHIFT 0 /* SPKMIXR_VOL - [1:0] */
  1405. #define WM8994_SPKMIXR_VOL_WIDTH 2 /* SPKMIXR_VOL - [1:0] */
  1406. /*
  1407. * R36 (0x24) - SPKOUT Mixers
  1408. */
  1409. #define WM8994_IN2LRP_TO_SPKOUTL 0x0020 /* IN2LRP_TO_SPKOUTL */
  1410. #define WM8994_IN2LRP_TO_SPKOUTL_MASK 0x0020 /* IN2LRP_TO_SPKOUTL */
  1411. #define WM8994_IN2LRP_TO_SPKOUTL_SHIFT 5 /* IN2LRP_TO_SPKOUTL */
  1412. #define WM8994_IN2LRP_TO_SPKOUTL_WIDTH 1 /* IN2LRP_TO_SPKOUTL */
  1413. #define WM8994_SPKMIXL_TO_SPKOUTL 0x0010 /* SPKMIXL_TO_SPKOUTL */
  1414. #define WM8994_SPKMIXL_TO_SPKOUTL_MASK 0x0010 /* SPKMIXL_TO_SPKOUTL */
  1415. #define WM8994_SPKMIXL_TO_SPKOUTL_SHIFT 4 /* SPKMIXL_TO_SPKOUTL */
  1416. #define WM8994_SPKMIXL_TO_SPKOUTL_WIDTH 1 /* SPKMIXL_TO_SPKOUTL */
  1417. #define WM8994_SPKMIXR_TO_SPKOUTL 0x0008 /* SPKMIXR_TO_SPKOUTL */
  1418. #define WM8994_SPKMIXR_TO_SPKOUTL_MASK 0x0008 /* SPKMIXR_TO_SPKOUTL */
  1419. #define WM8994_SPKMIXR_TO_SPKOUTL_SHIFT 3 /* SPKMIXR_TO_SPKOUTL */
  1420. #define WM8994_SPKMIXR_TO_SPKOUTL_WIDTH 1 /* SPKMIXR_TO_SPKOUTL */
  1421. #define WM8994_IN2LRP_TO_SPKOUTR 0x0004 /* IN2LRP_TO_SPKOUTR */
  1422. #define WM8994_IN2LRP_TO_SPKOUTR_MASK 0x0004 /* IN2LRP_TO_SPKOUTR */
  1423. #define WM8994_IN2LRP_TO_SPKOUTR_SHIFT 2 /* IN2LRP_TO_SPKOUTR */
  1424. #define WM8994_IN2LRP_TO_SPKOUTR_WIDTH 1 /* IN2LRP_TO_SPKOUTR */
  1425. #define WM8994_SPKMIXL_TO_SPKOUTR 0x0002 /* SPKMIXL_TO_SPKOUTR */
  1426. #define WM8994_SPKMIXL_TO_SPKOUTR_MASK 0x0002 /* SPKMIXL_TO_SPKOUTR */
  1427. #define WM8994_SPKMIXL_TO_SPKOUTR_SHIFT 1 /* SPKMIXL_TO_SPKOUTR */
  1428. #define WM8994_SPKMIXL_TO_SPKOUTR_WIDTH 1 /* SPKMIXL_TO_SPKOUTR */
  1429. #define WM8994_SPKMIXR_TO_SPKOUTR 0x0001 /* SPKMIXR_TO_SPKOUTR */
  1430. #define WM8994_SPKMIXR_TO_SPKOUTR_MASK 0x0001 /* SPKMIXR_TO_SPKOUTR */
  1431. #define WM8994_SPKMIXR_TO_SPKOUTR_SHIFT 0 /* SPKMIXR_TO_SPKOUTR */
  1432. #define WM8994_SPKMIXR_TO_SPKOUTR_WIDTH 1 /* SPKMIXR_TO_SPKOUTR */
  1433. /*
  1434. * R37 (0x25) - ClassD
  1435. */
  1436. #define WM8994_SPKOUTL_BOOST_MASK 0x0038 /* SPKOUTL_BOOST - [5:3] */
  1437. #define WM8994_SPKOUTL_BOOST_SHIFT 3 /* SPKOUTL_BOOST - [5:3] */
  1438. #define WM8994_SPKOUTL_BOOST_WIDTH 3 /* SPKOUTL_BOOST - [5:3] */
  1439. #define WM8994_SPKOUTR_BOOST_MASK 0x0007 /* SPKOUTR_BOOST - [2:0] */
  1440. #define WM8994_SPKOUTR_BOOST_SHIFT 0 /* SPKOUTR_BOOST - [2:0] */
  1441. #define WM8994_SPKOUTR_BOOST_WIDTH 3 /* SPKOUTR_BOOST - [2:0] */
  1442. /*
  1443. * R38 (0x26) - Speaker Volume Left
  1444. */
  1445. #define WM8994_SPKOUT_VU 0x0100 /* SPKOUT_VU */
  1446. #define WM8994_SPKOUT_VU_MASK 0x0100 /* SPKOUT_VU */
  1447. #define WM8994_SPKOUT_VU_SHIFT 8 /* SPKOUT_VU */
  1448. #define WM8994_SPKOUT_VU_WIDTH 1 /* SPKOUT_VU */
  1449. #define WM8994_SPKOUTL_ZC 0x0080 /* SPKOUTL_ZC */
  1450. #define WM8994_SPKOUTL_ZC_MASK 0x0080 /* SPKOUTL_ZC */
  1451. #define WM8994_SPKOUTL_ZC_SHIFT 7 /* SPKOUTL_ZC */
  1452. #define WM8994_SPKOUTL_ZC_WIDTH 1 /* SPKOUTL_ZC */
  1453. #define WM8994_SPKOUTL_MUTE_N 0x0040 /* SPKOUTL_MUTE_N */
  1454. #define WM8994_SPKOUTL_MUTE_N_MASK 0x0040 /* SPKOUTL_MUTE_N */
  1455. #define WM8994_SPKOUTL_MUTE_N_SHIFT 6 /* SPKOUTL_MUTE_N */
  1456. #define WM8994_SPKOUTL_MUTE_N_WIDTH 1 /* SPKOUTL_MUTE_N */
  1457. #define WM8994_SPKOUTL_VOL_MASK 0x003F /* SPKOUTL_VOL - [5:0] */
  1458. #define WM8994_SPKOUTL_VOL_SHIFT 0 /* SPKOUTL_VOL - [5:0] */
  1459. #define WM8994_SPKOUTL_VOL_WIDTH 6 /* SPKOUTL_VOL - [5:0] */
  1460. /*
  1461. * R39 (0x27) - Speaker Volume Right
  1462. */
  1463. #define WM8994_SPKOUT_VU 0x0100 /* SPKOUT_VU */
  1464. #define WM8994_SPKOUT_VU_MASK 0x0100 /* SPKOUT_VU */
  1465. #define WM8994_SPKOUT_VU_SHIFT 8 /* SPKOUT_VU */
  1466. #define WM8994_SPKOUT_VU_WIDTH 1 /* SPKOUT_VU */
  1467. #define WM8994_SPKOUTR_ZC 0x0080 /* SPKOUTR_ZC */
  1468. #define WM8994_SPKOUTR_ZC_MASK 0x0080 /* SPKOUTR_ZC */
  1469. #define WM8994_SPKOUTR_ZC_SHIFT 7 /* SPKOUTR_ZC */
  1470. #define WM8994_SPKOUTR_ZC_WIDTH 1 /* SPKOUTR_ZC */
  1471. #define WM8994_SPKOUTR_MUTE_N 0x0040 /* SPKOUTR_MUTE_N */
  1472. #define WM8994_SPKOUTR_MUTE_N_MASK 0x0040 /* SPKOUTR_MUTE_N */
  1473. #define WM8994_SPKOUTR_MUTE_N_SHIFT 6 /* SPKOUTR_MUTE_N */
  1474. #define WM8994_SPKOUTR_MUTE_N_WIDTH 1 /* SPKOUTR_MUTE_N */
  1475. #define WM8994_SPKOUTR_VOL_MASK 0x003F /* SPKOUTR_VOL - [5:0] */
  1476. #define WM8994_SPKOUTR_VOL_SHIFT 0 /* SPKOUTR_VOL - [5:0] */
  1477. #define WM8994_SPKOUTR_VOL_WIDTH 6 /* SPKOUTR_VOL - [5:0] */
  1478. /*
  1479. * R40 (0x28) - Input Mixer (2)
  1480. */
  1481. #define WM8994_IN2LP_TO_IN2L 0x0080 /* IN2LP_TO_IN2L */
  1482. #define WM8994_IN2LP_TO_IN2L_MASK 0x0080 /* IN2LP_TO_IN2L */
  1483. #define WM8994_IN2LP_TO_IN2L_SHIFT 7 /* IN2LP_TO_IN2L */
  1484. #define WM8994_IN2LP_TO_IN2L_WIDTH 1 /* IN2LP_TO_IN2L */
  1485. #define WM8994_IN2LN_TO_IN2L 0x0040 /* IN2LN_TO_IN2L */
  1486. #define WM8994_IN2LN_TO_IN2L_MASK 0x0040 /* IN2LN_TO_IN2L */
  1487. #define WM8994_IN2LN_TO_IN2L_SHIFT 6 /* IN2LN_TO_IN2L */
  1488. #define WM8994_IN2LN_TO_IN2L_WIDTH 1 /* IN2LN_TO_IN2L */
  1489. #define WM8994_IN1LP_TO_IN1L 0x0020 /* IN1LP_TO_IN1L */
  1490. #define WM8994_IN1LP_TO_IN1L_MASK 0x0020 /* IN1LP_TO_IN1L */
  1491. #define WM8994_IN1LP_TO_IN1L_SHIFT 5 /* IN1LP_TO_IN1L */
  1492. #define WM8994_IN1LP_TO_IN1L_WIDTH 1 /* IN1LP_TO_IN1L */
  1493. #define WM8994_IN1LN_TO_IN1L 0x0010 /* IN1LN_TO_IN1L */
  1494. #define WM8994_IN1LN_TO_IN1L_MASK 0x0010 /* IN1LN_TO_IN1L */
  1495. #define WM8994_IN1LN_TO_IN1L_SHIFT 4 /* IN1LN_TO_IN1L */
  1496. #define WM8994_IN1LN_TO_IN1L_WIDTH 1 /* IN1LN_TO_IN1L */
  1497. #define WM8994_IN2RP_TO_IN2R 0x0008 /* IN2RP_TO_IN2R */
  1498. #define WM8994_IN2RP_TO_IN2R_MASK 0x0008 /* IN2RP_TO_IN2R */
  1499. #define WM8994_IN2RP_TO_IN2R_SHIFT 3 /* IN2RP_TO_IN2R */
  1500. #define WM8994_IN2RP_TO_IN2R_WIDTH 1 /* IN2RP_TO_IN2R */
  1501. #define WM8994_IN2RN_TO_IN2R 0x0004 /* IN2RN_TO_IN2R */
  1502. #define WM8994_IN2RN_TO_IN2R_MASK 0x0004 /* IN2RN_TO_IN2R */
  1503. #define WM8994_IN2RN_TO_IN2R_SHIFT 2 /* IN2RN_TO_IN2R */
  1504. #define WM8994_IN2RN_TO_IN2R_WIDTH 1 /* IN2RN_TO_IN2R */
  1505. #define WM8994_IN1RP_TO_IN1R 0x0002 /* IN1RP_TO_IN1R */
  1506. #define WM8994_IN1RP_TO_IN1R_MASK 0x0002 /* IN1RP_TO_IN1R */
  1507. #define WM8994_IN1RP_TO_IN1R_SHIFT 1 /* IN1RP_TO_IN1R */
  1508. #define WM8994_IN1RP_TO_IN1R_WIDTH 1 /* IN1RP_TO_IN1R */
  1509. #define WM8994_IN1RN_TO_IN1R 0x0001 /* IN1RN_TO_IN1R */
  1510. #define WM8994_IN1RN_TO_IN1R_MASK 0x0001 /* IN1RN_TO_IN1R */
  1511. #define WM8994_IN1RN_TO_IN1R_SHIFT 0 /* IN1RN_TO_IN1R */
  1512. #define WM8994_IN1RN_TO_IN1R_WIDTH 1 /* IN1RN_TO_IN1R */
  1513. /*
  1514. * R41 (0x29) - Input Mixer (3)
  1515. */
  1516. #define WM8994_IN2L_TO_MIXINL 0x0100 /* IN2L_TO_MIXINL */
  1517. #define WM8994_IN2L_TO_MIXINL_MASK 0x0100 /* IN2L_TO_MIXINL */
  1518. #define WM8994_IN2L_TO_MIXINL_SHIFT 8 /* IN2L_TO_MIXINL */
  1519. #define WM8994_IN2L_TO_MIXINL_WIDTH 1 /* IN2L_TO_MIXINL */
  1520. #define WM8994_IN2L_MIXINL_VOL 0x0080 /* IN2L_MIXINL_VOL */
  1521. #define WM8994_IN2L_MIXINL_VOL_MASK 0x0080 /* IN2L_MIXINL_VOL */
  1522. #define WM8994_IN2L_MIXINL_VOL_SHIFT 7 /* IN2L_MIXINL_VOL */
  1523. #define WM8994_IN2L_MIXINL_VOL_WIDTH 1 /* IN2L_MIXINL_VOL */
  1524. #define WM8994_IN1L_TO_MIXINL 0x0020 /* IN1L_TO_MIXINL */
  1525. #define WM8994_IN1L_TO_MIXINL_MASK 0x0020 /* IN1L_TO_MIXINL */
  1526. #define WM8994_IN1L_TO_MIXINL_SHIFT 5 /* IN1L_TO_MIXINL */
  1527. #define WM8994_IN1L_TO_MIXINL_WIDTH 1 /* IN1L_TO_MIXINL */
  1528. #define WM8994_IN1L_MIXINL_VOL 0x0010 /* IN1L_MIXINL_VOL */
  1529. #define WM8994_IN1L_MIXINL_VOL_MASK 0x0010 /* IN1L_MIXINL_VOL */
  1530. #define WM8994_IN1L_MIXINL_VOL_SHIFT 4 /* IN1L_MIXINL_VOL */
  1531. #define WM8994_IN1L_MIXINL_VOL_WIDTH 1 /* IN1L_MIXINL_VOL */
  1532. #define WM8994_MIXOUTL_MIXINL_VOL_MASK 0x0007 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1533. #define WM8994_MIXOUTL_MIXINL_VOL_SHIFT 0 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1534. #define WM8994_MIXOUTL_MIXINL_VOL_WIDTH 3 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1535. /*
  1536. * R42 (0x2A) - Input Mixer (4)
  1537. */
  1538. #define WM8994_IN2R_TO_MIXINR 0x0100 /* IN2R_TO_MIXINR */
  1539. #define WM8994_IN2R_TO_MIXINR_MASK 0x0100 /* IN2R_TO_MIXINR */
  1540. #define WM8994_IN2R_TO_MIXINR_SHIFT 8 /* IN2R_TO_MIXINR */
  1541. #define WM8994_IN2R_TO_MIXINR_WIDTH 1 /* IN2R_TO_MIXINR */
  1542. #define WM8994_IN2R_MIXINR_VOL 0x0080 /* IN2R_MIXINR_VOL */
  1543. #define WM8994_IN2R_MIXINR_VOL_MASK 0x0080 /* IN2R_MIXINR_VOL */
  1544. #define WM8994_IN2R_MIXINR_VOL_SHIFT 7 /* IN2R_MIXINR_VOL */
  1545. #define WM8994_IN2R_MIXINR_VOL_WIDTH 1 /* IN2R_MIXINR_VOL */
  1546. #define WM8994_IN1R_TO_MIXINR 0x0020 /* IN1R_TO_MIXINR */
  1547. #define WM8994_IN1R_TO_MIXINR_MASK 0x0020 /* IN1R_TO_MIXINR */
  1548. #define WM8994_IN1R_TO_MIXINR_SHIFT 5 /* IN1R_TO_MIXINR */
  1549. #define WM8994_IN1R_TO_MIXINR_WIDTH 1 /* IN1R_TO_MIXINR */
  1550. #define WM8994_IN1R_MIXINR_VOL 0x0010 /* IN1R_MIXINR_VOL */
  1551. #define WM8994_IN1R_MIXINR_VOL_MASK 0x0010 /* IN1R_MIXINR_VOL */
  1552. #define WM8994_IN1R_MIXINR_VOL_SHIFT 4 /* IN1R_MIXINR_VOL */
  1553. #define WM8994_IN1R_MIXINR_VOL_WIDTH 1 /* IN1R_MIXINR_VOL */
  1554. #define WM8994_MIXOUTR_MIXINR_VOL_MASK 0x0007 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1555. #define WM8994_MIXOUTR_MIXINR_VOL_SHIFT 0 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1556. #define WM8994_MIXOUTR_MIXINR_VOL_WIDTH 3 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1557. /*
  1558. * R43 (0x2B) - Input Mixer (5)
  1559. */
  1560. #define WM8994_IN1LP_MIXINL_VOL_MASK 0x01C0 /* IN1LP_MIXINL_VOL - [8:6] */
  1561. #define WM8994_IN1LP_MIXINL_VOL_SHIFT 6 /* IN1LP_MIXINL_VOL - [8:6] */
  1562. #define WM8994_IN1LP_MIXINL_VOL_WIDTH 3 /* IN1LP_MIXINL_VOL - [8:6] */
  1563. #define WM8994_IN2LRP_MIXINL_VOL_MASK 0x0007 /* IN2LRP_MIXINL_VOL - [2:0] */
  1564. #define WM8994_IN2LRP_MIXINL_VOL_SHIFT 0 /* IN2LRP_MIXINL_VOL - [2:0] */
  1565. #define WM8994_IN2LRP_MIXINL_VOL_WIDTH 3 /* IN2LRP_MIXINL_VOL - [2:0] */
  1566. /*
  1567. * R44 (0x2C) - Input Mixer (6)
  1568. */
  1569. #define WM8994_IN1RP_MIXINR_VOL_MASK 0x01C0 /* IN1RP_MIXINR_VOL - [8:6] */
  1570. #define WM8994_IN1RP_MIXINR_VOL_SHIFT 6 /* IN1RP_MIXINR_VOL - [8:6] */
  1571. #define WM8994_IN1RP_MIXINR_VOL_WIDTH 3 /* IN1RP_MIXINR_VOL - [8:6] */
  1572. #define WM8994_IN2LRP_MIXINR_VOL_MASK 0x0007 /* IN2LRP_MIXINR_VOL - [2:0] */
  1573. #define WM8994_IN2LRP_MIXINR_VOL_SHIFT 0 /* IN2LRP_MIXINR_VOL - [2:0] */
  1574. #define WM8994_IN2LRP_MIXINR_VOL_WIDTH 3 /* IN2LRP_MIXINR_VOL - [2:0] */
  1575. /*
  1576. * R45 (0x2D) - Output Mixer (1)
  1577. */
  1578. #define WM8994_DAC1L_TO_HPOUT1L 0x0100 /* DAC1L_TO_HPOUT1L */
  1579. #define WM8994_DAC1L_TO_HPOUT1L_MASK 0x0100 /* DAC1L_TO_HPOUT1L */
  1580. #define WM8994_DAC1L_TO_HPOUT1L_SHIFT 8 /* DAC1L_TO_HPOUT1L */
  1581. #define WM8994_DAC1L_TO_HPOUT1L_WIDTH 1 /* DAC1L_TO_HPOUT1L */
  1582. #define WM8994_MIXINR_TO_MIXOUTL 0x0080 /* MIXINR_TO_MIXOUTL */
  1583. #define WM8994_MIXINR_TO_MIXOUTL_MASK 0x0080 /* MIXINR_TO_MIXOUTL */
  1584. #define WM8994_MIXINR_TO_MIXOUTL_SHIFT 7 /* MIXINR_TO_MIXOUTL */
  1585. #define WM8994_MIXINR_TO_MIXOUTL_WIDTH 1 /* MIXINR_TO_MIXOUTL */
  1586. #define WM8994_MIXINL_TO_MIXOUTL 0x0040 /* MIXINL_TO_MIXOUTL */
  1587. #define WM8994_MIXINL_TO_MIXOUTL_MASK 0x0040 /* MIXINL_TO_MIXOUTL */
  1588. #define WM8994_MIXINL_TO_MIXOUTL_SHIFT 6 /* MIXINL_TO_MIXOUTL */
  1589. #define WM8994_MIXINL_TO_MIXOUTL_WIDTH 1 /* MIXINL_TO_MIXOUTL */
  1590. #define WM8994_IN2RN_TO_MIXOUTL 0x0020 /* IN2RN_TO_MIXOUTL */
  1591. #define WM8994_IN2RN_TO_MIXOUTL_MASK 0x0020 /* IN2RN_TO_MIXOUTL */
  1592. #define WM8994_IN2RN_TO_MIXOUTL_SHIFT 5 /* IN2RN_TO_MIXOUTL */
  1593. #define WM8994_IN2RN_TO_MIXOUTL_WIDTH 1 /* IN2RN_TO_MIXOUTL */
  1594. #define WM8994_IN2LN_TO_MIXOUTL 0x0010 /* IN2LN_TO_MIXOUTL */
  1595. #define WM8994_IN2LN_TO_MIXOUTL_MASK 0x0010 /* IN2LN_TO_MIXOUTL */
  1596. #define WM8994_IN2LN_TO_MIXOUTL_SHIFT 4 /* IN2LN_TO_MIXOUTL */
  1597. #define WM8994_IN2LN_TO_MIXOUTL_WIDTH 1 /* IN2LN_TO_MIXOUTL */
  1598. #define WM8994_IN1R_TO_MIXOUTL 0x0008 /* IN1R_TO_MIXOUTL */
  1599. #define WM8994_IN1R_TO_MIXOUTL_MASK 0x0008 /* IN1R_TO_MIXOUTL */
  1600. #define WM8994_IN1R_TO_MIXOUTL_SHIFT 3 /* IN1R_TO_MIXOUTL */
  1601. #define WM8994_IN1R_TO_MIXOUTL_WIDTH 1 /* IN1R_TO_MIXOUTL */
  1602. #define WM8994_IN1L_TO_MIXOUTL 0x0004 /* IN1L_TO_MIXOUTL */
  1603. #define WM8994_IN1L_TO_MIXOUTL_MASK 0x0004 /* IN1L_TO_MIXOUTL */
  1604. #define WM8994_IN1L_TO_MIXOUTL_SHIFT 2 /* IN1L_TO_MIXOUTL */
  1605. #define WM8994_IN1L_TO_MIXOUTL_WIDTH 1 /* IN1L_TO_MIXOUTL */
  1606. #define WM8994_IN2LP_TO_MIXOUTL 0x0002 /* IN2LP_TO_MIXOUTL */
  1607. #define WM8994_IN2LP_TO_MIXOUTL_MASK 0x0002 /* IN2LP_TO_MIXOUTL */
  1608. #define WM8994_IN2LP_TO_MIXOUTL_SHIFT 1 /* IN2LP_TO_MIXOUTL */
  1609. #define WM8994_IN2LP_TO_MIXOUTL_WIDTH 1 /* IN2LP_TO_MIXOUTL */
  1610. #define WM8994_DAC1L_TO_MIXOUTL 0x0001 /* DAC1L_TO_MIXOUTL */
  1611. #define WM8994_DAC1L_TO_MIXOUTL_MASK 0x0001 /* DAC1L_TO_MIXOUTL */
  1612. #define WM8994_DAC1L_TO_MIXOUTL_SHIFT 0 /* DAC1L_TO_MIXOUTL */
  1613. #define WM8994_DAC1L_TO_MIXOUTL_WIDTH 1 /* DAC1L_TO_MIXOUTL */
  1614. /*
  1615. * R46 (0x2E) - Output Mixer (2)
  1616. */
  1617. #define WM8994_DAC1R_TO_HPOUT1R 0x0100 /* DAC1R_TO_HPOUT1R */
  1618. #define WM8994_DAC1R_TO_HPOUT1R_MASK 0x0100 /* DAC1R_TO_HPOUT1R */
  1619. #define WM8994_DAC1R_TO_HPOUT1R_SHIFT 8 /* DAC1R_TO_HPOUT1R */
  1620. #define WM8994_DAC1R_TO_HPOUT1R_WIDTH 1 /* DAC1R_TO_HPOUT1R */
  1621. #define WM8994_MIXINL_TO_MIXOUTR 0x0080 /* MIXINL_TO_MIXOUTR */
  1622. #define WM8994_MIXINL_TO_MIXOUTR_MASK 0x0080 /* MIXINL_TO_MIXOUTR */
  1623. #define WM8994_MIXINL_TO_MIXOUTR_SHIFT 7 /* MIXINL_TO_MIXOUTR */
  1624. #define WM8994_MIXINL_TO_MIXOUTR_WIDTH 1 /* MIXINL_TO_MIXOUTR */
  1625. #define WM8994_MIXINR_TO_MIXOUTR 0x0040 /* MIXINR_TO_MIXOUTR */
  1626. #define WM8994_MIXINR_TO_MIXOUTR_MASK 0x0040 /* MIXINR_TO_MIXOUTR */
  1627. #define WM8994_MIXINR_TO_MIXOUTR_SHIFT 6 /* MIXINR_TO_MIXOUTR */
  1628. #define WM8994_MIXINR_TO_MIXOUTR_WIDTH 1 /* MIXINR_TO_MIXOUTR */
  1629. #define WM8994_IN2LN_TO_MIXOUTR 0x0020 /* IN2LN_TO_MIXOUTR */
  1630. #define WM8994_IN2LN_TO_MIXOUTR_MASK 0x0020 /* IN2LN_TO_MIXOUTR */
  1631. #define WM8994_IN2LN_TO_MIXOUTR_SHIFT 5 /* IN2LN_TO_MIXOUTR */
  1632. #define WM8994_IN2LN_TO_MIXOUTR_WIDTH 1 /* IN2LN_TO_MIXOUTR */
  1633. #define WM8994_IN2RN_TO_MIXOUTR 0x0010 /* IN2RN_TO_MIXOUTR */
  1634. #define WM8994_IN2RN_TO_MIXOUTR_MASK 0x0010 /* IN2RN_TO_MIXOUTR */
  1635. #define WM8994_IN2RN_TO_MIXOUTR_SHIFT 4 /* IN2RN_TO_MIXOUTR */
  1636. #define WM8994_IN2RN_TO_MIXOUTR_WIDTH 1 /* IN2RN_TO_MIXOUTR */
  1637. #define WM8994_IN1L_TO_MIXOUTR 0x0008 /* IN1L_TO_MIXOUTR */
  1638. #define WM8994_IN1L_TO_MIXOUTR_MASK 0x0008 /* IN1L_TO_MIXOUTR */
  1639. #define WM8994_IN1L_TO_MIXOUTR_SHIFT 3 /* IN1L_TO_MIXOUTR */
  1640. #define WM8994_IN1L_TO_MIXOUTR_WIDTH 1 /* IN1L_TO_MIXOUTR */
  1641. #define WM8994_IN1R_TO_MIXOUTR 0x0004 /* IN1R_TO_MIXOUTR */
  1642. #define WM8994_IN1R_TO_MIXOUTR_MASK 0x0004 /* IN1R_TO_MIXOUTR */
  1643. #define WM8994_IN1R_TO_MIXOUTR_SHIFT 2 /* IN1R_TO_MIXOUTR */
  1644. #define WM8994_IN1R_TO_MIXOUTR_WIDTH 1 /* IN1R_TO_MIXOUTR */
  1645. #define WM8994_IN2RP_TO_MIXOUTR 0x0002 /* IN2RP_TO_MIXOUTR */
  1646. #define WM8994_IN2RP_TO_MIXOUTR_MASK 0x0002 /* IN2RP_TO_MIXOUTR */
  1647. #define WM8994_IN2RP_TO_MIXOUTR_SHIFT 1 /* IN2RP_TO_MIXOUTR */
  1648. #define WM8994_IN2RP_TO_MIXOUTR_WIDTH 1 /* IN2RP_TO_MIXOUTR */
  1649. #define WM8994_DAC1R_TO_MIXOUTR 0x0001 /* DAC1R_TO_MIXOUTR */
  1650. #define WM8994_DAC1R_TO_MIXOUTR_MASK 0x0001 /* DAC1R_TO_MIXOUTR */
  1651. #define WM8994_DAC1R_TO_MIXOUTR_SHIFT 0 /* DAC1R_TO_MIXOUTR */
  1652. #define WM8994_DAC1R_TO_MIXOUTR_WIDTH 1 /* DAC1R_TO_MIXOUTR */
  1653. /*
  1654. * R47 (0x2F) - Output Mixer (3)
  1655. */
  1656. #define WM8994_IN2LP_MIXOUTL_VOL_MASK 0x0E00 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1657. #define WM8994_IN2LP_MIXOUTL_VOL_SHIFT 9 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1658. #define WM8994_IN2LP_MIXOUTL_VOL_WIDTH 3 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1659. #define WM8994_IN2LN_MIXOUTL_VOL_MASK 0x01C0 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1660. #define WM8994_IN2LN_MIXOUTL_VOL_SHIFT 6 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1661. #define WM8994_IN2LN_MIXOUTL_VOL_WIDTH 3 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1662. #define WM8994_IN1R_MIXOUTL_VOL_MASK 0x0038 /* IN1R_MIXOUTL_VOL - [5:3] */
  1663. #define WM8994_IN1R_MIXOUTL_VOL_SHIFT 3 /* IN1R_MIXOUTL_VOL - [5:3] */
  1664. #define WM8994_IN1R_MIXOUTL_VOL_WIDTH 3 /* IN1R_MIXOUTL_VOL - [5:3] */
  1665. #define WM8994_IN1L_MIXOUTL_VOL_MASK 0x0007 /* IN1L_MIXOUTL_VOL - [2:0] */
  1666. #define WM8994_IN1L_MIXOUTL_VOL_SHIFT 0 /* IN1L_MIXOUTL_VOL - [2:0] */
  1667. #define WM8994_IN1L_MIXOUTL_VOL_WIDTH 3 /* IN1L_MIXOUTL_VOL - [2:0] */
  1668. /*
  1669. * R48 (0x30) - Output Mixer (4)
  1670. */
  1671. #define WM8994_IN2RP_MIXOUTR_VOL_MASK 0x0E00 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1672. #define WM8994_IN2RP_MIXOUTR_VOL_SHIFT 9 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1673. #define WM8994_IN2RP_MIXOUTR_VOL_WIDTH 3 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1674. #define WM8994_IN2RN_MIXOUTR_VOL_MASK 0x01C0 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1675. #define WM8994_IN2RN_MIXOUTR_VOL_SHIFT 6 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1676. #define WM8994_IN2RN_MIXOUTR_VOL_WIDTH 3 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1677. #define WM8994_IN1L_MIXOUTR_VOL_MASK 0x0038 /* IN1L_MIXOUTR_VOL - [5:3] */
  1678. #define WM8994_IN1L_MIXOUTR_VOL_SHIFT 3 /* IN1L_MIXOUTR_VOL - [5:3] */
  1679. #define WM8994_IN1L_MIXOUTR_VOL_WIDTH 3 /* IN1L_MIXOUTR_VOL - [5:3] */
  1680. #define WM8994_IN1R_MIXOUTR_VOL_MASK 0x0007 /* IN1R_MIXOUTR_VOL - [2:0] */
  1681. #define WM8994_IN1R_MIXOUTR_VOL_SHIFT 0 /* IN1R_MIXOUTR_VOL - [2:0] */
  1682. #define WM8994_IN1R_MIXOUTR_VOL_WIDTH 3 /* IN1R_MIXOUTR_VOL - [2:0] */
  1683. /*
  1684. * R49 (0x31) - Output Mixer (5)
  1685. */
  1686. #define WM8994_DAC1L_MIXOUTL_VOL_MASK 0x0E00 /* DAC1L_MIXOUTL_VOL - [11:9] */
  1687. #define WM8994_DAC1L_MIXOUTL_VOL_SHIFT 9 /* DAC1L_MIXOUTL_VOL - [11:9] */
  1688. #define WM8994_DAC1L_MIXOUTL_VOL_WIDTH 3 /* DAC1L_MIXOUTL_VOL - [11:9] */
  1689. #define WM8994_IN2RN_MIXOUTL_VOL_MASK 0x01C0 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1690. #define WM8994_IN2RN_MIXOUTL_VOL_SHIFT 6 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1691. #define WM8994_IN2RN_MIXOUTL_VOL_WIDTH 3 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1692. #define WM8994_MIXINR_MIXOUTL_VOL_MASK 0x0038 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1693. #define WM8994_MIXINR_MIXOUTL_VOL_SHIFT 3 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1694. #define WM8994_MIXINR_MIXOUTL_VOL_WIDTH 3 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1695. #define WM8994_MIXINL_MIXOUTL_VOL_MASK 0x0007 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1696. #define WM8994_MIXINL_MIXOUTL_VOL_SHIFT 0 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1697. #define WM8994_MIXINL_MIXOUTL_VOL_WIDTH 3 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1698. /*
  1699. * R50 (0x32) - Output Mixer (6)
  1700. */
  1701. #define WM8994_DAC1R_MIXOUTR_VOL_MASK 0x0E00 /* DAC1R_MIXOUTR_VOL - [11:9] */
  1702. #define WM8994_DAC1R_MIXOUTR_VOL_SHIFT 9 /* DAC1R_MIXOUTR_VOL - [11:9] */
  1703. #define WM8994_DAC1R_MIXOUTR_VOL_WIDTH 3 /* DAC1R_MIXOUTR_VOL - [11:9] */
  1704. #define WM8994_IN2LN_MIXOUTR_VOL_MASK 0x01C0 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1705. #define WM8994_IN2LN_MIXOUTR_VOL_SHIFT 6 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1706. #define WM8994_IN2LN_MIXOUTR_VOL_WIDTH 3 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1707. #define WM8994_MIXINL_MIXOUTR_VOL_MASK 0x0038 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1708. #define WM8994_MIXINL_MIXOUTR_VOL_SHIFT 3 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1709. #define WM8994_MIXINL_MIXOUTR_VOL_WIDTH 3 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1710. #define WM8994_MIXINR_MIXOUTR_VOL_MASK 0x0007 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1711. #define WM8994_MIXINR_MIXOUTR_VOL_SHIFT 0 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1712. #define WM8994_MIXINR_MIXOUTR_VOL_WIDTH 3 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1713. /*
  1714. * R51 (0x33) - HPOUT2 Mixer
  1715. */
  1716. #define WM8994_IN2LRP_TO_HPOUT2 0x0020 /* IN2LRP_TO_HPOUT2 */
  1717. #define WM8994_IN2LRP_TO_HPOUT2_MASK 0x0020 /* IN2LRP_TO_HPOUT2 */
  1718. #define WM8994_IN2LRP_TO_HPOUT2_SHIFT 5 /* IN2LRP_TO_HPOUT2 */
  1719. #define WM8994_IN2LRP_TO_HPOUT2_WIDTH 1 /* IN2LRP_TO_HPOUT2 */
  1720. #define WM8994_MIXOUTLVOL_TO_HPOUT2 0x0010 /* MIXOUTLVOL_TO_HPOUT2 */
  1721. #define WM8994_MIXOUTLVOL_TO_HPOUT2_MASK 0x0010 /* MIXOUTLVOL_TO_HPOUT2 */
  1722. #define WM8994_MIXOUTLVOL_TO_HPOUT2_SHIFT 4 /* MIXOUTLVOL_TO_HPOUT2 */
  1723. #define WM8994_MIXOUTLVOL_TO_HPOUT2_WIDTH 1 /* MIXOUTLVOL_TO_HPOUT2 */
  1724. #define WM8994_MIXOUTRVOL_TO_HPOUT2 0x0008 /* MIXOUTRVOL_TO_HPOUT2 */
  1725. #define WM8994_MIXOUTRVOL_TO_HPOUT2_MASK 0x0008 /* MIXOUTRVOL_TO_HPOUT2 */
  1726. #define WM8994_MIXOUTRVOL_TO_HPOUT2_SHIFT 3 /* MIXOUTRVOL_TO_HPOUT2 */
  1727. #define WM8994_MIXOUTRVOL_TO_HPOUT2_WIDTH 1 /* MIXOUTRVOL_TO_HPOUT2 */
  1728. /*
  1729. * R52 (0x34) - Line Mixer (1)
  1730. */
  1731. #define WM8994_MIXOUTL_TO_LINEOUT1N 0x0040 /* MIXOUTL_TO_LINEOUT1N */
  1732. #define WM8994_MIXOUTL_TO_LINEOUT1N_MASK 0x0040 /* MIXOUTL_TO_LINEOUT1N */
  1733. #define WM8994_MIXOUTL_TO_LINEOUT1N_SHIFT 6 /* MIXOUTL_TO_LINEOUT1N */
  1734. #define WM8994_MIXOUTL_TO_LINEOUT1N_WIDTH 1 /* MIXOUTL_TO_LINEOUT1N */
  1735. #define WM8994_MIXOUTR_TO_LINEOUT1N 0x0020 /* MIXOUTR_TO_LINEOUT1N */
  1736. #define WM8994_MIXOUTR_TO_LINEOUT1N_MASK 0x0020 /* MIXOUTR_TO_LINEOUT1N */
  1737. #define WM8994_MIXOUTR_TO_LINEOUT1N_SHIFT 5 /* MIXOUTR_TO_LINEOUT1N */
  1738. #define WM8994_MIXOUTR_TO_LINEOUT1N_WIDTH 1 /* MIXOUTR_TO_LINEOUT1N */
  1739. #define WM8994_LINEOUT1_MODE 0x0010 /* LINEOUT1_MODE */
  1740. #define WM8994_LINEOUT1_MODE_MASK 0x0010 /* LINEOUT1_MODE */
  1741. #define WM8994_LINEOUT1_MODE_SHIFT 4 /* LINEOUT1_MODE */
  1742. #define WM8994_LINEOUT1_MODE_WIDTH 1 /* LINEOUT1_MODE */
  1743. #define WM8994_IN1R_TO_LINEOUT1P 0x0004 /* IN1R_TO_LINEOUT1P */
  1744. #define WM8994_IN1R_TO_LINEOUT1P_MASK 0x0004 /* IN1R_TO_LINEOUT1P */
  1745. #define WM8994_IN1R_TO_LINEOUT1P_SHIFT 2 /* IN1R_TO_LINEOUT1P */
  1746. #define WM8994_IN1R_TO_LINEOUT1P_WIDTH 1 /* IN1R_TO_LINEOUT1P */
  1747. #define WM8994_IN1L_TO_LINEOUT1P 0x0002 /* IN1L_TO_LINEOUT1P */
  1748. #define WM8994_IN1L_TO_LINEOUT1P_MASK 0x0002 /* IN1L_TO_LINEOUT1P */
  1749. #define WM8994_IN1L_TO_LINEOUT1P_SHIFT 1 /* IN1L_TO_LINEOUT1P */
  1750. #define WM8994_IN1L_TO_LINEOUT1P_WIDTH 1 /* IN1L_TO_LINEOUT1P */
  1751. #define WM8994_MIXOUTL_TO_LINEOUT1P 0x0001 /* MIXOUTL_TO_LINEOUT1P */
  1752. #define WM8994_MIXOUTL_TO_LINEOUT1P_MASK 0x0001 /* MIXOUTL_TO_LINEOUT1P */
  1753. #define WM8994_MIXOUTL_TO_LINEOUT1P_SHIFT 0 /* MIXOUTL_TO_LINEOUT1P */
  1754. #define WM8994_MIXOUTL_TO_LINEOUT1P_WIDTH 1 /* MIXOUTL_TO_LINEOUT1P */
  1755. /*
  1756. * R53 (0x35) - Line Mixer (2)
  1757. */
  1758. #define WM8994_MIXOUTR_TO_LINEOUT2N 0x0040 /* MIXOUTR_TO_LINEOUT2N */
  1759. #define WM8994_MIXOUTR_TO_LINEOUT2N_MASK 0x0040 /* MIXOUTR_TO_LINEOUT2N */
  1760. #define WM8994_MIXOUTR_TO_LINEOUT2N_SHIFT 6 /* MIXOUTR_TO_LINEOUT2N */
  1761. #define WM8994_MIXOUTR_TO_LINEOUT2N_WIDTH 1 /* MIXOUTR_TO_LINEOUT2N */
  1762. #define WM8994_MIXOUTL_TO_LINEOUT2N 0x0020 /* MIXOUTL_TO_LINEOUT2N */
  1763. #define WM8994_MIXOUTL_TO_LINEOUT2N_MASK 0x0020 /* MIXOUTL_TO_LINEOUT2N */
  1764. #define WM8994_MIXOUTL_TO_LINEOUT2N_SHIFT 5 /* MIXOUTL_TO_LINEOUT2N */
  1765. #define WM8994_MIXOUTL_TO_LINEOUT2N_WIDTH 1 /* MIXOUTL_TO_LINEOUT2N */
  1766. #define WM8994_LINEOUT2_MODE 0x0010 /* LINEOUT2_MODE */
  1767. #define WM8994_LINEOUT2_MODE_MASK 0x0010 /* LINEOUT2_MODE */
  1768. #define WM8994_LINEOUT2_MODE_SHIFT 4 /* LINEOUT2_MODE */
  1769. #define WM8994_LINEOUT2_MODE_WIDTH 1 /* LINEOUT2_MODE */
  1770. #define WM8994_IN1L_TO_LINEOUT2P 0x0004 /* IN1L_TO_LINEOUT2P */
  1771. #define WM8994_IN1L_TO_LINEOUT2P_MASK 0x0004 /* IN1L_TO_LINEOUT2P */
  1772. #define WM8994_IN1L_TO_LINEOUT2P_SHIFT 2 /* IN1L_TO_LINEOUT2P */
  1773. #define WM8994_IN1L_TO_LINEOUT2P_WIDTH 1 /* IN1L_TO_LINEOUT2P */
  1774. #define WM8994_IN1R_TO_LINEOUT2P 0x0002 /* IN1R_TO_LINEOUT2P */
  1775. #define WM8994_IN1R_TO_LINEOUT2P_MASK 0x0002 /* IN1R_TO_LINEOUT2P */
  1776. #define WM8994_IN1R_TO_LINEOUT2P_SHIFT 1 /* IN1R_TO_LINEOUT2P */
  1777. #define WM8994_IN1R_TO_LINEOUT2P_WIDTH 1 /* IN1R_TO_LINEOUT2P */
  1778. #define WM8994_MIXOUTR_TO_LINEOUT2P 0x0001 /* MIXOUTR_TO_LINEOUT2P */
  1779. #define WM8994_MIXOUTR_TO_LINEOUT2P_MASK 0x0001 /* MIXOUTR_TO_LINEOUT2P */
  1780. #define WM8994_MIXOUTR_TO_LINEOUT2P_SHIFT 0 /* MIXOUTR_TO_LINEOUT2P */
  1781. #define WM8994_MIXOUTR_TO_LINEOUT2P_WIDTH 1 /* MIXOUTR_TO_LINEOUT2P */
  1782. /*
  1783. * R54 (0x36) - Speaker Mixer
  1784. */
  1785. #define WM8994_DAC2L_TO_SPKMIXL 0x0200 /* DAC2L_TO_SPKMIXL */
  1786. #define WM8994_DAC2L_TO_SPKMIXL_MASK 0x0200 /* DAC2L_TO_SPKMIXL */
  1787. #define WM8994_DAC2L_TO_SPKMIXL_SHIFT 9 /* DAC2L_TO_SPKMIXL */
  1788. #define WM8994_DAC2L_TO_SPKMIXL_WIDTH 1 /* DAC2L_TO_SPKMIXL */
  1789. #define WM8994_DAC2R_TO_SPKMIXR 0x0100 /* DAC2R_TO_SPKMIXR */
  1790. #define WM8994_DAC2R_TO_SPKMIXR_MASK 0x0100 /* DAC2R_TO_SPKMIXR */
  1791. #define WM8994_DAC2R_TO_SPKMIXR_SHIFT 8 /* DAC2R_TO_SPKMIXR */
  1792. #define WM8994_DAC2R_TO_SPKMIXR_WIDTH 1 /* DAC2R_TO_SPKMIXR */
  1793. #define WM8994_MIXINL_TO_SPKMIXL 0x0080 /* MIXINL_TO_SPKMIXL */
  1794. #define WM8994_MIXINL_TO_SPKMIXL_MASK 0x0080 /* MIXINL_TO_SPKMIXL */
  1795. #define WM8994_MIXINL_TO_SPKMIXL_SHIFT 7 /* MIXINL_TO_SPKMIXL */
  1796. #define WM8994_MIXINL_TO_SPKMIXL_WIDTH 1 /* MIXINL_TO_SPKMIXL */
  1797. #define WM8994_MIXINR_TO_SPKMIXR 0x0040 /* MIXINR_TO_SPKMIXR */
  1798. #define WM8994_MIXINR_TO_SPKMIXR_MASK 0x0040 /* MIXINR_TO_SPKMIXR */
  1799. #define WM8994_MIXINR_TO_SPKMIXR_SHIFT 6 /* MIXINR_TO_SPKMIXR */
  1800. #define WM8994_MIXINR_TO_SPKMIXR_WIDTH 1 /* MIXINR_TO_SPKMIXR */
  1801. #define WM8994_IN1LP_TO_SPKMIXL 0x0020 /* IN1LP_TO_SPKMIXL */
  1802. #define WM8994_IN1LP_TO_SPKMIXL_MASK 0x0020 /* IN1LP_TO_SPKMIXL */
  1803. #define WM8994_IN1LP_TO_SPKMIXL_SHIFT 5 /* IN1LP_TO_SPKMIXL */
  1804. #define WM8994_IN1LP_TO_SPKMIXL_WIDTH 1 /* IN1LP_TO_SPKMIXL */
  1805. #define WM8994_IN1RP_TO_SPKMIXR 0x0010 /* IN1RP_TO_SPKMIXR */
  1806. #define WM8994_IN1RP_TO_SPKMIXR_MASK 0x0010 /* IN1RP_TO_SPKMIXR */
  1807. #define WM8994_IN1RP_TO_SPKMIXR_SHIFT 4 /* IN1RP_TO_SPKMIXR */
  1808. #define WM8994_IN1RP_TO_SPKMIXR_WIDTH 1 /* IN1RP_TO_SPKMIXR */
  1809. #define WM8994_MIXOUTL_TO_SPKMIXL 0x0008 /* MIXOUTL_TO_SPKMIXL */
  1810. #define WM8994_MIXOUTL_TO_SPKMIXL_MASK 0x0008 /* MIXOUTL_TO_SPKMIXL */
  1811. #define WM8994_MIXOUTL_TO_SPKMIXL_SHIFT 3 /* MIXOUTL_TO_SPKMIXL */
  1812. #define WM8994_MIXOUTL_TO_SPKMIXL_WIDTH 1 /* MIXOUTL_TO_SPKMIXL */
  1813. #define WM8994_MIXOUTR_TO_SPKMIXR 0x0004 /* MIXOUTR_TO_SPKMIXR */
  1814. #define WM8994_MIXOUTR_TO_SPKMIXR_MASK 0x0004 /* MIXOUTR_TO_SPKMIXR */
  1815. #define WM8994_MIXOUTR_TO_SPKMIXR_SHIFT 2 /* MIXOUTR_TO_SPKMIXR */
  1816. #define WM8994_MIXOUTR_TO_SPKMIXR_WIDTH 1 /* MIXOUTR_TO_SPKMIXR */
  1817. #define WM8994_DAC1L_TO_SPKMIXL 0x0002 /* DAC1L_TO_SPKMIXL */
  1818. #define WM8994_DAC1L_TO_SPKMIXL_MASK 0x0002 /* DAC1L_TO_SPKMIXL */
  1819. #define WM8994_DAC1L_TO_SPKMIXL_SHIFT 1 /* DAC1L_TO_SPKMIXL */
  1820. #define WM8994_DAC1L_TO_SPKMIXL_WIDTH 1 /* DAC1L_TO_SPKMIXL */
  1821. #define WM8994_DAC1R_TO_SPKMIXR 0x0001 /* DAC1R_TO_SPKMIXR */
  1822. #define WM8994_DAC1R_TO_SPKMIXR_MASK 0x0001 /* DAC1R_TO_SPKMIXR */
  1823. #define WM8994_DAC1R_TO_SPKMIXR_SHIFT 0 /* DAC1R_TO_SPKMIXR */
  1824. #define WM8994_DAC1R_TO_SPKMIXR_WIDTH 1 /* DAC1R_TO_SPKMIXR */
  1825. /*
  1826. * R55 (0x37) - Additional Control
  1827. */
  1828. #define WM8994_LINEOUT1_FB 0x0080 /* LINEOUT1_FB */
  1829. #define WM8994_LINEOUT1_FB_MASK 0x0080 /* LINEOUT1_FB */
  1830. #define WM8994_LINEOUT1_FB_SHIFT 7 /* LINEOUT1_FB */
  1831. #define WM8994_LINEOUT1_FB_WIDTH 1 /* LINEOUT1_FB */
  1832. #define WM8994_LINEOUT2_FB 0x0040 /* LINEOUT2_FB */
  1833. #define WM8994_LINEOUT2_FB_MASK 0x0040 /* LINEOUT2_FB */
  1834. #define WM8994_LINEOUT2_FB_SHIFT 6 /* LINEOUT2_FB */
  1835. #define WM8994_LINEOUT2_FB_WIDTH 1 /* LINEOUT2_FB */
  1836. #define WM8994_VROI 0x0001 /* VROI */
  1837. #define WM8994_VROI_MASK 0x0001 /* VROI */
  1838. #define WM8994_VROI_SHIFT 0 /* VROI */
  1839. #define WM8994_VROI_WIDTH 1 /* VROI */
  1840. /*
  1841. * R56 (0x38) - AntiPOP (1)
  1842. */
  1843. #define WM8994_LINEOUT_VMID_BUF_ENA 0x0080 /* LINEOUT_VMID_BUF_ENA */
  1844. #define WM8994_LINEOUT_VMID_BUF_ENA_MASK 0x0080 /* LINEOUT_VMID_BUF_ENA */
  1845. #define WM8994_LINEOUT_VMID_BUF_ENA_SHIFT 7 /* LINEOUT_VMID_BUF_ENA */
  1846. #define WM8994_LINEOUT_VMID_BUF_ENA_WIDTH 1 /* LINEOUT_VMID_BUF_ENA */
  1847. #define WM8994_HPOUT2_IN_ENA 0x0040 /* HPOUT2_IN_ENA */
  1848. #define WM8994_HPOUT2_IN_ENA_MASK 0x0040 /* HPOUT2_IN_ENA */
  1849. #define WM8994_HPOUT2_IN_ENA_SHIFT 6 /* HPOUT2_IN_ENA */
  1850. #define WM8994_HPOUT2_IN_ENA_WIDTH 1 /* HPOUT2_IN_ENA */
  1851. #define WM8994_LINEOUT1_DISCH 0x0020 /* LINEOUT1_DISCH */
  1852. #define WM8994_LINEOUT1_DISCH_MASK 0x0020 /* LINEOUT1_DISCH */
  1853. #define WM8994_LINEOUT1_DISCH_SHIFT 5 /* LINEOUT1_DISCH */
  1854. #define WM8994_LINEOUT1_DISCH_WIDTH 1 /* LINEOUT1_DISCH */
  1855. #define WM8994_LINEOUT2_DISCH 0x0010 /* LINEOUT2_DISCH */
  1856. #define WM8994_LINEOUT2_DISCH_MASK 0x0010 /* LINEOUT2_DISCH */
  1857. #define WM8994_LINEOUT2_DISCH_SHIFT 4 /* LINEOUT2_DISCH */
  1858. #define WM8994_LINEOUT2_DISCH_WIDTH 1 /* LINEOUT2_DISCH */
  1859. /*
  1860. * R57 (0x39) - AntiPOP (2)
  1861. */
  1862. #define WM1811_JACKDET_MODE_MASK 0x0180 /* JACKDET_MODE - [8:7] */
  1863. #define WM1811_JACKDET_MODE_SHIFT 7 /* JACKDET_MODE - [8:7] */
  1864. #define WM1811_JACKDET_MODE_WIDTH 2 /* JACKDET_MODE - [8:7] */
  1865. #define WM8994_MICB2_DISCH 0x0100 /* MICB2_DISCH */
  1866. #define WM8994_MICB2_DISCH_MASK 0x0100 /* MICB2_DISCH */
  1867. #define WM8994_MICB2_DISCH_SHIFT 8 /* MICB2_DISCH */
  1868. #define WM8994_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  1869. #define WM8994_MICB1_DISCH 0x0080 /* MICB1_DISCH */
  1870. #define WM8994_MICB1_DISCH_MASK 0x0080 /* MICB1_DISCH */
  1871. #define WM8994_MICB1_DISCH_SHIFT 7 /* MICB1_DISCH */
  1872. #define WM8994_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  1873. #define WM8994_VMID_RAMP_MASK 0x0060 /* VMID_RAMP - [6:5] */
  1874. #define WM8994_VMID_RAMP_SHIFT 5 /* VMID_RAMP - [6:5] */
  1875. #define WM8994_VMID_RAMP_WIDTH 2 /* VMID_RAMP - [6:5] */
  1876. #define WM8994_VMID_BUF_ENA 0x0008 /* VMID_BUF_ENA */
  1877. #define WM8994_VMID_BUF_ENA_MASK 0x0008 /* VMID_BUF_ENA */
  1878. #define WM8994_VMID_BUF_ENA_SHIFT 3 /* VMID_BUF_ENA */
  1879. #define WM8994_VMID_BUF_ENA_WIDTH 1 /* VMID_BUF_ENA */
  1880. #define WM8994_STARTUP_BIAS_ENA 0x0004 /* STARTUP_BIAS_ENA */
  1881. #define WM8994_STARTUP_BIAS_ENA_MASK 0x0004 /* STARTUP_BIAS_ENA */
  1882. #define WM8994_STARTUP_BIAS_ENA_SHIFT 2 /* STARTUP_BIAS_ENA */
  1883. #define WM8994_STARTUP_BIAS_ENA_WIDTH 1 /* STARTUP_BIAS_ENA */
  1884. #define WM8994_BIAS_SRC 0x0002 /* BIAS_SRC */
  1885. #define WM8994_BIAS_SRC_MASK 0x0002 /* BIAS_SRC */
  1886. #define WM8994_BIAS_SRC_SHIFT 1 /* BIAS_SRC */
  1887. #define WM8994_BIAS_SRC_WIDTH 1 /* BIAS_SRC */
  1888. #define WM8994_VMID_DISCH 0x0001 /* VMID_DISCH */
  1889. #define WM8994_VMID_DISCH_MASK 0x0001 /* VMID_DISCH */
  1890. #define WM8994_VMID_DISCH_SHIFT 0 /* VMID_DISCH */
  1891. #define WM8994_VMID_DISCH_WIDTH 1 /* VMID_DISCH */
  1892. /*
  1893. * R58 (0x3A) - MICBIAS
  1894. */
  1895. #define WM8994_MICD_SCTHR_MASK 0x00C0 /* MICD_SCTHR - [7:6] */
  1896. #define WM8994_MICD_SCTHR_SHIFT 6 /* MICD_SCTHR - [7:6] */
  1897. #define WM8994_MICD_SCTHR_WIDTH 2 /* MICD_SCTHR - [7:6] */
  1898. #define WM8994_MICD_THR_MASK 0x0038 /* MICD_THR - [5:3] */
  1899. #define WM8994_MICD_THR_SHIFT 3 /* MICD_THR - [5:3] */
  1900. #define WM8994_MICD_THR_WIDTH 3 /* MICD_THR - [5:3] */
  1901. #define WM8994_MICD_ENA 0x0004 /* MICD_ENA */
  1902. #define WM8994_MICD_ENA_MASK 0x0004 /* MICD_ENA */
  1903. #define WM8994_MICD_ENA_SHIFT 2 /* MICD_ENA */
  1904. #define WM8994_MICD_ENA_WIDTH 1 /* MICD_ENA */
  1905. #define WM8994_MICB2_LVL 0x0002 /* MICB2_LVL */
  1906. #define WM8994_MICB2_LVL_MASK 0x0002 /* MICB2_LVL */
  1907. #define WM8994_MICB2_LVL_SHIFT 1 /* MICB2_LVL */
  1908. #define WM8994_MICB2_LVL_WIDTH 1 /* MICB2_LVL */
  1909. #define WM8994_MICB1_LVL 0x0001 /* MICB1_LVL */
  1910. #define WM8994_MICB1_LVL_MASK 0x0001 /* MICB1_LVL */
  1911. #define WM8994_MICB1_LVL_SHIFT 0 /* MICB1_LVL */
  1912. #define WM8994_MICB1_LVL_WIDTH 1 /* MICB1_LVL */
  1913. /*
  1914. * R59 (0x3B) - LDO 1
  1915. */
  1916. #define WM8994_LDO1_VSEL_MASK 0x000E /* LDO1_VSEL - [3:1] */
  1917. #define WM8994_LDO1_VSEL_SHIFT 1 /* LDO1_VSEL - [3:1] */
  1918. #define WM8994_LDO1_VSEL_WIDTH 3 /* LDO1_VSEL - [3:1] */
  1919. #define WM8994_LDO1_DISCH 0x0001 /* LDO1_DISCH */
  1920. #define WM8994_LDO1_DISCH_MASK 0x0001 /* LDO1_DISCH */
  1921. #define WM8994_LDO1_DISCH_SHIFT 0 /* LDO1_DISCH */
  1922. #define WM8994_LDO1_DISCH_WIDTH 1 /* LDO1_DISCH */
  1923. /*
  1924. * R60 (0x3C) - LDO 2
  1925. */
  1926. #define WM8994_LDO2_VSEL_MASK 0x0006 /* LDO2_VSEL - [2:1] */
  1927. #define WM8994_LDO2_VSEL_SHIFT 1 /* LDO2_VSEL - [2:1] */
  1928. #define WM8994_LDO2_VSEL_WIDTH 2 /* LDO2_VSEL - [2:1] */
  1929. #define WM8994_LDO2_DISCH 0x0001 /* LDO2_DISCH */
  1930. #define WM8994_LDO2_DISCH_MASK 0x0001 /* LDO2_DISCH */
  1931. #define WM8994_LDO2_DISCH_SHIFT 0 /* LDO2_DISCH */
  1932. #define WM8994_LDO2_DISCH_WIDTH 1 /* LDO2_DISCH */
  1933. /*
  1934. * R61 (0x3D) - MICBIAS1
  1935. */
  1936. #define WM8958_MICB1_RATE 0x0020 /* MICB1_RATE */
  1937. #define WM8958_MICB1_RATE_MASK 0x0020 /* MICB1_RATE */
  1938. #define WM8958_MICB1_RATE_SHIFT 5 /* MICB1_RATE */
  1939. #define WM8958_MICB1_RATE_WIDTH 1 /* MICB1_RATE */
  1940. #define WM8958_MICB1_MODE 0x0010 /* MICB1_MODE */
  1941. #define WM8958_MICB1_MODE_MASK 0x0010 /* MICB1_MODE */
  1942. #define WM8958_MICB1_MODE_SHIFT 4 /* MICB1_MODE */
  1943. #define WM8958_MICB1_MODE_WIDTH 1 /* MICB1_MODE */
  1944. #define WM8958_MICB1_LVL_MASK 0x000E /* MICB1_LVL - [3:1] */
  1945. #define WM8958_MICB1_LVL_SHIFT 1 /* MICB1_LVL - [3:1] */
  1946. #define WM8958_MICB1_LVL_WIDTH 3 /* MICB1_LVL - [3:1] */
  1947. #define WM8958_MICB1_DISCH 0x0001 /* MICB1_DISCH */
  1948. #define WM8958_MICB1_DISCH_MASK 0x0001 /* MICB1_DISCH */
  1949. #define WM8958_MICB1_DISCH_SHIFT 0 /* MICB1_DISCH */
  1950. #define WM8958_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  1951. /*
  1952. * R62 (0x3E) - MICBIAS2
  1953. */
  1954. #define WM8958_MICB2_RATE 0x0020 /* MICB2_RATE */
  1955. #define WM8958_MICB2_RATE_MASK 0x0020 /* MICB2_RATE */
  1956. #define WM8958_MICB2_RATE_SHIFT 5 /* MICB2_RATE */
  1957. #define WM8958_MICB2_RATE_WIDTH 1 /* MICB2_RATE */
  1958. #define WM8958_MICB2_MODE 0x0010 /* MICB2_MODE */
  1959. #define WM8958_MICB2_MODE_MASK 0x0010 /* MICB2_MODE */
  1960. #define WM8958_MICB2_MODE_SHIFT 4 /* MICB2_MODE */
  1961. #define WM8958_MICB2_MODE_WIDTH 1 /* MICB2_MODE */
  1962. #define WM8958_MICB2_LVL_MASK 0x000E /* MICB2_LVL - [3:1] */
  1963. #define WM8958_MICB2_LVL_SHIFT 1 /* MICB2_LVL - [3:1] */
  1964. #define WM8958_MICB2_LVL_WIDTH 3 /* MICB2_LVL - [3:1] */
  1965. #define WM8958_MICB2_DISCH 0x0001 /* MICB2_DISCH */
  1966. #define WM8958_MICB2_DISCH_MASK 0x0001 /* MICB2_DISCH */
  1967. #define WM8958_MICB2_DISCH_SHIFT 0 /* MICB2_DISCH */
  1968. #define WM8958_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  1969. /*
  1970. * R210 (0xD2) - Mic Detect 3
  1971. */
  1972. #define WM8958_MICD_LVL_MASK 0x07FC /* MICD_LVL - [10:2] */
  1973. #define WM8958_MICD_LVL_SHIFT 2 /* MICD_LVL - [10:2] */
  1974. #define WM8958_MICD_LVL_WIDTH 9 /* MICD_LVL - [10:2] */
  1975. #define WM8958_MICD_VALID 0x0002 /* MICD_VALID */
  1976. #define WM8958_MICD_VALID_MASK 0x0002 /* MICD_VALID */
  1977. #define WM8958_MICD_VALID_SHIFT 1 /* MICD_VALID */
  1978. #define WM8958_MICD_VALID_WIDTH 1 /* MICD_VALID */
  1979. #define WM8958_MICD_STS 0x0001 /* MICD_STS */
  1980. #define WM8958_MICD_STS_MASK 0x0001 /* MICD_STS */
  1981. #define WM8958_MICD_STS_SHIFT 0 /* MICD_STS */
  1982. #define WM8958_MICD_STS_WIDTH 1 /* MICD_STS */
  1983. /*
  1984. * R76 (0x4C) - Charge Pump (1)
  1985. */
  1986. #define WM8994_CP_ENA 0x8000 /* CP_ENA */
  1987. #define WM8994_CP_ENA_MASK 0x8000 /* CP_ENA */
  1988. #define WM8994_CP_ENA_SHIFT 15 /* CP_ENA */
  1989. #define WM8994_CP_ENA_WIDTH 1 /* CP_ENA */
  1990. /*
  1991. * R77 (0x4D) - Charge Pump (2)
  1992. */
  1993. #define WM8958_CP_DISCH 0x8000 /* CP_DISCH */
  1994. #define WM8958_CP_DISCH_MASK 0x8000 /* CP_DISCH */
  1995. #define WM8958_CP_DISCH_SHIFT 15 /* CP_DISCH */
  1996. #define WM8958_CP_DISCH_WIDTH 1 /* CP_DISCH */
  1997. /*
  1998. * R81 (0x51) - Class W (1)
  1999. */
  2000. #define WM8994_CP_DYN_SRC_SEL_MASK 0x0300 /* CP_DYN_SRC_SEL - [9:8] */
  2001. #define WM8994_CP_DYN_SRC_SEL_SHIFT 8 /* CP_DYN_SRC_SEL - [9:8] */
  2002. #define WM8994_CP_DYN_SRC_SEL_WIDTH 2 /* CP_DYN_SRC_SEL - [9:8] */
  2003. #define WM8994_CP_DYN_PWR 0x0001 /* CP_DYN_PWR */
  2004. #define WM8994_CP_DYN_PWR_MASK 0x0001 /* CP_DYN_PWR */
  2005. #define WM8994_CP_DYN_PWR_SHIFT 0 /* CP_DYN_PWR */
  2006. #define WM8994_CP_DYN_PWR_WIDTH 1 /* CP_DYN_PWR */
  2007. /*
  2008. * R84 (0x54) - DC Servo (1)
  2009. */
  2010. #define WM8994_DCS_TRIG_SINGLE_1 0x2000 /* DCS_TRIG_SINGLE_1 */
  2011. #define WM8994_DCS_TRIG_SINGLE_1_MASK 0x2000 /* DCS_TRIG_SINGLE_1 */
  2012. #define WM8994_DCS_TRIG_SINGLE_1_SHIFT 13 /* DCS_TRIG_SINGLE_1 */
  2013. #define WM8994_DCS_TRIG_SINGLE_1_WIDTH 1 /* DCS_TRIG_SINGLE_1 */
  2014. #define WM8994_DCS_TRIG_SINGLE_0 0x1000 /* DCS_TRIG_SINGLE_0 */
  2015. #define WM8994_DCS_TRIG_SINGLE_0_MASK 0x1000 /* DCS_TRIG_SINGLE_0 */
  2016. #define WM8994_DCS_TRIG_SINGLE_0_SHIFT 12 /* DCS_TRIG_SINGLE_0 */
  2017. #define WM8994_DCS_TRIG_SINGLE_0_WIDTH 1 /* DCS_TRIG_SINGLE_0 */
  2018. #define WM8994_DCS_TRIG_SERIES_1 0x0200 /* DCS_TRIG_SERIES_1 */
  2019. #define WM8994_DCS_TRIG_SERIES_1_MASK 0x0200 /* DCS_TRIG_SERIES_1 */
  2020. #define WM8994_DCS_TRIG_SERIES_1_SHIFT 9 /* DCS_TRIG_SERIES_1 */
  2021. #define WM8994_DCS_TRIG_SERIES_1_WIDTH 1 /* DCS_TRIG_SERIES_1 */
  2022. #define WM8994_DCS_TRIG_SERIES_0 0x0100 /* DCS_TRIG_SERIES_0 */
  2023. #define WM8994_DCS_TRIG_SERIES_0_MASK 0x0100 /* DCS_TRIG_SERIES_0 */
  2024. #define WM8994_DCS_TRIG_SERIES_0_SHIFT 8 /* DCS_TRIG_SERIES_0 */
  2025. #define WM8994_DCS_TRIG_SERIES_0_WIDTH 1 /* DCS_TRIG_SERIES_0 */
  2026. #define WM8994_DCS_TRIG_STARTUP_1 0x0020 /* DCS_TRIG_STARTUP_1 */
  2027. #define WM8994_DCS_TRIG_STARTUP_1_MASK 0x0020 /* DCS_TRIG_STARTUP_1 */
  2028. #define WM8994_DCS_TRIG_STARTUP_1_SHIFT 5 /* DCS_TRIG_STARTUP_1 */
  2029. #define WM8994_DCS_TRIG_STARTUP_1_WIDTH 1 /* DCS_TRIG_STARTUP_1 */
  2030. #define WM8994_DCS_TRIG_STARTUP_0 0x0010 /* DCS_TRIG_STARTUP_0 */
  2031. #define WM8994_DCS_TRIG_STARTUP_0_MASK 0x0010 /* DCS_TRIG_STARTUP_0 */
  2032. #define WM8994_DCS_TRIG_STARTUP_0_SHIFT 4 /* DCS_TRIG_STARTUP_0 */
  2033. #define WM8994_DCS_TRIG_STARTUP_0_WIDTH 1 /* DCS_TRIG_STARTUP_0 */
  2034. #define WM8994_DCS_TRIG_DAC_WR_1 0x0008 /* DCS_TRIG_DAC_WR_1 */
  2035. #define WM8994_DCS_TRIG_DAC_WR_1_MASK 0x0008 /* DCS_TRIG_DAC_WR_1 */
  2036. #define WM8994_DCS_TRIG_DAC_WR_1_SHIFT 3 /* DCS_TRIG_DAC_WR_1 */
  2037. #define WM8994_DCS_TRIG_DAC_WR_1_WIDTH 1 /* DCS_TRIG_DAC_WR_1 */
  2038. #define WM8994_DCS_TRIG_DAC_WR_0 0x0004 /* DCS_TRIG_DAC_WR_0 */
  2039. #define WM8994_DCS_TRIG_DAC_WR_0_MASK 0x0004 /* DCS_TRIG_DAC_WR_0 */
  2040. #define WM8994_DCS_TRIG_DAC_WR_0_SHIFT 2 /* DCS_TRIG_DAC_WR_0 */
  2041. #define WM8994_DCS_TRIG_DAC_WR_0_WIDTH 1 /* DCS_TRIG_DAC_WR_0 */
  2042. #define WM8994_DCS_ENA_CHAN_1 0x0002 /* DCS_ENA_CHAN_1 */
  2043. #define WM8994_DCS_ENA_CHAN_1_MASK 0x0002 /* DCS_ENA_CHAN_1 */
  2044. #define WM8994_DCS_ENA_CHAN_1_SHIFT 1 /* DCS_ENA_CHAN_1 */
  2045. #define WM8994_DCS_ENA_CHAN_1_WIDTH 1 /* DCS_ENA_CHAN_1 */
  2046. #define WM8994_DCS_ENA_CHAN_0 0x0001 /* DCS_ENA_CHAN_0 */
  2047. #define WM8994_DCS_ENA_CHAN_0_MASK 0x0001 /* DCS_ENA_CHAN_0 */
  2048. #define WM8994_DCS_ENA_CHAN_0_SHIFT 0 /* DCS_ENA_CHAN_0 */
  2049. #define WM8994_DCS_ENA_CHAN_0_WIDTH 1 /* DCS_ENA_CHAN_0 */
  2050. /*
  2051. * R85 (0x55) - DC Servo (2)
  2052. */
  2053. #define WM8994_DCS_SERIES_NO_01_MASK 0x0FE0 /* DCS_SERIES_NO_01 - [11:5] */
  2054. #define WM8994_DCS_SERIES_NO_01_SHIFT 5 /* DCS_SERIES_NO_01 - [11:5] */
  2055. #define WM8994_DCS_SERIES_NO_01_WIDTH 7 /* DCS_SERIES_NO_01 - [11:5] */
  2056. #define WM8994_DCS_TIMER_PERIOD_01_MASK 0x000F /* DCS_TIMER_PERIOD_01 - [3:0] */
  2057. #define WM8994_DCS_TIMER_PERIOD_01_SHIFT 0 /* DCS_TIMER_PERIOD_01 - [3:0] */
  2058. #define WM8994_DCS_TIMER_PERIOD_01_WIDTH 4 /* DCS_TIMER_PERIOD_01 - [3:0] */
  2059. /*
  2060. * R87 (0x57) - DC Servo (4)
  2061. */
  2062. #define WM8994_DCS_DAC_WR_VAL_1_MASK 0xFF00 /* DCS_DAC_WR_VAL_1 - [15:8] */
  2063. #define WM8994_DCS_DAC_WR_VAL_1_SHIFT 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  2064. #define WM8994_DCS_DAC_WR_VAL_1_WIDTH 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  2065. #define WM8994_DCS_DAC_WR_VAL_0_MASK 0x00FF /* DCS_DAC_WR_VAL_0 - [7:0] */
  2066. #define WM8994_DCS_DAC_WR_VAL_0_SHIFT 0 /* DCS_DAC_WR_VAL_0 - [7:0] */
  2067. #define WM8994_DCS_DAC_WR_VAL_0_WIDTH 8 /* DCS_DAC_WR_VAL_0 - [7:0] */
  2068. /*
  2069. * R88 (0x58) - DC Servo Readback
  2070. */
  2071. #define WM8994_DCS_CAL_COMPLETE_MASK 0x0300 /* DCS_CAL_COMPLETE - [9:8] */
  2072. #define WM8994_DCS_CAL_COMPLETE_SHIFT 8 /* DCS_CAL_COMPLETE - [9:8] */
  2073. #define WM8994_DCS_CAL_COMPLETE_WIDTH 2 /* DCS_CAL_COMPLETE - [9:8] */
  2074. #define WM8994_DCS_DAC_WR_COMPLETE_MASK 0x0030 /* DCS_DAC_WR_COMPLETE - [5:4] */
  2075. #define WM8994_DCS_DAC_WR_COMPLETE_SHIFT 4 /* DCS_DAC_WR_COMPLETE - [5:4] */
  2076. #define WM8994_DCS_DAC_WR_COMPLETE_WIDTH 2 /* DCS_DAC_WR_COMPLETE - [5:4] */
  2077. #define WM8994_DCS_STARTUP_COMPLETE_MASK 0x0003 /* DCS_STARTUP_COMPLETE - [1:0] */
  2078. #define WM8994_DCS_STARTUP_COMPLETE_SHIFT 0 /* DCS_STARTUP_COMPLETE - [1:0] */
  2079. #define WM8994_DCS_STARTUP_COMPLETE_WIDTH 2 /* DCS_STARTUP_COMPLETE - [1:0] */
  2080. /*
  2081. * R96 (0x60) - Analogue HP (1)
  2082. */
  2083. #define WM1811_HPOUT1_ATTN 0x0100 /* HPOUT1_ATTN */
  2084. #define WM1811_HPOUT1_ATTN_MASK 0x0100 /* HPOUT1_ATTN */
  2085. #define WM1811_HPOUT1_ATTN_SHIFT 8 /* HPOUT1_ATTN */
  2086. #define WM1811_HPOUT1_ATTN_WIDTH 1 /* HPOUT1_ATTN */
  2087. #define WM8994_HPOUT1L_RMV_SHORT 0x0080 /* HPOUT1L_RMV_SHORT */
  2088. #define WM8994_HPOUT1L_RMV_SHORT_MASK 0x0080 /* HPOUT1L_RMV_SHORT */
  2089. #define WM8994_HPOUT1L_RMV_SHORT_SHIFT 7 /* HPOUT1L_RMV_SHORT */
  2090. #define WM8994_HPOUT1L_RMV_SHORT_WIDTH 1 /* HPOUT1L_RMV_SHORT */
  2091. #define WM8994_HPOUT1L_OUTP 0x0040 /* HPOUT1L_OUTP */
  2092. #define WM8994_HPOUT1L_OUTP_MASK 0x0040 /* HPOUT1L_OUTP */
  2093. #define WM8994_HPOUT1L_OUTP_SHIFT 6 /* HPOUT1L_OUTP */
  2094. #define WM8994_HPOUT1L_OUTP_WIDTH 1 /* HPOUT1L_OUTP */
  2095. #define WM8994_HPOUT1L_DLY 0x0020 /* HPOUT1L_DLY */
  2096. #define WM8994_HPOUT1L_DLY_MASK 0x0020 /* HPOUT1L_DLY */
  2097. #define WM8994_HPOUT1L_DLY_SHIFT 5 /* HPOUT1L_DLY */
  2098. #define WM8994_HPOUT1L_DLY_WIDTH 1 /* HPOUT1L_DLY */
  2099. #define WM8994_HPOUT1R_RMV_SHORT 0x0008 /* HPOUT1R_RMV_SHORT */
  2100. #define WM8994_HPOUT1R_RMV_SHORT_MASK 0x0008 /* HPOUT1R_RMV_SHORT */
  2101. #define WM8994_HPOUT1R_RMV_SHORT_SHIFT 3 /* HPOUT1R_RMV_SHORT */
  2102. #define WM8994_HPOUT1R_RMV_SHORT_WIDTH 1 /* HPOUT1R_RMV_SHORT */
  2103. #define WM8994_HPOUT1R_OUTP 0x0004 /* HPOUT1R_OUTP */
  2104. #define WM8994_HPOUT1R_OUTP_MASK 0x0004 /* HPOUT1R_OUTP */
  2105. #define WM8994_HPOUT1R_OUTP_SHIFT 2 /* HPOUT1R_OUTP */
  2106. #define WM8994_HPOUT1R_OUTP_WIDTH 1 /* HPOUT1R_OUTP */
  2107. #define WM8994_HPOUT1R_DLY 0x0002 /* HPOUT1R_DLY */
  2108. #define WM8994_HPOUT1R_DLY_MASK 0x0002 /* HPOUT1R_DLY */
  2109. #define WM8994_HPOUT1R_DLY_SHIFT 1 /* HPOUT1R_DLY */
  2110. #define WM8994_HPOUT1R_DLY_WIDTH 1 /* HPOUT1R_DLY */
  2111. /*
  2112. * R208 (0xD0) - Mic Detect 1
  2113. */
  2114. #define WM8958_MICD_BIAS_STARTTIME_MASK 0xF000 /* MICD_BIAS_STARTTIME - [15:12] */
  2115. #define WM8958_MICD_BIAS_STARTTIME_SHIFT 12 /* MICD_BIAS_STARTTIME - [15:12] */
  2116. #define WM8958_MICD_BIAS_STARTTIME_WIDTH 4 /* MICD_BIAS_STARTTIME - [15:12] */
  2117. #define WM8958_MICD_RATE_MASK 0x0F00 /* MICD_RATE - [11:8] */
  2118. #define WM8958_MICD_RATE_SHIFT 8 /* MICD_RATE - [11:8] */
  2119. #define WM8958_MICD_RATE_WIDTH 4 /* MICD_RATE - [11:8] */
  2120. #define WM8958_MICD_DBTIME 0x0002 /* MICD_DBTIME */
  2121. #define WM8958_MICD_DBTIME_MASK 0x0002 /* MICD_DBTIME */
  2122. #define WM8958_MICD_DBTIME_SHIFT 1 /* MICD_DBTIME */
  2123. #define WM8958_MICD_DBTIME_WIDTH 1 /* MICD_DBTIME */
  2124. #define WM8958_MICD_ENA 0x0001 /* MICD_ENA */
  2125. #define WM8958_MICD_ENA_MASK 0x0001 /* MICD_ENA */
  2126. #define WM8958_MICD_ENA_SHIFT 0 /* MICD_ENA */
  2127. #define WM8958_MICD_ENA_WIDTH 1 /* MICD_ENA */
  2128. /*
  2129. * R209 (0xD1) - Mic Detect 2
  2130. */
  2131. #define WM8958_MICD_LVL_SEL_MASK 0x00FF /* MICD_LVL_SEL - [7:0] */
  2132. #define WM8958_MICD_LVL_SEL_SHIFT 0 /* MICD_LVL_SEL - [7:0] */
  2133. #define WM8958_MICD_LVL_SEL_WIDTH 8 /* MICD_LVL_SEL - [7:0] */
  2134. /*
  2135. * R210 (0xD2) - Mic Detect 3
  2136. */
  2137. #define WM8958_MICD_LVL_MASK 0x07FC /* MICD_LVL - [10:2] */
  2138. #define WM8958_MICD_LVL_SHIFT 2 /* MICD_LVL - [10:2] */
  2139. #define WM8958_MICD_LVL_WIDTH 9 /* MICD_LVL - [10:2] */
  2140. #define WM8958_MICD_VALID 0x0002 /* MICD_VALID */
  2141. #define WM8958_MICD_VALID_MASK 0x0002 /* MICD_VALID */
  2142. #define WM8958_MICD_VALID_SHIFT 1 /* MICD_VALID */
  2143. #define WM8958_MICD_VALID_WIDTH 1 /* MICD_VALID */
  2144. #define WM8958_MICD_STS 0x0001 /* MICD_STS */
  2145. #define WM8958_MICD_STS_MASK 0x0001 /* MICD_STS */
  2146. #define WM8958_MICD_STS_SHIFT 0 /* MICD_STS */
  2147. #define WM8958_MICD_STS_WIDTH 1 /* MICD_STS */
  2148. /*
  2149. * R256 (0x100) - Chip Revision
  2150. */
  2151. #define WM8994_CUST_ID_MASK 0xFF00 /* CUST_ID - [15:8] */
  2152. #define WM8994_CUST_ID_SHIFT 8 /* CUST_ID - [15:8] */
  2153. #define WM8994_CUST_ID_WIDTH 8 /* CUST_ID - [15:8] */
  2154. #define WM8994_CHIP_REV_MASK 0x000F /* CHIP_REV - [3:0] */
  2155. #define WM8994_CHIP_REV_SHIFT 0 /* CHIP_REV - [3:0] */
  2156. #define WM8994_CHIP_REV_WIDTH 4 /* CHIP_REV - [3:0] */
  2157. /*
  2158. * R257 (0x101) - Control Interface
  2159. */
  2160. #define WM8994_SPI_CONTRD 0x0040 /* SPI_CONTRD */
  2161. #define WM8994_SPI_CONTRD_MASK 0x0040 /* SPI_CONTRD */
  2162. #define WM8994_SPI_CONTRD_SHIFT 6 /* SPI_CONTRD */
  2163. #define WM8994_SPI_CONTRD_WIDTH 1 /* SPI_CONTRD */
  2164. #define WM8994_SPI_4WIRE 0x0020 /* SPI_4WIRE */
  2165. #define WM8994_SPI_4WIRE_MASK 0x0020 /* SPI_4WIRE */
  2166. #define WM8994_SPI_4WIRE_SHIFT 5 /* SPI_4WIRE */
  2167. #define WM8994_SPI_4WIRE_WIDTH 1 /* SPI_4WIRE */
  2168. #define WM8994_SPI_CFG 0x0010 /* SPI_CFG */
  2169. #define WM8994_SPI_CFG_MASK 0x0010 /* SPI_CFG */
  2170. #define WM8994_SPI_CFG_SHIFT 4 /* SPI_CFG */
  2171. #define WM8994_SPI_CFG_WIDTH 1 /* SPI_CFG */
  2172. #define WM8994_AUTO_INC 0x0004 /* AUTO_INC */
  2173. #define WM8994_AUTO_INC_MASK 0x0004 /* AUTO_INC */
  2174. #define WM8994_AUTO_INC_SHIFT 2 /* AUTO_INC */
  2175. #define WM8994_AUTO_INC_WIDTH 1 /* AUTO_INC */
  2176. /*
  2177. * R272 (0x110) - Write Sequencer Ctrl (1)
  2178. */
  2179. #define WM8994_WSEQ_ENA 0x8000 /* WSEQ_ENA */
  2180. #define WM8994_WSEQ_ENA_MASK 0x8000 /* WSEQ_ENA */
  2181. #define WM8994_WSEQ_ENA_SHIFT 15 /* WSEQ_ENA */
  2182. #define WM8994_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */
  2183. #define WM8994_WSEQ_ABORT 0x0200 /* WSEQ_ABORT */
  2184. #define WM8994_WSEQ_ABORT_MASK 0x0200 /* WSEQ_ABORT */
  2185. #define WM8994_WSEQ_ABORT_SHIFT 9 /* WSEQ_ABORT */
  2186. #define WM8994_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */
  2187. #define WM8994_WSEQ_START 0x0100 /* WSEQ_START */
  2188. #define WM8994_WSEQ_START_MASK 0x0100 /* WSEQ_START */
  2189. #define WM8994_WSEQ_START_SHIFT 8 /* WSEQ_START */
  2190. #define WM8994_WSEQ_START_WIDTH 1 /* WSEQ_START */
  2191. #define WM8994_WSEQ_START_INDEX_MASK 0x007F /* WSEQ_START_INDEX - [6:0] */
  2192. #define WM8994_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [6:0] */
  2193. #define WM8994_WSEQ_START_INDEX_WIDTH 7 /* WSEQ_START_INDEX - [6:0] */
  2194. /*
  2195. * R273 (0x111) - Write Sequencer Ctrl (2)
  2196. */
  2197. #define WM8994_WSEQ_BUSY 0x0100 /* WSEQ_BUSY */
  2198. #define WM8994_WSEQ_BUSY_MASK 0x0100 /* WSEQ_BUSY */
  2199. #define WM8994_WSEQ_BUSY_SHIFT 8 /* WSEQ_BUSY */
  2200. #define WM8994_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */
  2201. #define WM8994_WSEQ_CURRENT_INDEX_MASK 0x007F /* WSEQ_CURRENT_INDEX - [6:0] */
  2202. #define WM8994_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [6:0] */
  2203. #define WM8994_WSEQ_CURRENT_INDEX_WIDTH 7 /* WSEQ_CURRENT_INDEX - [6:0] */
  2204. /*
  2205. * R512 (0x200) - AIF1 Clocking (1)
  2206. */
  2207. #define WM8994_AIF1CLK_SRC_MASK 0x0018 /* AIF1CLK_SRC - [4:3] */
  2208. #define WM8994_AIF1CLK_SRC_SHIFT 3 /* AIF1CLK_SRC - [4:3] */
  2209. #define WM8994_AIF1CLK_SRC_WIDTH 2 /* AIF1CLK_SRC - [4:3] */
  2210. #define WM8994_AIF1CLK_INV 0x0004 /* AIF1CLK_INV */
  2211. #define WM8994_AIF1CLK_INV_MASK 0x0004 /* AIF1CLK_INV */
  2212. #define WM8994_AIF1CLK_INV_SHIFT 2 /* AIF1CLK_INV */
  2213. #define WM8994_AIF1CLK_INV_WIDTH 1 /* AIF1CLK_INV */
  2214. #define WM8994_AIF1CLK_DIV 0x0002 /* AIF1CLK_DIV */
  2215. #define WM8994_AIF1CLK_DIV_MASK 0x0002 /* AIF1CLK_DIV */
  2216. #define WM8994_AIF1CLK_DIV_SHIFT 1 /* AIF1CLK_DIV */
  2217. #define WM8994_AIF1CLK_DIV_WIDTH 1 /* AIF1CLK_DIV */
  2218. #define WM8994_AIF1CLK_ENA 0x0001 /* AIF1CLK_ENA */
  2219. #define WM8994_AIF1CLK_ENA_MASK 0x0001 /* AIF1CLK_ENA */
  2220. #define WM8994_AIF1CLK_ENA_SHIFT 0 /* AIF1CLK_ENA */
  2221. #define WM8994_AIF1CLK_ENA_WIDTH 1 /* AIF1CLK_ENA */
  2222. /*
  2223. * R513 (0x201) - AIF1 Clocking (2)
  2224. */
  2225. #define WM8994_AIF1DAC_DIV_MASK 0x0038 /* AIF1DAC_DIV - [5:3] */
  2226. #define WM8994_AIF1DAC_DIV_SHIFT 3 /* AIF1DAC_DIV - [5:3] */
  2227. #define WM8994_AIF1DAC_DIV_WIDTH 3 /* AIF1DAC_DIV - [5:3] */
  2228. #define WM8994_AIF1ADC_DIV_MASK 0x0007 /* AIF1ADC_DIV - [2:0] */
  2229. #define WM8994_AIF1ADC_DIV_SHIFT 0 /* AIF1ADC_DIV - [2:0] */
  2230. #define WM8994_AIF1ADC_DIV_WIDTH 3 /* AIF1ADC_DIV - [2:0] */
  2231. /*
  2232. * R516 (0x204) - AIF2 Clocking (1)
  2233. */
  2234. #define WM8994_AIF2CLK_SRC_MASK 0x0018 /* AIF2CLK_SRC - [4:3] */
  2235. #define WM8994_AIF2CLK_SRC_SHIFT 3 /* AIF2CLK_SRC - [4:3] */
  2236. #define WM8994_AIF2CLK_SRC_WIDTH 2 /* AIF2CLK_SRC - [4:3] */
  2237. #define WM8994_AIF2CLK_INV 0x0004 /* AIF2CLK_INV */
  2238. #define WM8994_AIF2CLK_INV_MASK 0x0004 /* AIF2CLK_INV */
  2239. #define WM8994_AIF2CLK_INV_SHIFT 2 /* AIF2CLK_INV */
  2240. #define WM8994_AIF2CLK_INV_WIDTH 1 /* AIF2CLK_INV */
  2241. #define WM8994_AIF2CLK_DIV 0x0002 /* AIF2CLK_DIV */
  2242. #define WM8994_AIF2CLK_DIV_MASK 0x0002 /* AIF2CLK_DIV */
  2243. #define WM8994_AIF2CLK_DIV_SHIFT 1 /* AIF2CLK_DIV */
  2244. #define WM8994_AIF2CLK_DIV_WIDTH 1 /* AIF2CLK_DIV */
  2245. #define WM8994_AIF2CLK_ENA 0x0001 /* AIF2CLK_ENA */
  2246. #define WM8994_AIF2CLK_ENA_MASK 0x0001 /* AIF2CLK_ENA */
  2247. #define WM8994_AIF2CLK_ENA_SHIFT 0 /* AIF2CLK_ENA */
  2248. #define WM8994_AIF2CLK_ENA_WIDTH 1 /* AIF2CLK_ENA */
  2249. /*
  2250. * R517 (0x205) - AIF2 Clocking (2)
  2251. */
  2252. #define WM8994_AIF2DAC_DIV_MASK 0x0038 /* AIF2DAC_DIV - [5:3] */
  2253. #define WM8994_AIF2DAC_DIV_SHIFT 3 /* AIF2DAC_DIV - [5:3] */
  2254. #define WM8994_AIF2DAC_DIV_WIDTH 3 /* AIF2DAC_DIV - [5:3] */
  2255. #define WM8994_AIF2ADC_DIV_MASK 0x0007 /* AIF2ADC_DIV - [2:0] */
  2256. #define WM8994_AIF2ADC_DIV_SHIFT 0 /* AIF2ADC_DIV - [2:0] */
  2257. #define WM8994_AIF2ADC_DIV_WIDTH 3 /* AIF2ADC_DIV - [2:0] */
  2258. /*
  2259. * R520 (0x208) - Clocking (1)
  2260. */
  2261. #define WM8958_DSP2CLK_ENA 0x4000 /* DSP2CLK_ENA */
  2262. #define WM8958_DSP2CLK_ENA_MASK 0x4000 /* DSP2CLK_ENA */
  2263. #define WM8958_DSP2CLK_ENA_SHIFT 14 /* DSP2CLK_ENA */
  2264. #define WM8958_DSP2CLK_ENA_WIDTH 1 /* DSP2CLK_ENA */
  2265. #define WM8958_DSP2CLK_SRC 0x1000 /* DSP2CLK_SRC */
  2266. #define WM8958_DSP2CLK_SRC_MASK 0x1000 /* DSP2CLK_SRC */
  2267. #define WM8958_DSP2CLK_SRC_SHIFT 12 /* DSP2CLK_SRC */
  2268. #define WM8958_DSP2CLK_SRC_WIDTH 1 /* DSP2CLK_SRC */
  2269. #define WM8994_TOCLK_ENA 0x0010 /* TOCLK_ENA */
  2270. #define WM8994_TOCLK_ENA_MASK 0x0010 /* TOCLK_ENA */
  2271. #define WM8994_TOCLK_ENA_SHIFT 4 /* TOCLK_ENA */
  2272. #define WM8994_TOCLK_ENA_WIDTH 1 /* TOCLK_ENA */
  2273. #define WM8994_AIF1DSPCLK_ENA 0x0008 /* AIF1DSPCLK_ENA */
  2274. #define WM8994_AIF1DSPCLK_ENA_MASK 0x0008 /* AIF1DSPCLK_ENA */
  2275. #define WM8994_AIF1DSPCLK_ENA_SHIFT 3 /* AIF1DSPCLK_ENA */
  2276. #define WM8994_AIF1DSPCLK_ENA_WIDTH 1 /* AIF1DSPCLK_ENA */
  2277. #define WM8994_AIF2DSPCLK_ENA 0x0004 /* AIF2DSPCLK_ENA */
  2278. #define WM8994_AIF2DSPCLK_ENA_MASK 0x0004 /* AIF2DSPCLK_ENA */
  2279. #define WM8994_AIF2DSPCLK_ENA_SHIFT 2 /* AIF2DSPCLK_ENA */
  2280. #define WM8994_AIF2DSPCLK_ENA_WIDTH 1 /* AIF2DSPCLK_ENA */
  2281. #define WM8994_SYSDSPCLK_ENA 0x0002 /* SYSDSPCLK_ENA */
  2282. #define WM8994_SYSDSPCLK_ENA_MASK 0x0002 /* SYSDSPCLK_ENA */
  2283. #define WM8994_SYSDSPCLK_ENA_SHIFT 1 /* SYSDSPCLK_ENA */
  2284. #define WM8994_SYSDSPCLK_ENA_WIDTH 1 /* SYSDSPCLK_ENA */
  2285. #define WM8994_SYSCLK_SRC 0x0001 /* SYSCLK_SRC */
  2286. #define WM8994_SYSCLK_SRC_MASK 0x0001 /* SYSCLK_SRC */
  2287. #define WM8994_SYSCLK_SRC_SHIFT 0 /* SYSCLK_SRC */
  2288. #define WM8994_SYSCLK_SRC_WIDTH 1 /* SYSCLK_SRC */
  2289. /*
  2290. * R521 (0x209) - Clocking (2)
  2291. */
  2292. #define WM8994_TOCLK_DIV_MASK 0x0700 /* TOCLK_DIV - [10:8] */
  2293. #define WM8994_TOCLK_DIV_SHIFT 8 /* TOCLK_DIV - [10:8] */
  2294. #define WM8994_TOCLK_DIV_WIDTH 3 /* TOCLK_DIV - [10:8] */
  2295. #define WM8994_DBCLK_DIV_MASK 0x0070 /* DBCLK_DIV - [6:4] */
  2296. #define WM8994_DBCLK_DIV_SHIFT 4 /* DBCLK_DIV - [6:4] */
  2297. #define WM8994_DBCLK_DIV_WIDTH 3 /* DBCLK_DIV - [6:4] */
  2298. #define WM8994_OPCLK_DIV_MASK 0x0007 /* OPCLK_DIV - [2:0] */
  2299. #define WM8994_OPCLK_DIV_SHIFT 0 /* OPCLK_DIV - [2:0] */
  2300. #define WM8994_OPCLK_DIV_WIDTH 3 /* OPCLK_DIV - [2:0] */
  2301. /*
  2302. * R528 (0x210) - AIF1 Rate
  2303. */
  2304. #define WM8994_AIF1_SR_MASK 0x00F0 /* AIF1_SR - [7:4] */
  2305. #define WM8994_AIF1_SR_SHIFT 4 /* AIF1_SR - [7:4] */
  2306. #define WM8994_AIF1_SR_WIDTH 4 /* AIF1_SR - [7:4] */
  2307. #define WM8994_AIF1CLK_RATE_MASK 0x000F /* AIF1CLK_RATE - [3:0] */
  2308. #define WM8994_AIF1CLK_RATE_SHIFT 0 /* AIF1CLK_RATE - [3:0] */
  2309. #define WM8994_AIF1CLK_RATE_WIDTH 4 /* AIF1CLK_RATE - [3:0] */
  2310. /*
  2311. * R529 (0x211) - AIF2 Rate
  2312. */
  2313. #define WM8994_AIF2_SR_MASK 0x00F0 /* AIF2_SR - [7:4] */
  2314. #define WM8994_AIF2_SR_SHIFT 4 /* AIF2_SR - [7:4] */
  2315. #define WM8994_AIF2_SR_WIDTH 4 /* AIF2_SR - [7:4] */
  2316. #define WM8994_AIF2CLK_RATE_MASK 0x000F /* AIF2CLK_RATE - [3:0] */
  2317. #define WM8994_AIF2CLK_RATE_SHIFT 0 /* AIF2CLK_RATE - [3:0] */
  2318. #define WM8994_AIF2CLK_RATE_WIDTH 4 /* AIF2CLK_RATE - [3:0] */
  2319. /*
  2320. * R530 (0x212) - Rate Status
  2321. */
  2322. #define WM8994_SR_ERROR_MASK 0x000F /* SR_ERROR - [3:0] */
  2323. #define WM8994_SR_ERROR_SHIFT 0 /* SR_ERROR - [3:0] */
  2324. #define WM8994_SR_ERROR_WIDTH 4 /* SR_ERROR - [3:0] */
  2325. /*
  2326. * R544 (0x220) - FLL1 Control (1)
  2327. */
  2328. #define WM8994_FLL1_FRAC 0x0004 /* FLL1_FRAC */
  2329. #define WM8994_FLL1_FRAC_MASK 0x0004 /* FLL1_FRAC */
  2330. #define WM8994_FLL1_FRAC_SHIFT 2 /* FLL1_FRAC */
  2331. #define WM8994_FLL1_FRAC_WIDTH 1 /* FLL1_FRAC */
  2332. #define WM8994_FLL1_OSC_ENA 0x0002 /* FLL1_OSC_ENA */
  2333. #define WM8994_FLL1_OSC_ENA_MASK 0x0002 /* FLL1_OSC_ENA */
  2334. #define WM8994_FLL1_OSC_ENA_SHIFT 1 /* FLL1_OSC_ENA */
  2335. #define WM8994_FLL1_OSC_ENA_WIDTH 1 /* FLL1_OSC_ENA */
  2336. #define WM8994_FLL1_ENA 0x0001 /* FLL1_ENA */
  2337. #define WM8994_FLL1_ENA_MASK 0x0001 /* FLL1_ENA */
  2338. #define WM8994_FLL1_ENA_SHIFT 0 /* FLL1_ENA */
  2339. #define WM8994_FLL1_ENA_WIDTH 1 /* FLL1_ENA */
  2340. /*
  2341. * R545 (0x221) - FLL1 Control (2)
  2342. */
  2343. #define WM8994_FLL1_OUTDIV_MASK 0x3F00 /* FLL1_OUTDIV - [13:8] */
  2344. #define WM8994_FLL1_OUTDIV_SHIFT 8 /* FLL1_OUTDIV - [13:8] */
  2345. #define WM8994_FLL1_OUTDIV_WIDTH 6 /* FLL1_OUTDIV - [13:8] */
  2346. #define WM8994_FLL1_CTRL_RATE_MASK 0x0070 /* FLL1_CTRL_RATE - [6:4] */
  2347. #define WM8994_FLL1_CTRL_RATE_SHIFT 4 /* FLL1_CTRL_RATE - [6:4] */
  2348. #define WM8994_FLL1_CTRL_RATE_WIDTH 3 /* FLL1_CTRL_RATE - [6:4] */
  2349. #define WM8994_FLL1_FRATIO_MASK 0x0007 /* FLL1_FRATIO - [2:0] */
  2350. #define WM8994_FLL1_FRATIO_SHIFT 0 /* FLL1_FRATIO - [2:0] */
  2351. #define WM8994_FLL1_FRATIO_WIDTH 3 /* FLL1_FRATIO - [2:0] */
  2352. /*
  2353. * R546 (0x222) - FLL1 Control (3)
  2354. */
  2355. #define WM8994_FLL1_K_MASK 0xFFFF /* FLL1_K - [15:0] */
  2356. #define WM8994_FLL1_K_SHIFT 0 /* FLL1_K - [15:0] */
  2357. #define WM8994_FLL1_K_WIDTH 16 /* FLL1_K - [15:0] */
  2358. /*
  2359. * R547 (0x223) - FLL1 Control (4)
  2360. */
  2361. #define WM8994_FLL1_N_MASK 0x7FE0 /* FLL1_N - [14:5] */
  2362. #define WM8994_FLL1_N_SHIFT 5 /* FLL1_N - [14:5] */
  2363. #define WM8994_FLL1_N_WIDTH 10 /* FLL1_N - [14:5] */
  2364. #define WM8994_FLL1_LOOP_GAIN_MASK 0x000F /* FLL1_LOOP_GAIN - [3:0] */
  2365. #define WM8994_FLL1_LOOP_GAIN_SHIFT 0 /* FLL1_LOOP_GAIN - [3:0] */
  2366. #define WM8994_FLL1_LOOP_GAIN_WIDTH 4 /* FLL1_LOOP_GAIN - [3:0] */
  2367. /*
  2368. * R548 (0x224) - FLL1 Control (5)
  2369. */
  2370. #define WM8958_FLL1_BYP 0x8000 /* FLL1_BYP */
  2371. #define WM8958_FLL1_BYP_MASK 0x8000 /* FLL1_BYP */
  2372. #define WM8958_FLL1_BYP_SHIFT 15 /* FLL1_BYP */
  2373. #define WM8958_FLL1_BYP_WIDTH 1 /* FLL1_BYP */
  2374. #define WM8994_FLL1_FRC_NCO_VAL_MASK 0x1F80 /* FLL1_FRC_NCO_VAL - [12:7] */
  2375. #define WM8994_FLL1_FRC_NCO_VAL_SHIFT 7 /* FLL1_FRC_NCO_VAL - [12:7] */
  2376. #define WM8994_FLL1_FRC_NCO_VAL_WIDTH 6 /* FLL1_FRC_NCO_VAL - [12:7] */
  2377. #define WM8994_FLL1_FRC_NCO 0x0040 /* FLL1_FRC_NCO */
  2378. #define WM8994_FLL1_FRC_NCO_MASK 0x0040 /* FLL1_FRC_NCO */
  2379. #define WM8994_FLL1_FRC_NCO_SHIFT 6 /* FLL1_FRC_NCO */
  2380. #define WM8994_FLL1_FRC_NCO_WIDTH 1 /* FLL1_FRC_NCO */
  2381. #define WM8994_FLL1_REFCLK_DIV_MASK 0x0018 /* FLL1_REFCLK_DIV - [4:3] */
  2382. #define WM8994_FLL1_REFCLK_DIV_SHIFT 3 /* FLL1_REFCLK_DIV - [4:3] */
  2383. #define WM8994_FLL1_REFCLK_DIV_WIDTH 2 /* FLL1_REFCLK_DIV - [4:3] */
  2384. #define WM8994_FLL1_REFCLK_SRC_MASK 0x0003 /* FLL1_REFCLK_SRC - [1:0] */
  2385. #define WM8994_FLL1_REFCLK_SRC_SHIFT 0 /* FLL1_REFCLK_SRC - [1:0] */
  2386. #define WM8994_FLL1_REFCLK_SRC_WIDTH 2 /* FLL1_REFCLK_SRC - [1:0] */
  2387. /*
  2388. * R550 (0x226) - FLL1 EFS 1
  2389. */
  2390. #define WM8958_FLL1_LAMBDA_MASK 0xFFFF /* FLL1_LAMBDA - [15:0] */
  2391. #define WM8958_FLL1_LAMBDA_SHIFT 0 /* FLL1_LAMBDA - [15:0] */
  2392. #define WM8958_FLL1_LAMBDA_WIDTH 16 /* FLL1_LAMBDA - [15:0] */
  2393. /*
  2394. * R551 (0x227) - FLL1 EFS 2
  2395. */
  2396. #define WM8958_FLL1_LFSR_SEL_MASK 0x0006 /* FLL1_LFSR_SEL - [2:1] */
  2397. #define WM8958_FLL1_LFSR_SEL_SHIFT 1 /* FLL1_LFSR_SEL - [2:1] */
  2398. #define WM8958_FLL1_LFSR_SEL_WIDTH 2 /* FLL1_LFSR_SEL - [2:1] */
  2399. #define WM8958_FLL1_EFS_ENA 0x0001 /* FLL1_EFS_ENA */
  2400. #define WM8958_FLL1_EFS_ENA_MASK 0x0001 /* FLL1_EFS_ENA */
  2401. #define WM8958_FLL1_EFS_ENA_SHIFT 0 /* FLL1_EFS_ENA */
  2402. #define WM8958_FLL1_EFS_ENA_WIDTH 1 /* FLL1_EFS_ENA */
  2403. /*
  2404. * R576 (0x240) - FLL2 Control (1)
  2405. */
  2406. #define WM8994_FLL2_FRAC 0x0004 /* FLL2_FRAC */
  2407. #define WM8994_FLL2_FRAC_MASK 0x0004 /* FLL2_FRAC */
  2408. #define WM8994_FLL2_FRAC_SHIFT 2 /* FLL2_FRAC */
  2409. #define WM8994_FLL2_FRAC_WIDTH 1 /* FLL2_FRAC */
  2410. #define WM8994_FLL2_OSC_ENA 0x0002 /* FLL2_OSC_ENA */
  2411. #define WM8994_FLL2_OSC_ENA_MASK 0x0002 /* FLL2_OSC_ENA */
  2412. #define WM8994_FLL2_OSC_ENA_SHIFT 1 /* FLL2_OSC_ENA */
  2413. #define WM8994_FLL2_OSC_ENA_WIDTH 1 /* FLL2_OSC_ENA */
  2414. #define WM8994_FLL2_ENA 0x0001 /* FLL2_ENA */
  2415. #define WM8994_FLL2_ENA_MASK 0x0001 /* FLL2_ENA */
  2416. #define WM8994_FLL2_ENA_SHIFT 0 /* FLL2_ENA */
  2417. #define WM8994_FLL2_ENA_WIDTH 1 /* FLL2_ENA */
  2418. /*
  2419. * R577 (0x241) - FLL2 Control (2)
  2420. */
  2421. #define WM8994_FLL2_OUTDIV_MASK 0x3F00 /* FLL2_OUTDIV - [13:8] */
  2422. #define WM8994_FLL2_OUTDIV_SHIFT 8 /* FLL2_OUTDIV - [13:8] */
  2423. #define WM8994_FLL2_OUTDIV_WIDTH 6 /* FLL2_OUTDIV - [13:8] */
  2424. #define WM8994_FLL2_CTRL_RATE_MASK 0x0070 /* FLL2_CTRL_RATE - [6:4] */
  2425. #define WM8994_FLL2_CTRL_RATE_SHIFT 4 /* FLL2_CTRL_RATE - [6:4] */
  2426. #define WM8994_FLL2_CTRL_RATE_WIDTH 3 /* FLL2_CTRL_RATE - [6:4] */
  2427. #define WM8994_FLL2_FRATIO_MASK 0x0007 /* FLL2_FRATIO - [2:0] */
  2428. #define WM8994_FLL2_FRATIO_SHIFT 0 /* FLL2_FRATIO - [2:0] */
  2429. #define WM8994_FLL2_FRATIO_WIDTH 3 /* FLL2_FRATIO - [2:0] */
  2430. /*
  2431. * R578 (0x242) - FLL2 Control (3)
  2432. */
  2433. #define WM8994_FLL2_K_MASK 0xFFFF /* FLL2_K - [15:0] */
  2434. #define WM8994_FLL2_K_SHIFT 0 /* FLL2_K - [15:0] */
  2435. #define WM8994_FLL2_K_WIDTH 16 /* FLL2_K - [15:0] */
  2436. /*
  2437. * R579 (0x243) - FLL2 Control (4)
  2438. */
  2439. #define WM8994_FLL2_N_MASK 0x7FE0 /* FLL2_N - [14:5] */
  2440. #define WM8994_FLL2_N_SHIFT 5 /* FLL2_N - [14:5] */
  2441. #define WM8994_FLL2_N_WIDTH 10 /* FLL2_N - [14:5] */
  2442. #define WM8994_FLL2_LOOP_GAIN_MASK 0x000F /* FLL2_LOOP_GAIN - [3:0] */
  2443. #define WM8994_FLL2_LOOP_GAIN_SHIFT 0 /* FLL2_LOOP_GAIN - [3:0] */
  2444. #define WM8994_FLL2_LOOP_GAIN_WIDTH 4 /* FLL2_LOOP_GAIN - [3:0] */
  2445. /*
  2446. * R580 (0x244) - FLL2 Control (5)
  2447. */
  2448. #define WM8958_FLL2_BYP 0x8000 /* FLL2_BYP */
  2449. #define WM8958_FLL2_BYP_MASK 0x8000 /* FLL2_BYP */
  2450. #define WM8958_FLL2_BYP_SHIFT 15 /* FLL2_BYP */
  2451. #define WM8958_FLL2_BYP_WIDTH 1 /* FLL2_BYP */
  2452. #define WM8994_FLL2_FRC_NCO_VAL_MASK 0x1F80 /* FLL2_FRC_NCO_VAL - [12:7] */
  2453. #define WM8994_FLL2_FRC_NCO_VAL_SHIFT 7 /* FLL2_FRC_NCO_VAL - [12:7] */
  2454. #define WM8994_FLL2_FRC_NCO_VAL_WIDTH 6 /* FLL2_FRC_NCO_VAL - [12:7] */
  2455. #define WM8994_FLL2_FRC_NCO 0x0040 /* FLL2_FRC_NCO */
  2456. #define WM8994_FLL2_FRC_NCO_MASK 0x0040 /* FLL2_FRC_NCO */
  2457. #define WM8994_FLL2_FRC_NCO_SHIFT 6 /* FLL2_FRC_NCO */
  2458. #define WM8994_FLL2_FRC_NCO_WIDTH 1 /* FLL2_FRC_NCO */
  2459. #define WM8994_FLL2_REFCLK_DIV_MASK 0x0018 /* FLL2_REFCLK_DIV - [4:3] */
  2460. #define WM8994_FLL2_REFCLK_DIV_SHIFT 3 /* FLL2_REFCLK_DIV - [4:3] */
  2461. #define WM8994_FLL2_REFCLK_DIV_WIDTH 2 /* FLL2_REFCLK_DIV - [4:3] */
  2462. #define WM8994_FLL2_REFCLK_SRC_MASK 0x0003 /* FLL2_REFCLK_SRC - [1:0] */
  2463. #define WM8994_FLL2_REFCLK_SRC_SHIFT 0 /* FLL2_REFCLK_SRC - [1:0] */
  2464. #define WM8994_FLL2_REFCLK_SRC_WIDTH 2 /* FLL2_REFCLK_SRC - [1:0] */
  2465. /*
  2466. * R582 (0x246) - FLL2 EFS 1
  2467. */
  2468. #define WM8958_FLL2_LAMBDA_MASK 0xFFFF /* FLL2_LAMBDA - [15:0] */
  2469. #define WM8958_FLL2_LAMBDA_SHIFT 0 /* FLL2_LAMBDA - [15:0] */
  2470. #define WM8958_FLL2_LAMBDA_WIDTH 16 /* FLL2_LAMBDA - [15:0] */
  2471. /*
  2472. * R583 (0x247) - FLL2 EFS 2
  2473. */
  2474. #define WM8958_FLL2_LFSR_SEL_MASK 0x0006 /* FLL2_LFSR_SEL - [2:1] */
  2475. #define WM8958_FLL2_LFSR_SEL_SHIFT 1 /* FLL2_LFSR_SEL - [2:1] */
  2476. #define WM8958_FLL2_LFSR_SEL_WIDTH 2 /* FLL2_LFSR_SEL - [2:1] */
  2477. #define WM8958_FLL2_EFS_ENA 0x0001 /* FLL2_EFS_ENA */
  2478. #define WM8958_FLL2_EFS_ENA_MASK 0x0001 /* FLL2_EFS_ENA */
  2479. #define WM8958_FLL2_EFS_ENA_SHIFT 0 /* FLL2_EFS_ENA */
  2480. #define WM8958_FLL2_EFS_ENA_WIDTH 1 /* FLL2_EFS_ENA */
  2481. /*
  2482. * R768 (0x300) - AIF1 Control (1)
  2483. */
  2484. #define WM8994_AIF1ADCL_SRC 0x8000 /* AIF1ADCL_SRC */
  2485. #define WM8994_AIF1ADCL_SRC_MASK 0x8000 /* AIF1ADCL_SRC */
  2486. #define WM8994_AIF1ADCL_SRC_SHIFT 15 /* AIF1ADCL_SRC */
  2487. #define WM8994_AIF1ADCL_SRC_WIDTH 1 /* AIF1ADCL_SRC */
  2488. #define WM8994_AIF1ADCR_SRC 0x4000 /* AIF1ADCR_SRC */
  2489. #define WM8994_AIF1ADCR_SRC_MASK 0x4000 /* AIF1ADCR_SRC */
  2490. #define WM8994_AIF1ADCR_SRC_SHIFT 14 /* AIF1ADCR_SRC */
  2491. #define WM8994_AIF1ADCR_SRC_WIDTH 1 /* AIF1ADCR_SRC */
  2492. #define WM8994_AIF1ADC_TDM 0x2000 /* AIF1ADC_TDM */
  2493. #define WM8994_AIF1ADC_TDM_MASK 0x2000 /* AIF1ADC_TDM */
  2494. #define WM8994_AIF1ADC_TDM_SHIFT 13 /* AIF1ADC_TDM */
  2495. #define WM8994_AIF1ADC_TDM_WIDTH 1 /* AIF1ADC_TDM */
  2496. #define WM8994_AIF1_BCLK_INV 0x0100 /* AIF1_BCLK_INV */
  2497. #define WM8994_AIF1_BCLK_INV_MASK 0x0100 /* AIF1_BCLK_INV */
  2498. #define WM8994_AIF1_BCLK_INV_SHIFT 8 /* AIF1_BCLK_INV */
  2499. #define WM8994_AIF1_BCLK_INV_WIDTH 1 /* AIF1_BCLK_INV */
  2500. #define WM8994_AIF1_LRCLK_INV 0x0080 /* AIF1_LRCLK_INV */
  2501. #define WM8994_AIF1_LRCLK_INV_MASK 0x0080 /* AIF1_LRCLK_INV */
  2502. #define WM8994_AIF1_LRCLK_INV_SHIFT 7 /* AIF1_LRCLK_INV */
  2503. #define WM8994_AIF1_LRCLK_INV_WIDTH 1 /* AIF1_LRCLK_INV */
  2504. #define WM8994_AIF1_WL_MASK 0x0060 /* AIF1_WL - [6:5] */
  2505. #define WM8994_AIF1_WL_SHIFT 5 /* AIF1_WL - [6:5] */
  2506. #define WM8994_AIF1_WL_WIDTH 2 /* AIF1_WL - [6:5] */
  2507. #define WM8994_AIF1_FMT_MASK 0x0018 /* AIF1_FMT - [4:3] */
  2508. #define WM8994_AIF1_FMT_SHIFT 3 /* AIF1_FMT - [4:3] */
  2509. #define WM8994_AIF1_FMT_WIDTH 2 /* AIF1_FMT - [4:3] */
  2510. /*
  2511. * R769 (0x301) - AIF1 Control (2)
  2512. */
  2513. #define WM8994_AIF1DACL_SRC 0x8000 /* AIF1DACL_SRC */
  2514. #define WM8994_AIF1DACL_SRC_MASK 0x8000 /* AIF1DACL_SRC */
  2515. #define WM8994_AIF1DACL_SRC_SHIFT 15 /* AIF1DACL_SRC */
  2516. #define WM8994_AIF1DACL_SRC_WIDTH 1 /* AIF1DACL_SRC */
  2517. #define WM8994_AIF1DACR_SRC 0x4000 /* AIF1DACR_SRC */
  2518. #define WM8994_AIF1DACR_SRC_MASK 0x4000 /* AIF1DACR_SRC */
  2519. #define WM8994_AIF1DACR_SRC_SHIFT 14 /* AIF1DACR_SRC */
  2520. #define WM8994_AIF1DACR_SRC_WIDTH 1 /* AIF1DACR_SRC */
  2521. #define WM8994_AIF1DAC_BOOST_MASK 0x0C00 /* AIF1DAC_BOOST - [11:10] */
  2522. #define WM8994_AIF1DAC_BOOST_SHIFT 10 /* AIF1DAC_BOOST - [11:10] */
  2523. #define WM8994_AIF1DAC_BOOST_WIDTH 2 /* AIF1DAC_BOOST - [11:10] */
  2524. #define WM8994_AIF1_MONO 0x0100 /* AIF1_MONO */
  2525. #define WM8994_AIF1_MONO_MASK 0x0100 /* AIF1_MONO */
  2526. #define WM8994_AIF1_MONO_SHIFT 8 /* AIF1_MONO */
  2527. #define WM8994_AIF1_MONO_WIDTH 1 /* AIF1_MONO */
  2528. #define WM8994_AIF1DAC_COMP 0x0010 /* AIF1DAC_COMP */
  2529. #define WM8994_AIF1DAC_COMP_MASK 0x0010 /* AIF1DAC_COMP */
  2530. #define WM8994_AIF1DAC_COMP_SHIFT 4 /* AIF1DAC_COMP */
  2531. #define WM8994_AIF1DAC_COMP_WIDTH 1 /* AIF1DAC_COMP */
  2532. #define WM8994_AIF1DAC_COMPMODE 0x0008 /* AIF1DAC_COMPMODE */
  2533. #define WM8994_AIF1DAC_COMPMODE_MASK 0x0008 /* AIF1DAC_COMPMODE */
  2534. #define WM8994_AIF1DAC_COMPMODE_SHIFT 3 /* AIF1DAC_COMPMODE */
  2535. #define WM8994_AIF1DAC_COMPMODE_WIDTH 1 /* AIF1DAC_COMPMODE */
  2536. #define WM8994_AIF1ADC_COMP 0x0004 /* AIF1ADC_COMP */
  2537. #define WM8994_AIF1ADC_COMP_MASK 0x0004 /* AIF1ADC_COMP */
  2538. #define WM8994_AIF1ADC_COMP_SHIFT 2 /* AIF1ADC_COMP */
  2539. #define WM8994_AIF1ADC_COMP_WIDTH 1 /* AIF1ADC_COMP */
  2540. #define WM8994_AIF1ADC_COMPMODE 0x0002 /* AIF1ADC_COMPMODE */
  2541. #define WM8994_AIF1ADC_COMPMODE_MASK 0x0002 /* AIF1ADC_COMPMODE */
  2542. #define WM8994_AIF1ADC_COMPMODE_SHIFT 1 /* AIF1ADC_COMPMODE */
  2543. #define WM8994_AIF1ADC_COMPMODE_WIDTH 1 /* AIF1ADC_COMPMODE */
  2544. #define WM8994_AIF1_LOOPBACK 0x0001 /* AIF1_LOOPBACK */
  2545. #define WM8994_AIF1_LOOPBACK_MASK 0x0001 /* AIF1_LOOPBACK */
  2546. #define WM8994_AIF1_LOOPBACK_SHIFT 0 /* AIF1_LOOPBACK */
  2547. #define WM8994_AIF1_LOOPBACK_WIDTH 1 /* AIF1_LOOPBACK */
  2548. /*
  2549. * R770 (0x302) - AIF1 Master/Slave
  2550. */
  2551. #define WM8994_AIF1_TRI 0x8000 /* AIF1_TRI */
  2552. #define WM8994_AIF1_TRI_MASK 0x8000 /* AIF1_TRI */
  2553. #define WM8994_AIF1_TRI_SHIFT 15 /* AIF1_TRI */
  2554. #define WM8994_AIF1_TRI_WIDTH 1 /* AIF1_TRI */
  2555. #define WM8994_AIF1_MSTR 0x4000 /* AIF1_MSTR */
  2556. #define WM8994_AIF1_MSTR_MASK 0x4000 /* AIF1_MSTR */
  2557. #define WM8994_AIF1_MSTR_SHIFT 14 /* AIF1_MSTR */
  2558. #define WM8994_AIF1_MSTR_WIDTH 1 /* AIF1_MSTR */
  2559. #define WM8994_AIF1_CLK_FRC 0x2000 /* AIF1_CLK_FRC */
  2560. #define WM8994_AIF1_CLK_FRC_MASK 0x2000 /* AIF1_CLK_FRC */
  2561. #define WM8994_AIF1_CLK_FRC_SHIFT 13 /* AIF1_CLK_FRC */
  2562. #define WM8994_AIF1_CLK_FRC_WIDTH 1 /* AIF1_CLK_FRC */
  2563. #define WM8994_AIF1_LRCLK_FRC 0x1000 /* AIF1_LRCLK_FRC */
  2564. #define WM8994_AIF1_LRCLK_FRC_MASK 0x1000 /* AIF1_LRCLK_FRC */
  2565. #define WM8994_AIF1_LRCLK_FRC_SHIFT 12 /* AIF1_LRCLK_FRC */
  2566. #define WM8994_AIF1_LRCLK_FRC_WIDTH 1 /* AIF1_LRCLK_FRC */
  2567. /*
  2568. * R771 (0x303) - AIF1 BCLK
  2569. */
  2570. #define WM8994_AIF1_BCLK_DIV_MASK 0x01F0 /* AIF1_BCLK_DIV - [8:4] */
  2571. #define WM8994_AIF1_BCLK_DIV_SHIFT 4 /* AIF1_BCLK_DIV - [8:4] */
  2572. #define WM8994_AIF1_BCLK_DIV_WIDTH 5 /* AIF1_BCLK_DIV - [8:4] */
  2573. /*
  2574. * R772 (0x304) - AIF1ADC LRCLK
  2575. */
  2576. #define WM8958_AIF1_LRCLK_INV 0x1000 /* AIF1_LRCLK_INV */
  2577. #define WM8958_AIF1_LRCLK_INV_MASK 0x1000 /* AIF1_LRCLK_INV */
  2578. #define WM8958_AIF1_LRCLK_INV_SHIFT 12 /* AIF1_LRCLK_INV */
  2579. #define WM8958_AIF1_LRCLK_INV_WIDTH 1 /* AIF1_LRCLK_INV */
  2580. #define WM8994_AIF1ADC_LRCLK_DIR 0x0800 /* AIF1ADC_LRCLK_DIR */
  2581. #define WM8994_AIF1ADC_LRCLK_DIR_MASK 0x0800 /* AIF1ADC_LRCLK_DIR */
  2582. #define WM8994_AIF1ADC_LRCLK_DIR_SHIFT 11 /* AIF1ADC_LRCLK_DIR */
  2583. #define WM8994_AIF1ADC_LRCLK_DIR_WIDTH 1 /* AIF1ADC_LRCLK_DIR */
  2584. #define WM8994_AIF1ADC_RATE_MASK 0x07FF /* AIF1ADC_RATE - [10:0] */
  2585. #define WM8994_AIF1ADC_RATE_SHIFT 0 /* AIF1ADC_RATE - [10:0] */
  2586. #define WM8994_AIF1ADC_RATE_WIDTH 11 /* AIF1ADC_RATE - [10:0] */
  2587. /*
  2588. * R773 (0x305) - AIF1DAC LRCLK
  2589. */
  2590. #define WM8958_AIF1_LRCLK_INV 0x1000 /* AIF1_LRCLK_INV */
  2591. #define WM8958_AIF1_LRCLK_INV_MASK 0x1000 /* AIF1_LRCLK_INV */
  2592. #define WM8958_AIF1_LRCLK_INV_SHIFT 12 /* AIF1_LRCLK_INV */
  2593. #define WM8958_AIF1_LRCLK_INV_WIDTH 1 /* AIF1_LRCLK_INV */
  2594. #define WM8994_AIF1DAC_LRCLK_DIR 0x0800 /* AIF1DAC_LRCLK_DIR */
  2595. #define WM8994_AIF1DAC_LRCLK_DIR_MASK 0x0800 /* AIF1DAC_LRCLK_DIR */
  2596. #define WM8994_AIF1DAC_LRCLK_DIR_SHIFT 11 /* AIF1DAC_LRCLK_DIR */
  2597. #define WM8994_AIF1DAC_LRCLK_DIR_WIDTH 1 /* AIF1DAC_LRCLK_DIR */
  2598. #define WM8994_AIF1DAC_RATE_MASK 0x07FF /* AIF1DAC_RATE - [10:0] */
  2599. #define WM8994_AIF1DAC_RATE_SHIFT 0 /* AIF1DAC_RATE - [10:0] */
  2600. #define WM8994_AIF1DAC_RATE_WIDTH 11 /* AIF1DAC_RATE - [10:0] */
  2601. /*
  2602. * R774 (0x306) - AIF1DAC Data
  2603. */
  2604. #define WM8994_AIF1DACL_DAT_INV 0x0002 /* AIF1DACL_DAT_INV */
  2605. #define WM8994_AIF1DACL_DAT_INV_MASK 0x0002 /* AIF1DACL_DAT_INV */
  2606. #define WM8994_AIF1DACL_DAT_INV_SHIFT 1 /* AIF1DACL_DAT_INV */
  2607. #define WM8994_AIF1DACL_DAT_INV_WIDTH 1 /* AIF1DACL_DAT_INV */
  2608. #define WM8994_AIF1DACR_DAT_INV 0x0001 /* AIF1DACR_DAT_INV */
  2609. #define WM8994_AIF1DACR_DAT_INV_MASK 0x0001 /* AIF1DACR_DAT_INV */
  2610. #define WM8994_AIF1DACR_DAT_INV_SHIFT 0 /* AIF1DACR_DAT_INV */
  2611. #define WM8994_AIF1DACR_DAT_INV_WIDTH 1 /* AIF1DACR_DAT_INV */
  2612. /*
  2613. * R775 (0x307) - AIF1ADC Data
  2614. */
  2615. #define WM8994_AIF1ADCL_DAT_INV 0x0002 /* AIF1ADCL_DAT_INV */
  2616. #define WM8994_AIF1ADCL_DAT_INV_MASK 0x0002 /* AIF1ADCL_DAT_INV */
  2617. #define WM8994_AIF1ADCL_DAT_INV_SHIFT 1 /* AIF1ADCL_DAT_INV */
  2618. #define WM8994_AIF1ADCL_DAT_INV_WIDTH 1 /* AIF1ADCL_DAT_INV */
  2619. #define WM8994_AIF1ADCR_DAT_INV 0x0001 /* AIF1ADCR_DAT_INV */
  2620. #define WM8994_AIF1ADCR_DAT_INV_MASK 0x0001 /* AIF1ADCR_DAT_INV */
  2621. #define WM8994_AIF1ADCR_DAT_INV_SHIFT 0 /* AIF1ADCR_DAT_INV */
  2622. #define WM8994_AIF1ADCR_DAT_INV_WIDTH 1 /* AIF1ADCR_DAT_INV */
  2623. /*
  2624. * R784 (0x310) - AIF2 Control (1)
  2625. */
  2626. #define WM8994_AIF2ADCL_SRC 0x8000 /* AIF2ADCL_SRC */
  2627. #define WM8994_AIF2ADCL_SRC_MASK 0x8000 /* AIF2ADCL_SRC */
  2628. #define WM8994_AIF2ADCL_SRC_SHIFT 15 /* AIF2ADCL_SRC */
  2629. #define WM8994_AIF2ADCL_SRC_WIDTH 1 /* AIF2ADCL_SRC */
  2630. #define WM8994_AIF2ADCR_SRC 0x4000 /* AIF2ADCR_SRC */
  2631. #define WM8994_AIF2ADCR_SRC_MASK 0x4000 /* AIF2ADCR_SRC */
  2632. #define WM8994_AIF2ADCR_SRC_SHIFT 14 /* AIF2ADCR_SRC */
  2633. #define WM8994_AIF2ADCR_SRC_WIDTH 1 /* AIF2ADCR_SRC */
  2634. #define WM8994_AIF2ADC_TDM 0x2000 /* AIF2ADC_TDM */
  2635. #define WM8994_AIF2ADC_TDM_MASK 0x2000 /* AIF2ADC_TDM */
  2636. #define WM8994_AIF2ADC_TDM_SHIFT 13 /* AIF2ADC_TDM */
  2637. #define WM8994_AIF2ADC_TDM_WIDTH 1 /* AIF2ADC_TDM */
  2638. #define WM8994_AIF2ADC_TDM_CHAN 0x1000 /* AIF2ADC_TDM_CHAN */
  2639. #define WM8994_AIF2ADC_TDM_CHAN_MASK 0x1000 /* AIF2ADC_TDM_CHAN */
  2640. #define WM8994_AIF2ADC_TDM_CHAN_SHIFT 12 /* AIF2ADC_TDM_CHAN */
  2641. #define WM8994_AIF2ADC_TDM_CHAN_WIDTH 1 /* AIF2ADC_TDM_CHAN */
  2642. #define WM8994_AIF2_BCLK_INV 0x0100 /* AIF2_BCLK_INV */
  2643. #define WM8994_AIF2_BCLK_INV_MASK 0x0100 /* AIF2_BCLK_INV */
  2644. #define WM8994_AIF2_BCLK_INV_SHIFT 8 /* AIF2_BCLK_INV */
  2645. #define WM8994_AIF2_BCLK_INV_WIDTH 1 /* AIF2_BCLK_INV */
  2646. #define WM8994_AIF2_LRCLK_INV 0x0080 /* AIF2_LRCLK_INV */
  2647. #define WM8994_AIF2_LRCLK_INV_MASK 0x0080 /* AIF2_LRCLK_INV */
  2648. #define WM8994_AIF2_LRCLK_INV_SHIFT 7 /* AIF2_LRCLK_INV */
  2649. #define WM8994_AIF2_LRCLK_INV_WIDTH 1 /* AIF2_LRCLK_INV */
  2650. #define WM8994_AIF2_WL_MASK 0x0060 /* AIF2_WL - [6:5] */
  2651. #define WM8994_AIF2_WL_SHIFT 5 /* AIF2_WL - [6:5] */
  2652. #define WM8994_AIF2_WL_WIDTH 2 /* AIF2_WL - [6:5] */
  2653. #define WM8994_AIF2_FMT_MASK 0x0018 /* AIF2_FMT - [4:3] */
  2654. #define WM8994_AIF2_FMT_SHIFT 3 /* AIF2_FMT - [4:3] */
  2655. #define WM8994_AIF2_FMT_WIDTH 2 /* AIF2_FMT - [4:3] */
  2656. /*
  2657. * R785 (0x311) - AIF2 Control (2)
  2658. */
  2659. #define WM8994_AIF2DACL_SRC 0x8000 /* AIF2DACL_SRC */
  2660. #define WM8994_AIF2DACL_SRC_MASK 0x8000 /* AIF2DACL_SRC */
  2661. #define WM8994_AIF2DACL_SRC_SHIFT 15 /* AIF2DACL_SRC */
  2662. #define WM8994_AIF2DACL_SRC_WIDTH 1 /* AIF2DACL_SRC */
  2663. #define WM8994_AIF2DACR_SRC 0x4000 /* AIF2DACR_SRC */
  2664. #define WM8994_AIF2DACR_SRC_MASK 0x4000 /* AIF2DACR_SRC */
  2665. #define WM8994_AIF2DACR_SRC_SHIFT 14 /* AIF2DACR_SRC */
  2666. #define WM8994_AIF2DACR_SRC_WIDTH 1 /* AIF2DACR_SRC */
  2667. #define WM8994_AIF2DAC_TDM 0x2000 /* AIF2DAC_TDM */
  2668. #define WM8994_AIF2DAC_TDM_MASK 0x2000 /* AIF2DAC_TDM */
  2669. #define WM8994_AIF2DAC_TDM_SHIFT 13 /* AIF2DAC_TDM */
  2670. #define WM8994_AIF2DAC_TDM_WIDTH 1 /* AIF2DAC_TDM */
  2671. #define WM8994_AIF2DAC_TDM_CHAN 0x1000 /* AIF2DAC_TDM_CHAN */
  2672. #define WM8994_AIF2DAC_TDM_CHAN_MASK 0x1000 /* AIF2DAC_TDM_CHAN */
  2673. #define WM8994_AIF2DAC_TDM_CHAN_SHIFT 12 /* AIF2DAC_TDM_CHAN */
  2674. #define WM8994_AIF2DAC_TDM_CHAN_WIDTH 1 /* AIF2DAC_TDM_CHAN */
  2675. #define WM8994_AIF2DAC_BOOST_MASK 0x0C00 /* AIF2DAC_BOOST - [11:10] */
  2676. #define WM8994_AIF2DAC_BOOST_SHIFT 10 /* AIF2DAC_BOOST - [11:10] */
  2677. #define WM8994_AIF2DAC_BOOST_WIDTH 2 /* AIF2DAC_BOOST - [11:10] */
  2678. #define WM8994_AIF2_MONO 0x0100 /* AIF2_MONO */
  2679. #define WM8994_AIF2_MONO_MASK 0x0100 /* AIF2_MONO */
  2680. #define WM8994_AIF2_MONO_SHIFT 8 /* AIF2_MONO */
  2681. #define WM8994_AIF2_MONO_WIDTH 1 /* AIF2_MONO */
  2682. #define WM8994_AIF2DAC_COMP 0x0010 /* AIF2DAC_COMP */
  2683. #define WM8994_AIF2DAC_COMP_MASK 0x0010 /* AIF2DAC_COMP */
  2684. #define WM8994_AIF2DAC_COMP_SHIFT 4 /* AIF2DAC_COMP */
  2685. #define WM8994_AIF2DAC_COMP_WIDTH 1 /* AIF2DAC_COMP */
  2686. #define WM8994_AIF2DAC_COMPMODE 0x0008 /* AIF2DAC_COMPMODE */
  2687. #define WM8994_AIF2DAC_COMPMODE_MASK 0x0008 /* AIF2DAC_COMPMODE */
  2688. #define WM8994_AIF2DAC_COMPMODE_SHIFT 3 /* AIF2DAC_COMPMODE */
  2689. #define WM8994_AIF2DAC_COMPMODE_WIDTH 1 /* AIF2DAC_COMPMODE */
  2690. #define WM8994_AIF2ADC_COMP 0x0004 /* AIF2ADC_COMP */
  2691. #define WM8994_AIF2ADC_COMP_MASK 0x0004 /* AIF2ADC_COMP */
  2692. #define WM8994_AIF2ADC_COMP_SHIFT 2 /* AIF2ADC_COMP */
  2693. #define WM8994_AIF2ADC_COMP_WIDTH 1 /* AIF2ADC_COMP */
  2694. #define WM8994_AIF2ADC_COMPMODE 0x0002 /* AIF2ADC_COMPMODE */
  2695. #define WM8994_AIF2ADC_COMPMODE_MASK 0x0002 /* AIF2ADC_COMPMODE */
  2696. #define WM8994_AIF2ADC_COMPMODE_SHIFT 1 /* AIF2ADC_COMPMODE */
  2697. #define WM8994_AIF2ADC_COMPMODE_WIDTH 1 /* AIF2ADC_COMPMODE */
  2698. #define WM8994_AIF2_LOOPBACK 0x0001 /* AIF2_LOOPBACK */
  2699. #define WM8994_AIF2_LOOPBACK_MASK 0x0001 /* AIF2_LOOPBACK */
  2700. #define WM8994_AIF2_LOOPBACK_SHIFT 0 /* AIF2_LOOPBACK */
  2701. #define WM8994_AIF2_LOOPBACK_WIDTH 1 /* AIF2_LOOPBACK */
  2702. /*
  2703. * R786 (0x312) - AIF2 Master/Slave
  2704. */
  2705. #define WM8994_AIF2_TRI 0x8000 /* AIF2_TRI */
  2706. #define WM8994_AIF2_TRI_MASK 0x8000 /* AIF2_TRI */
  2707. #define WM8994_AIF2_TRI_SHIFT 15 /* AIF2_TRI */
  2708. #define WM8994_AIF2_TRI_WIDTH 1 /* AIF2_TRI */
  2709. #define WM8994_AIF2_MSTR 0x4000 /* AIF2_MSTR */
  2710. #define WM8994_AIF2_MSTR_MASK 0x4000 /* AIF2_MSTR */
  2711. #define WM8994_AIF2_MSTR_SHIFT 14 /* AIF2_MSTR */
  2712. #define WM8994_AIF2_MSTR_WIDTH 1 /* AIF2_MSTR */
  2713. #define WM8994_AIF2_CLK_FRC 0x2000 /* AIF2_CLK_FRC */
  2714. #define WM8994_AIF2_CLK_FRC_MASK 0x2000 /* AIF2_CLK_FRC */
  2715. #define WM8994_AIF2_CLK_FRC_SHIFT 13 /* AIF2_CLK_FRC */
  2716. #define WM8994_AIF2_CLK_FRC_WIDTH 1 /* AIF2_CLK_FRC */
  2717. #define WM8994_AIF2_LRCLK_FRC 0x1000 /* AIF2_LRCLK_FRC */
  2718. #define WM8994_AIF2_LRCLK_FRC_MASK 0x1000 /* AIF2_LRCLK_FRC */
  2719. #define WM8994_AIF2_LRCLK_FRC_SHIFT 12 /* AIF2_LRCLK_FRC */
  2720. #define WM8994_AIF2_LRCLK_FRC_WIDTH 1 /* AIF2_LRCLK_FRC */
  2721. /*
  2722. * R787 (0x313) - AIF2 BCLK
  2723. */
  2724. #define WM8994_AIF2_BCLK_DIV_MASK 0x01F0 /* AIF2_BCLK_DIV - [8:4] */
  2725. #define WM8994_AIF2_BCLK_DIV_SHIFT 4 /* AIF2_BCLK_DIV - [8:4] */
  2726. #define WM8994_AIF2_BCLK_DIV_WIDTH 5 /* AIF2_BCLK_DIV - [8:4] */
  2727. /*
  2728. * R788 (0x314) - AIF2ADC LRCLK
  2729. */
  2730. #define WM8994_AIF2ADC_LRCLK_DIR 0x0800 /* AIF2ADC_LRCLK_DIR */
  2731. #define WM8994_AIF2ADC_LRCLK_DIR_MASK 0x0800 /* AIF2ADC_LRCLK_DIR */
  2732. #define WM8994_AIF2ADC_LRCLK_DIR_SHIFT 11 /* AIF2ADC_LRCLK_DIR */
  2733. #define WM8994_AIF2ADC_LRCLK_DIR_WIDTH 1 /* AIF2ADC_LRCLK_DIR */
  2734. #define WM8994_AIF2ADC_RATE_MASK 0x07FF /* AIF2ADC_RATE - [10:0] */
  2735. #define WM8994_AIF2ADC_RATE_SHIFT 0 /* AIF2ADC_RATE - [10:0] */
  2736. #define WM8994_AIF2ADC_RATE_WIDTH 11 /* AIF2ADC_RATE - [10:0] */
  2737. /*
  2738. * R789 (0x315) - AIF2DAC LRCLK
  2739. */
  2740. #define WM8994_AIF2DAC_LRCLK_DIR 0x0800 /* AIF2DAC_LRCLK_DIR */
  2741. #define WM8994_AIF2DAC_LRCLK_DIR_MASK 0x0800 /* AIF2DAC_LRCLK_DIR */
  2742. #define WM8994_AIF2DAC_LRCLK_DIR_SHIFT 11 /* AIF2DAC_LRCLK_DIR */
  2743. #define WM8994_AIF2DAC_LRCLK_DIR_WIDTH 1 /* AIF2DAC_LRCLK_DIR */
  2744. #define WM8994_AIF2DAC_RATE_MASK 0x07FF /* AIF2DAC_RATE - [10:0] */
  2745. #define WM8994_AIF2DAC_RATE_SHIFT 0 /* AIF2DAC_RATE - [10:0] */
  2746. #define WM8994_AIF2DAC_RATE_WIDTH 11 /* AIF2DAC_RATE - [10:0] */
  2747. /*
  2748. * R790 (0x316) - AIF2DAC Data
  2749. */
  2750. #define WM8994_AIF2DACL_DAT_INV 0x0002 /* AIF2DACL_DAT_INV */
  2751. #define WM8994_AIF2DACL_DAT_INV_MASK 0x0002 /* AIF2DACL_DAT_INV */
  2752. #define WM8994_AIF2DACL_DAT_INV_SHIFT 1 /* AIF2DACL_DAT_INV */
  2753. #define WM8994_AIF2DACL_DAT_INV_WIDTH 1 /* AIF2DACL_DAT_INV */
  2754. #define WM8994_AIF2DACR_DAT_INV 0x0001 /* AIF2DACR_DAT_INV */
  2755. #define WM8994_AIF2DACR_DAT_INV_MASK 0x0001 /* AIF2DACR_DAT_INV */
  2756. #define WM8994_AIF2DACR_DAT_INV_SHIFT 0 /* AIF2DACR_DAT_INV */
  2757. #define WM8994_AIF2DACR_DAT_INV_WIDTH 1 /* AIF2DACR_DAT_INV */
  2758. /*
  2759. * R791 (0x317) - AIF2ADC Data
  2760. */
  2761. #define WM8994_AIF2ADCL_DAT_INV 0x0002 /* AIF2ADCL_DAT_INV */
  2762. #define WM8994_AIF2ADCL_DAT_INV_MASK 0x0002 /* AIF2ADCL_DAT_INV */
  2763. #define WM8994_AIF2ADCL_DAT_INV_SHIFT 1 /* AIF2ADCL_DAT_INV */
  2764. #define WM8994_AIF2ADCL_DAT_INV_WIDTH 1 /* AIF2ADCL_DAT_INV */
  2765. #define WM8994_AIF2ADCR_DAT_INV 0x0001 /* AIF2ADCR_DAT_INV */
  2766. #define WM8994_AIF2ADCR_DAT_INV_MASK 0x0001 /* AIF2ADCR_DAT_INV */
  2767. #define WM8994_AIF2ADCR_DAT_INV_SHIFT 0 /* AIF2ADCR_DAT_INV */
  2768. #define WM8994_AIF2ADCR_DAT_INV_WIDTH 1 /* AIF2ADCR_DAT_INV */
  2769. /*
  2770. * R800 (0x320) - AIF3 Control (1)
  2771. */
  2772. #define WM8958_AIF3_LRCLK_INV 0x0080 /* AIF3_LRCLK_INV */
  2773. #define WM8958_AIF3_LRCLK_INV_MASK 0x0080 /* AIF3_LRCLK_INV */
  2774. #define WM8958_AIF3_LRCLK_INV_SHIFT 7 /* AIF3_LRCLK_INV */
  2775. #define WM8958_AIF3_LRCLK_INV_WIDTH 1 /* AIF3_LRCLK_INV */
  2776. #define WM8958_AIF3_WL_MASK 0x0060 /* AIF3_WL - [6:5] */
  2777. #define WM8958_AIF3_WL_SHIFT 5 /* AIF3_WL - [6:5] */
  2778. #define WM8958_AIF3_WL_WIDTH 2 /* AIF3_WL - [6:5] */
  2779. #define WM8958_AIF3_FMT_MASK 0x0018 /* AIF3_FMT - [4:3] */
  2780. #define WM8958_AIF3_FMT_SHIFT 3 /* AIF3_FMT - [4:3] */
  2781. #define WM8958_AIF3_FMT_WIDTH 2 /* AIF3_FMT - [4:3] */
  2782. /*
  2783. * R801 (0x321) - AIF3 Control (2)
  2784. */
  2785. #define WM8958_AIF3DAC_BOOST_MASK 0x0C00 /* AIF3DAC_BOOST - [11:10] */
  2786. #define WM8958_AIF3DAC_BOOST_SHIFT 10 /* AIF3DAC_BOOST - [11:10] */
  2787. #define WM8958_AIF3DAC_BOOST_WIDTH 2 /* AIF3DAC_BOOST - [11:10] */
  2788. #define WM8958_AIF3DAC_COMP 0x0010 /* AIF3DAC_COMP */
  2789. #define WM8958_AIF3DAC_COMP_MASK 0x0010 /* AIF3DAC_COMP */
  2790. #define WM8958_AIF3DAC_COMP_SHIFT 4 /* AIF3DAC_COMP */
  2791. #define WM8958_AIF3DAC_COMP_WIDTH 1 /* AIF3DAC_COMP */
  2792. #define WM8958_AIF3DAC_COMPMODE 0x0008 /* AIF3DAC_COMPMODE */
  2793. #define WM8958_AIF3DAC_COMPMODE_MASK 0x0008 /* AIF3DAC_COMPMODE */
  2794. #define WM8958_AIF3DAC_COMPMODE_SHIFT 3 /* AIF3DAC_COMPMODE */
  2795. #define WM8958_AIF3DAC_COMPMODE_WIDTH 1 /* AIF3DAC_COMPMODE */
  2796. #define WM8958_AIF3ADC_COMP 0x0004 /* AIF3ADC_COMP */
  2797. #define WM8958_AIF3ADC_COMP_MASK 0x0004 /* AIF3ADC_COMP */
  2798. #define WM8958_AIF3ADC_COMP_SHIFT 2 /* AIF3ADC_COMP */
  2799. #define WM8958_AIF3ADC_COMP_WIDTH 1 /* AIF3ADC_COMP */
  2800. #define WM8958_AIF3ADC_COMPMODE 0x0002 /* AIF3ADC_COMPMODE */
  2801. #define WM8958_AIF3ADC_COMPMODE_MASK 0x0002 /* AIF3ADC_COMPMODE */
  2802. #define WM8958_AIF3ADC_COMPMODE_SHIFT 1 /* AIF3ADC_COMPMODE */
  2803. #define WM8958_AIF3ADC_COMPMODE_WIDTH 1 /* AIF3ADC_COMPMODE */
  2804. #define WM8958_AIF3_LOOPBACK 0x0001 /* AIF3_LOOPBACK */
  2805. #define WM8958_AIF3_LOOPBACK_MASK 0x0001 /* AIF3_LOOPBACK */
  2806. #define WM8958_AIF3_LOOPBACK_SHIFT 0 /* AIF3_LOOPBACK */
  2807. #define WM8958_AIF3_LOOPBACK_WIDTH 1 /* AIF3_LOOPBACK */
  2808. /*
  2809. * R802 (0x322) - AIF3DAC Data
  2810. */
  2811. #define WM8958_AIF3DAC_DAT_INV 0x0001 /* AIF3DAC_DAT_INV */
  2812. #define WM8958_AIF3DAC_DAT_INV_MASK 0x0001 /* AIF3DAC_DAT_INV */
  2813. #define WM8958_AIF3DAC_DAT_INV_SHIFT 0 /* AIF3DAC_DAT_INV */
  2814. #define WM8958_AIF3DAC_DAT_INV_WIDTH 1 /* AIF3DAC_DAT_INV */
  2815. /*
  2816. * R803 (0x323) - AIF3ADC Data
  2817. */
  2818. #define WM8958_AIF3ADC_DAT_INV 0x0001 /* AIF3ADC_DAT_INV */
  2819. #define WM8958_AIF3ADC_DAT_INV_MASK 0x0001 /* AIF3ADC_DAT_INV */
  2820. #define WM8958_AIF3ADC_DAT_INV_SHIFT 0 /* AIF3ADC_DAT_INV */
  2821. #define WM8958_AIF3ADC_DAT_INV_WIDTH 1 /* AIF3ADC_DAT_INV */
  2822. /*
  2823. * R1024 (0x400) - AIF1 ADC1 Left Volume
  2824. */
  2825. #define WM8994_AIF1ADC1_VU 0x0100 /* AIF1ADC1_VU */
  2826. #define WM8994_AIF1ADC1_VU_MASK 0x0100 /* AIF1ADC1_VU */
  2827. #define WM8994_AIF1ADC1_VU_SHIFT 8 /* AIF1ADC1_VU */
  2828. #define WM8994_AIF1ADC1_VU_WIDTH 1 /* AIF1ADC1_VU */
  2829. #define WM8994_AIF1ADC1L_VOL_MASK 0x00FF /* AIF1ADC1L_VOL - [7:0] */
  2830. #define WM8994_AIF1ADC1L_VOL_SHIFT 0 /* AIF1ADC1L_VOL - [7:0] */
  2831. #define WM8994_AIF1ADC1L_VOL_WIDTH 8 /* AIF1ADC1L_VOL - [7:0] */
  2832. /*
  2833. * R1025 (0x401) - AIF1 ADC1 Right Volume
  2834. */
  2835. #define WM8994_AIF1ADC1_VU 0x0100 /* AIF1ADC1_VU */
  2836. #define WM8994_AIF1ADC1_VU_MASK 0x0100 /* AIF1ADC1_VU */
  2837. #define WM8994_AIF1ADC1_VU_SHIFT 8 /* AIF1ADC1_VU */
  2838. #define WM8994_AIF1ADC1_VU_WIDTH 1 /* AIF1ADC1_VU */
  2839. #define WM8994_AIF1ADC1R_VOL_MASK 0x00FF /* AIF1ADC1R_VOL - [7:0] */
  2840. #define WM8994_AIF1ADC1R_VOL_SHIFT 0 /* AIF1ADC1R_VOL - [7:0] */
  2841. #define WM8994_AIF1ADC1R_VOL_WIDTH 8 /* AIF1ADC1R_VOL - [7:0] */
  2842. /*
  2843. * R1026 (0x402) - AIF1 DAC1 Left Volume
  2844. */
  2845. #define WM8994_AIF1DAC1_VU 0x0100 /* AIF1DAC1_VU */
  2846. #define WM8994_AIF1DAC1_VU_MASK 0x0100 /* AIF1DAC1_VU */
  2847. #define WM8994_AIF1DAC1_VU_SHIFT 8 /* AIF1DAC1_VU */
  2848. #define WM8994_AIF1DAC1_VU_WIDTH 1 /* AIF1DAC1_VU */
  2849. #define WM8994_AIF1DAC1L_VOL_MASK 0x00FF /* AIF1DAC1L_VOL - [7:0] */
  2850. #define WM8994_AIF1DAC1L_VOL_SHIFT 0 /* AIF1DAC1L_VOL - [7:0] */
  2851. #define WM8994_AIF1DAC1L_VOL_WIDTH 8 /* AIF1DAC1L_VOL - [7:0] */
  2852. /*
  2853. * R1027 (0x403) - AIF1 DAC1 Right Volume
  2854. */
  2855. #define WM8994_AIF1DAC1_VU 0x0100 /* AIF1DAC1_VU */
  2856. #define WM8994_AIF1DAC1_VU_MASK 0x0100 /* AIF1DAC1_VU */
  2857. #define WM8994_AIF1DAC1_VU_SHIFT 8 /* AIF1DAC1_VU */
  2858. #define WM8994_AIF1DAC1_VU_WIDTH 1 /* AIF1DAC1_VU */
  2859. #define WM8994_AIF1DAC1R_VOL_MASK 0x00FF /* AIF1DAC1R_VOL - [7:0] */
  2860. #define WM8994_AIF1DAC1R_VOL_SHIFT 0 /* AIF1DAC1R_VOL - [7:0] */
  2861. #define WM8994_AIF1DAC1R_VOL_WIDTH 8 /* AIF1DAC1R_VOL - [7:0] */
  2862. /*
  2863. * R1028 (0x404) - AIF1 ADC2 Left Volume
  2864. */
  2865. #define WM8994_AIF1ADC2_VU 0x0100 /* AIF1ADC2_VU */
  2866. #define WM8994_AIF1ADC2_VU_MASK 0x0100 /* AIF1ADC2_VU */
  2867. #define WM8994_AIF1ADC2_VU_SHIFT 8 /* AIF1ADC2_VU */
  2868. #define WM8994_AIF1ADC2_VU_WIDTH 1 /* AIF1ADC2_VU */
  2869. #define WM8994_AIF1ADC2L_VOL_MASK 0x00FF /* AIF1ADC2L_VOL - [7:0] */
  2870. #define WM8994_AIF1ADC2L_VOL_SHIFT 0 /* AIF1ADC2L_VOL - [7:0] */
  2871. #define WM8994_AIF1ADC2L_VOL_WIDTH 8 /* AIF1ADC2L_VOL - [7:0] */
  2872. /*
  2873. * R1029 (0x405) - AIF1 ADC2 Right Volume
  2874. */
  2875. #define WM8994_AIF1ADC2_VU 0x0100 /* AIF1ADC2_VU */
  2876. #define WM8994_AIF1ADC2_VU_MASK 0x0100 /* AIF1ADC2_VU */
  2877. #define WM8994_AIF1ADC2_VU_SHIFT 8 /* AIF1ADC2_VU */
  2878. #define WM8994_AIF1ADC2_VU_WIDTH 1 /* AIF1ADC2_VU */
  2879. #define WM8994_AIF1ADC2R_VOL_MASK 0x00FF /* AIF1ADC2R_VOL - [7:0] */
  2880. #define WM8994_AIF1ADC2R_VOL_SHIFT 0 /* AIF1ADC2R_VOL - [7:0] */
  2881. #define WM8994_AIF1ADC2R_VOL_WIDTH 8 /* AIF1ADC2R_VOL - [7:0] */
  2882. /*
  2883. * R1030 (0x406) - AIF1 DAC2 Left Volume
  2884. */
  2885. #define WM8994_AIF1DAC2_VU 0x0100 /* AIF1DAC2_VU */
  2886. #define WM8994_AIF1DAC2_VU_MASK 0x0100 /* AIF1DAC2_VU */
  2887. #define WM8994_AIF1DAC2_VU_SHIFT 8 /* AIF1DAC2_VU */
  2888. #define WM8994_AIF1DAC2_VU_WIDTH 1 /* AIF1DAC2_VU */
  2889. #define WM8994_AIF1DAC2L_VOL_MASK 0x00FF /* AIF1DAC2L_VOL - [7:0] */
  2890. #define WM8994_AIF1DAC2L_VOL_SHIFT 0 /* AIF1DAC2L_VOL - [7:0] */
  2891. #define WM8994_AIF1DAC2L_VOL_WIDTH 8 /* AIF1DAC2L_VOL - [7:0] */
  2892. /*
  2893. * R1031 (0x407) - AIF1 DAC2 Right Volume
  2894. */
  2895. #define WM8994_AIF1DAC2_VU 0x0100 /* AIF1DAC2_VU */
  2896. #define WM8994_AIF1DAC2_VU_MASK 0x0100 /* AIF1DAC2_VU */
  2897. #define WM8994_AIF1DAC2_VU_SHIFT 8 /* AIF1DAC2_VU */
  2898. #define WM8994_AIF1DAC2_VU_WIDTH 1 /* AIF1DAC2_VU */
  2899. #define WM8994_AIF1DAC2R_VOL_MASK 0x00FF /* AIF1DAC2R_VOL - [7:0] */
  2900. #define WM8994_AIF1DAC2R_VOL_SHIFT 0 /* AIF1DAC2R_VOL - [7:0] */
  2901. #define WM8994_AIF1DAC2R_VOL_WIDTH 8 /* AIF1DAC2R_VOL - [7:0] */
  2902. /*
  2903. * R1040 (0x410) - AIF1 ADC1 Filters
  2904. */
  2905. #define WM8994_AIF1ADC_4FS 0x8000 /* AIF1ADC_4FS */
  2906. #define WM8994_AIF1ADC_4FS_MASK 0x8000 /* AIF1ADC_4FS */
  2907. #define WM8994_AIF1ADC_4FS_SHIFT 15 /* AIF1ADC_4FS */
  2908. #define WM8994_AIF1ADC_4FS_WIDTH 1 /* AIF1ADC_4FS */
  2909. #define WM8994_AIF1ADC1_HPF_CUT_MASK 0x6000 /* AIF1ADC1_HPF_CUT - [14:13] */
  2910. #define WM8994_AIF1ADC1_HPF_CUT_SHIFT 13 /* AIF1ADC1_HPF_CUT - [14:13] */
  2911. #define WM8994_AIF1ADC1_HPF_CUT_WIDTH 2 /* AIF1ADC1_HPF_CUT - [14:13] */
  2912. #define WM8994_AIF1ADC1L_HPF 0x1000 /* AIF1ADC1L_HPF */
  2913. #define WM8994_AIF1ADC1L_HPF_MASK 0x1000 /* AIF1ADC1L_HPF */
  2914. #define WM8994_AIF1ADC1L_HPF_SHIFT 12 /* AIF1ADC1L_HPF */
  2915. #define WM8994_AIF1ADC1L_HPF_WIDTH 1 /* AIF1ADC1L_HPF */
  2916. #define WM8994_AIF1ADC1R_HPF 0x0800 /* AIF1ADC1R_HPF */
  2917. #define WM8994_AIF1ADC1R_HPF_MASK 0x0800 /* AIF1ADC1R_HPF */
  2918. #define WM8994_AIF1ADC1R_HPF_SHIFT 11 /* AIF1ADC1R_HPF */
  2919. #define WM8994_AIF1ADC1R_HPF_WIDTH 1 /* AIF1ADC1R_HPF */
  2920. /*
  2921. * R1041 (0x411) - AIF1 ADC2 Filters
  2922. */
  2923. #define WM8994_AIF1ADC2_HPF_CUT_MASK 0x6000 /* AIF1ADC2_HPF_CUT - [14:13] */
  2924. #define WM8994_AIF1ADC2_HPF_CUT_SHIFT 13 /* AIF1ADC2_HPF_CUT - [14:13] */
  2925. #define WM8994_AIF1ADC2_HPF_CUT_WIDTH 2 /* AIF1ADC2_HPF_CUT - [14:13] */
  2926. #define WM8994_AIF1ADC2L_HPF 0x1000 /* AIF1ADC2L_HPF */
  2927. #define WM8994_AIF1ADC2L_HPF_MASK 0x1000 /* AIF1ADC2L_HPF */
  2928. #define WM8994_AIF1ADC2L_HPF_SHIFT 12 /* AIF1ADC2L_HPF */
  2929. #define WM8994_AIF1ADC2L_HPF_WIDTH 1 /* AIF1ADC2L_HPF */
  2930. #define WM8994_AIF1ADC2R_HPF 0x0800 /* AIF1ADC2R_HPF */
  2931. #define WM8994_AIF1ADC2R_HPF_MASK 0x0800 /* AIF1ADC2R_HPF */
  2932. #define WM8994_AIF1ADC2R_HPF_SHIFT 11 /* AIF1ADC2R_HPF */
  2933. #define WM8994_AIF1ADC2R_HPF_WIDTH 1 /* AIF1ADC2R_HPF */
  2934. /*
  2935. * R1056 (0x420) - AIF1 DAC1 Filters (1)
  2936. */
  2937. #define WM8994_AIF1DAC1_MUTE 0x0200 /* AIF1DAC1_MUTE */
  2938. #define WM8994_AIF1DAC1_MUTE_MASK 0x0200 /* AIF1DAC1_MUTE */
  2939. #define WM8994_AIF1DAC1_MUTE_SHIFT 9 /* AIF1DAC1_MUTE */
  2940. #define WM8994_AIF1DAC1_MUTE_WIDTH 1 /* AIF1DAC1_MUTE */
  2941. #define WM8994_AIF1DAC1_MONO 0x0080 /* AIF1DAC1_MONO */
  2942. #define WM8994_AIF1DAC1_MONO_MASK 0x0080 /* AIF1DAC1_MONO */
  2943. #define WM8994_AIF1DAC1_MONO_SHIFT 7 /* AIF1DAC1_MONO */
  2944. #define WM8994_AIF1DAC1_MONO_WIDTH 1 /* AIF1DAC1_MONO */
  2945. #define WM8994_AIF1DAC1_MUTERATE 0x0020 /* AIF1DAC1_MUTERATE */
  2946. #define WM8994_AIF1DAC1_MUTERATE_MASK 0x0020 /* AIF1DAC1_MUTERATE */
  2947. #define WM8994_AIF1DAC1_MUTERATE_SHIFT 5 /* AIF1DAC1_MUTERATE */
  2948. #define WM8994_AIF1DAC1_MUTERATE_WIDTH 1 /* AIF1DAC1_MUTERATE */
  2949. #define WM8994_AIF1DAC1_UNMUTE_RAMP 0x0010 /* AIF1DAC1_UNMUTE_RAMP */
  2950. #define WM8994_AIF1DAC1_UNMUTE_RAMP_MASK 0x0010 /* AIF1DAC1_UNMUTE_RAMP */
  2951. #define WM8994_AIF1DAC1_UNMUTE_RAMP_SHIFT 4 /* AIF1DAC1_UNMUTE_RAMP */
  2952. #define WM8994_AIF1DAC1_UNMUTE_RAMP_WIDTH 1 /* AIF1DAC1_UNMUTE_RAMP */
  2953. #define WM8994_AIF1DAC1_DEEMP_MASK 0x0006 /* AIF1DAC1_DEEMP - [2:1] */
  2954. #define WM8994_AIF1DAC1_DEEMP_SHIFT 1 /* AIF1DAC1_DEEMP - [2:1] */
  2955. #define WM8994_AIF1DAC1_DEEMP_WIDTH 2 /* AIF1DAC1_DEEMP - [2:1] */
  2956. /*
  2957. * R1057 (0x421) - AIF1 DAC1 Filters (2)
  2958. */
  2959. #define WM8994_AIF1DAC1_3D_GAIN_MASK 0x3E00 /* AIF1DAC1_3D_GAIN - [13:9] */
  2960. #define WM8994_AIF1DAC1_3D_GAIN_SHIFT 9 /* AIF1DAC1_3D_GAIN - [13:9] */
  2961. #define WM8994_AIF1DAC1_3D_GAIN_WIDTH 5 /* AIF1DAC1_3D_GAIN - [13:9] */
  2962. #define WM8994_AIF1DAC1_3D_ENA 0x0100 /* AIF1DAC1_3D_ENA */
  2963. #define WM8994_AIF1DAC1_3D_ENA_MASK 0x0100 /* AIF1DAC1_3D_ENA */
  2964. #define WM8994_AIF1DAC1_3D_ENA_SHIFT 8 /* AIF1DAC1_3D_ENA */
  2965. #define WM8994_AIF1DAC1_3D_ENA_WIDTH 1 /* AIF1DAC1_3D_ENA */
  2966. /*
  2967. * R1058 (0x422) - AIF1 DAC2 Filters (1)
  2968. */
  2969. #define WM8994_AIF1DAC2_MUTE 0x0200 /* AIF1DAC2_MUTE */
  2970. #define WM8994_AIF1DAC2_MUTE_MASK 0x0200 /* AIF1DAC2_MUTE */
  2971. #define WM8994_AIF1DAC2_MUTE_SHIFT 9 /* AIF1DAC2_MUTE */
  2972. #define WM8994_AIF1DAC2_MUTE_WIDTH 1 /* AIF1DAC2_MUTE */
  2973. #define WM8994_AIF1DAC2_MONO 0x0080 /* AIF1DAC2_MONO */
  2974. #define WM8994_AIF1DAC2_MONO_MASK 0x0080 /* AIF1DAC2_MONO */
  2975. #define WM8994_AIF1DAC2_MONO_SHIFT 7 /* AIF1DAC2_MONO */
  2976. #define WM8994_AIF1DAC2_MONO_WIDTH 1 /* AIF1DAC2_MONO */
  2977. #define WM8994_AIF1DAC2_MUTERATE 0x0020 /* AIF1DAC2_MUTERATE */
  2978. #define WM8994_AIF1DAC2_MUTERATE_MASK 0x0020 /* AIF1DAC2_MUTERATE */
  2979. #define WM8994_AIF1DAC2_MUTERATE_SHIFT 5 /* AIF1DAC2_MUTERATE */
  2980. #define WM8994_AIF1DAC2_MUTERATE_WIDTH 1 /* AIF1DAC2_MUTERATE */
  2981. #define WM8994_AIF1DAC2_UNMUTE_RAMP 0x0010 /* AIF1DAC2_UNMUTE_RAMP */
  2982. #define WM8994_AIF1DAC2_UNMUTE_RAMP_MASK 0x0010 /* AIF1DAC2_UNMUTE_RAMP */
  2983. #define WM8994_AIF1DAC2_UNMUTE_RAMP_SHIFT 4 /* AIF1DAC2_UNMUTE_RAMP */
  2984. #define WM8994_AIF1DAC2_UNMUTE_RAMP_WIDTH 1 /* AIF1DAC2_UNMUTE_RAMP */
  2985. #define WM8994_AIF1DAC2_DEEMP_MASK 0x0006 /* AIF1DAC2_DEEMP - [2:1] */
  2986. #define WM8994_AIF1DAC2_DEEMP_SHIFT 1 /* AIF1DAC2_DEEMP - [2:1] */
  2987. #define WM8994_AIF1DAC2_DEEMP_WIDTH 2 /* AIF1DAC2_DEEMP - [2:1] */
  2988. /*
  2989. * R1059 (0x423) - AIF1 DAC2 Filters (2)
  2990. */
  2991. #define WM8994_AIF1DAC2_3D_GAIN_MASK 0x3E00 /* AIF1DAC2_3D_GAIN - [13:9] */
  2992. #define WM8994_AIF1DAC2_3D_GAIN_SHIFT 9 /* AIF1DAC2_3D_GAIN - [13:9] */
  2993. #define WM8994_AIF1DAC2_3D_GAIN_WIDTH 5 /* AIF1DAC2_3D_GAIN - [13:9] */
  2994. #define WM8994_AIF1DAC2_3D_ENA 0x0100 /* AIF1DAC2_3D_ENA */
  2995. #define WM8994_AIF1DAC2_3D_ENA_MASK 0x0100 /* AIF1DAC2_3D_ENA */
  2996. #define WM8994_AIF1DAC2_3D_ENA_SHIFT 8 /* AIF1DAC2_3D_ENA */
  2997. #define WM8994_AIF1DAC2_3D_ENA_WIDTH 1 /* AIF1DAC2_3D_ENA */
  2998. /*
  2999. * R1072 (0x430) - AIF1 DAC1 Noise Gate
  3000. */
  3001. #define WM8958_AIF1DAC1_NG_HLD_MASK 0x0060 /* AIF1DAC1_NG_HLD - [6:5] */
  3002. #define WM8958_AIF1DAC1_NG_HLD_SHIFT 5 /* AIF1DAC1_NG_HLD - [6:5] */
  3003. #define WM8958_AIF1DAC1_NG_HLD_WIDTH 2 /* AIF1DAC1_NG_HLD - [6:5] */
  3004. #define WM8958_AIF1DAC1_NG_THR_MASK 0x000E /* AIF1DAC1_NG_THR - [3:1] */
  3005. #define WM8958_AIF1DAC1_NG_THR_SHIFT 1 /* AIF1DAC1_NG_THR - [3:1] */
  3006. #define WM8958_AIF1DAC1_NG_THR_WIDTH 3 /* AIF1DAC1_NG_THR - [3:1] */
  3007. #define WM8958_AIF1DAC1_NG_ENA 0x0001 /* AIF1DAC1_NG_ENA */
  3008. #define WM8958_AIF1DAC1_NG_ENA_MASK 0x0001 /* AIF1DAC1_NG_ENA */
  3009. #define WM8958_AIF1DAC1_NG_ENA_SHIFT 0 /* AIF1DAC1_NG_ENA */
  3010. #define WM8958_AIF1DAC1_NG_ENA_WIDTH 1 /* AIF1DAC1_NG_ENA */
  3011. /*
  3012. * R1073 (0x431) - AIF1 DAC2 Noise Gate
  3013. */
  3014. #define WM8958_AIF1DAC2_NG_HLD_MASK 0x0060 /* AIF1DAC2_NG_HLD - [6:5] */
  3015. #define WM8958_AIF1DAC2_NG_HLD_SHIFT 5 /* AIF1DAC2_NG_HLD - [6:5] */
  3016. #define WM8958_AIF1DAC2_NG_HLD_WIDTH 2 /* AIF1DAC2_NG_HLD - [6:5] */
  3017. #define WM8958_AIF1DAC2_NG_THR_MASK 0x000E /* AIF1DAC2_NG_THR - [3:1] */
  3018. #define WM8958_AIF1DAC2_NG_THR_SHIFT 1 /* AIF1DAC2_NG_THR - [3:1] */
  3019. #define WM8958_AIF1DAC2_NG_THR_WIDTH 3 /* AIF1DAC2_NG_THR - [3:1] */
  3020. #define WM8958_AIF1DAC2_NG_ENA 0x0001 /* AIF1DAC2_NG_ENA */
  3021. #define WM8958_AIF1DAC2_NG_ENA_MASK 0x0001 /* AIF1DAC2_NG_ENA */
  3022. #define WM8958_AIF1DAC2_NG_ENA_SHIFT 0 /* AIF1DAC2_NG_ENA */
  3023. #define WM8958_AIF1DAC2_NG_ENA_WIDTH 1 /* AIF1DAC2_NG_ENA */
  3024. /*
  3025. * R1088 (0x440) - AIF1 DRC1 (1)
  3026. */
  3027. #define WM8994_AIF1DRC1_SIG_DET_RMS_MASK 0xF800 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  3028. #define WM8994_AIF1DRC1_SIG_DET_RMS_SHIFT 11 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  3029. #define WM8994_AIF1DRC1_SIG_DET_RMS_WIDTH 5 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  3030. #define WM8994_AIF1DRC1_SIG_DET_PK_MASK 0x0600 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  3031. #define WM8994_AIF1DRC1_SIG_DET_PK_SHIFT 9 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  3032. #define WM8994_AIF1DRC1_SIG_DET_PK_WIDTH 2 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  3033. #define WM8994_AIF1DRC1_NG_ENA 0x0100 /* AIF1DRC1_NG_ENA */
  3034. #define WM8994_AIF1DRC1_NG_ENA_MASK 0x0100 /* AIF1DRC1_NG_ENA */
  3035. #define WM8994_AIF1DRC1_NG_ENA_SHIFT 8 /* AIF1DRC1_NG_ENA */
  3036. #define WM8994_AIF1DRC1_NG_ENA_WIDTH 1 /* AIF1DRC1_NG_ENA */
  3037. #define WM8994_AIF1DRC1_SIG_DET_MODE 0x0080 /* AIF1DRC1_SIG_DET_MODE */
  3038. #define WM8994_AIF1DRC1_SIG_DET_MODE_MASK 0x0080 /* AIF1DRC1_SIG_DET_MODE */
  3039. #define WM8994_AIF1DRC1_SIG_DET_MODE_SHIFT 7 /* AIF1DRC1_SIG_DET_MODE */
  3040. #define WM8994_AIF1DRC1_SIG_DET_MODE_WIDTH 1 /* AIF1DRC1_SIG_DET_MODE */
  3041. #define WM8994_AIF1DRC1_SIG_DET 0x0040 /* AIF1DRC1_SIG_DET */
  3042. #define WM8994_AIF1DRC1_SIG_DET_MASK 0x0040 /* AIF1DRC1_SIG_DET */
  3043. #define WM8994_AIF1DRC1_SIG_DET_SHIFT 6 /* AIF1DRC1_SIG_DET */
  3044. #define WM8994_AIF1DRC1_SIG_DET_WIDTH 1 /* AIF1DRC1_SIG_DET */
  3045. #define WM8994_AIF1DRC1_KNEE2_OP_ENA 0x0020 /* AIF1DRC1_KNEE2_OP_ENA */
  3046. #define WM8994_AIF1DRC1_KNEE2_OP_ENA_MASK 0x0020 /* AIF1DRC1_KNEE2_OP_ENA */
  3047. #define WM8994_AIF1DRC1_KNEE2_OP_ENA_SHIFT 5 /* AIF1DRC1_KNEE2_OP_ENA */
  3048. #define WM8994_AIF1DRC1_KNEE2_OP_ENA_WIDTH 1 /* AIF1DRC1_KNEE2_OP_ENA */
  3049. #define WM8994_AIF1DRC1_QR 0x0010 /* AIF1DRC1_QR */
  3050. #define WM8994_AIF1DRC1_QR_MASK 0x0010 /* AIF1DRC1_QR */
  3051. #define WM8994_AIF1DRC1_QR_SHIFT 4 /* AIF1DRC1_QR */
  3052. #define WM8994_AIF1DRC1_QR_WIDTH 1 /* AIF1DRC1_QR */
  3053. #define WM8994_AIF1DRC1_ANTICLIP 0x0008 /* AIF1DRC1_ANTICLIP */
  3054. #define WM8994_AIF1DRC1_ANTICLIP_MASK 0x0008 /* AIF1DRC1_ANTICLIP */
  3055. #define WM8994_AIF1DRC1_ANTICLIP_SHIFT 3 /* AIF1DRC1_ANTICLIP */
  3056. #define WM8994_AIF1DRC1_ANTICLIP_WIDTH 1 /* AIF1DRC1_ANTICLIP */
  3057. #define WM8994_AIF1DAC1_DRC_ENA 0x0004 /* AIF1DAC1_DRC_ENA */
  3058. #define WM8994_AIF1DAC1_DRC_ENA_MASK 0x0004 /* AIF1DAC1_DRC_ENA */
  3059. #define WM8994_AIF1DAC1_DRC_ENA_SHIFT 2 /* AIF1DAC1_DRC_ENA */
  3060. #define WM8994_AIF1DAC1_DRC_ENA_WIDTH 1 /* AIF1DAC1_DRC_ENA */
  3061. #define WM8994_AIF1ADC1L_DRC_ENA 0x0002 /* AIF1ADC1L_DRC_ENA */
  3062. #define WM8994_AIF1ADC1L_DRC_ENA_MASK 0x0002 /* AIF1ADC1L_DRC_ENA */
  3063. #define WM8994_AIF1ADC1L_DRC_ENA_SHIFT 1 /* AIF1ADC1L_DRC_ENA */
  3064. #define WM8994_AIF1ADC1L_DRC_ENA_WIDTH 1 /* AIF1ADC1L_DRC_ENA */
  3065. #define WM8994_AIF1ADC1R_DRC_ENA 0x0001 /* AIF1ADC1R_DRC_ENA */
  3066. #define WM8994_AIF1ADC1R_DRC_ENA_MASK 0x0001 /* AIF1ADC1R_DRC_ENA */
  3067. #define WM8994_AIF1ADC1R_DRC_ENA_SHIFT 0 /* AIF1ADC1R_DRC_ENA */
  3068. #define WM8994_AIF1ADC1R_DRC_ENA_WIDTH 1 /* AIF1ADC1R_DRC_ENA */
  3069. /*
  3070. * R1089 (0x441) - AIF1 DRC1 (2)
  3071. */
  3072. #define WM8994_AIF1DRC1_ATK_MASK 0x1E00 /* AIF1DRC1_ATK - [12:9] */
  3073. #define WM8994_AIF1DRC1_ATK_SHIFT 9 /* AIF1DRC1_ATK - [12:9] */
  3074. #define WM8994_AIF1DRC1_ATK_WIDTH 4 /* AIF1DRC1_ATK - [12:9] */
  3075. #define WM8994_AIF1DRC1_DCY_MASK 0x01E0 /* AIF1DRC1_DCY - [8:5] */
  3076. #define WM8994_AIF1DRC1_DCY_SHIFT 5 /* AIF1DRC1_DCY - [8:5] */
  3077. #define WM8994_AIF1DRC1_DCY_WIDTH 4 /* AIF1DRC1_DCY - [8:5] */
  3078. #define WM8994_AIF1DRC1_MINGAIN_MASK 0x001C /* AIF1DRC1_MINGAIN - [4:2] */
  3079. #define WM8994_AIF1DRC1_MINGAIN_SHIFT 2 /* AIF1DRC1_MINGAIN - [4:2] */
  3080. #define WM8994_AIF1DRC1_MINGAIN_WIDTH 3 /* AIF1DRC1_MINGAIN - [4:2] */
  3081. #define WM8994_AIF1DRC1_MAXGAIN_MASK 0x0003 /* AIF1DRC1_MAXGAIN - [1:0] */
  3082. #define WM8994_AIF1DRC1_MAXGAIN_SHIFT 0 /* AIF1DRC1_MAXGAIN - [1:0] */
  3083. #define WM8994_AIF1DRC1_MAXGAIN_WIDTH 2 /* AIF1DRC1_MAXGAIN - [1:0] */
  3084. /*
  3085. * R1090 (0x442) - AIF1 DRC1 (3)
  3086. */
  3087. #define WM8994_AIF1DRC1_NG_MINGAIN_MASK 0xF000 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  3088. #define WM8994_AIF1DRC1_NG_MINGAIN_SHIFT 12 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  3089. #define WM8994_AIF1DRC1_NG_MINGAIN_WIDTH 4 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  3090. #define WM8994_AIF1DRC1_NG_EXP_MASK 0x0C00 /* AIF1DRC1_NG_EXP - [11:10] */
  3091. #define WM8994_AIF1DRC1_NG_EXP_SHIFT 10 /* AIF1DRC1_NG_EXP - [11:10] */
  3092. #define WM8994_AIF1DRC1_NG_EXP_WIDTH 2 /* AIF1DRC1_NG_EXP - [11:10] */
  3093. #define WM8994_AIF1DRC1_QR_THR_MASK 0x0300 /* AIF1DRC1_QR_THR - [9:8] */
  3094. #define WM8994_AIF1DRC1_QR_THR_SHIFT 8 /* AIF1DRC1_QR_THR - [9:8] */
  3095. #define WM8994_AIF1DRC1_QR_THR_WIDTH 2 /* AIF1DRC1_QR_THR - [9:8] */
  3096. #define WM8994_AIF1DRC1_QR_DCY_MASK 0x00C0 /* AIF1DRC1_QR_DCY - [7:6] */
  3097. #define WM8994_AIF1DRC1_QR_DCY_SHIFT 6 /* AIF1DRC1_QR_DCY - [7:6] */
  3098. #define WM8994_AIF1DRC1_QR_DCY_WIDTH 2 /* AIF1DRC1_QR_DCY - [7:6] */
  3099. #define WM8994_AIF1DRC1_HI_COMP_MASK 0x0038 /* AIF1DRC1_HI_COMP - [5:3] */
  3100. #define WM8994_AIF1DRC1_HI_COMP_SHIFT 3 /* AIF1DRC1_HI_COMP - [5:3] */
  3101. #define WM8994_AIF1DRC1_HI_COMP_WIDTH 3 /* AIF1DRC1_HI_COMP - [5:3] */
  3102. #define WM8994_AIF1DRC1_LO_COMP_MASK 0x0007 /* AIF1DRC1_LO_COMP - [2:0] */
  3103. #define WM8994_AIF1DRC1_LO_COMP_SHIFT 0 /* AIF1DRC1_LO_COMP - [2:0] */
  3104. #define WM8994_AIF1DRC1_LO_COMP_WIDTH 3 /* AIF1DRC1_LO_COMP - [2:0] */
  3105. /*
  3106. * R1091 (0x443) - AIF1 DRC1 (4)
  3107. */
  3108. #define WM8994_AIF1DRC1_KNEE_IP_MASK 0x07E0 /* AIF1DRC1_KNEE_IP - [10:5] */
  3109. #define WM8994_AIF1DRC1_KNEE_IP_SHIFT 5 /* AIF1DRC1_KNEE_IP - [10:5] */
  3110. #define WM8994_AIF1DRC1_KNEE_IP_WIDTH 6 /* AIF1DRC1_KNEE_IP - [10:5] */
  3111. #define WM8994_AIF1DRC1_KNEE_OP_MASK 0x001F /* AIF1DRC1_KNEE_OP - [4:0] */
  3112. #define WM8994_AIF1DRC1_KNEE_OP_SHIFT 0 /* AIF1DRC1_KNEE_OP - [4:0] */
  3113. #define WM8994_AIF1DRC1_KNEE_OP_WIDTH 5 /* AIF1DRC1_KNEE_OP - [4:0] */
  3114. /*
  3115. * R1092 (0x444) - AIF1 DRC1 (5)
  3116. */
  3117. #define WM8994_AIF1DRC1_KNEE2_IP_MASK 0x03E0 /* AIF1DRC1_KNEE2_IP - [9:5] */
  3118. #define WM8994_AIF1DRC1_KNEE2_IP_SHIFT 5 /* AIF1DRC1_KNEE2_IP - [9:5] */
  3119. #define WM8994_AIF1DRC1_KNEE2_IP_WIDTH 5 /* AIF1DRC1_KNEE2_IP - [9:5] */
  3120. #define WM8994_AIF1DRC1_KNEE2_OP_MASK 0x001F /* AIF1DRC1_KNEE2_OP - [4:0] */
  3121. #define WM8994_AIF1DRC1_KNEE2_OP_SHIFT 0 /* AIF1DRC1_KNEE2_OP - [4:0] */
  3122. #define WM8994_AIF1DRC1_KNEE2_OP_WIDTH 5 /* AIF1DRC1_KNEE2_OP - [4:0] */
  3123. /*
  3124. * R1104 (0x450) - AIF1 DRC2 (1)
  3125. */
  3126. #define WM8994_AIF1DRC2_SIG_DET_RMS_MASK 0xF800 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  3127. #define WM8994_AIF1DRC2_SIG_DET_RMS_SHIFT 11 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  3128. #define WM8994_AIF1DRC2_SIG_DET_RMS_WIDTH 5 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  3129. #define WM8994_AIF1DRC2_SIG_DET_PK_MASK 0x0600 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  3130. #define WM8994_AIF1DRC2_SIG_DET_PK_SHIFT 9 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  3131. #define WM8994_AIF1DRC2_SIG_DET_PK_WIDTH 2 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  3132. #define WM8994_AIF1DRC2_NG_ENA 0x0100 /* AIF1DRC2_NG_ENA */
  3133. #define WM8994_AIF1DRC2_NG_ENA_MASK 0x0100 /* AIF1DRC2_NG_ENA */
  3134. #define WM8994_AIF1DRC2_NG_ENA_SHIFT 8 /* AIF1DRC2_NG_ENA */
  3135. #define WM8994_AIF1DRC2_NG_ENA_WIDTH 1 /* AIF1DRC2_NG_ENA */
  3136. #define WM8994_AIF1DRC2_SIG_DET_MODE 0x0080 /* AIF1DRC2_SIG_DET_MODE */
  3137. #define WM8994_AIF1DRC2_SIG_DET_MODE_MASK 0x0080 /* AIF1DRC2_SIG_DET_MODE */
  3138. #define WM8994_AIF1DRC2_SIG_DET_MODE_SHIFT 7 /* AIF1DRC2_SIG_DET_MODE */
  3139. #define WM8994_AIF1DRC2_SIG_DET_MODE_WIDTH 1 /* AIF1DRC2_SIG_DET_MODE */
  3140. #define WM8994_AIF1DRC2_SIG_DET 0x0040 /* AIF1DRC2_SIG_DET */
  3141. #define WM8994_AIF1DRC2_SIG_DET_MASK 0x0040 /* AIF1DRC2_SIG_DET */
  3142. #define WM8994_AIF1DRC2_SIG_DET_SHIFT 6 /* AIF1DRC2_SIG_DET */
  3143. #define WM8994_AIF1DRC2_SIG_DET_WIDTH 1 /* AIF1DRC2_SIG_DET */
  3144. #define WM8994_AIF1DRC2_KNEE2_OP_ENA 0x0020 /* AIF1DRC2_KNEE2_OP_ENA */
  3145. #define WM8994_AIF1DRC2_KNEE2_OP_ENA_MASK 0x0020 /* AIF1DRC2_KNEE2_OP_ENA */
  3146. #define WM8994_AIF1DRC2_KNEE2_OP_ENA_SHIFT 5 /* AIF1DRC2_KNEE2_OP_ENA */
  3147. #define WM8994_AIF1DRC2_KNEE2_OP_ENA_WIDTH 1 /* AIF1DRC2_KNEE2_OP_ENA */
  3148. #define WM8994_AIF1DRC2_QR 0x0010 /* AIF1DRC2_QR */
  3149. #define WM8994_AIF1DRC2_QR_MASK 0x0010 /* AIF1DRC2_QR */
  3150. #define WM8994_AIF1DRC2_QR_SHIFT 4 /* AIF1DRC2_QR */
  3151. #define WM8994_AIF1DRC2_QR_WIDTH 1 /* AIF1DRC2_QR */
  3152. #define WM8994_AIF1DRC2_ANTICLIP 0x0008 /* AIF1DRC2_ANTICLIP */
  3153. #define WM8994_AIF1DRC2_ANTICLIP_MASK 0x0008 /* AIF1DRC2_ANTICLIP */
  3154. #define WM8994_AIF1DRC2_ANTICLIP_SHIFT 3 /* AIF1DRC2_ANTICLIP */
  3155. #define WM8994_AIF1DRC2_ANTICLIP_WIDTH 1 /* AIF1DRC2_ANTICLIP */
  3156. #define WM8994_AIF1DAC2_DRC_ENA 0x0004 /* AIF1DAC2_DRC_ENA */
  3157. #define WM8994_AIF1DAC2_DRC_ENA_MASK 0x0004 /* AIF1DAC2_DRC_ENA */
  3158. #define WM8994_AIF1DAC2_DRC_ENA_SHIFT 2 /* AIF1DAC2_DRC_ENA */
  3159. #define WM8994_AIF1DAC2_DRC_ENA_WIDTH 1 /* AIF1DAC2_DRC_ENA */
  3160. #define WM8994_AIF1ADC2L_DRC_ENA 0x0002 /* AIF1ADC2L_DRC_ENA */
  3161. #define WM8994_AIF1ADC2L_DRC_ENA_MASK 0x0002 /* AIF1ADC2L_DRC_ENA */
  3162. #define WM8994_AIF1ADC2L_DRC_ENA_SHIFT 1 /* AIF1ADC2L_DRC_ENA */
  3163. #define WM8994_AIF1ADC2L_DRC_ENA_WIDTH 1 /* AIF1ADC2L_DRC_ENA */
  3164. #define WM8994_AIF1ADC2R_DRC_ENA 0x0001 /* AIF1ADC2R_DRC_ENA */
  3165. #define WM8994_AIF1ADC2R_DRC_ENA_MASK 0x0001 /* AIF1ADC2R_DRC_ENA */
  3166. #define WM8994_AIF1ADC2R_DRC_ENA_SHIFT 0 /* AIF1ADC2R_DRC_ENA */
  3167. #define WM8994_AIF1ADC2R_DRC_ENA_WIDTH 1 /* AIF1ADC2R_DRC_ENA */
  3168. /*
  3169. * R1105 (0x451) - AIF1 DRC2 (2)
  3170. */
  3171. #define WM8994_AIF1DRC2_ATK_MASK 0x1E00 /* AIF1DRC2_ATK - [12:9] */
  3172. #define WM8994_AIF1DRC2_ATK_SHIFT 9 /* AIF1DRC2_ATK - [12:9] */
  3173. #define WM8994_AIF1DRC2_ATK_WIDTH 4 /* AIF1DRC2_ATK - [12:9] */
  3174. #define WM8994_AIF1DRC2_DCY_MASK 0x01E0 /* AIF1DRC2_DCY - [8:5] */
  3175. #define WM8994_AIF1DRC2_DCY_SHIFT 5 /* AIF1DRC2_DCY - [8:5] */
  3176. #define WM8994_AIF1DRC2_DCY_WIDTH 4 /* AIF1DRC2_DCY - [8:5] */
  3177. #define WM8994_AIF1DRC2_MINGAIN_MASK 0x001C /* AIF1DRC2_MINGAIN - [4:2] */
  3178. #define WM8994_AIF1DRC2_MINGAIN_SHIFT 2 /* AIF1DRC2_MINGAIN - [4:2] */
  3179. #define WM8994_AIF1DRC2_MINGAIN_WIDTH 3 /* AIF1DRC2_MINGAIN - [4:2] */
  3180. #define WM8994_AIF1DRC2_MAXGAIN_MASK 0x0003 /* AIF1DRC2_MAXGAIN - [1:0] */
  3181. #define WM8994_AIF1DRC2_MAXGAIN_SHIFT 0 /* AIF1DRC2_MAXGAIN - [1:0] */
  3182. #define WM8994_AIF1DRC2_MAXGAIN_WIDTH 2 /* AIF1DRC2_MAXGAIN - [1:0] */
  3183. /*
  3184. * R1106 (0x452) - AIF1 DRC2 (3)
  3185. */
  3186. #define WM8994_AIF1DRC2_NG_MINGAIN_MASK 0xF000 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  3187. #define WM8994_AIF1DRC2_NG_MINGAIN_SHIFT 12 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  3188. #define WM8994_AIF1DRC2_NG_MINGAIN_WIDTH 4 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  3189. #define WM8994_AIF1DRC2_NG_EXP_MASK 0x0C00 /* AIF1DRC2_NG_EXP - [11:10] */
  3190. #define WM8994_AIF1DRC2_NG_EXP_SHIFT 10 /* AIF1DRC2_NG_EXP - [11:10] */
  3191. #define WM8994_AIF1DRC2_NG_EXP_WIDTH 2 /* AIF1DRC2_NG_EXP - [11:10] */
  3192. #define WM8994_AIF1DRC2_QR_THR_MASK 0x0300 /* AIF1DRC2_QR_THR - [9:8] */
  3193. #define WM8994_AIF1DRC2_QR_THR_SHIFT 8 /* AIF1DRC2_QR_THR - [9:8] */
  3194. #define WM8994_AIF1DRC2_QR_THR_WIDTH 2 /* AIF1DRC2_QR_THR - [9:8] */
  3195. #define WM8994_AIF1DRC2_QR_DCY_MASK 0x00C0 /* AIF1DRC2_QR_DCY - [7:6] */
  3196. #define WM8994_AIF1DRC2_QR_DCY_SHIFT 6 /* AIF1DRC2_QR_DCY - [7:6] */
  3197. #define WM8994_AIF1DRC2_QR_DCY_WIDTH 2 /* AIF1DRC2_QR_DCY - [7:6] */
  3198. #define WM8994_AIF1DRC2_HI_COMP_MASK 0x0038 /* AIF1DRC2_HI_COMP - [5:3] */
  3199. #define WM8994_AIF1DRC2_HI_COMP_SHIFT 3 /* AIF1DRC2_HI_COMP - [5:3] */
  3200. #define WM8994_AIF1DRC2_HI_COMP_WIDTH 3 /* AIF1DRC2_HI_COMP - [5:3] */
  3201. #define WM8994_AIF1DRC2_LO_COMP_MASK 0x0007 /* AIF1DRC2_LO_COMP - [2:0] */
  3202. #define WM8994_AIF1DRC2_LO_COMP_SHIFT 0 /* AIF1DRC2_LO_COMP - [2:0] */
  3203. #define WM8994_AIF1DRC2_LO_COMP_WIDTH 3 /* AIF1DRC2_LO_COMP - [2:0] */
  3204. /*
  3205. * R1107 (0x453) - AIF1 DRC2 (4)
  3206. */
  3207. #define WM8994_AIF1DRC2_KNEE_IP_MASK 0x07E0 /* AIF1DRC2_KNEE_IP - [10:5] */
  3208. #define WM8994_AIF1DRC2_KNEE_IP_SHIFT 5 /* AIF1DRC2_KNEE_IP - [10:5] */
  3209. #define WM8994_AIF1DRC2_KNEE_IP_WIDTH 6 /* AIF1DRC2_KNEE_IP - [10:5] */
  3210. #define WM8994_AIF1DRC2_KNEE_OP_MASK 0x001F /* AIF1DRC2_KNEE_OP - [4:0] */
  3211. #define WM8994_AIF1DRC2_KNEE_OP_SHIFT 0 /* AIF1DRC2_KNEE_OP - [4:0] */
  3212. #define WM8994_AIF1DRC2_KNEE_OP_WIDTH 5 /* AIF1DRC2_KNEE_OP - [4:0] */
  3213. /*
  3214. * R1108 (0x454) - AIF1 DRC2 (5)
  3215. */
  3216. #define WM8994_AIF1DRC2_KNEE2_IP_MASK 0x03E0 /* AIF1DRC2_KNEE2_IP - [9:5] */
  3217. #define WM8994_AIF1DRC2_KNEE2_IP_SHIFT 5 /* AIF1DRC2_KNEE2_IP - [9:5] */
  3218. #define WM8994_AIF1DRC2_KNEE2_IP_WIDTH 5 /* AIF1DRC2_KNEE2_IP - [9:5] */
  3219. #define WM8994_AIF1DRC2_KNEE2_OP_MASK 0x001F /* AIF1DRC2_KNEE2_OP - [4:0] */
  3220. #define WM8994_AIF1DRC2_KNEE2_OP_SHIFT 0 /* AIF1DRC2_KNEE2_OP - [4:0] */
  3221. #define WM8994_AIF1DRC2_KNEE2_OP_WIDTH 5 /* AIF1DRC2_KNEE2_OP - [4:0] */
  3222. /*
  3223. * R1152 (0x480) - AIF1 DAC1 EQ Gains (1)
  3224. */
  3225. #define WM8994_AIF1DAC1_EQ_B1_GAIN_MASK 0xF800 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  3226. #define WM8994_AIF1DAC1_EQ_B1_GAIN_SHIFT 11 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  3227. #define WM8994_AIF1DAC1_EQ_B1_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  3228. #define WM8994_AIF1DAC1_EQ_B2_GAIN_MASK 0x07C0 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  3229. #define WM8994_AIF1DAC1_EQ_B2_GAIN_SHIFT 6 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  3230. #define WM8994_AIF1DAC1_EQ_B2_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  3231. #define WM8994_AIF1DAC1_EQ_B3_GAIN_MASK 0x003E /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  3232. #define WM8994_AIF1DAC1_EQ_B3_GAIN_SHIFT 1 /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  3233. #define WM8994_AIF1DAC1_EQ_B3_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  3234. #define WM8994_AIF1DAC1_EQ_ENA 0x0001 /* AIF1DAC1_EQ_ENA */
  3235. #define WM8994_AIF1DAC1_EQ_ENA_MASK 0x0001 /* AIF1DAC1_EQ_ENA */
  3236. #define WM8994_AIF1DAC1_EQ_ENA_SHIFT 0 /* AIF1DAC1_EQ_ENA */
  3237. #define WM8994_AIF1DAC1_EQ_ENA_WIDTH 1 /* AIF1DAC1_EQ_ENA */
  3238. /*
  3239. * R1153 (0x481) - AIF1 DAC1 EQ Gains (2)
  3240. */
  3241. #define WM8994_AIF1DAC1_EQ_B4_GAIN_MASK 0xF800 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  3242. #define WM8994_AIF1DAC1_EQ_B4_GAIN_SHIFT 11 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  3243. #define WM8994_AIF1DAC1_EQ_B4_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  3244. #define WM8994_AIF1DAC1_EQ_B5_GAIN_MASK 0x07C0 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  3245. #define WM8994_AIF1DAC1_EQ_B5_GAIN_SHIFT 6 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  3246. #define WM8994_AIF1DAC1_EQ_B5_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  3247. /*
  3248. * R1154 (0x482) - AIF1 DAC1 EQ Band 1 A
  3249. */
  3250. #define WM8994_AIF1DAC1_EQ_B1_A_MASK 0xFFFF /* AIF1DAC1_EQ_B1_A - [15:0] */
  3251. #define WM8994_AIF1DAC1_EQ_B1_A_SHIFT 0 /* AIF1DAC1_EQ_B1_A - [15:0] */
  3252. #define WM8994_AIF1DAC1_EQ_B1_A_WIDTH 16 /* AIF1DAC1_EQ_B1_A - [15:0] */
  3253. /*
  3254. * R1155 (0x483) - AIF1 DAC1 EQ Band 1 B
  3255. */
  3256. #define WM8994_AIF1DAC1_EQ_B1_B_MASK 0xFFFF /* AIF1DAC1_EQ_B1_B - [15:0] */
  3257. #define WM8994_AIF1DAC1_EQ_B1_B_SHIFT 0 /* AIF1DAC1_EQ_B1_B - [15:0] */
  3258. #define WM8994_AIF1DAC1_EQ_B1_B_WIDTH 16 /* AIF1DAC1_EQ_B1_B - [15:0] */
  3259. /*
  3260. * R1156 (0x484) - AIF1 DAC1 EQ Band 1 PG
  3261. */
  3262. #define WM8994_AIF1DAC1_EQ_B1_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B1_PG - [15:0] */
  3263. #define WM8994_AIF1DAC1_EQ_B1_PG_SHIFT 0 /* AIF1DAC1_EQ_B1_PG - [15:0] */
  3264. #define WM8994_AIF1DAC1_EQ_B1_PG_WIDTH 16 /* AIF1DAC1_EQ_B1_PG - [15:0] */
  3265. /*
  3266. * R1157 (0x485) - AIF1 DAC1 EQ Band 2 A
  3267. */
  3268. #define WM8994_AIF1DAC1_EQ_B2_A_MASK 0xFFFF /* AIF1DAC1_EQ_B2_A - [15:0] */
  3269. #define WM8994_AIF1DAC1_EQ_B2_A_SHIFT 0 /* AIF1DAC1_EQ_B2_A - [15:0] */
  3270. #define WM8994_AIF1DAC1_EQ_B2_A_WIDTH 16 /* AIF1DAC1_EQ_B2_A - [15:0] */
  3271. /*
  3272. * R1158 (0x486) - AIF1 DAC1 EQ Band 2 B
  3273. */
  3274. #define WM8994_AIF1DAC1_EQ_B2_B_MASK 0xFFFF /* AIF1DAC1_EQ_B2_B - [15:0] */
  3275. #define WM8994_AIF1DAC1_EQ_B2_B_SHIFT 0 /* AIF1DAC1_EQ_B2_B - [15:0] */
  3276. #define WM8994_AIF1DAC1_EQ_B2_B_WIDTH 16 /* AIF1DAC1_EQ_B2_B - [15:0] */
  3277. /*
  3278. * R1159 (0x487) - AIF1 DAC1 EQ Band 2 C
  3279. */
  3280. #define WM8994_AIF1DAC1_EQ_B2_C_MASK 0xFFFF /* AIF1DAC1_EQ_B2_C - [15:0] */
  3281. #define WM8994_AIF1DAC1_EQ_B2_C_SHIFT 0 /* AIF1DAC1_EQ_B2_C - [15:0] */
  3282. #define WM8994_AIF1DAC1_EQ_B2_C_WIDTH 16 /* AIF1DAC1_EQ_B2_C - [15:0] */
  3283. /*
  3284. * R1160 (0x488) - AIF1 DAC1 EQ Band 2 PG
  3285. */
  3286. #define WM8994_AIF1DAC1_EQ_B2_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B2_PG - [15:0] */
  3287. #define WM8994_AIF1DAC1_EQ_B2_PG_SHIFT 0 /* AIF1DAC1_EQ_B2_PG - [15:0] */
  3288. #define WM8994_AIF1DAC1_EQ_B2_PG_WIDTH 16 /* AIF1DAC1_EQ_B2_PG - [15:0] */
  3289. /*
  3290. * R1161 (0x489) - AIF1 DAC1 EQ Band 3 A
  3291. */
  3292. #define WM8994_AIF1DAC1_EQ_B3_A_MASK 0xFFFF /* AIF1DAC1_EQ_B3_A - [15:0] */
  3293. #define WM8994_AIF1DAC1_EQ_B3_A_SHIFT 0 /* AIF1DAC1_EQ_B3_A - [15:0] */
  3294. #define WM8994_AIF1DAC1_EQ_B3_A_WIDTH 16 /* AIF1DAC1_EQ_B3_A - [15:0] */
  3295. /*
  3296. * R1162 (0x48A) - AIF1 DAC1 EQ Band 3 B
  3297. */
  3298. #define WM8994_AIF1DAC1_EQ_B3_B_MASK 0xFFFF /* AIF1DAC1_EQ_B3_B - [15:0] */
  3299. #define WM8994_AIF1DAC1_EQ_B3_B_SHIFT 0 /* AIF1DAC1_EQ_B3_B - [15:0] */
  3300. #define WM8994_AIF1DAC1_EQ_B3_B_WIDTH 16 /* AIF1DAC1_EQ_B3_B - [15:0] */
  3301. /*
  3302. * R1163 (0x48B) - AIF1 DAC1 EQ Band 3 C
  3303. */
  3304. #define WM8994_AIF1DAC1_EQ_B3_C_MASK 0xFFFF /* AIF1DAC1_EQ_B3_C - [15:0] */
  3305. #define WM8994_AIF1DAC1_EQ_B3_C_SHIFT 0 /* AIF1DAC1_EQ_B3_C - [15:0] */
  3306. #define WM8994_AIF1DAC1_EQ_B3_C_WIDTH 16 /* AIF1DAC1_EQ_B3_C - [15:0] */
  3307. /*
  3308. * R1164 (0x48C) - AIF1 DAC1 EQ Band 3 PG
  3309. */
  3310. #define WM8994_AIF1DAC1_EQ_B3_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B3_PG - [15:0] */
  3311. #define WM8994_AIF1DAC1_EQ_B3_PG_SHIFT 0 /* AIF1DAC1_EQ_B3_PG - [15:0] */
  3312. #define WM8994_AIF1DAC1_EQ_B3_PG_WIDTH 16 /* AIF1DAC1_EQ_B3_PG - [15:0] */
  3313. /*
  3314. * R1165 (0x48D) - AIF1 DAC1 EQ Band 4 A
  3315. */
  3316. #define WM8994_AIF1DAC1_EQ_B4_A_MASK 0xFFFF /* AIF1DAC1_EQ_B4_A - [15:0] */
  3317. #define WM8994_AIF1DAC1_EQ_B4_A_SHIFT 0 /* AIF1DAC1_EQ_B4_A - [15:0] */
  3318. #define WM8994_AIF1DAC1_EQ_B4_A_WIDTH 16 /* AIF1DAC1_EQ_B4_A - [15:0] */
  3319. /*
  3320. * R1166 (0x48E) - AIF1 DAC1 EQ Band 4 B
  3321. */
  3322. #define WM8994_AIF1DAC1_EQ_B4_B_MASK 0xFFFF /* AIF1DAC1_EQ_B4_B - [15:0] */
  3323. #define WM8994_AIF1DAC1_EQ_B4_B_SHIFT 0 /* AIF1DAC1_EQ_B4_B - [15:0] */
  3324. #define WM8994_AIF1DAC1_EQ_B4_B_WIDTH 16 /* AIF1DAC1_EQ_B4_B - [15:0] */
  3325. /*
  3326. * R1167 (0x48F) - AIF1 DAC1 EQ Band 4 C
  3327. */
  3328. #define WM8994_AIF1DAC1_EQ_B4_C_MASK 0xFFFF /* AIF1DAC1_EQ_B4_C - [15:0] */
  3329. #define WM8994_AIF1DAC1_EQ_B4_C_SHIFT 0 /* AIF1DAC1_EQ_B4_C - [15:0] */
  3330. #define WM8994_AIF1DAC1_EQ_B4_C_WIDTH 16 /* AIF1DAC1_EQ_B4_C - [15:0] */
  3331. /*
  3332. * R1168 (0x490) - AIF1 DAC1 EQ Band 4 PG
  3333. */
  3334. #define WM8994_AIF1DAC1_EQ_B4_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B4_PG - [15:0] */
  3335. #define WM8994_AIF1DAC1_EQ_B4_PG_SHIFT 0 /* AIF1DAC1_EQ_B4_PG - [15:0] */
  3336. #define WM8994_AIF1DAC1_EQ_B4_PG_WIDTH 16 /* AIF1DAC1_EQ_B4_PG - [15:0] */
  3337. /*
  3338. * R1169 (0x491) - AIF1 DAC1 EQ Band 5 A
  3339. */
  3340. #define WM8994_AIF1DAC1_EQ_B5_A_MASK 0xFFFF /* AIF1DAC1_EQ_B5_A - [15:0] */
  3341. #define WM8994_AIF1DAC1_EQ_B5_A_SHIFT 0 /* AIF1DAC1_EQ_B5_A - [15:0] */
  3342. #define WM8994_AIF1DAC1_EQ_B5_A_WIDTH 16 /* AIF1DAC1_EQ_B5_A - [15:0] */
  3343. /*
  3344. * R1170 (0x492) - AIF1 DAC1 EQ Band 5 B
  3345. */
  3346. #define WM8994_AIF1DAC1_EQ_B5_B_MASK 0xFFFF /* AIF1DAC1_EQ_B5_B - [15:0] */
  3347. #define WM8994_AIF1DAC1_EQ_B5_B_SHIFT 0 /* AIF1DAC1_EQ_B5_B - [15:0] */
  3348. #define WM8994_AIF1DAC1_EQ_B5_B_WIDTH 16 /* AIF1DAC1_EQ_B5_B - [15:0] */
  3349. /*
  3350. * R1171 (0x493) - AIF1 DAC1 EQ Band 5 PG
  3351. */
  3352. #define WM8994_AIF1DAC1_EQ_B5_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B5_PG - [15:0] */
  3353. #define WM8994_AIF1DAC1_EQ_B5_PG_SHIFT 0 /* AIF1DAC1_EQ_B5_PG - [15:0] */
  3354. #define WM8994_AIF1DAC1_EQ_B5_PG_WIDTH 16 /* AIF1DAC1_EQ_B5_PG - [15:0] */
  3355. /*
  3356. * R1184 (0x4A0) - AIF1 DAC2 EQ Gains (1)
  3357. */
  3358. #define WM8994_AIF1DAC2_EQ_B1_GAIN_MASK 0xF800 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  3359. #define WM8994_AIF1DAC2_EQ_B1_GAIN_SHIFT 11 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  3360. #define WM8994_AIF1DAC2_EQ_B1_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  3361. #define WM8994_AIF1DAC2_EQ_B2_GAIN_MASK 0x07C0 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  3362. #define WM8994_AIF1DAC2_EQ_B2_GAIN_SHIFT 6 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  3363. #define WM8994_AIF1DAC2_EQ_B2_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  3364. #define WM8994_AIF1DAC2_EQ_B3_GAIN_MASK 0x003E /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  3365. #define WM8994_AIF1DAC2_EQ_B3_GAIN_SHIFT 1 /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  3366. #define WM8994_AIF1DAC2_EQ_B3_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  3367. #define WM8994_AIF1DAC2_EQ_ENA 0x0001 /* AIF1DAC2_EQ_ENA */
  3368. #define WM8994_AIF1DAC2_EQ_ENA_MASK 0x0001 /* AIF1DAC2_EQ_ENA */
  3369. #define WM8994_AIF1DAC2_EQ_ENA_SHIFT 0 /* AIF1DAC2_EQ_ENA */
  3370. #define WM8994_AIF1DAC2_EQ_ENA_WIDTH 1 /* AIF1DAC2_EQ_ENA */
  3371. /*
  3372. * R1185 (0x4A1) - AIF1 DAC2 EQ Gains (2)
  3373. */
  3374. #define WM8994_AIF1DAC2_EQ_B4_GAIN_MASK 0xF800 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  3375. #define WM8994_AIF1DAC2_EQ_B4_GAIN_SHIFT 11 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  3376. #define WM8994_AIF1DAC2_EQ_B4_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  3377. #define WM8994_AIF1DAC2_EQ_B5_GAIN_MASK 0x07C0 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  3378. #define WM8994_AIF1DAC2_EQ_B5_GAIN_SHIFT 6 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  3379. #define WM8994_AIF1DAC2_EQ_B5_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  3380. /*
  3381. * R1186 (0x4A2) - AIF1 DAC2 EQ Band 1 A
  3382. */
  3383. #define WM8994_AIF1DAC2_EQ_B1_A_MASK 0xFFFF /* AIF1DAC2_EQ_B1_A - [15:0] */
  3384. #define WM8994_AIF1DAC2_EQ_B1_A_SHIFT 0 /* AIF1DAC2_EQ_B1_A - [15:0] */
  3385. #define WM8994_AIF1DAC2_EQ_B1_A_WIDTH 16 /* AIF1DAC2_EQ_B1_A - [15:0] */
  3386. /*
  3387. * R1187 (0x4A3) - AIF1 DAC2 EQ Band 1 B
  3388. */
  3389. #define WM8994_AIF1DAC2_EQ_B1_B_MASK 0xFFFF /* AIF1DAC2_EQ_B1_B - [15:0] */
  3390. #define WM8994_AIF1DAC2_EQ_B1_B_SHIFT 0 /* AIF1DAC2_EQ_B1_B - [15:0] */
  3391. #define WM8994_AIF1DAC2_EQ_B1_B_WIDTH 16 /* AIF1DAC2_EQ_B1_B - [15:0] */
  3392. /*
  3393. * R1188 (0x4A4) - AIF1 DAC2 EQ Band 1 PG
  3394. */
  3395. #define WM8994_AIF1DAC2_EQ_B1_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B1_PG - [15:0] */
  3396. #define WM8994_AIF1DAC2_EQ_B1_PG_SHIFT 0 /* AIF1DAC2_EQ_B1_PG - [15:0] */
  3397. #define WM8994_AIF1DAC2_EQ_B1_PG_WIDTH 16 /* AIF1DAC2_EQ_B1_PG - [15:0] */
  3398. /*
  3399. * R1189 (0x4A5) - AIF1 DAC2 EQ Band 2 A
  3400. */
  3401. #define WM8994_AIF1DAC2_EQ_B2_A_MASK 0xFFFF /* AIF1DAC2_EQ_B2_A - [15:0] */
  3402. #define WM8994_AIF1DAC2_EQ_B2_A_SHIFT 0 /* AIF1DAC2_EQ_B2_A - [15:0] */
  3403. #define WM8994_AIF1DAC2_EQ_B2_A_WIDTH 16 /* AIF1DAC2_EQ_B2_A - [15:0] */
  3404. /*
  3405. * R1190 (0x4A6) - AIF1 DAC2 EQ Band 2 B
  3406. */
  3407. #define WM8994_AIF1DAC2_EQ_B2_B_MASK 0xFFFF /* AIF1DAC2_EQ_B2_B - [15:0] */
  3408. #define WM8994_AIF1DAC2_EQ_B2_B_SHIFT 0 /* AIF1DAC2_EQ_B2_B - [15:0] */
  3409. #define WM8994_AIF1DAC2_EQ_B2_B_WIDTH 16 /* AIF1DAC2_EQ_B2_B - [15:0] */
  3410. /*
  3411. * R1191 (0x4A7) - AIF1 DAC2 EQ Band 2 C
  3412. */
  3413. #define WM8994_AIF1DAC2_EQ_B2_C_MASK 0xFFFF /* AIF1DAC2_EQ_B2_C - [15:0] */
  3414. #define WM8994_AIF1DAC2_EQ_B2_C_SHIFT 0 /* AIF1DAC2_EQ_B2_C - [15:0] */
  3415. #define WM8994_AIF1DAC2_EQ_B2_C_WIDTH 16 /* AIF1DAC2_EQ_B2_C - [15:0] */
  3416. /*
  3417. * R1192 (0x4A8) - AIF1 DAC2 EQ Band 2 PG
  3418. */
  3419. #define WM8994_AIF1DAC2_EQ_B2_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B2_PG - [15:0] */
  3420. #define WM8994_AIF1DAC2_EQ_B2_PG_SHIFT 0 /* AIF1DAC2_EQ_B2_PG - [15:0] */
  3421. #define WM8994_AIF1DAC2_EQ_B2_PG_WIDTH 16 /* AIF1DAC2_EQ_B2_PG - [15:0] */
  3422. /*
  3423. * R1193 (0x4A9) - AIF1 DAC2 EQ Band 3 A
  3424. */
  3425. #define WM8994_AIF1DAC2_EQ_B3_A_MASK 0xFFFF /* AIF1DAC2_EQ_B3_A - [15:0] */
  3426. #define WM8994_AIF1DAC2_EQ_B3_A_SHIFT 0 /* AIF1DAC2_EQ_B3_A - [15:0] */
  3427. #define WM8994_AIF1DAC2_EQ_B3_A_WIDTH 16 /* AIF1DAC2_EQ_B3_A - [15:0] */
  3428. /*
  3429. * R1194 (0x4AA) - AIF1 DAC2 EQ Band 3 B
  3430. */
  3431. #define WM8994_AIF1DAC2_EQ_B3_B_MASK 0xFFFF /* AIF1DAC2_EQ_B3_B - [15:0] */
  3432. #define WM8994_AIF1DAC2_EQ_B3_B_SHIFT 0 /* AIF1DAC2_EQ_B3_B - [15:0] */
  3433. #define WM8994_AIF1DAC2_EQ_B3_B_WIDTH 16 /* AIF1DAC2_EQ_B3_B - [15:0] */
  3434. /*
  3435. * R1195 (0x4AB) - AIF1 DAC2 EQ Band 3 C
  3436. */
  3437. #define WM8994_AIF1DAC2_EQ_B3_C_MASK 0xFFFF /* AIF1DAC2_EQ_B3_C - [15:0] */
  3438. #define WM8994_AIF1DAC2_EQ_B3_C_SHIFT 0 /* AIF1DAC2_EQ_B3_C - [15:0] */
  3439. #define WM8994_AIF1DAC2_EQ_B3_C_WIDTH 16 /* AIF1DAC2_EQ_B3_C - [15:0] */
  3440. /*
  3441. * R1196 (0x4AC) - AIF1 DAC2 EQ Band 3 PG
  3442. */
  3443. #define WM8994_AIF1DAC2_EQ_B3_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B3_PG - [15:0] */
  3444. #define WM8994_AIF1DAC2_EQ_B3_PG_SHIFT 0 /* AIF1DAC2_EQ_B3_PG - [15:0] */
  3445. #define WM8994_AIF1DAC2_EQ_B3_PG_WIDTH 16 /* AIF1DAC2_EQ_B3_PG - [15:0] */
  3446. /*
  3447. * R1197 (0x4AD) - AIF1 DAC2 EQ Band 4 A
  3448. */
  3449. #define WM8994_AIF1DAC2_EQ_B4_A_MASK 0xFFFF /* AIF1DAC2_EQ_B4_A - [15:0] */
  3450. #define WM8994_AIF1DAC2_EQ_B4_A_SHIFT 0 /* AIF1DAC2_EQ_B4_A - [15:0] */
  3451. #define WM8994_AIF1DAC2_EQ_B4_A_WIDTH 16 /* AIF1DAC2_EQ_B4_A - [15:0] */
  3452. /*
  3453. * R1198 (0x4AE) - AIF1 DAC2 EQ Band 4 B
  3454. */
  3455. #define WM8994_AIF1DAC2_EQ_B4_B_MASK 0xFFFF /* AIF1DAC2_EQ_B4_B - [15:0] */
  3456. #define WM8994_AIF1DAC2_EQ_B4_B_SHIFT 0 /* AIF1DAC2_EQ_B4_B - [15:0] */
  3457. #define WM8994_AIF1DAC2_EQ_B4_B_WIDTH 16 /* AIF1DAC2_EQ_B4_B - [15:0] */
  3458. /*
  3459. * R1199 (0x4AF) - AIF1 DAC2 EQ Band 4 C
  3460. */
  3461. #define WM8994_AIF1DAC2_EQ_B4_C_MASK 0xFFFF /* AIF1DAC2_EQ_B4_C - [15:0] */
  3462. #define WM8994_AIF1DAC2_EQ_B4_C_SHIFT 0 /* AIF1DAC2_EQ_B4_C - [15:0] */
  3463. #define WM8994_AIF1DAC2_EQ_B4_C_WIDTH 16 /* AIF1DAC2_EQ_B4_C - [15:0] */
  3464. /*
  3465. * R1200 (0x4B0) - AIF1 DAC2 EQ Band 4 PG
  3466. */
  3467. #define WM8994_AIF1DAC2_EQ_B4_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B4_PG - [15:0] */
  3468. #define WM8994_AIF1DAC2_EQ_B4_PG_SHIFT 0 /* AIF1DAC2_EQ_B4_PG - [15:0] */
  3469. #define WM8994_AIF1DAC2_EQ_B4_PG_WIDTH 16 /* AIF1DAC2_EQ_B4_PG - [15:0] */
  3470. /*
  3471. * R1201 (0x4B1) - AIF1 DAC2 EQ Band 5 A
  3472. */
  3473. #define WM8994_AIF1DAC2_EQ_B5_A_MASK 0xFFFF /* AIF1DAC2_EQ_B5_A - [15:0] */
  3474. #define WM8994_AIF1DAC2_EQ_B5_A_SHIFT 0 /* AIF1DAC2_EQ_B5_A - [15:0] */
  3475. #define WM8994_AIF1DAC2_EQ_B5_A_WIDTH 16 /* AIF1DAC2_EQ_B5_A - [15:0] */
  3476. /*
  3477. * R1202 (0x4B2) - AIF1 DAC2 EQ Band 5 B
  3478. */
  3479. #define WM8994_AIF1DAC2_EQ_B5_B_MASK 0xFFFF /* AIF1DAC2_EQ_B5_B - [15:0] */
  3480. #define WM8994_AIF1DAC2_EQ_B5_B_SHIFT 0 /* AIF1DAC2_EQ_B5_B - [15:0] */
  3481. #define WM8994_AIF1DAC2_EQ_B5_B_WIDTH 16 /* AIF1DAC2_EQ_B5_B - [15:0] */
  3482. /*
  3483. * R1203 (0x4B3) - AIF1 DAC2 EQ Band 5 PG
  3484. */
  3485. #define WM8994_AIF1DAC2_EQ_B5_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B5_PG - [15:0] */
  3486. #define WM8994_AIF1DAC2_EQ_B5_PG_SHIFT 0 /* AIF1DAC2_EQ_B5_PG - [15:0] */
  3487. #define WM8994_AIF1DAC2_EQ_B5_PG_WIDTH 16 /* AIF1DAC2_EQ_B5_PG - [15:0] */
  3488. /*
  3489. * R1280 (0x500) - AIF2 ADC Left Volume
  3490. */
  3491. #define WM8994_AIF2ADC_VU 0x0100 /* AIF2ADC_VU */
  3492. #define WM8994_AIF2ADC_VU_MASK 0x0100 /* AIF2ADC_VU */
  3493. #define WM8994_AIF2ADC_VU_SHIFT 8 /* AIF2ADC_VU */
  3494. #define WM8994_AIF2ADC_VU_WIDTH 1 /* AIF2ADC_VU */
  3495. #define WM8994_AIF2ADCL_VOL_MASK 0x00FF /* AIF2ADCL_VOL - [7:0] */
  3496. #define WM8994_AIF2ADCL_VOL_SHIFT 0 /* AIF2ADCL_VOL - [7:0] */
  3497. #define WM8994_AIF2ADCL_VOL_WIDTH 8 /* AIF2ADCL_VOL - [7:0] */
  3498. /*
  3499. * R1281 (0x501) - AIF2 ADC Right Volume
  3500. */
  3501. #define WM8994_AIF2ADC_VU 0x0100 /* AIF2ADC_VU */
  3502. #define WM8994_AIF2ADC_VU_MASK 0x0100 /* AIF2ADC_VU */
  3503. #define WM8994_AIF2ADC_VU_SHIFT 8 /* AIF2ADC_VU */
  3504. #define WM8994_AIF2ADC_VU_WIDTH 1 /* AIF2ADC_VU */
  3505. #define WM8994_AIF2ADCR_VOL_MASK 0x00FF /* AIF2ADCR_VOL - [7:0] */
  3506. #define WM8994_AIF2ADCR_VOL_SHIFT 0 /* AIF2ADCR_VOL - [7:0] */
  3507. #define WM8994_AIF2ADCR_VOL_WIDTH 8 /* AIF2ADCR_VOL - [7:0] */
  3508. /*
  3509. * R1282 (0x502) - AIF2 DAC Left Volume
  3510. */
  3511. #define WM8994_AIF2DAC_VU 0x0100 /* AIF2DAC_VU */
  3512. #define WM8994_AIF2DAC_VU_MASK 0x0100 /* AIF2DAC_VU */
  3513. #define WM8994_AIF2DAC_VU_SHIFT 8 /* AIF2DAC_VU */
  3514. #define WM8994_AIF2DAC_VU_WIDTH 1 /* AIF2DAC_VU */
  3515. #define WM8994_AIF2DACL_VOL_MASK 0x00FF /* AIF2DACL_VOL - [7:0] */
  3516. #define WM8994_AIF2DACL_VOL_SHIFT 0 /* AIF2DACL_VOL - [7:0] */
  3517. #define WM8994_AIF2DACL_VOL_WIDTH 8 /* AIF2DACL_VOL - [7:0] */
  3518. /*
  3519. * R1283 (0x503) - AIF2 DAC Right Volume
  3520. */
  3521. #define WM8994_AIF2DAC_VU 0x0100 /* AIF2DAC_VU */
  3522. #define WM8994_AIF2DAC_VU_MASK 0x0100 /* AIF2DAC_VU */
  3523. #define WM8994_AIF2DAC_VU_SHIFT 8 /* AIF2DAC_VU */
  3524. #define WM8994_AIF2DAC_VU_WIDTH 1 /* AIF2DAC_VU */
  3525. #define WM8994_AIF2DACR_VOL_MASK 0x00FF /* AIF2DACR_VOL - [7:0] */
  3526. #define WM8994_AIF2DACR_VOL_SHIFT 0 /* AIF2DACR_VOL - [7:0] */
  3527. #define WM8994_AIF2DACR_VOL_WIDTH 8 /* AIF2DACR_VOL - [7:0] */
  3528. /*
  3529. * R1296 (0x510) - AIF2 ADC Filters
  3530. */
  3531. #define WM8994_AIF2ADC_4FS 0x8000 /* AIF2ADC_4FS */
  3532. #define WM8994_AIF2ADC_4FS_MASK 0x8000 /* AIF2ADC_4FS */
  3533. #define WM8994_AIF2ADC_4FS_SHIFT 15 /* AIF2ADC_4FS */
  3534. #define WM8994_AIF2ADC_4FS_WIDTH 1 /* AIF2ADC_4FS */
  3535. #define WM8994_AIF2ADC_HPF_CUT_MASK 0x6000 /* AIF2ADC_HPF_CUT - [14:13] */
  3536. #define WM8994_AIF2ADC_HPF_CUT_SHIFT 13 /* AIF2ADC_HPF_CUT - [14:13] */
  3537. #define WM8994_AIF2ADC_HPF_CUT_WIDTH 2 /* AIF2ADC_HPF_CUT - [14:13] */
  3538. #define WM8994_AIF2ADCL_HPF 0x1000 /* AIF2ADCL_HPF */
  3539. #define WM8994_AIF2ADCL_HPF_MASK 0x1000 /* AIF2ADCL_HPF */
  3540. #define WM8994_AIF2ADCL_HPF_SHIFT 12 /* AIF2ADCL_HPF */
  3541. #define WM8994_AIF2ADCL_HPF_WIDTH 1 /* AIF2ADCL_HPF */
  3542. #define WM8994_AIF2ADCR_HPF 0x0800 /* AIF2ADCR_HPF */
  3543. #define WM8994_AIF2ADCR_HPF_MASK 0x0800 /* AIF2ADCR_HPF */
  3544. #define WM8994_AIF2ADCR_HPF_SHIFT 11 /* AIF2ADCR_HPF */
  3545. #define WM8994_AIF2ADCR_HPF_WIDTH 1 /* AIF2ADCR_HPF */
  3546. /*
  3547. * R1312 (0x520) - AIF2 DAC Filters (1)
  3548. */
  3549. #define WM8994_AIF2DAC_MUTE 0x0200 /* AIF2DAC_MUTE */
  3550. #define WM8994_AIF2DAC_MUTE_MASK 0x0200 /* AIF2DAC_MUTE */
  3551. #define WM8994_AIF2DAC_MUTE_SHIFT 9 /* AIF2DAC_MUTE */
  3552. #define WM8994_AIF2DAC_MUTE_WIDTH 1 /* AIF2DAC_MUTE */
  3553. #define WM8994_AIF2DAC_MONO 0x0080 /* AIF2DAC_MONO */
  3554. #define WM8994_AIF2DAC_MONO_MASK 0x0080 /* AIF2DAC_MONO */
  3555. #define WM8994_AIF2DAC_MONO_SHIFT 7 /* AIF2DAC_MONO */
  3556. #define WM8994_AIF2DAC_MONO_WIDTH 1 /* AIF2DAC_MONO */
  3557. #define WM8994_AIF2DAC_MUTERATE 0x0020 /* AIF2DAC_MUTERATE */
  3558. #define WM8994_AIF2DAC_MUTERATE_MASK 0x0020 /* AIF2DAC_MUTERATE */
  3559. #define WM8994_AIF2DAC_MUTERATE_SHIFT 5 /* AIF2DAC_MUTERATE */
  3560. #define WM8994_AIF2DAC_MUTERATE_WIDTH 1 /* AIF2DAC_MUTERATE */
  3561. #define WM8994_AIF2DAC_UNMUTE_RAMP 0x0010 /* AIF2DAC_UNMUTE_RAMP */
  3562. #define WM8994_AIF2DAC_UNMUTE_RAMP_MASK 0x0010 /* AIF2DAC_UNMUTE_RAMP */
  3563. #define WM8994_AIF2DAC_UNMUTE_RAMP_SHIFT 4 /* AIF2DAC_UNMUTE_RAMP */
  3564. #define WM8994_AIF2DAC_UNMUTE_RAMP_WIDTH 1 /* AIF2DAC_UNMUTE_RAMP */
  3565. #define WM8994_AIF2DAC_DEEMP_MASK 0x0006 /* AIF2DAC_DEEMP - [2:1] */
  3566. #define WM8994_AIF2DAC_DEEMP_SHIFT 1 /* AIF2DAC_DEEMP - [2:1] */
  3567. #define WM8994_AIF2DAC_DEEMP_WIDTH 2 /* AIF2DAC_DEEMP - [2:1] */
  3568. /*
  3569. * R1313 (0x521) - AIF2 DAC Filters (2)
  3570. */
  3571. #define WM8994_AIF2DAC_3D_GAIN_MASK 0x3E00 /* AIF2DAC_3D_GAIN - [13:9] */
  3572. #define WM8994_AIF2DAC_3D_GAIN_SHIFT 9 /* AIF2DAC_3D_GAIN - [13:9] */
  3573. #define WM8994_AIF2DAC_3D_GAIN_WIDTH 5 /* AIF2DAC_3D_GAIN - [13:9] */
  3574. #define WM8994_AIF2DAC_3D_ENA 0x0100 /* AIF2DAC_3D_ENA */
  3575. #define WM8994_AIF2DAC_3D_ENA_MASK 0x0100 /* AIF2DAC_3D_ENA */
  3576. #define WM8994_AIF2DAC_3D_ENA_SHIFT 8 /* AIF2DAC_3D_ENA */
  3577. #define WM8994_AIF2DAC_3D_ENA_WIDTH 1 /* AIF2DAC_3D_ENA */
  3578. /*
  3579. * R1328 (0x530) - AIF2 DAC Noise Gate
  3580. */
  3581. #define WM8958_AIF2DAC_NG_HLD_MASK 0x0060 /* AIF2DAC_NG_HLD - [6:5] */
  3582. #define WM8958_AIF2DAC_NG_HLD_SHIFT 5 /* AIF2DAC_NG_HLD - [6:5] */
  3583. #define WM8958_AIF2DAC_NG_HLD_WIDTH 2 /* AIF2DAC_NG_HLD - [6:5] */
  3584. #define WM8958_AIF2DAC_NG_THR_MASK 0x000E /* AIF2DAC_NG_THR - [3:1] */
  3585. #define WM8958_AIF2DAC_NG_THR_SHIFT 1 /* AIF2DAC_NG_THR - [3:1] */
  3586. #define WM8958_AIF2DAC_NG_THR_WIDTH 3 /* AIF2DAC_NG_THR - [3:1] */
  3587. #define WM8958_AIF2DAC_NG_ENA 0x0001 /* AIF2DAC_NG_ENA */
  3588. #define WM8958_AIF2DAC_NG_ENA_MASK 0x0001 /* AIF2DAC_NG_ENA */
  3589. #define WM8958_AIF2DAC_NG_ENA_SHIFT 0 /* AIF2DAC_NG_ENA */
  3590. #define WM8958_AIF2DAC_NG_ENA_WIDTH 1 /* AIF2DAC_NG_ENA */
  3591. /*
  3592. * R1344 (0x540) - AIF2 DRC (1)
  3593. */
  3594. #define WM8994_AIF2DRC_SIG_DET_RMS_MASK 0xF800 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  3595. #define WM8994_AIF2DRC_SIG_DET_RMS_SHIFT 11 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  3596. #define WM8994_AIF2DRC_SIG_DET_RMS_WIDTH 5 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  3597. #define WM8994_AIF2DRC_SIG_DET_PK_MASK 0x0600 /* AIF2DRC_SIG_DET_PK - [10:9] */
  3598. #define WM8994_AIF2DRC_SIG_DET_PK_SHIFT 9 /* AIF2DRC_SIG_DET_PK - [10:9] */
  3599. #define WM8994_AIF2DRC_SIG_DET_PK_WIDTH 2 /* AIF2DRC_SIG_DET_PK - [10:9] */
  3600. #define WM8994_AIF2DRC_NG_ENA 0x0100 /* AIF2DRC_NG_ENA */
  3601. #define WM8994_AIF2DRC_NG_ENA_MASK 0x0100 /* AIF2DRC_NG_ENA */
  3602. #define WM8994_AIF2DRC_NG_ENA_SHIFT 8 /* AIF2DRC_NG_ENA */
  3603. #define WM8994_AIF2DRC_NG_ENA_WIDTH 1 /* AIF2DRC_NG_ENA */
  3604. #define WM8994_AIF2DRC_SIG_DET_MODE 0x0080 /* AIF2DRC_SIG_DET_MODE */
  3605. #define WM8994_AIF2DRC_SIG_DET_MODE_MASK 0x0080 /* AIF2DRC_SIG_DET_MODE */
  3606. #define WM8994_AIF2DRC_SIG_DET_MODE_SHIFT 7 /* AIF2DRC_SIG_DET_MODE */
  3607. #define WM8994_AIF2DRC_SIG_DET_MODE_WIDTH 1 /* AIF2DRC_SIG_DET_MODE */
  3608. #define WM8994_AIF2DRC_SIG_DET 0x0040 /* AIF2DRC_SIG_DET */
  3609. #define WM8994_AIF2DRC_SIG_DET_MASK 0x0040 /* AIF2DRC_SIG_DET */
  3610. #define WM8994_AIF2DRC_SIG_DET_SHIFT 6 /* AIF2DRC_SIG_DET */
  3611. #define WM8994_AIF2DRC_SIG_DET_WIDTH 1 /* AIF2DRC_SIG_DET */
  3612. #define WM8994_AIF2DRC_KNEE2_OP_ENA 0x0020 /* AIF2DRC_KNEE2_OP_ENA */
  3613. #define WM8994_AIF2DRC_KNEE2_OP_ENA_MASK 0x0020 /* AIF2DRC_KNEE2_OP_ENA */
  3614. #define WM8994_AIF2DRC_KNEE2_OP_ENA_SHIFT 5 /* AIF2DRC_KNEE2_OP_ENA */
  3615. #define WM8994_AIF2DRC_KNEE2_OP_ENA_WIDTH 1 /* AIF2DRC_KNEE2_OP_ENA */
  3616. #define WM8994_AIF2DRC_QR 0x0010 /* AIF2DRC_QR */
  3617. #define WM8994_AIF2DRC_QR_MASK 0x0010 /* AIF2DRC_QR */
  3618. #define WM8994_AIF2DRC_QR_SHIFT 4 /* AIF2DRC_QR */
  3619. #define WM8994_AIF2DRC_QR_WIDTH 1 /* AIF2DRC_QR */
  3620. #define WM8994_AIF2DRC_ANTICLIP 0x0008 /* AIF2DRC_ANTICLIP */
  3621. #define WM8994_AIF2DRC_ANTICLIP_MASK 0x0008 /* AIF2DRC_ANTICLIP */
  3622. #define WM8994_AIF2DRC_ANTICLIP_SHIFT 3 /* AIF2DRC_ANTICLIP */
  3623. #define WM8994_AIF2DRC_ANTICLIP_WIDTH 1 /* AIF2DRC_ANTICLIP */
  3624. #define WM8994_AIF2DAC_DRC_ENA 0x0004 /* AIF2DAC_DRC_ENA */
  3625. #define WM8994_AIF2DAC_DRC_ENA_MASK 0x0004 /* AIF2DAC_DRC_ENA */
  3626. #define WM8994_AIF2DAC_DRC_ENA_SHIFT 2 /* AIF2DAC_DRC_ENA */
  3627. #define WM8994_AIF2DAC_DRC_ENA_WIDTH 1 /* AIF2DAC_DRC_ENA */
  3628. #define WM8994_AIF2ADCL_DRC_ENA 0x0002 /* AIF2ADCL_DRC_ENA */
  3629. #define WM8994_AIF2ADCL_DRC_ENA_MASK 0x0002 /* AIF2ADCL_DRC_ENA */
  3630. #define WM8994_AIF2ADCL_DRC_ENA_SHIFT 1 /* AIF2ADCL_DRC_ENA */
  3631. #define WM8994_AIF2ADCL_DRC_ENA_WIDTH 1 /* AIF2ADCL_DRC_ENA */
  3632. #define WM8994_AIF2ADCR_DRC_ENA 0x0001 /* AIF2ADCR_DRC_ENA */
  3633. #define WM8994_AIF2ADCR_DRC_ENA_MASK 0x0001 /* AIF2ADCR_DRC_ENA */
  3634. #define WM8994_AIF2ADCR_DRC_ENA_SHIFT 0 /* AIF2ADCR_DRC_ENA */
  3635. #define WM8994_AIF2ADCR_DRC_ENA_WIDTH 1 /* AIF2ADCR_DRC_ENA */
  3636. /*
  3637. * R1345 (0x541) - AIF2 DRC (2)
  3638. */
  3639. #define WM8994_AIF2DRC_ATK_MASK 0x1E00 /* AIF2DRC_ATK - [12:9] */
  3640. #define WM8994_AIF2DRC_ATK_SHIFT 9 /* AIF2DRC_ATK - [12:9] */
  3641. #define WM8994_AIF2DRC_ATK_WIDTH 4 /* AIF2DRC_ATK - [12:9] */
  3642. #define WM8994_AIF2DRC_DCY_MASK 0x01E0 /* AIF2DRC_DCY - [8:5] */
  3643. #define WM8994_AIF2DRC_DCY_SHIFT 5 /* AIF2DRC_DCY - [8:5] */
  3644. #define WM8994_AIF2DRC_DCY_WIDTH 4 /* AIF2DRC_DCY - [8:5] */
  3645. #define WM8994_AIF2DRC_MINGAIN_MASK 0x001C /* AIF2DRC_MINGAIN - [4:2] */
  3646. #define WM8994_AIF2DRC_MINGAIN_SHIFT 2 /* AIF2DRC_MINGAIN - [4:2] */
  3647. #define WM8994_AIF2DRC_MINGAIN_WIDTH 3 /* AIF2DRC_MINGAIN - [4:2] */
  3648. #define WM8994_AIF2DRC_MAXGAIN_MASK 0x0003 /* AIF2DRC_MAXGAIN - [1:0] */
  3649. #define WM8994_AIF2DRC_MAXGAIN_SHIFT 0 /* AIF2DRC_MAXGAIN - [1:0] */
  3650. #define WM8994_AIF2DRC_MAXGAIN_WIDTH 2 /* AIF2DRC_MAXGAIN - [1:0] */
  3651. /*
  3652. * R1346 (0x542) - AIF2 DRC (3)
  3653. */
  3654. #define WM8994_AIF2DRC_NG_MINGAIN_MASK 0xF000 /* AIF2DRC_NG_MINGAIN - [15:12] */
  3655. #define WM8994_AIF2DRC_NG_MINGAIN_SHIFT 12 /* AIF2DRC_NG_MINGAIN - [15:12] */
  3656. #define WM8994_AIF2DRC_NG_MINGAIN_WIDTH 4 /* AIF2DRC_NG_MINGAIN - [15:12] */
  3657. #define WM8994_AIF2DRC_NG_EXP_MASK 0x0C00 /* AIF2DRC_NG_EXP - [11:10] */
  3658. #define WM8994_AIF2DRC_NG_EXP_SHIFT 10 /* AIF2DRC_NG_EXP - [11:10] */
  3659. #define WM8994_AIF2DRC_NG_EXP_WIDTH 2 /* AIF2DRC_NG_EXP - [11:10] */
  3660. #define WM8994_AIF2DRC_QR_THR_MASK 0x0300 /* AIF2DRC_QR_THR - [9:8] */
  3661. #define WM8994_AIF2DRC_QR_THR_SHIFT 8 /* AIF2DRC_QR_THR - [9:8] */
  3662. #define WM8994_AIF2DRC_QR_THR_WIDTH 2 /* AIF2DRC_QR_THR - [9:8] */
  3663. #define WM8994_AIF2DRC_QR_DCY_MASK 0x00C0 /* AIF2DRC_QR_DCY - [7:6] */
  3664. #define WM8994_AIF2DRC_QR_DCY_SHIFT 6 /* AIF2DRC_QR_DCY - [7:6] */
  3665. #define WM8994_AIF2DRC_QR_DCY_WIDTH 2 /* AIF2DRC_QR_DCY - [7:6] */
  3666. #define WM8994_AIF2DRC_HI_COMP_MASK 0x0038 /* AIF2DRC_HI_COMP - [5:3] */
  3667. #define WM8994_AIF2DRC_HI_COMP_SHIFT 3 /* AIF2DRC_HI_COMP - [5:3] */
  3668. #define WM8994_AIF2DRC_HI_COMP_WIDTH 3 /* AIF2DRC_HI_COMP - [5:3] */
  3669. #define WM8994_AIF2DRC_LO_COMP_MASK 0x0007 /* AIF2DRC_LO_COMP - [2:0] */
  3670. #define WM8994_AIF2DRC_LO_COMP_SHIFT 0 /* AIF2DRC_LO_COMP - [2:0] */
  3671. #define WM8994_AIF2DRC_LO_COMP_WIDTH 3 /* AIF2DRC_LO_COMP - [2:0] */
  3672. /*
  3673. * R1347 (0x543) - AIF2 DRC (4)
  3674. */
  3675. #define WM8994_AIF2DRC_KNEE_IP_MASK 0x07E0 /* AIF2DRC_KNEE_IP - [10:5] */
  3676. #define WM8994_AIF2DRC_KNEE_IP_SHIFT 5 /* AIF2DRC_KNEE_IP - [10:5] */
  3677. #define WM8994_AIF2DRC_KNEE_IP_WIDTH 6 /* AIF2DRC_KNEE_IP - [10:5] */
  3678. #define WM8994_AIF2DRC_KNEE_OP_MASK 0x001F /* AIF2DRC_KNEE_OP - [4:0] */
  3679. #define WM8994_AIF2DRC_KNEE_OP_SHIFT 0 /* AIF2DRC_KNEE_OP - [4:0] */
  3680. #define WM8994_AIF2DRC_KNEE_OP_WIDTH 5 /* AIF2DRC_KNEE_OP - [4:0] */
  3681. /*
  3682. * R1348 (0x544) - AIF2 DRC (5)
  3683. */
  3684. #define WM8994_AIF2DRC_KNEE2_IP_MASK 0x03E0 /* AIF2DRC_KNEE2_IP - [9:5] */
  3685. #define WM8994_AIF2DRC_KNEE2_IP_SHIFT 5 /* AIF2DRC_KNEE2_IP - [9:5] */
  3686. #define WM8994_AIF2DRC_KNEE2_IP_WIDTH 5 /* AIF2DRC_KNEE2_IP - [9:5] */
  3687. #define WM8994_AIF2DRC_KNEE2_OP_MASK 0x001F /* AIF2DRC_KNEE2_OP - [4:0] */
  3688. #define WM8994_AIF2DRC_KNEE2_OP_SHIFT 0 /* AIF2DRC_KNEE2_OP - [4:0] */
  3689. #define WM8994_AIF2DRC_KNEE2_OP_WIDTH 5 /* AIF2DRC_KNEE2_OP - [4:0] */
  3690. /*
  3691. * R1408 (0x580) - AIF2 EQ Gains (1)
  3692. */
  3693. #define WM8994_AIF2DAC_EQ_B1_GAIN_MASK 0xF800 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  3694. #define WM8994_AIF2DAC_EQ_B1_GAIN_SHIFT 11 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  3695. #define WM8994_AIF2DAC_EQ_B1_GAIN_WIDTH 5 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  3696. #define WM8994_AIF2DAC_EQ_B2_GAIN_MASK 0x07C0 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  3697. #define WM8994_AIF2DAC_EQ_B2_GAIN_SHIFT 6 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  3698. #define WM8994_AIF2DAC_EQ_B2_GAIN_WIDTH 5 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  3699. #define WM8994_AIF2DAC_EQ_B3_GAIN_MASK 0x003E /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  3700. #define WM8994_AIF2DAC_EQ_B3_GAIN_SHIFT 1 /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  3701. #define WM8994_AIF2DAC_EQ_B3_GAIN_WIDTH 5 /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  3702. #define WM8994_AIF2DAC_EQ_ENA 0x0001 /* AIF2DAC_EQ_ENA */
  3703. #define WM8994_AIF2DAC_EQ_ENA_MASK 0x0001 /* AIF2DAC_EQ_ENA */
  3704. #define WM8994_AIF2DAC_EQ_ENA_SHIFT 0 /* AIF2DAC_EQ_ENA */
  3705. #define WM8994_AIF2DAC_EQ_ENA_WIDTH 1 /* AIF2DAC_EQ_ENA */
  3706. /*
  3707. * R1409 (0x581) - AIF2 EQ Gains (2)
  3708. */
  3709. #define WM8994_AIF2DAC_EQ_B4_GAIN_MASK 0xF800 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  3710. #define WM8994_AIF2DAC_EQ_B4_GAIN_SHIFT 11 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  3711. #define WM8994_AIF2DAC_EQ_B4_GAIN_WIDTH 5 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  3712. #define WM8994_AIF2DAC_EQ_B5_GAIN_MASK 0x07C0 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  3713. #define WM8994_AIF2DAC_EQ_B5_GAIN_SHIFT 6 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  3714. #define WM8994_AIF2DAC_EQ_B5_GAIN_WIDTH 5 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  3715. /*
  3716. * R1410 (0x582) - AIF2 EQ Band 1 A
  3717. */
  3718. #define WM8994_AIF2DAC_EQ_B1_A_MASK 0xFFFF /* AIF2DAC_EQ_B1_A - [15:0] */
  3719. #define WM8994_AIF2DAC_EQ_B1_A_SHIFT 0 /* AIF2DAC_EQ_B1_A - [15:0] */
  3720. #define WM8994_AIF2DAC_EQ_B1_A_WIDTH 16 /* AIF2DAC_EQ_B1_A - [15:0] */
  3721. /*
  3722. * R1411 (0x583) - AIF2 EQ Band 1 B
  3723. */
  3724. #define WM8994_AIF2DAC_EQ_B1_B_MASK 0xFFFF /* AIF2DAC_EQ_B1_B - [15:0] */
  3725. #define WM8994_AIF2DAC_EQ_B1_B_SHIFT 0 /* AIF2DAC_EQ_B1_B - [15:0] */
  3726. #define WM8994_AIF2DAC_EQ_B1_B_WIDTH 16 /* AIF2DAC_EQ_B1_B - [15:0] */
  3727. /*
  3728. * R1412 (0x584) - AIF2 EQ Band 1 PG
  3729. */
  3730. #define WM8994_AIF2DAC_EQ_B1_PG_MASK 0xFFFF /* AIF2DAC_EQ_B1_PG - [15:0] */
  3731. #define WM8994_AIF2DAC_EQ_B1_PG_SHIFT 0 /* AIF2DAC_EQ_B1_PG - [15:0] */
  3732. #define WM8994_AIF2DAC_EQ_B1_PG_WIDTH 16 /* AIF2DAC_EQ_B1_PG - [15:0] */
  3733. /*
  3734. * R1413 (0x585) - AIF2 EQ Band 2 A
  3735. */
  3736. #define WM8994_AIF2DAC_EQ_B2_A_MASK 0xFFFF /* AIF2DAC_EQ_B2_A - [15:0] */
  3737. #define WM8994_AIF2DAC_EQ_B2_A_SHIFT 0 /* AIF2DAC_EQ_B2_A - [15:0] */
  3738. #define WM8994_AIF2DAC_EQ_B2_A_WIDTH 16 /* AIF2DAC_EQ_B2_A - [15:0] */
  3739. /*
  3740. * R1414 (0x586) - AIF2 EQ Band 2 B
  3741. */
  3742. #define WM8994_AIF2DAC_EQ_B2_B_MASK 0xFFFF /* AIF2DAC_EQ_B2_B - [15:0] */
  3743. #define WM8994_AIF2DAC_EQ_B2_B_SHIFT 0 /* AIF2DAC_EQ_B2_B - [15:0] */
  3744. #define WM8994_AIF2DAC_EQ_B2_B_WIDTH 16 /* AIF2DAC_EQ_B2_B - [15:0] */
  3745. /*
  3746. * R1415 (0x587) - AIF2 EQ Band 2 C
  3747. */
  3748. #define WM8994_AIF2DAC_EQ_B2_C_MASK 0xFFFF /* AIF2DAC_EQ_B2_C - [15:0] */
  3749. #define WM8994_AIF2DAC_EQ_B2_C_SHIFT 0 /* AIF2DAC_EQ_B2_C - [15:0] */
  3750. #define WM8994_AIF2DAC_EQ_B2_C_WIDTH 16 /* AIF2DAC_EQ_B2_C - [15:0] */
  3751. /*
  3752. * R1416 (0x588) - AIF2 EQ Band 2 PG
  3753. */
  3754. #define WM8994_AIF2DAC_EQ_B2_PG_MASK 0xFFFF /* AIF2DAC_EQ_B2_PG - [15:0] */
  3755. #define WM8994_AIF2DAC_EQ_B2_PG_SHIFT 0 /* AIF2DAC_EQ_B2_PG - [15:0] */
  3756. #define WM8994_AIF2DAC_EQ_B2_PG_WIDTH 16 /* AIF2DAC_EQ_B2_PG - [15:0] */
  3757. /*
  3758. * R1417 (0x589) - AIF2 EQ Band 3 A
  3759. */
  3760. #define WM8994_AIF2DAC_EQ_B3_A_MASK 0xFFFF /* AIF2DAC_EQ_B3_A - [15:0] */
  3761. #define WM8994_AIF2DAC_EQ_B3_A_SHIFT 0 /* AIF2DAC_EQ_B3_A - [15:0] */
  3762. #define WM8994_AIF2DAC_EQ_B3_A_WIDTH 16 /* AIF2DAC_EQ_B3_A - [15:0] */
  3763. /*
  3764. * R1418 (0x58A) - AIF2 EQ Band 3 B
  3765. */
  3766. #define WM8994_AIF2DAC_EQ_B3_B_MASK 0xFFFF /* AIF2DAC_EQ_B3_B - [15:0] */
  3767. #define WM8994_AIF2DAC_EQ_B3_B_SHIFT 0 /* AIF2DAC_EQ_B3_B - [15:0] */
  3768. #define WM8994_AIF2DAC_EQ_B3_B_WIDTH 16 /* AIF2DAC_EQ_B3_B - [15:0] */
  3769. /*
  3770. * R1419 (0x58B) - AIF2 EQ Band 3 C
  3771. */
  3772. #define WM8994_AIF2DAC_EQ_B3_C_MASK 0xFFFF /* AIF2DAC_EQ_B3_C - [15:0] */
  3773. #define WM8994_AIF2DAC_EQ_B3_C_SHIFT 0 /* AIF2DAC_EQ_B3_C - [15:0] */
  3774. #define WM8994_AIF2DAC_EQ_B3_C_WIDTH 16 /* AIF2DAC_EQ_B3_C - [15:0] */
  3775. /*
  3776. * R1420 (0x58C) - AIF2 EQ Band 3 PG
  3777. */
  3778. #define WM8994_AIF2DAC_EQ_B3_PG_MASK 0xFFFF /* AIF2DAC_EQ_B3_PG - [15:0] */
  3779. #define WM8994_AIF2DAC_EQ_B3_PG_SHIFT 0 /* AIF2DAC_EQ_B3_PG - [15:0] */
  3780. #define WM8994_AIF2DAC_EQ_B3_PG_WIDTH 16 /* AIF2DAC_EQ_B3_PG - [15:0] */
  3781. /*
  3782. * R1421 (0x58D) - AIF2 EQ Band 4 A
  3783. */
  3784. #define WM8994_AIF2DAC_EQ_B4_A_MASK 0xFFFF /* AIF2DAC_EQ_B4_A - [15:0] */
  3785. #define WM8994_AIF2DAC_EQ_B4_A_SHIFT 0 /* AIF2DAC_EQ_B4_A - [15:0] */
  3786. #define WM8994_AIF2DAC_EQ_B4_A_WIDTH 16 /* AIF2DAC_EQ_B4_A - [15:0] */
  3787. /*
  3788. * R1422 (0x58E) - AIF2 EQ Band 4 B
  3789. */
  3790. #define WM8994_AIF2DAC_EQ_B4_B_MASK 0xFFFF /* AIF2DAC_EQ_B4_B - [15:0] */
  3791. #define WM8994_AIF2DAC_EQ_B4_B_SHIFT 0 /* AIF2DAC_EQ_B4_B - [15:0] */
  3792. #define WM8994_AIF2DAC_EQ_B4_B_WIDTH 16 /* AIF2DAC_EQ_B4_B - [15:0] */
  3793. /*
  3794. * R1423 (0x58F) - AIF2 EQ Band 4 C
  3795. */
  3796. #define WM8994_AIF2DAC_EQ_B4_C_MASK 0xFFFF /* AIF2DAC_EQ_B4_C - [15:0] */
  3797. #define WM8994_AIF2DAC_EQ_B4_C_SHIFT 0 /* AIF2DAC_EQ_B4_C - [15:0] */
  3798. #define WM8994_AIF2DAC_EQ_B4_C_WIDTH 16 /* AIF2DAC_EQ_B4_C - [15:0] */
  3799. /*
  3800. * R1424 (0x590) - AIF2 EQ Band 4 PG
  3801. */
  3802. #define WM8994_AIF2DAC_EQ_B4_PG_MASK 0xFFFF /* AIF2DAC_EQ_B4_PG - [15:0] */
  3803. #define WM8994_AIF2DAC_EQ_B4_PG_SHIFT 0 /* AIF2DAC_EQ_B4_PG - [15:0] */
  3804. #define WM8994_AIF2DAC_EQ_B4_PG_WIDTH 16 /* AIF2DAC_EQ_B4_PG - [15:0] */
  3805. /*
  3806. * R1425 (0x591) - AIF2 EQ Band 5 A
  3807. */
  3808. #define WM8994_AIF2DAC_EQ_B5_A_MASK 0xFFFF /* AIF2DAC_EQ_B5_A - [15:0] */
  3809. #define WM8994_AIF2DAC_EQ_B5_A_SHIFT 0 /* AIF2DAC_EQ_B5_A - [15:0] */
  3810. #define WM8994_AIF2DAC_EQ_B5_A_WIDTH 16 /* AIF2DAC_EQ_B5_A - [15:0] */
  3811. /*
  3812. * R1426 (0x592) - AIF2 EQ Band 5 B
  3813. */
  3814. #define WM8994_AIF2DAC_EQ_B5_B_MASK 0xFFFF /* AIF2DAC_EQ_B5_B - [15:0] */
  3815. #define WM8994_AIF2DAC_EQ_B5_B_SHIFT 0 /* AIF2DAC_EQ_B5_B - [15:0] */
  3816. #define WM8994_AIF2DAC_EQ_B5_B_WIDTH 16 /* AIF2DAC_EQ_B5_B - [15:0] */
  3817. /*
  3818. * R1427 (0x593) - AIF2 EQ Band 5 PG
  3819. */
  3820. #define WM8994_AIF2DAC_EQ_B5_PG_MASK 0xFFFF /* AIF2DAC_EQ_B5_PG - [15:0] */
  3821. #define WM8994_AIF2DAC_EQ_B5_PG_SHIFT 0 /* AIF2DAC_EQ_B5_PG - [15:0] */
  3822. #define WM8994_AIF2DAC_EQ_B5_PG_WIDTH 16 /* AIF2DAC_EQ_B5_PG - [15:0] */
  3823. /*
  3824. * R1536 (0x600) - DAC1 Mixer Volumes
  3825. */
  3826. #define WM8994_ADCR_DAC1_VOL_MASK 0x01E0 /* ADCR_DAC1_VOL - [8:5] */
  3827. #define WM8994_ADCR_DAC1_VOL_SHIFT 5 /* ADCR_DAC1_VOL - [8:5] */
  3828. #define WM8994_ADCR_DAC1_VOL_WIDTH 4 /* ADCR_DAC1_VOL - [8:5] */
  3829. #define WM8994_ADCL_DAC1_VOL_MASK 0x000F /* ADCL_DAC1_VOL - [3:0] */
  3830. #define WM8994_ADCL_DAC1_VOL_SHIFT 0 /* ADCL_DAC1_VOL - [3:0] */
  3831. #define WM8994_ADCL_DAC1_VOL_WIDTH 4 /* ADCL_DAC1_VOL - [3:0] */
  3832. /*
  3833. * R1537 (0x601) - DAC1 Left Mixer Routing
  3834. */
  3835. #define WM8994_ADCR_TO_DAC1L 0x0020 /* ADCR_TO_DAC1L */
  3836. #define WM8994_ADCR_TO_DAC1L_MASK 0x0020 /* ADCR_TO_DAC1L */
  3837. #define WM8994_ADCR_TO_DAC1L_SHIFT 5 /* ADCR_TO_DAC1L */
  3838. #define WM8994_ADCR_TO_DAC1L_WIDTH 1 /* ADCR_TO_DAC1L */
  3839. #define WM8994_ADCL_TO_DAC1L 0x0010 /* ADCL_TO_DAC1L */
  3840. #define WM8994_ADCL_TO_DAC1L_MASK 0x0010 /* ADCL_TO_DAC1L */
  3841. #define WM8994_ADCL_TO_DAC1L_SHIFT 4 /* ADCL_TO_DAC1L */
  3842. #define WM8994_ADCL_TO_DAC1L_WIDTH 1 /* ADCL_TO_DAC1L */
  3843. #define WM8994_AIF2DACL_TO_DAC1L 0x0004 /* AIF2DACL_TO_DAC1L */
  3844. #define WM8994_AIF2DACL_TO_DAC1L_MASK 0x0004 /* AIF2DACL_TO_DAC1L */
  3845. #define WM8994_AIF2DACL_TO_DAC1L_SHIFT 2 /* AIF2DACL_TO_DAC1L */
  3846. #define WM8994_AIF2DACL_TO_DAC1L_WIDTH 1 /* AIF2DACL_TO_DAC1L */
  3847. #define WM8994_AIF1DAC2L_TO_DAC1L 0x0002 /* AIF1DAC2L_TO_DAC1L */
  3848. #define WM8994_AIF1DAC2L_TO_DAC1L_MASK 0x0002 /* AIF1DAC2L_TO_DAC1L */
  3849. #define WM8994_AIF1DAC2L_TO_DAC1L_SHIFT 1 /* AIF1DAC2L_TO_DAC1L */
  3850. #define WM8994_AIF1DAC2L_TO_DAC1L_WIDTH 1 /* AIF1DAC2L_TO_DAC1L */
  3851. #define WM8994_AIF1DAC1L_TO_DAC1L 0x0001 /* AIF1DAC1L_TO_DAC1L */
  3852. #define WM8994_AIF1DAC1L_TO_DAC1L_MASK 0x0001 /* AIF1DAC1L_TO_DAC1L */
  3853. #define WM8994_AIF1DAC1L_TO_DAC1L_SHIFT 0 /* AIF1DAC1L_TO_DAC1L */
  3854. #define WM8994_AIF1DAC1L_TO_DAC1L_WIDTH 1 /* AIF1DAC1L_TO_DAC1L */
  3855. /*
  3856. * R1538 (0x602) - DAC1 Right Mixer Routing
  3857. */
  3858. #define WM8994_ADCR_TO_DAC1R 0x0020 /* ADCR_TO_DAC1R */
  3859. #define WM8994_ADCR_TO_DAC1R_MASK 0x0020 /* ADCR_TO_DAC1R */
  3860. #define WM8994_ADCR_TO_DAC1R_SHIFT 5 /* ADCR_TO_DAC1R */
  3861. #define WM8994_ADCR_TO_DAC1R_WIDTH 1 /* ADCR_TO_DAC1R */
  3862. #define WM8994_ADCL_TO_DAC1R 0x0010 /* ADCL_TO_DAC1R */
  3863. #define WM8994_ADCL_TO_DAC1R_MASK 0x0010 /* ADCL_TO_DAC1R */
  3864. #define WM8994_ADCL_TO_DAC1R_SHIFT 4 /* ADCL_TO_DAC1R */
  3865. #define WM8994_ADCL_TO_DAC1R_WIDTH 1 /* ADCL_TO_DAC1R */
  3866. #define WM8994_AIF2DACR_TO_DAC1R 0x0004 /* AIF2DACR_TO_DAC1R */
  3867. #define WM8994_AIF2DACR_TO_DAC1R_MASK 0x0004 /* AIF2DACR_TO_DAC1R */
  3868. #define WM8994_AIF2DACR_TO_DAC1R_SHIFT 2 /* AIF2DACR_TO_DAC1R */
  3869. #define WM8994_AIF2DACR_TO_DAC1R_WIDTH 1 /* AIF2DACR_TO_DAC1R */
  3870. #define WM8994_AIF1DAC2R_TO_DAC1R 0x0002 /* AIF1DAC2R_TO_DAC1R */
  3871. #define WM8994_AIF1DAC2R_TO_DAC1R_MASK 0x0002 /* AIF1DAC2R_TO_DAC1R */
  3872. #define WM8994_AIF1DAC2R_TO_DAC1R_SHIFT 1 /* AIF1DAC2R_TO_DAC1R */
  3873. #define WM8994_AIF1DAC2R_TO_DAC1R_WIDTH 1 /* AIF1DAC2R_TO_DAC1R */
  3874. #define WM8994_AIF1DAC1R_TO_DAC1R 0x0001 /* AIF1DAC1R_TO_DAC1R */
  3875. #define WM8994_AIF1DAC1R_TO_DAC1R_MASK 0x0001 /* AIF1DAC1R_TO_DAC1R */
  3876. #define WM8994_AIF1DAC1R_TO_DAC1R_SHIFT 0 /* AIF1DAC1R_TO_DAC1R */
  3877. #define WM8994_AIF1DAC1R_TO_DAC1R_WIDTH 1 /* AIF1DAC1R_TO_DAC1R */
  3878. /*
  3879. * R1539 (0x603) - DAC2 Mixer Volumes
  3880. */
  3881. #define WM8994_ADCR_DAC2_VOL_MASK 0x01E0 /* ADCR_DAC2_VOL - [8:5] */
  3882. #define WM8994_ADCR_DAC2_VOL_SHIFT 5 /* ADCR_DAC2_VOL - [8:5] */
  3883. #define WM8994_ADCR_DAC2_VOL_WIDTH 4 /* ADCR_DAC2_VOL - [8:5] */
  3884. #define WM8994_ADCL_DAC2_VOL_MASK 0x000F /* ADCL_DAC2_VOL - [3:0] */
  3885. #define WM8994_ADCL_DAC2_VOL_SHIFT 0 /* ADCL_DAC2_VOL - [3:0] */
  3886. #define WM8994_ADCL_DAC2_VOL_WIDTH 4 /* ADCL_DAC2_VOL - [3:0] */
  3887. /*
  3888. * R1540 (0x604) - DAC2 Left Mixer Routing
  3889. */
  3890. #define WM8994_ADCR_TO_DAC2L 0x0020 /* ADCR_TO_DAC2L */
  3891. #define WM8994_ADCR_TO_DAC2L_MASK 0x0020 /* ADCR_TO_DAC2L */
  3892. #define WM8994_ADCR_TO_DAC2L_SHIFT 5 /* ADCR_TO_DAC2L */
  3893. #define WM8994_ADCR_TO_DAC2L_WIDTH 1 /* ADCR_TO_DAC2L */
  3894. #define WM8994_ADCL_TO_DAC2L 0x0010 /* ADCL_TO_DAC2L */
  3895. #define WM8994_ADCL_TO_DAC2L_MASK 0x0010 /* ADCL_TO_DAC2L */
  3896. #define WM8994_ADCL_TO_DAC2L_SHIFT 4 /* ADCL_TO_DAC2L */
  3897. #define WM8994_ADCL_TO_DAC2L_WIDTH 1 /* ADCL_TO_DAC2L */
  3898. #define WM8994_AIF2DACL_TO_DAC2L 0x0004 /* AIF2DACL_TO_DAC2L */
  3899. #define WM8994_AIF2DACL_TO_DAC2L_MASK 0x0004 /* AIF2DACL_TO_DAC2L */
  3900. #define WM8994_AIF2DACL_TO_DAC2L_SHIFT 2 /* AIF2DACL_TO_DAC2L */
  3901. #define WM8994_AIF2DACL_TO_DAC2L_WIDTH 1 /* AIF2DACL_TO_DAC2L */
  3902. #define WM8994_AIF1DAC2L_TO_DAC2L 0x0002 /* AIF1DAC2L_TO_DAC2L */
  3903. #define WM8994_AIF1DAC2L_TO_DAC2L_MASK 0x0002 /* AIF1DAC2L_TO_DAC2L */
  3904. #define WM8994_AIF1DAC2L_TO_DAC2L_SHIFT 1 /* AIF1DAC2L_TO_DAC2L */
  3905. #define WM8994_AIF1DAC2L_TO_DAC2L_WIDTH 1 /* AIF1DAC2L_TO_DAC2L */
  3906. #define WM8994_AIF1DAC1L_TO_DAC2L 0x0001 /* AIF1DAC1L_TO_DAC2L */
  3907. #define WM8994_AIF1DAC1L_TO_DAC2L_MASK 0x0001 /* AIF1DAC1L_TO_DAC2L */
  3908. #define WM8994_AIF1DAC1L_TO_DAC2L_SHIFT 0 /* AIF1DAC1L_TO_DAC2L */
  3909. #define WM8994_AIF1DAC1L_TO_DAC2L_WIDTH 1 /* AIF1DAC1L_TO_DAC2L */
  3910. /*
  3911. * R1541 (0x605) - DAC2 Right Mixer Routing
  3912. */
  3913. #define WM8994_ADCR_TO_DAC2R 0x0020 /* ADCR_TO_DAC2R */
  3914. #define WM8994_ADCR_TO_DAC2R_MASK 0x0020 /* ADCR_TO_DAC2R */
  3915. #define WM8994_ADCR_TO_DAC2R_SHIFT 5 /* ADCR_TO_DAC2R */
  3916. #define WM8994_ADCR_TO_DAC2R_WIDTH 1 /* ADCR_TO_DAC2R */
  3917. #define WM8994_ADCL_TO_DAC2R 0x0010 /* ADCL_TO_DAC2R */
  3918. #define WM8994_ADCL_TO_DAC2R_MASK 0x0010 /* ADCL_TO_DAC2R */
  3919. #define WM8994_ADCL_TO_DAC2R_SHIFT 4 /* ADCL_TO_DAC2R */
  3920. #define WM8994_ADCL_TO_DAC2R_WIDTH 1 /* ADCL_TO_DAC2R */
  3921. #define WM8994_AIF2DACR_TO_DAC2R 0x0004 /* AIF2DACR_TO_DAC2R */
  3922. #define WM8994_AIF2DACR_TO_DAC2R_MASK 0x0004 /* AIF2DACR_TO_DAC2R */
  3923. #define WM8994_AIF2DACR_TO_DAC2R_SHIFT 2 /* AIF2DACR_TO_DAC2R */
  3924. #define WM8994_AIF2DACR_TO_DAC2R_WIDTH 1 /* AIF2DACR_TO_DAC2R */
  3925. #define WM8994_AIF1DAC2R_TO_DAC2R 0x0002 /* AIF1DAC2R_TO_DAC2R */
  3926. #define WM8994_AIF1DAC2R_TO_DAC2R_MASK 0x0002 /* AIF1DAC2R_TO_DAC2R */
  3927. #define WM8994_AIF1DAC2R_TO_DAC2R_SHIFT 1 /* AIF1DAC2R_TO_DAC2R */
  3928. #define WM8994_AIF1DAC2R_TO_DAC2R_WIDTH 1 /* AIF1DAC2R_TO_DAC2R */
  3929. #define WM8994_AIF1DAC1R_TO_DAC2R 0x0001 /* AIF1DAC1R_TO_DAC2R */
  3930. #define WM8994_AIF1DAC1R_TO_DAC2R_MASK 0x0001 /* AIF1DAC1R_TO_DAC2R */
  3931. #define WM8994_AIF1DAC1R_TO_DAC2R_SHIFT 0 /* AIF1DAC1R_TO_DAC2R */
  3932. #define WM8994_AIF1DAC1R_TO_DAC2R_WIDTH 1 /* AIF1DAC1R_TO_DAC2R */
  3933. /*
  3934. * R1542 (0x606) - AIF1 ADC1 Left Mixer Routing
  3935. */
  3936. #define WM8994_ADC1L_TO_AIF1ADC1L 0x0002 /* ADC1L_TO_AIF1ADC1L */
  3937. #define WM8994_ADC1L_TO_AIF1ADC1L_MASK 0x0002 /* ADC1L_TO_AIF1ADC1L */
  3938. #define WM8994_ADC1L_TO_AIF1ADC1L_SHIFT 1 /* ADC1L_TO_AIF1ADC1L */
  3939. #define WM8994_ADC1L_TO_AIF1ADC1L_WIDTH 1 /* ADC1L_TO_AIF1ADC1L */
  3940. #define WM8994_AIF2DACL_TO_AIF1ADC1L 0x0001 /* AIF2DACL_TO_AIF1ADC1L */
  3941. #define WM8994_AIF2DACL_TO_AIF1ADC1L_MASK 0x0001 /* AIF2DACL_TO_AIF1ADC1L */
  3942. #define WM8994_AIF2DACL_TO_AIF1ADC1L_SHIFT 0 /* AIF2DACL_TO_AIF1ADC1L */
  3943. #define WM8994_AIF2DACL_TO_AIF1ADC1L_WIDTH 1 /* AIF2DACL_TO_AIF1ADC1L */
  3944. /*
  3945. * R1543 (0x607) - AIF1 ADC1 Right Mixer Routing
  3946. */
  3947. #define WM8994_ADC1R_TO_AIF1ADC1R 0x0002 /* ADC1R_TO_AIF1ADC1R */
  3948. #define WM8994_ADC1R_TO_AIF1ADC1R_MASK 0x0002 /* ADC1R_TO_AIF1ADC1R */
  3949. #define WM8994_ADC1R_TO_AIF1ADC1R_SHIFT 1 /* ADC1R_TO_AIF1ADC1R */
  3950. #define WM8994_ADC1R_TO_AIF1ADC1R_WIDTH 1 /* ADC1R_TO_AIF1ADC1R */
  3951. #define WM8994_AIF2DACR_TO_AIF1ADC1R 0x0001 /* AIF2DACR_TO_AIF1ADC1R */
  3952. #define WM8994_AIF2DACR_TO_AIF1ADC1R_MASK 0x0001 /* AIF2DACR_TO_AIF1ADC1R */
  3953. #define WM8994_AIF2DACR_TO_AIF1ADC1R_SHIFT 0 /* AIF2DACR_TO_AIF1ADC1R */
  3954. #define WM8994_AIF2DACR_TO_AIF1ADC1R_WIDTH 1 /* AIF2DACR_TO_AIF1ADC1R */
  3955. /*
  3956. * R1544 (0x608) - AIF1 ADC2 Left Mixer Routing
  3957. */
  3958. #define WM8994_ADC2L_TO_AIF1ADC2L 0x0002 /* ADC2L_TO_AIF1ADC2L */
  3959. #define WM8994_ADC2L_TO_AIF1ADC2L_MASK 0x0002 /* ADC2L_TO_AIF1ADC2L */
  3960. #define WM8994_ADC2L_TO_AIF1ADC2L_SHIFT 1 /* ADC2L_TO_AIF1ADC2L */
  3961. #define WM8994_ADC2L_TO_AIF1ADC2L_WIDTH 1 /* ADC2L_TO_AIF1ADC2L */
  3962. #define WM8994_AIF2DACL_TO_AIF1ADC2L 0x0001 /* AIF2DACL_TO_AIF1ADC2L */
  3963. #define WM8994_AIF2DACL_TO_AIF1ADC2L_MASK 0x0001 /* AIF2DACL_TO_AIF1ADC2L */
  3964. #define WM8994_AIF2DACL_TO_AIF1ADC2L_SHIFT 0 /* AIF2DACL_TO_AIF1ADC2L */
  3965. #define WM8994_AIF2DACL_TO_AIF1ADC2L_WIDTH 1 /* AIF2DACL_TO_AIF1ADC2L */
  3966. /*
  3967. * R1545 (0x609) - AIF1 ADC2 Right mixer Routing
  3968. */
  3969. #define WM8994_ADC2R_TO_AIF1ADC2R 0x0002 /* ADC2R_TO_AIF1ADC2R */
  3970. #define WM8994_ADC2R_TO_AIF1ADC2R_MASK 0x0002 /* ADC2R_TO_AIF1ADC2R */
  3971. #define WM8994_ADC2R_TO_AIF1ADC2R_SHIFT 1 /* ADC2R_TO_AIF1ADC2R */
  3972. #define WM8994_ADC2R_TO_AIF1ADC2R_WIDTH 1 /* ADC2R_TO_AIF1ADC2R */
  3973. #define WM8994_AIF2DACR_TO_AIF1ADC2R 0x0001 /* AIF2DACR_TO_AIF1ADC2R */
  3974. #define WM8994_AIF2DACR_TO_AIF1ADC2R_MASK 0x0001 /* AIF2DACR_TO_AIF1ADC2R */
  3975. #define WM8994_AIF2DACR_TO_AIF1ADC2R_SHIFT 0 /* AIF2DACR_TO_AIF1ADC2R */
  3976. #define WM8994_AIF2DACR_TO_AIF1ADC2R_WIDTH 1 /* AIF2DACR_TO_AIF1ADC2R */
  3977. /*
  3978. * R1552 (0x610) - DAC1 Left Volume
  3979. */
  3980. #define WM8994_DAC1L_MUTE 0x0200 /* DAC1L_MUTE */
  3981. #define WM8994_DAC1L_MUTE_MASK 0x0200 /* DAC1L_MUTE */
  3982. #define WM8994_DAC1L_MUTE_SHIFT 9 /* DAC1L_MUTE */
  3983. #define WM8994_DAC1L_MUTE_WIDTH 1 /* DAC1L_MUTE */
  3984. #define WM8994_DAC1_VU 0x0100 /* DAC1_VU */
  3985. #define WM8994_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  3986. #define WM8994_DAC1_VU_SHIFT 8 /* DAC1_VU */
  3987. #define WM8994_DAC1_VU_WIDTH 1 /* DAC1_VU */
  3988. #define WM8994_DAC1L_VOL_MASK 0x00FF /* DAC1L_VOL - [7:0] */
  3989. #define WM8994_DAC1L_VOL_SHIFT 0 /* DAC1L_VOL - [7:0] */
  3990. #define WM8994_DAC1L_VOL_WIDTH 8 /* DAC1L_VOL - [7:0] */
  3991. /*
  3992. * R1553 (0x611) - DAC1 Right Volume
  3993. */
  3994. #define WM8994_DAC1R_MUTE 0x0200 /* DAC1R_MUTE */
  3995. #define WM8994_DAC1R_MUTE_MASK 0x0200 /* DAC1R_MUTE */
  3996. #define WM8994_DAC1R_MUTE_SHIFT 9 /* DAC1R_MUTE */
  3997. #define WM8994_DAC1R_MUTE_WIDTH 1 /* DAC1R_MUTE */
  3998. #define WM8994_DAC1_VU 0x0100 /* DAC1_VU */
  3999. #define WM8994_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  4000. #define WM8994_DAC1_VU_SHIFT 8 /* DAC1_VU */
  4001. #define WM8994_DAC1_VU_WIDTH 1 /* DAC1_VU */
  4002. #define WM8994_DAC1R_VOL_MASK 0x00FF /* DAC1R_VOL - [7:0] */
  4003. #define WM8994_DAC1R_VOL_SHIFT 0 /* DAC1R_VOL - [7:0] */
  4004. #define WM8994_DAC1R_VOL_WIDTH 8 /* DAC1R_VOL - [7:0] */
  4005. /*
  4006. * R1554 (0x612) - DAC2 Left Volume
  4007. */
  4008. #define WM8994_DAC2L_MUTE 0x0200 /* DAC2L_MUTE */
  4009. #define WM8994_DAC2L_MUTE_MASK 0x0200 /* DAC2L_MUTE */
  4010. #define WM8994_DAC2L_MUTE_SHIFT 9 /* DAC2L_MUTE */
  4011. #define WM8994_DAC2L_MUTE_WIDTH 1 /* DAC2L_MUTE */
  4012. #define WM8994_DAC2_VU 0x0100 /* DAC2_VU */
  4013. #define WM8994_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  4014. #define WM8994_DAC2_VU_SHIFT 8 /* DAC2_VU */
  4015. #define WM8994_DAC2_VU_WIDTH 1 /* DAC2_VU */
  4016. #define WM8994_DAC2L_VOL_MASK 0x00FF /* DAC2L_VOL - [7:0] */
  4017. #define WM8994_DAC2L_VOL_SHIFT 0 /* DAC2L_VOL - [7:0] */
  4018. #define WM8994_DAC2L_VOL_WIDTH 8 /* DAC2L_VOL - [7:0] */
  4019. /*
  4020. * R1555 (0x613) - DAC2 Right Volume
  4021. */
  4022. #define WM8994_DAC2R_MUTE 0x0200 /* DAC2R_MUTE */
  4023. #define WM8994_DAC2R_MUTE_MASK 0x0200 /* DAC2R_MUTE */
  4024. #define WM8994_DAC2R_MUTE_SHIFT 9 /* DAC2R_MUTE */
  4025. #define WM8994_DAC2R_MUTE_WIDTH 1 /* DAC2R_MUTE */
  4026. #define WM8994_DAC2_VU 0x0100 /* DAC2_VU */
  4027. #define WM8994_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  4028. #define WM8994_DAC2_VU_SHIFT 8 /* DAC2_VU */
  4029. #define WM8994_DAC2_VU_WIDTH 1 /* DAC2_VU */
  4030. #define WM8994_DAC2R_VOL_MASK 0x00FF /* DAC2R_VOL - [7:0] */
  4031. #define WM8994_DAC2R_VOL_SHIFT 0 /* DAC2R_VOL - [7:0] */
  4032. #define WM8994_DAC2R_VOL_WIDTH 8 /* DAC2R_VOL - [7:0] */
  4033. /*
  4034. * R1556 (0x614) - DAC Softmute
  4035. */
  4036. #define WM8994_DAC_SOFTMUTEMODE 0x0002 /* DAC_SOFTMUTEMODE */
  4037. #define WM8994_DAC_SOFTMUTEMODE_MASK 0x0002 /* DAC_SOFTMUTEMODE */
  4038. #define WM8994_DAC_SOFTMUTEMODE_SHIFT 1 /* DAC_SOFTMUTEMODE */
  4039. #define WM8994_DAC_SOFTMUTEMODE_WIDTH 1 /* DAC_SOFTMUTEMODE */
  4040. #define WM8994_DAC_MUTERATE 0x0001 /* DAC_MUTERATE */
  4041. #define WM8994_DAC_MUTERATE_MASK 0x0001 /* DAC_MUTERATE */
  4042. #define WM8994_DAC_MUTERATE_SHIFT 0 /* DAC_MUTERATE */
  4043. #define WM8994_DAC_MUTERATE_WIDTH 1 /* DAC_MUTERATE */
  4044. /*
  4045. * R1568 (0x620) - Oversampling
  4046. */
  4047. #define WM8994_ADC_OSR128 0x0002 /* ADC_OSR128 */
  4048. #define WM8994_ADC_OSR128_MASK 0x0002 /* ADC_OSR128 */
  4049. #define WM8994_ADC_OSR128_SHIFT 1 /* ADC_OSR128 */
  4050. #define WM8994_ADC_OSR128_WIDTH 1 /* ADC_OSR128 */
  4051. #define WM8994_DAC_OSR128 0x0001 /* DAC_OSR128 */
  4052. #define WM8994_DAC_OSR128_MASK 0x0001 /* DAC_OSR128 */
  4053. #define WM8994_DAC_OSR128_SHIFT 0 /* DAC_OSR128 */
  4054. #define WM8994_DAC_OSR128_WIDTH 1 /* DAC_OSR128 */
  4055. /*
  4056. * R1569 (0x621) - Sidetone
  4057. */
  4058. #define WM8994_ST_HPF_CUT_MASK 0x0380 /* ST_HPF_CUT - [9:7] */
  4059. #define WM8994_ST_HPF_CUT_SHIFT 7 /* ST_HPF_CUT - [9:7] */
  4060. #define WM8994_ST_HPF_CUT_WIDTH 3 /* ST_HPF_CUT - [9:7] */
  4061. #define WM8994_ST_HPF 0x0040 /* ST_HPF */
  4062. #define WM8994_ST_HPF_MASK 0x0040 /* ST_HPF */
  4063. #define WM8994_ST_HPF_SHIFT 6 /* ST_HPF */
  4064. #define WM8994_ST_HPF_WIDTH 1 /* ST_HPF */
  4065. #define WM8994_STR_SEL 0x0002 /* STR_SEL */
  4066. #define WM8994_STR_SEL_MASK 0x0002 /* STR_SEL */
  4067. #define WM8994_STR_SEL_SHIFT 1 /* STR_SEL */
  4068. #define WM8994_STR_SEL_WIDTH 1 /* STR_SEL */
  4069. #define WM8994_STL_SEL 0x0001 /* STL_SEL */
  4070. #define WM8994_STL_SEL_MASK 0x0001 /* STL_SEL */
  4071. #define WM8994_STL_SEL_SHIFT 0 /* STL_SEL */
  4072. #define WM8994_STL_SEL_WIDTH 1 /* STL_SEL */
  4073. /*
  4074. * R1797 (0x705) - JACKDET Ctrl
  4075. */
  4076. #define WM1811_JACKDET_DB 0x0100 /* JACKDET_DB */
  4077. #define WM1811_JACKDET_DB_MASK 0x0100 /* JACKDET_DB */
  4078. #define WM1811_JACKDET_DB_SHIFT 8 /* JACKDET_DB */
  4079. #define WM1811_JACKDET_DB_WIDTH 1 /* JACKDET_DB */
  4080. #define WM1811_JACKDET_LVL 0x0040 /* JACKDET_LVL */
  4081. #define WM1811_JACKDET_LVL_MASK 0x0040 /* JACKDET_LVL */
  4082. #define WM1811_JACKDET_LVL_SHIFT 6 /* JACKDET_LVL */
  4083. #define WM1811_JACKDET_LVL_WIDTH 1 /* JACKDET_LVL */
  4084. /*
  4085. * R1824 (0x720) - Pull Control (1)
  4086. */
  4087. #define WM8994_DMICDAT2_PU 0x0800 /* DMICDAT2_PU */
  4088. #define WM8994_DMICDAT2_PU_MASK 0x0800 /* DMICDAT2_PU */
  4089. #define WM8994_DMICDAT2_PU_SHIFT 11 /* DMICDAT2_PU */
  4090. #define WM8994_DMICDAT2_PU_WIDTH 1 /* DMICDAT2_PU */
  4091. #define WM8994_DMICDAT2_PD 0x0400 /* DMICDAT2_PD */
  4092. #define WM8994_DMICDAT2_PD_MASK 0x0400 /* DMICDAT2_PD */
  4093. #define WM8994_DMICDAT2_PD_SHIFT 10 /* DMICDAT2_PD */
  4094. #define WM8994_DMICDAT2_PD_WIDTH 1 /* DMICDAT2_PD */
  4095. #define WM8994_DMICDAT1_PU 0x0200 /* DMICDAT1_PU */
  4096. #define WM8994_DMICDAT1_PU_MASK 0x0200 /* DMICDAT1_PU */
  4097. #define WM8994_DMICDAT1_PU_SHIFT 9 /* DMICDAT1_PU */
  4098. #define WM8994_DMICDAT1_PU_WIDTH 1 /* DMICDAT1_PU */
  4099. #define WM8994_DMICDAT1_PD 0x0100 /* DMICDAT1_PD */
  4100. #define WM8994_DMICDAT1_PD_MASK 0x0100 /* DMICDAT1_PD */
  4101. #define WM8994_DMICDAT1_PD_SHIFT 8 /* DMICDAT1_PD */
  4102. #define WM8994_DMICDAT1_PD_WIDTH 1 /* DMICDAT1_PD */
  4103. #define WM8994_MCLK1_PU 0x0080 /* MCLK1_PU */
  4104. #define WM8994_MCLK1_PU_MASK 0x0080 /* MCLK1_PU */
  4105. #define WM8994_MCLK1_PU_SHIFT 7 /* MCLK1_PU */
  4106. #define WM8994_MCLK1_PU_WIDTH 1 /* MCLK1_PU */
  4107. #define WM8994_MCLK1_PD 0x0040 /* MCLK1_PD */
  4108. #define WM8994_MCLK1_PD_MASK 0x0040 /* MCLK1_PD */
  4109. #define WM8994_MCLK1_PD_SHIFT 6 /* MCLK1_PD */
  4110. #define WM8994_MCLK1_PD_WIDTH 1 /* MCLK1_PD */
  4111. #define WM8994_DACDAT1_PU 0x0020 /* DACDAT1_PU */
  4112. #define WM8994_DACDAT1_PU_MASK 0x0020 /* DACDAT1_PU */
  4113. #define WM8994_DACDAT1_PU_SHIFT 5 /* DACDAT1_PU */
  4114. #define WM8994_DACDAT1_PU_WIDTH 1 /* DACDAT1_PU */
  4115. #define WM8994_DACDAT1_PD 0x0010 /* DACDAT1_PD */
  4116. #define WM8994_DACDAT1_PD_MASK 0x0010 /* DACDAT1_PD */
  4117. #define WM8994_DACDAT1_PD_SHIFT 4 /* DACDAT1_PD */
  4118. #define WM8994_DACDAT1_PD_WIDTH 1 /* DACDAT1_PD */
  4119. #define WM8994_DACLRCLK1_PU 0x0008 /* DACLRCLK1_PU */
  4120. #define WM8994_DACLRCLK1_PU_MASK 0x0008 /* DACLRCLK1_PU */
  4121. #define WM8994_DACLRCLK1_PU_SHIFT 3 /* DACLRCLK1_PU */
  4122. #define WM8994_DACLRCLK1_PU_WIDTH 1 /* DACLRCLK1_PU */
  4123. #define WM8994_DACLRCLK1_PD 0x0004 /* DACLRCLK1_PD */
  4124. #define WM8994_DACLRCLK1_PD_MASK 0x0004 /* DACLRCLK1_PD */
  4125. #define WM8994_DACLRCLK1_PD_SHIFT 2 /* DACLRCLK1_PD */
  4126. #define WM8994_DACLRCLK1_PD_WIDTH 1 /* DACLRCLK1_PD */
  4127. #define WM8994_BCLK1_PU 0x0002 /* BCLK1_PU */
  4128. #define WM8994_BCLK1_PU_MASK 0x0002 /* BCLK1_PU */
  4129. #define WM8994_BCLK1_PU_SHIFT 1 /* BCLK1_PU */
  4130. #define WM8994_BCLK1_PU_WIDTH 1 /* BCLK1_PU */
  4131. #define WM8994_BCLK1_PD 0x0001 /* BCLK1_PD */
  4132. #define WM8994_BCLK1_PD_MASK 0x0001 /* BCLK1_PD */
  4133. #define WM8994_BCLK1_PD_SHIFT 0 /* BCLK1_PD */
  4134. #define WM8994_BCLK1_PD_WIDTH 1 /* BCLK1_PD */
  4135. /*
  4136. * R1825 (0x721) - Pull Control (2)
  4137. */
  4138. #define WM8994_CSNADDR_PD 0x0100 /* CSNADDR_PD */
  4139. #define WM8994_CSNADDR_PD_MASK 0x0100 /* CSNADDR_PD */
  4140. #define WM8994_CSNADDR_PD_SHIFT 8 /* CSNADDR_PD */
  4141. #define WM8994_CSNADDR_PD_WIDTH 1 /* CSNADDR_PD */
  4142. #define WM8994_LDO2ENA_PD 0x0040 /* LDO2ENA_PD */
  4143. #define WM8994_LDO2ENA_PD_MASK 0x0040 /* LDO2ENA_PD */
  4144. #define WM8994_LDO2ENA_PD_SHIFT 6 /* LDO2ENA_PD */
  4145. #define WM8994_LDO2ENA_PD_WIDTH 1 /* LDO2ENA_PD */
  4146. #define WM8994_LDO1ENA_PD 0x0010 /* LDO1ENA_PD */
  4147. #define WM8994_LDO1ENA_PD_MASK 0x0010 /* LDO1ENA_PD */
  4148. #define WM8994_LDO1ENA_PD_SHIFT 4 /* LDO1ENA_PD */
  4149. #define WM8994_LDO1ENA_PD_WIDTH 1 /* LDO1ENA_PD */
  4150. #define WM8994_CIFMODE_PD 0x0004 /* CIFMODE_PD */
  4151. #define WM8994_CIFMODE_PD_MASK 0x0004 /* CIFMODE_PD */
  4152. #define WM8994_CIFMODE_PD_SHIFT 2 /* CIFMODE_PD */
  4153. #define WM8994_CIFMODE_PD_WIDTH 1 /* CIFMODE_PD */
  4154. #define WM8994_SPKMODE_PU 0x0002 /* SPKMODE_PU */
  4155. #define WM8994_SPKMODE_PU_MASK 0x0002 /* SPKMODE_PU */
  4156. #define WM8994_SPKMODE_PU_SHIFT 1 /* SPKMODE_PU */
  4157. #define WM8994_SPKMODE_PU_WIDTH 1 /* SPKMODE_PU */
  4158. /*
  4159. * R1840 (0x730) - Interrupt Status 1
  4160. */
  4161. #define WM8994_GP11_EINT 0x0400 /* GP11_EINT */
  4162. #define WM8994_GP11_EINT_MASK 0x0400 /* GP11_EINT */
  4163. #define WM8994_GP11_EINT_SHIFT 10 /* GP11_EINT */
  4164. #define WM8994_GP11_EINT_WIDTH 1 /* GP11_EINT */
  4165. #define WM8994_GP10_EINT 0x0200 /* GP10_EINT */
  4166. #define WM8994_GP10_EINT_MASK 0x0200 /* GP10_EINT */
  4167. #define WM8994_GP10_EINT_SHIFT 9 /* GP10_EINT */
  4168. #define WM8994_GP10_EINT_WIDTH 1 /* GP10_EINT */
  4169. #define WM8994_GP9_EINT 0x0100 /* GP9_EINT */
  4170. #define WM8994_GP9_EINT_MASK 0x0100 /* GP9_EINT */
  4171. #define WM8994_GP9_EINT_SHIFT 8 /* GP9_EINT */
  4172. #define WM8994_GP9_EINT_WIDTH 1 /* GP9_EINT */
  4173. #define WM8994_GP8_EINT 0x0080 /* GP8_EINT */
  4174. #define WM8994_GP8_EINT_MASK 0x0080 /* GP8_EINT */
  4175. #define WM8994_GP8_EINT_SHIFT 7 /* GP8_EINT */
  4176. #define WM8994_GP8_EINT_WIDTH 1 /* GP8_EINT */
  4177. #define WM8994_GP7_EINT 0x0040 /* GP7_EINT */
  4178. #define WM8994_GP7_EINT_MASK 0x0040 /* GP7_EINT */
  4179. #define WM8994_GP7_EINT_SHIFT 6 /* GP7_EINT */
  4180. #define WM8994_GP7_EINT_WIDTH 1 /* GP7_EINT */
  4181. #define WM8994_GP6_EINT 0x0020 /* GP6_EINT */
  4182. #define WM8994_GP6_EINT_MASK 0x0020 /* GP6_EINT */
  4183. #define WM8994_GP6_EINT_SHIFT 5 /* GP6_EINT */
  4184. #define WM8994_GP6_EINT_WIDTH 1 /* GP6_EINT */
  4185. #define WM8994_GP5_EINT 0x0010 /* GP5_EINT */
  4186. #define WM8994_GP5_EINT_MASK 0x0010 /* GP5_EINT */
  4187. #define WM8994_GP5_EINT_SHIFT 4 /* GP5_EINT */
  4188. #define WM8994_GP5_EINT_WIDTH 1 /* GP5_EINT */
  4189. #define WM8994_GP4_EINT 0x0008 /* GP4_EINT */
  4190. #define WM8994_GP4_EINT_MASK 0x0008 /* GP4_EINT */
  4191. #define WM8994_GP4_EINT_SHIFT 3 /* GP4_EINT */
  4192. #define WM8994_GP4_EINT_WIDTH 1 /* GP4_EINT */
  4193. #define WM8994_GP3_EINT 0x0004 /* GP3_EINT */
  4194. #define WM8994_GP3_EINT_MASK 0x0004 /* GP3_EINT */
  4195. #define WM8994_GP3_EINT_SHIFT 2 /* GP3_EINT */
  4196. #define WM8994_GP3_EINT_WIDTH 1 /* GP3_EINT */
  4197. #define WM8994_GP2_EINT 0x0002 /* GP2_EINT */
  4198. #define WM8994_GP2_EINT_MASK 0x0002 /* GP2_EINT */
  4199. #define WM8994_GP2_EINT_SHIFT 1 /* GP2_EINT */
  4200. #define WM8994_GP2_EINT_WIDTH 1 /* GP2_EINT */
  4201. #define WM8994_GP1_EINT 0x0001 /* GP1_EINT */
  4202. #define WM8994_GP1_EINT_MASK 0x0001 /* GP1_EINT */
  4203. #define WM8994_GP1_EINT_SHIFT 0 /* GP1_EINT */
  4204. #define WM8994_GP1_EINT_WIDTH 1 /* GP1_EINT */
  4205. /*
  4206. * R1841 (0x731) - Interrupt Status 2
  4207. */
  4208. #define WM8994_TEMP_WARN_EINT 0x8000 /* TEMP_WARN_EINT */
  4209. #define WM8994_TEMP_WARN_EINT_MASK 0x8000 /* TEMP_WARN_EINT */
  4210. #define WM8994_TEMP_WARN_EINT_SHIFT 15 /* TEMP_WARN_EINT */
  4211. #define WM8994_TEMP_WARN_EINT_WIDTH 1 /* TEMP_WARN_EINT */
  4212. #define WM8994_DCS_DONE_EINT 0x4000 /* DCS_DONE_EINT */
  4213. #define WM8994_DCS_DONE_EINT_MASK 0x4000 /* DCS_DONE_EINT */
  4214. #define WM8994_DCS_DONE_EINT_SHIFT 14 /* DCS_DONE_EINT */
  4215. #define WM8994_DCS_DONE_EINT_WIDTH 1 /* DCS_DONE_EINT */
  4216. #define WM8994_WSEQ_DONE_EINT 0x2000 /* WSEQ_DONE_EINT */
  4217. #define WM8994_WSEQ_DONE_EINT_MASK 0x2000 /* WSEQ_DONE_EINT */
  4218. #define WM8994_WSEQ_DONE_EINT_SHIFT 13 /* WSEQ_DONE_EINT */
  4219. #define WM8994_WSEQ_DONE_EINT_WIDTH 1 /* WSEQ_DONE_EINT */
  4220. #define WM8994_FIFOS_ERR_EINT 0x1000 /* FIFOS_ERR_EINT */
  4221. #define WM8994_FIFOS_ERR_EINT_MASK 0x1000 /* FIFOS_ERR_EINT */
  4222. #define WM8994_FIFOS_ERR_EINT_SHIFT 12 /* FIFOS_ERR_EINT */
  4223. #define WM8994_FIFOS_ERR_EINT_WIDTH 1 /* FIFOS_ERR_EINT */
  4224. #define WM8994_AIF2DRC_SIG_DET_EINT 0x0800 /* AIF2DRC_SIG_DET_EINT */
  4225. #define WM8994_AIF2DRC_SIG_DET_EINT_MASK 0x0800 /* AIF2DRC_SIG_DET_EINT */
  4226. #define WM8994_AIF2DRC_SIG_DET_EINT_SHIFT 11 /* AIF2DRC_SIG_DET_EINT */
  4227. #define WM8994_AIF2DRC_SIG_DET_EINT_WIDTH 1 /* AIF2DRC_SIG_DET_EINT */
  4228. #define WM8994_AIF1DRC2_SIG_DET_EINT 0x0400 /* AIF1DRC2_SIG_DET_EINT */
  4229. #define WM8994_AIF1DRC2_SIG_DET_EINT_MASK 0x0400 /* AIF1DRC2_SIG_DET_EINT */
  4230. #define WM8994_AIF1DRC2_SIG_DET_EINT_SHIFT 10 /* AIF1DRC2_SIG_DET_EINT */
  4231. #define WM8994_AIF1DRC2_SIG_DET_EINT_WIDTH 1 /* AIF1DRC2_SIG_DET_EINT */
  4232. #define WM8994_AIF1DRC1_SIG_DET_EINT 0x0200 /* AIF1DRC1_SIG_DET_EINT */
  4233. #define WM8994_AIF1DRC1_SIG_DET_EINT_MASK 0x0200 /* AIF1DRC1_SIG_DET_EINT */
  4234. #define WM8994_AIF1DRC1_SIG_DET_EINT_SHIFT 9 /* AIF1DRC1_SIG_DET_EINT */
  4235. #define WM8994_AIF1DRC1_SIG_DET_EINT_WIDTH 1 /* AIF1DRC1_SIG_DET_EINT */
  4236. #define WM8994_SRC2_LOCK_EINT 0x0100 /* SRC2_LOCK_EINT */
  4237. #define WM8994_SRC2_LOCK_EINT_MASK 0x0100 /* SRC2_LOCK_EINT */
  4238. #define WM8994_SRC2_LOCK_EINT_SHIFT 8 /* SRC2_LOCK_EINT */
  4239. #define WM8994_SRC2_LOCK_EINT_WIDTH 1 /* SRC2_LOCK_EINT */
  4240. #define WM8994_SRC1_LOCK_EINT 0x0080 /* SRC1_LOCK_EINT */
  4241. #define WM8994_SRC1_LOCK_EINT_MASK 0x0080 /* SRC1_LOCK_EINT */
  4242. #define WM8994_SRC1_LOCK_EINT_SHIFT 7 /* SRC1_LOCK_EINT */
  4243. #define WM8994_SRC1_LOCK_EINT_WIDTH 1 /* SRC1_LOCK_EINT */
  4244. #define WM8994_FLL2_LOCK_EINT 0x0040 /* FLL2_LOCK_EINT */
  4245. #define WM8994_FLL2_LOCK_EINT_MASK 0x0040 /* FLL2_LOCK_EINT */
  4246. #define WM8994_FLL2_LOCK_EINT_SHIFT 6 /* FLL2_LOCK_EINT */
  4247. #define WM8994_FLL2_LOCK_EINT_WIDTH 1 /* FLL2_LOCK_EINT */
  4248. #define WM8994_FLL1_LOCK_EINT 0x0020 /* FLL1_LOCK_EINT */
  4249. #define WM8994_FLL1_LOCK_EINT_MASK 0x0020 /* FLL1_LOCK_EINT */
  4250. #define WM8994_FLL1_LOCK_EINT_SHIFT 5 /* FLL1_LOCK_EINT */
  4251. #define WM8994_FLL1_LOCK_EINT_WIDTH 1 /* FLL1_LOCK_EINT */
  4252. #define WM8994_MIC2_SHRT_EINT 0x0010 /* MIC2_SHRT_EINT */
  4253. #define WM8994_MIC2_SHRT_EINT_MASK 0x0010 /* MIC2_SHRT_EINT */
  4254. #define WM8994_MIC2_SHRT_EINT_SHIFT 4 /* MIC2_SHRT_EINT */
  4255. #define WM8994_MIC2_SHRT_EINT_WIDTH 1 /* MIC2_SHRT_EINT */
  4256. #define WM8994_MIC2_DET_EINT 0x0008 /* MIC2_DET_EINT */
  4257. #define WM8994_MIC2_DET_EINT_MASK 0x0008 /* MIC2_DET_EINT */
  4258. #define WM8994_MIC2_DET_EINT_SHIFT 3 /* MIC2_DET_EINT */
  4259. #define WM8994_MIC2_DET_EINT_WIDTH 1 /* MIC2_DET_EINT */
  4260. #define WM8994_MIC1_SHRT_EINT 0x0004 /* MIC1_SHRT_EINT */
  4261. #define WM8994_MIC1_SHRT_EINT_MASK 0x0004 /* MIC1_SHRT_EINT */
  4262. #define WM8994_MIC1_SHRT_EINT_SHIFT 2 /* MIC1_SHRT_EINT */
  4263. #define WM8994_MIC1_SHRT_EINT_WIDTH 1 /* MIC1_SHRT_EINT */
  4264. #define WM8994_MIC1_DET_EINT 0x0002 /* MIC1_DET_EINT */
  4265. #define WM8994_MIC1_DET_EINT_MASK 0x0002 /* MIC1_DET_EINT */
  4266. #define WM8994_MIC1_DET_EINT_SHIFT 1 /* MIC1_DET_EINT */
  4267. #define WM8994_MIC1_DET_EINT_WIDTH 1 /* MIC1_DET_EINT */
  4268. #define WM8994_TEMP_SHUT_EINT 0x0001 /* TEMP_SHUT_EINT */
  4269. #define WM8994_TEMP_SHUT_EINT_MASK 0x0001 /* TEMP_SHUT_EINT */
  4270. #define WM8994_TEMP_SHUT_EINT_SHIFT 0 /* TEMP_SHUT_EINT */
  4271. #define WM8994_TEMP_SHUT_EINT_WIDTH 1 /* TEMP_SHUT_EINT */
  4272. /*
  4273. * R1842 (0x732) - Interrupt Raw Status 2
  4274. */
  4275. #define WM8994_TEMP_WARN_STS 0x8000 /* TEMP_WARN_STS */
  4276. #define WM8994_TEMP_WARN_STS_MASK 0x8000 /* TEMP_WARN_STS */
  4277. #define WM8994_TEMP_WARN_STS_SHIFT 15 /* TEMP_WARN_STS */
  4278. #define WM8994_TEMP_WARN_STS_WIDTH 1 /* TEMP_WARN_STS */
  4279. #define WM8994_DCS_DONE_STS 0x4000 /* DCS_DONE_STS */
  4280. #define WM8994_DCS_DONE_STS_MASK 0x4000 /* DCS_DONE_STS */
  4281. #define WM8994_DCS_DONE_STS_SHIFT 14 /* DCS_DONE_STS */
  4282. #define WM8994_DCS_DONE_STS_WIDTH 1 /* DCS_DONE_STS */
  4283. #define WM8994_WSEQ_DONE_STS 0x2000 /* WSEQ_DONE_STS */
  4284. #define WM8994_WSEQ_DONE_STS_MASK 0x2000 /* WSEQ_DONE_STS */
  4285. #define WM8994_WSEQ_DONE_STS_SHIFT 13 /* WSEQ_DONE_STS */
  4286. #define WM8994_WSEQ_DONE_STS_WIDTH 1 /* WSEQ_DONE_STS */
  4287. #define WM8994_FIFOS_ERR_STS 0x1000 /* FIFOS_ERR_STS */
  4288. #define WM8994_FIFOS_ERR_STS_MASK 0x1000 /* FIFOS_ERR_STS */
  4289. #define WM8994_FIFOS_ERR_STS_SHIFT 12 /* FIFOS_ERR_STS */
  4290. #define WM8994_FIFOS_ERR_STS_WIDTH 1 /* FIFOS_ERR_STS */
  4291. #define WM8994_AIF2DRC_SIG_DET_STS 0x0800 /* AIF2DRC_SIG_DET_STS */
  4292. #define WM8994_AIF2DRC_SIG_DET_STS_MASK 0x0800 /* AIF2DRC_SIG_DET_STS */
  4293. #define WM8994_AIF2DRC_SIG_DET_STS_SHIFT 11 /* AIF2DRC_SIG_DET_STS */
  4294. #define WM8994_AIF2DRC_SIG_DET_STS_WIDTH 1 /* AIF2DRC_SIG_DET_STS */
  4295. #define WM8994_AIF1DRC2_SIG_DET_STS 0x0400 /* AIF1DRC2_SIG_DET_STS */
  4296. #define WM8994_AIF1DRC2_SIG_DET_STS_MASK 0x0400 /* AIF1DRC2_SIG_DET_STS */
  4297. #define WM8994_AIF1DRC2_SIG_DET_STS_SHIFT 10 /* AIF1DRC2_SIG_DET_STS */
  4298. #define WM8994_AIF1DRC2_SIG_DET_STS_WIDTH 1 /* AIF1DRC2_SIG_DET_STS */
  4299. #define WM8994_AIF1DRC1_SIG_DET_STS 0x0200 /* AIF1DRC1_SIG_DET_STS */
  4300. #define WM8994_AIF1DRC1_SIG_DET_STS_MASK 0x0200 /* AIF1DRC1_SIG_DET_STS */
  4301. #define WM8994_AIF1DRC1_SIG_DET_STS_SHIFT 9 /* AIF1DRC1_SIG_DET_STS */
  4302. #define WM8994_AIF1DRC1_SIG_DET_STS_WIDTH 1 /* AIF1DRC1_SIG_DET_STS */
  4303. #define WM8994_SRC2_LOCK_STS 0x0100 /* SRC2_LOCK_STS */
  4304. #define WM8994_SRC2_LOCK_STS_MASK 0x0100 /* SRC2_LOCK_STS */
  4305. #define WM8994_SRC2_LOCK_STS_SHIFT 8 /* SRC2_LOCK_STS */
  4306. #define WM8994_SRC2_LOCK_STS_WIDTH 1 /* SRC2_LOCK_STS */
  4307. #define WM8994_SRC1_LOCK_STS 0x0080 /* SRC1_LOCK_STS */
  4308. #define WM8994_SRC1_LOCK_STS_MASK 0x0080 /* SRC1_LOCK_STS */
  4309. #define WM8994_SRC1_LOCK_STS_SHIFT 7 /* SRC1_LOCK_STS */
  4310. #define WM8994_SRC1_LOCK_STS_WIDTH 1 /* SRC1_LOCK_STS */
  4311. #define WM8994_FLL2_LOCK_STS 0x0040 /* FLL2_LOCK_STS */
  4312. #define WM8994_FLL2_LOCK_STS_MASK 0x0040 /* FLL2_LOCK_STS */
  4313. #define WM8994_FLL2_LOCK_STS_SHIFT 6 /* FLL2_LOCK_STS */
  4314. #define WM8994_FLL2_LOCK_STS_WIDTH 1 /* FLL2_LOCK_STS */
  4315. #define WM8994_FLL1_LOCK_STS 0x0020 /* FLL1_LOCK_STS */
  4316. #define WM8994_FLL1_LOCK_STS_MASK 0x0020 /* FLL1_LOCK_STS */
  4317. #define WM8994_FLL1_LOCK_STS_SHIFT 5 /* FLL1_LOCK_STS */
  4318. #define WM8994_FLL1_LOCK_STS_WIDTH 1 /* FLL1_LOCK_STS */
  4319. #define WM8994_MIC2_SHRT_STS 0x0010 /* MIC2_SHRT_STS */
  4320. #define WM8994_MIC2_SHRT_STS_MASK 0x0010 /* MIC2_SHRT_STS */
  4321. #define WM8994_MIC2_SHRT_STS_SHIFT 4 /* MIC2_SHRT_STS */
  4322. #define WM8994_MIC2_SHRT_STS_WIDTH 1 /* MIC2_SHRT_STS */
  4323. #define WM8994_MIC2_DET_STS 0x0008 /* MIC2_DET_STS */
  4324. #define WM8994_MIC2_DET_STS_MASK 0x0008 /* MIC2_DET_STS */
  4325. #define WM8994_MIC2_DET_STS_SHIFT 3 /* MIC2_DET_STS */
  4326. #define WM8994_MIC2_DET_STS_WIDTH 1 /* MIC2_DET_STS */
  4327. #define WM8994_MIC1_SHRT_STS 0x0004 /* MIC1_SHRT_STS */
  4328. #define WM8994_MIC1_SHRT_STS_MASK 0x0004 /* MIC1_SHRT_STS */
  4329. #define WM8994_MIC1_SHRT_STS_SHIFT 2 /* MIC1_SHRT_STS */
  4330. #define WM8994_MIC1_SHRT_STS_WIDTH 1 /* MIC1_SHRT_STS */
  4331. #define WM8994_MIC1_DET_STS 0x0002 /* MIC1_DET_STS */
  4332. #define WM8994_MIC1_DET_STS_MASK 0x0002 /* MIC1_DET_STS */
  4333. #define WM8994_MIC1_DET_STS_SHIFT 1 /* MIC1_DET_STS */
  4334. #define WM8994_MIC1_DET_STS_WIDTH 1 /* MIC1_DET_STS */
  4335. #define WM8994_TEMP_SHUT_STS 0x0001 /* TEMP_SHUT_STS */
  4336. #define WM8994_TEMP_SHUT_STS_MASK 0x0001 /* TEMP_SHUT_STS */
  4337. #define WM8994_TEMP_SHUT_STS_SHIFT 0 /* TEMP_SHUT_STS */
  4338. #define WM8994_TEMP_SHUT_STS_WIDTH 1 /* TEMP_SHUT_STS */
  4339. /*
  4340. * R1848 (0x738) - Interrupt Status 1 Mask
  4341. */
  4342. #define WM8994_IM_GP11_EINT 0x0400 /* IM_GP11_EINT */
  4343. #define WM8994_IM_GP11_EINT_MASK 0x0400 /* IM_GP11_EINT */
  4344. #define WM8994_IM_GP11_EINT_SHIFT 10 /* IM_GP11_EINT */
  4345. #define WM8994_IM_GP11_EINT_WIDTH 1 /* IM_GP11_EINT */
  4346. #define WM8994_IM_GP10_EINT 0x0200 /* IM_GP10_EINT */
  4347. #define WM8994_IM_GP10_EINT_MASK 0x0200 /* IM_GP10_EINT */
  4348. #define WM8994_IM_GP10_EINT_SHIFT 9 /* IM_GP10_EINT */
  4349. #define WM8994_IM_GP10_EINT_WIDTH 1 /* IM_GP10_EINT */
  4350. #define WM8994_IM_GP9_EINT 0x0100 /* IM_GP9_EINT */
  4351. #define WM8994_IM_GP9_EINT_MASK 0x0100 /* IM_GP9_EINT */
  4352. #define WM8994_IM_GP9_EINT_SHIFT 8 /* IM_GP9_EINT */
  4353. #define WM8994_IM_GP9_EINT_WIDTH 1 /* IM_GP9_EINT */
  4354. #define WM8994_IM_GP8_EINT 0x0080 /* IM_GP8_EINT */
  4355. #define WM8994_IM_GP8_EINT_MASK 0x0080 /* IM_GP8_EINT */
  4356. #define WM8994_IM_GP8_EINT_SHIFT 7 /* IM_GP8_EINT */
  4357. #define WM8994_IM_GP8_EINT_WIDTH 1 /* IM_GP8_EINT */
  4358. #define WM8994_IM_GP7_EINT 0x0040 /* IM_GP7_EINT */
  4359. #define WM8994_IM_GP7_EINT_MASK 0x0040 /* IM_GP7_EINT */
  4360. #define WM8994_IM_GP7_EINT_SHIFT 6 /* IM_GP7_EINT */
  4361. #define WM8994_IM_GP7_EINT_WIDTH 1 /* IM_GP7_EINT */
  4362. #define WM8994_IM_GP6_EINT 0x0020 /* IM_GP6_EINT */
  4363. #define WM8994_IM_GP6_EINT_MASK 0x0020 /* IM_GP6_EINT */
  4364. #define WM8994_IM_GP6_EINT_SHIFT 5 /* IM_GP6_EINT */
  4365. #define WM8994_IM_GP6_EINT_WIDTH 1 /* IM_GP6_EINT */
  4366. #define WM8994_IM_GP5_EINT 0x0010 /* IM_GP5_EINT */
  4367. #define WM8994_IM_GP5_EINT_MASK 0x0010 /* IM_GP5_EINT */
  4368. #define WM8994_IM_GP5_EINT_SHIFT 4 /* IM_GP5_EINT */
  4369. #define WM8994_IM_GP5_EINT_WIDTH 1 /* IM_GP5_EINT */
  4370. #define WM8994_IM_GP4_EINT 0x0008 /* IM_GP4_EINT */
  4371. #define WM8994_IM_GP4_EINT_MASK 0x0008 /* IM_GP4_EINT */
  4372. #define WM8994_IM_GP4_EINT_SHIFT 3 /* IM_GP4_EINT */
  4373. #define WM8994_IM_GP4_EINT_WIDTH 1 /* IM_GP4_EINT */
  4374. #define WM8994_IM_GP3_EINT 0x0004 /* IM_GP3_EINT */
  4375. #define WM8994_IM_GP3_EINT_MASK 0x0004 /* IM_GP3_EINT */
  4376. #define WM8994_IM_GP3_EINT_SHIFT 2 /* IM_GP3_EINT */
  4377. #define WM8994_IM_GP3_EINT_WIDTH 1 /* IM_GP3_EINT */
  4378. #define WM8994_IM_GP2_EINT 0x0002 /* IM_GP2_EINT */
  4379. #define WM8994_IM_GP2_EINT_MASK 0x0002 /* IM_GP2_EINT */
  4380. #define WM8994_IM_GP2_EINT_SHIFT 1 /* IM_GP2_EINT */
  4381. #define WM8994_IM_GP2_EINT_WIDTH 1 /* IM_GP2_EINT */
  4382. #define WM8994_IM_GP1_EINT 0x0001 /* IM_GP1_EINT */
  4383. #define WM8994_IM_GP1_EINT_MASK 0x0001 /* IM_GP1_EINT */
  4384. #define WM8994_IM_GP1_EINT_SHIFT 0 /* IM_GP1_EINT */
  4385. #define WM8994_IM_GP1_EINT_WIDTH 1 /* IM_GP1_EINT */
  4386. /*
  4387. * R1849 (0x739) - Interrupt Status 2 Mask
  4388. */
  4389. #define WM8994_IM_TEMP_WARN_EINT 0x8000 /* IM_TEMP_WARN_EINT */
  4390. #define WM8994_IM_TEMP_WARN_EINT_MASK 0x8000 /* IM_TEMP_WARN_EINT */
  4391. #define WM8994_IM_TEMP_WARN_EINT_SHIFT 15 /* IM_TEMP_WARN_EINT */
  4392. #define WM8994_IM_TEMP_WARN_EINT_WIDTH 1 /* IM_TEMP_WARN_EINT */
  4393. #define WM8994_IM_DCS_DONE_EINT 0x4000 /* IM_DCS_DONE_EINT */
  4394. #define WM8994_IM_DCS_DONE_EINT_MASK 0x4000 /* IM_DCS_DONE_EINT */
  4395. #define WM8994_IM_DCS_DONE_EINT_SHIFT 14 /* IM_DCS_DONE_EINT */
  4396. #define WM8994_IM_DCS_DONE_EINT_WIDTH 1 /* IM_DCS_DONE_EINT */
  4397. #define WM8994_IM_WSEQ_DONE_EINT 0x2000 /* IM_WSEQ_DONE_EINT */
  4398. #define WM8994_IM_WSEQ_DONE_EINT_MASK 0x2000 /* IM_WSEQ_DONE_EINT */
  4399. #define WM8994_IM_WSEQ_DONE_EINT_SHIFT 13 /* IM_WSEQ_DONE_EINT */
  4400. #define WM8994_IM_WSEQ_DONE_EINT_WIDTH 1 /* IM_WSEQ_DONE_EINT */
  4401. #define WM8994_IM_FIFOS_ERR_EINT 0x1000 /* IM_FIFOS_ERR_EINT */
  4402. #define WM8994_IM_FIFOS_ERR_EINT_MASK 0x1000 /* IM_FIFOS_ERR_EINT */
  4403. #define WM8994_IM_FIFOS_ERR_EINT_SHIFT 12 /* IM_FIFOS_ERR_EINT */
  4404. #define WM8994_IM_FIFOS_ERR_EINT_WIDTH 1 /* IM_FIFOS_ERR_EINT */
  4405. #define WM8994_IM_AIF2DRC_SIG_DET_EINT 0x0800 /* IM_AIF2DRC_SIG_DET_EINT */
  4406. #define WM8994_IM_AIF2DRC_SIG_DET_EINT_MASK 0x0800 /* IM_AIF2DRC_SIG_DET_EINT */
  4407. #define WM8994_IM_AIF2DRC_SIG_DET_EINT_SHIFT 11 /* IM_AIF2DRC_SIG_DET_EINT */
  4408. #define WM8994_IM_AIF2DRC_SIG_DET_EINT_WIDTH 1 /* IM_AIF2DRC_SIG_DET_EINT */
  4409. #define WM8994_IM_AIF1DRC2_SIG_DET_EINT 0x0400 /* IM_AIF1DRC2_SIG_DET_EINT */
  4410. #define WM8994_IM_AIF1DRC2_SIG_DET_EINT_MASK 0x0400 /* IM_AIF1DRC2_SIG_DET_EINT */
  4411. #define WM8994_IM_AIF1DRC2_SIG_DET_EINT_SHIFT 10 /* IM_AIF1DRC2_SIG_DET_EINT */
  4412. #define WM8994_IM_AIF1DRC2_SIG_DET_EINT_WIDTH 1 /* IM_AIF1DRC2_SIG_DET_EINT */
  4413. #define WM8994_IM_AIF1DRC1_SIG_DET_EINT 0x0200 /* IM_AIF1DRC1_SIG_DET_EINT */
  4414. #define WM8994_IM_AIF1DRC1_SIG_DET_EINT_MASK 0x0200 /* IM_AIF1DRC1_SIG_DET_EINT */
  4415. #define WM8994_IM_AIF1DRC1_SIG_DET_EINT_SHIFT 9 /* IM_AIF1DRC1_SIG_DET_EINT */
  4416. #define WM8994_IM_AIF1DRC1_SIG_DET_EINT_WIDTH 1 /* IM_AIF1DRC1_SIG_DET_EINT */
  4417. #define WM8994_IM_SRC2_LOCK_EINT 0x0100 /* IM_SRC2_LOCK_EINT */
  4418. #define WM8994_IM_SRC2_LOCK_EINT_MASK 0x0100 /* IM_SRC2_LOCK_EINT */
  4419. #define WM8994_IM_SRC2_LOCK_EINT_SHIFT 8 /* IM_SRC2_LOCK_EINT */
  4420. #define WM8994_IM_SRC2_LOCK_EINT_WIDTH 1 /* IM_SRC2_LOCK_EINT */
  4421. #define WM8994_IM_SRC1_LOCK_EINT 0x0080 /* IM_SRC1_LOCK_EINT */
  4422. #define WM8994_IM_SRC1_LOCK_EINT_MASK 0x0080 /* IM_SRC1_LOCK_EINT */
  4423. #define WM8994_IM_SRC1_LOCK_EINT_SHIFT 7 /* IM_SRC1_LOCK_EINT */
  4424. #define WM8994_IM_SRC1_LOCK_EINT_WIDTH 1 /* IM_SRC1_LOCK_EINT */
  4425. #define WM8994_IM_FLL2_LOCK_EINT 0x0040 /* IM_FLL2_LOCK_EINT */
  4426. #define WM8994_IM_FLL2_LOCK_EINT_MASK 0x0040 /* IM_FLL2_LOCK_EINT */
  4427. #define WM8994_IM_FLL2_LOCK_EINT_SHIFT 6 /* IM_FLL2_LOCK_EINT */
  4428. #define WM8994_IM_FLL2_LOCK_EINT_WIDTH 1 /* IM_FLL2_LOCK_EINT */
  4429. #define WM8994_IM_FLL1_LOCK_EINT 0x0020 /* IM_FLL1_LOCK_EINT */
  4430. #define WM8994_IM_FLL1_LOCK_EINT_MASK 0x0020 /* IM_FLL1_LOCK_EINT */
  4431. #define WM8994_IM_FLL1_LOCK_EINT_SHIFT 5 /* IM_FLL1_LOCK_EINT */
  4432. #define WM8994_IM_FLL1_LOCK_EINT_WIDTH 1 /* IM_FLL1_LOCK_EINT */
  4433. #define WM8994_IM_MIC2_SHRT_EINT 0x0010 /* IM_MIC2_SHRT_EINT */
  4434. #define WM8994_IM_MIC2_SHRT_EINT_MASK 0x0010 /* IM_MIC2_SHRT_EINT */
  4435. #define WM8994_IM_MIC2_SHRT_EINT_SHIFT 4 /* IM_MIC2_SHRT_EINT */
  4436. #define WM8994_IM_MIC2_SHRT_EINT_WIDTH 1 /* IM_MIC2_SHRT_EINT */
  4437. #define WM8994_IM_MIC2_DET_EINT 0x0008 /* IM_MIC2_DET_EINT */
  4438. #define WM8994_IM_MIC2_DET_EINT_MASK 0x0008 /* IM_MIC2_DET_EINT */
  4439. #define WM8994_IM_MIC2_DET_EINT_SHIFT 3 /* IM_MIC2_DET_EINT */
  4440. #define WM8994_IM_MIC2_DET_EINT_WIDTH 1 /* IM_MIC2_DET_EINT */
  4441. #define WM8994_IM_MIC1_SHRT_EINT 0x0004 /* IM_MIC1_SHRT_EINT */
  4442. #define WM8994_IM_MIC1_SHRT_EINT_MASK 0x0004 /* IM_MIC1_SHRT_EINT */
  4443. #define WM8994_IM_MIC1_SHRT_EINT_SHIFT 2 /* IM_MIC1_SHRT_EINT */
  4444. #define WM8994_IM_MIC1_SHRT_EINT_WIDTH 1 /* IM_MIC1_SHRT_EINT */
  4445. #define WM8994_IM_MIC1_DET_EINT 0x0002 /* IM_MIC1_DET_EINT */
  4446. #define WM8994_IM_MIC1_DET_EINT_MASK 0x0002 /* IM_MIC1_DET_EINT */
  4447. #define WM8994_IM_MIC1_DET_EINT_SHIFT 1 /* IM_MIC1_DET_EINT */
  4448. #define WM8994_IM_MIC1_DET_EINT_WIDTH 1 /* IM_MIC1_DET_EINT */
  4449. #define WM8994_IM_TEMP_SHUT_EINT 0x0001 /* IM_TEMP_SHUT_EINT */
  4450. #define WM8994_IM_TEMP_SHUT_EINT_MASK 0x0001 /* IM_TEMP_SHUT_EINT */
  4451. #define WM8994_IM_TEMP_SHUT_EINT_SHIFT 0 /* IM_TEMP_SHUT_EINT */
  4452. #define WM8994_IM_TEMP_SHUT_EINT_WIDTH 1 /* IM_TEMP_SHUT_EINT */
  4453. /*
  4454. * R1856 (0x740) - Interrupt Control
  4455. */
  4456. #define WM8994_IM_IRQ 0x0001 /* IM_IRQ */
  4457. #define WM8994_IM_IRQ_MASK 0x0001 /* IM_IRQ */
  4458. #define WM8994_IM_IRQ_SHIFT 0 /* IM_IRQ */
  4459. #define WM8994_IM_IRQ_WIDTH 1 /* IM_IRQ */
  4460. /*
  4461. * R1864 (0x748) - IRQ Debounce
  4462. */
  4463. #define WM8994_TEMP_WARN_DB 0x0020 /* TEMP_WARN_DB */
  4464. #define WM8994_TEMP_WARN_DB_MASK 0x0020 /* TEMP_WARN_DB */
  4465. #define WM8994_TEMP_WARN_DB_SHIFT 5 /* TEMP_WARN_DB */
  4466. #define WM8994_TEMP_WARN_DB_WIDTH 1 /* TEMP_WARN_DB */
  4467. #define WM8994_MIC2_SHRT_DB 0x0010 /* MIC2_SHRT_DB */
  4468. #define WM8994_MIC2_SHRT_DB_MASK 0x0010 /* MIC2_SHRT_DB */
  4469. #define WM8994_MIC2_SHRT_DB_SHIFT 4 /* MIC2_SHRT_DB */
  4470. #define WM8994_MIC2_SHRT_DB_WIDTH 1 /* MIC2_SHRT_DB */
  4471. #define WM8994_MIC2_DET_DB 0x0008 /* MIC2_DET_DB */
  4472. #define WM8994_MIC2_DET_DB_MASK 0x0008 /* MIC2_DET_DB */
  4473. #define WM8994_MIC2_DET_DB_SHIFT 3 /* MIC2_DET_DB */
  4474. #define WM8994_MIC2_DET_DB_WIDTH 1 /* MIC2_DET_DB */
  4475. #define WM8994_MIC1_SHRT_DB 0x0004 /* MIC1_SHRT_DB */
  4476. #define WM8994_MIC1_SHRT_DB_MASK 0x0004 /* MIC1_SHRT_DB */
  4477. #define WM8994_MIC1_SHRT_DB_SHIFT 2 /* MIC1_SHRT_DB */
  4478. #define WM8994_MIC1_SHRT_DB_WIDTH 1 /* MIC1_SHRT_DB */
  4479. #define WM8994_MIC1_DET_DB 0x0002 /* MIC1_DET_DB */
  4480. #define WM8994_MIC1_DET_DB_MASK 0x0002 /* MIC1_DET_DB */
  4481. #define WM8994_MIC1_DET_DB_SHIFT 1 /* MIC1_DET_DB */
  4482. #define WM8994_MIC1_DET_DB_WIDTH 1 /* MIC1_DET_DB */
  4483. #define WM8994_TEMP_SHUT_DB 0x0001 /* TEMP_SHUT_DB */
  4484. #define WM8994_TEMP_SHUT_DB_MASK 0x0001 /* TEMP_SHUT_DB */
  4485. #define WM8994_TEMP_SHUT_DB_SHIFT 0 /* TEMP_SHUT_DB */
  4486. #define WM8994_TEMP_SHUT_DB_WIDTH 1 /* TEMP_SHUT_DB */
  4487. /*
  4488. * R2304 (0x900) - DSP2_Program
  4489. */
  4490. #define WM8958_DSP2_ENA 0x0001 /* DSP2_ENA */
  4491. #define WM8958_DSP2_ENA_MASK 0x0001 /* DSP2_ENA */
  4492. #define WM8958_DSP2_ENA_SHIFT 0 /* DSP2_ENA */
  4493. #define WM8958_DSP2_ENA_WIDTH 1 /* DSP2_ENA */
  4494. /*
  4495. * R2305 (0x901) - DSP2_Config
  4496. */
  4497. #define WM8958_MBC_SEL_MASK 0x0030 /* MBC_SEL - [5:4] */
  4498. #define WM8958_MBC_SEL_SHIFT 4 /* MBC_SEL - [5:4] */
  4499. #define WM8958_MBC_SEL_WIDTH 2 /* MBC_SEL - [5:4] */
  4500. #define WM8958_MBC_ENA 0x0001 /* MBC_ENA */
  4501. #define WM8958_MBC_ENA_MASK 0x0001 /* MBC_ENA */
  4502. #define WM8958_MBC_ENA_SHIFT 0 /* MBC_ENA */
  4503. #define WM8958_MBC_ENA_WIDTH 1 /* MBC_ENA */
  4504. /*
  4505. * R2560 (0xA00) - DSP2_MagicNum
  4506. */
  4507. #define WM8958_DSP2_MAGIC_NUM_MASK 0xFFFF /* DSP2_MAGIC_NUM - [15:0] */
  4508. #define WM8958_DSP2_MAGIC_NUM_SHIFT 0 /* DSP2_MAGIC_NUM - [15:0] */
  4509. #define WM8958_DSP2_MAGIC_NUM_WIDTH 16 /* DSP2_MAGIC_NUM - [15:0] */
  4510. /*
  4511. * R2561 (0xA01) - DSP2_ReleaseYear
  4512. */
  4513. #define WM8958_DSP2_RELEASE_YEAR_MASK 0xFFFF /* DSP2_RELEASE_YEAR - [15:0] */
  4514. #define WM8958_DSP2_RELEASE_YEAR_SHIFT 0 /* DSP2_RELEASE_YEAR - [15:0] */
  4515. #define WM8958_DSP2_RELEASE_YEAR_WIDTH 16 /* DSP2_RELEASE_YEAR - [15:0] */
  4516. /*
  4517. * R2562 (0xA02) - DSP2_ReleaseMonthDay
  4518. */
  4519. #define WM8958_DSP2_RELEASE_MONTH_MASK 0xFF00 /* DSP2_RELEASE_MONTH - [15:8] */
  4520. #define WM8958_DSP2_RELEASE_MONTH_SHIFT 8 /* DSP2_RELEASE_MONTH - [15:8] */
  4521. #define WM8958_DSP2_RELEASE_MONTH_WIDTH 8 /* DSP2_RELEASE_MONTH - [15:8] */
  4522. #define WM8958_DSP2_RELEASE_DAY_MASK 0x00FF /* DSP2_RELEASE_DAY - [7:0] */
  4523. #define WM8958_DSP2_RELEASE_DAY_SHIFT 0 /* DSP2_RELEASE_DAY - [7:0] */
  4524. #define WM8958_DSP2_RELEASE_DAY_WIDTH 8 /* DSP2_RELEASE_DAY - [7:0] */
  4525. /*
  4526. * R2563 (0xA03) - DSP2_ReleaseTime
  4527. */
  4528. #define WM8958_DSP2_RELEASE_HOURS_MASK 0xFF00 /* DSP2_RELEASE_HOURS - [15:8] */
  4529. #define WM8958_DSP2_RELEASE_HOURS_SHIFT 8 /* DSP2_RELEASE_HOURS - [15:8] */
  4530. #define WM8958_DSP2_RELEASE_HOURS_WIDTH 8 /* DSP2_RELEASE_HOURS - [15:8] */
  4531. #define WM8958_DSP2_RELEASE_MINS_MASK 0x00FF /* DSP2_RELEASE_MINS - [7:0] */
  4532. #define WM8958_DSP2_RELEASE_MINS_SHIFT 0 /* DSP2_RELEASE_MINS - [7:0] */
  4533. #define WM8958_DSP2_RELEASE_MINS_WIDTH 8 /* DSP2_RELEASE_MINS - [7:0] */
  4534. /*
  4535. * R2564 (0xA04) - DSP2_VerMajMin
  4536. */
  4537. #define WM8958_DSP2_MAJOR_VER_MASK 0xFF00 /* DSP2_MAJOR_VER - [15:8] */
  4538. #define WM8958_DSP2_MAJOR_VER_SHIFT 8 /* DSP2_MAJOR_VER - [15:8] */
  4539. #define WM8958_DSP2_MAJOR_VER_WIDTH 8 /* DSP2_MAJOR_VER - [15:8] */
  4540. #define WM8958_DSP2_MINOR_VER_MASK 0x00FF /* DSP2_MINOR_VER - [7:0] */
  4541. #define WM8958_DSP2_MINOR_VER_SHIFT 0 /* DSP2_MINOR_VER - [7:0] */
  4542. #define WM8958_DSP2_MINOR_VER_WIDTH 8 /* DSP2_MINOR_VER - [7:0] */
  4543. /*
  4544. * R2565 (0xA05) - DSP2_VerBuild
  4545. */
  4546. #define WM8958_DSP2_BUILD_VER_MASK 0xFFFF /* DSP2_BUILD_VER - [15:0] */
  4547. #define WM8958_DSP2_BUILD_VER_SHIFT 0 /* DSP2_BUILD_VER - [15:0] */
  4548. #define WM8958_DSP2_BUILD_VER_WIDTH 16 /* DSP2_BUILD_VER - [15:0] */
  4549. /*
  4550. * R2573 (0xA0D) - DSP2_ExecControl
  4551. */
  4552. #define WM8958_DSP2_STOPC 0x0020 /* DSP2_STOPC */
  4553. #define WM8958_DSP2_STOPC_MASK 0x0020 /* DSP2_STOPC */
  4554. #define WM8958_DSP2_STOPC_SHIFT 5 /* DSP2_STOPC */
  4555. #define WM8958_DSP2_STOPC_WIDTH 1 /* DSP2_STOPC */
  4556. #define WM8958_DSP2_STOPS 0x0010 /* DSP2_STOPS */
  4557. #define WM8958_DSP2_STOPS_MASK 0x0010 /* DSP2_STOPS */
  4558. #define WM8958_DSP2_STOPS_SHIFT 4 /* DSP2_STOPS */
  4559. #define WM8958_DSP2_STOPS_WIDTH 1 /* DSP2_STOPS */
  4560. #define WM8958_DSP2_STOPI 0x0008 /* DSP2_STOPI */
  4561. #define WM8958_DSP2_STOPI_MASK 0x0008 /* DSP2_STOPI */
  4562. #define WM8958_DSP2_STOPI_SHIFT 3 /* DSP2_STOPI */
  4563. #define WM8958_DSP2_STOPI_WIDTH 1 /* DSP2_STOPI */
  4564. #define WM8958_DSP2_STOP 0x0004 /* DSP2_STOP */
  4565. #define WM8958_DSP2_STOP_MASK 0x0004 /* DSP2_STOP */
  4566. #define WM8958_DSP2_STOP_SHIFT 2 /* DSP2_STOP */
  4567. #define WM8958_DSP2_STOP_WIDTH 1 /* DSP2_STOP */
  4568. #define WM8958_DSP2_RUNR 0x0002 /* DSP2_RUNR */
  4569. #define WM8958_DSP2_RUNR_MASK 0x0002 /* DSP2_RUNR */
  4570. #define WM8958_DSP2_RUNR_SHIFT 1 /* DSP2_RUNR */
  4571. #define WM8958_DSP2_RUNR_WIDTH 1 /* DSP2_RUNR */
  4572. #define WM8958_DSP2_RUN 0x0001 /* DSP2_RUN */
  4573. #define WM8958_DSP2_RUN_MASK 0x0001 /* DSP2_RUN */
  4574. #define WM8958_DSP2_RUN_SHIFT 0 /* DSP2_RUN */
  4575. #define WM8958_DSP2_RUN_WIDTH 1 /* DSP2_RUN */
  4576. #endif