wm8995.h 246 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270
  1. /*
  2. * wm8995.h -- WM8995 ALSA SoC Audio driver
  3. *
  4. * Copyright 2010 Wolfson Microelectronics plc
  5. *
  6. * Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef _WM8995_H
  13. #define _WM8995_H
  14. #include <asm/types.h>
  15. /*
  16. * Register values.
  17. */
  18. #define WM8995_SOFTWARE_RESET 0x00
  19. #define WM8995_POWER_MANAGEMENT_1 0x01
  20. #define WM8995_POWER_MANAGEMENT_2 0x02
  21. #define WM8995_POWER_MANAGEMENT_3 0x03
  22. #define WM8995_POWER_MANAGEMENT_4 0x04
  23. #define WM8995_POWER_MANAGEMENT_5 0x05
  24. #define WM8995_LEFT_LINE_INPUT_1_VOLUME 0x10
  25. #define WM8995_RIGHT_LINE_INPUT_1_VOLUME 0x11
  26. #define WM8995_LEFT_LINE_INPUT_CONTROL 0x12
  27. #define WM8995_DAC1_LEFT_VOLUME 0x18
  28. #define WM8995_DAC1_RIGHT_VOLUME 0x19
  29. #define WM8995_DAC2_LEFT_VOLUME 0x1A
  30. #define WM8995_DAC2_RIGHT_VOLUME 0x1B
  31. #define WM8995_OUTPUT_VOLUME_ZC_1 0x1C
  32. #define WM8995_MICBIAS_1 0x20
  33. #define WM8995_MICBIAS_2 0x21
  34. #define WM8995_LDO_1 0x28
  35. #define WM8995_LDO_2 0x29
  36. #define WM8995_ACCESSORY_DETECT_MODE1 0x30
  37. #define WM8995_ACCESSORY_DETECT_MODE2 0x31
  38. #define WM8995_HEADPHONE_DETECT1 0x34
  39. #define WM8995_HEADPHONE_DETECT2 0x35
  40. #define WM8995_MIC_DETECT_1 0x38
  41. #define WM8995_MIC_DETECT_2 0x39
  42. #define WM8995_CHARGE_PUMP_1 0x40
  43. #define WM8995_CLASS_W_1 0x45
  44. #define WM8995_DC_SERVO_1 0x50
  45. #define WM8995_DC_SERVO_2 0x51
  46. #define WM8995_DC_SERVO_3 0x52
  47. #define WM8995_DC_SERVO_5 0x54
  48. #define WM8995_DC_SERVO_6 0x55
  49. #define WM8995_DC_SERVO_7 0x56
  50. #define WM8995_DC_SERVO_READBACK_0 0x57
  51. #define WM8995_ANALOGUE_HP_1 0x60
  52. #define WM8995_ANALOGUE_HP_2 0x61
  53. #define WM8995_CHIP_REVISION 0x100
  54. #define WM8995_CONTROL_INTERFACE_1 0x101
  55. #define WM8995_CONTROL_INTERFACE_2 0x102
  56. #define WM8995_WRITE_SEQUENCER_CTRL_1 0x110
  57. #define WM8995_WRITE_SEQUENCER_CTRL_2 0x111
  58. #define WM8995_AIF1_CLOCKING_1 0x200
  59. #define WM8995_AIF1_CLOCKING_2 0x201
  60. #define WM8995_AIF2_CLOCKING_1 0x204
  61. #define WM8995_AIF2_CLOCKING_2 0x205
  62. #define WM8995_CLOCKING_1 0x208
  63. #define WM8995_CLOCKING_2 0x209
  64. #define WM8995_AIF1_RATE 0x210
  65. #define WM8995_AIF2_RATE 0x211
  66. #define WM8995_RATE_STATUS 0x212
  67. #define WM8995_FLL1_CONTROL_1 0x220
  68. #define WM8995_FLL1_CONTROL_2 0x221
  69. #define WM8995_FLL1_CONTROL_3 0x222
  70. #define WM8995_FLL1_CONTROL_4 0x223
  71. #define WM8995_FLL1_CONTROL_5 0x224
  72. #define WM8995_FLL2_CONTROL_1 0x240
  73. #define WM8995_FLL2_CONTROL_2 0x241
  74. #define WM8995_FLL2_CONTROL_3 0x242
  75. #define WM8995_FLL2_CONTROL_4 0x243
  76. #define WM8995_FLL2_CONTROL_5 0x244
  77. #define WM8995_AIF1_CONTROL_1 0x300
  78. #define WM8995_AIF1_CONTROL_2 0x301
  79. #define WM8995_AIF1_MASTER_SLAVE 0x302
  80. #define WM8995_AIF1_BCLK 0x303
  81. #define WM8995_AIF1ADC_LRCLK 0x304
  82. #define WM8995_AIF1DAC_LRCLK 0x305
  83. #define WM8995_AIF1DAC_DATA 0x306
  84. #define WM8995_AIF1ADC_DATA 0x307
  85. #define WM8995_AIF2_CONTROL_1 0x310
  86. #define WM8995_AIF2_CONTROL_2 0x311
  87. #define WM8995_AIF2_MASTER_SLAVE 0x312
  88. #define WM8995_AIF2_BCLK 0x313
  89. #define WM8995_AIF2ADC_LRCLK 0x314
  90. #define WM8995_AIF2DAC_LRCLK 0x315
  91. #define WM8995_AIF2DAC_DATA 0x316
  92. #define WM8995_AIF2ADC_DATA 0x317
  93. #define WM8995_AIF1_ADC1_LEFT_VOLUME 0x400
  94. #define WM8995_AIF1_ADC1_RIGHT_VOLUME 0x401
  95. #define WM8995_AIF1_DAC1_LEFT_VOLUME 0x402
  96. #define WM8995_AIF1_DAC1_RIGHT_VOLUME 0x403
  97. #define WM8995_AIF1_ADC2_LEFT_VOLUME 0x404
  98. #define WM8995_AIF1_ADC2_RIGHT_VOLUME 0x405
  99. #define WM8995_AIF1_DAC2_LEFT_VOLUME 0x406
  100. #define WM8995_AIF1_DAC2_RIGHT_VOLUME 0x407
  101. #define WM8995_AIF1_ADC1_FILTERS 0x410
  102. #define WM8995_AIF1_ADC2_FILTERS 0x411
  103. #define WM8995_AIF1_DAC1_FILTERS_1 0x420
  104. #define WM8995_AIF1_DAC1_FILTERS_2 0x421
  105. #define WM8995_AIF1_DAC2_FILTERS_1 0x422
  106. #define WM8995_AIF1_DAC2_FILTERS_2 0x423
  107. #define WM8995_AIF1_DRC1_1 0x440
  108. #define WM8995_AIF1_DRC1_2 0x441
  109. #define WM8995_AIF1_DRC1_3 0x442
  110. #define WM8995_AIF1_DRC1_4 0x443
  111. #define WM8995_AIF1_DRC1_5 0x444
  112. #define WM8995_AIF1_DRC2_1 0x450
  113. #define WM8995_AIF1_DRC2_2 0x451
  114. #define WM8995_AIF1_DRC2_3 0x452
  115. #define WM8995_AIF1_DRC2_4 0x453
  116. #define WM8995_AIF1_DRC2_5 0x454
  117. #define WM8995_AIF1_DAC1_EQ_GAINS_1 0x480
  118. #define WM8995_AIF1_DAC1_EQ_GAINS_2 0x481
  119. #define WM8995_AIF1_DAC1_EQ_BAND_1_A 0x482
  120. #define WM8995_AIF1_DAC1_EQ_BAND_1_B 0x483
  121. #define WM8995_AIF1_DAC1_EQ_BAND_1_PG 0x484
  122. #define WM8995_AIF1_DAC1_EQ_BAND_2_A 0x485
  123. #define WM8995_AIF1_DAC1_EQ_BAND_2_B 0x486
  124. #define WM8995_AIF1_DAC1_EQ_BAND_2_C 0x487
  125. #define WM8995_AIF1_DAC1_EQ_BAND_2_PG 0x488
  126. #define WM8995_AIF1_DAC1_EQ_BAND_3_A 0x489
  127. #define WM8995_AIF1_DAC1_EQ_BAND_3_B 0x48A
  128. #define WM8995_AIF1_DAC1_EQ_BAND_3_C 0x48B
  129. #define WM8995_AIF1_DAC1_EQ_BAND_3_PG 0x48C
  130. #define WM8995_AIF1_DAC1_EQ_BAND_4_A 0x48D
  131. #define WM8995_AIF1_DAC1_EQ_BAND_4_B 0x48E
  132. #define WM8995_AIF1_DAC1_EQ_BAND_4_C 0x48F
  133. #define WM8995_AIF1_DAC1_EQ_BAND_4_PG 0x490
  134. #define WM8995_AIF1_DAC1_EQ_BAND_5_A 0x491
  135. #define WM8995_AIF1_DAC1_EQ_BAND_5_B 0x492
  136. #define WM8995_AIF1_DAC1_EQ_BAND_5_PG 0x493
  137. #define WM8995_AIF1_DAC2_EQ_GAINS_1 0x4A0
  138. #define WM8995_AIF1_DAC2_EQ_GAINS_2 0x4A1
  139. #define WM8995_AIF1_DAC2_EQ_BAND_1_A 0x4A2
  140. #define WM8995_AIF1_DAC2_EQ_BAND_1_B 0x4A3
  141. #define WM8995_AIF1_DAC2_EQ_BAND_1_PG 0x4A4
  142. #define WM8995_AIF1_DAC2_EQ_BAND_2_A 0x4A5
  143. #define WM8995_AIF1_DAC2_EQ_BAND_2_B 0x4A6
  144. #define WM8995_AIF1_DAC2_EQ_BAND_2_C 0x4A7
  145. #define WM8995_AIF1_DAC2_EQ_BAND_2_PG 0x4A8
  146. #define WM8995_AIF1_DAC2_EQ_BAND_3_A 0x4A9
  147. #define WM8995_AIF1_DAC2_EQ_BAND_3_B 0x4AA
  148. #define WM8995_AIF1_DAC2_EQ_BAND_3_C 0x4AB
  149. #define WM8995_AIF1_DAC2_EQ_BAND_3_PG 0x4AC
  150. #define WM8995_AIF1_DAC2_EQ_BAND_4_A 0x4AD
  151. #define WM8995_AIF1_DAC2_EQ_BAND_4_B 0x4AE
  152. #define WM8995_AIF1_DAC2_EQ_BAND_4_C 0x4AF
  153. #define WM8995_AIF1_DAC2_EQ_BAND_4_PG 0x4B0
  154. #define WM8995_AIF1_DAC2_EQ_BAND_5_A 0x4B1
  155. #define WM8995_AIF1_DAC2_EQ_BAND_5_B 0x4B2
  156. #define WM8995_AIF1_DAC2_EQ_BAND_5_PG 0x4B3
  157. #define WM8995_AIF2_ADC_LEFT_VOLUME 0x500
  158. #define WM8995_AIF2_ADC_RIGHT_VOLUME 0x501
  159. #define WM8995_AIF2_DAC_LEFT_VOLUME 0x502
  160. #define WM8995_AIF2_DAC_RIGHT_VOLUME 0x503
  161. #define WM8995_AIF2_ADC_FILTERS 0x510
  162. #define WM8995_AIF2_DAC_FILTERS_1 0x520
  163. #define WM8995_AIF2_DAC_FILTERS_2 0x521
  164. #define WM8995_AIF2_DRC_1 0x540
  165. #define WM8995_AIF2_DRC_2 0x541
  166. #define WM8995_AIF2_DRC_3 0x542
  167. #define WM8995_AIF2_DRC_4 0x543
  168. #define WM8995_AIF2_DRC_5 0x544
  169. #define WM8995_AIF2_EQ_GAINS_1 0x580
  170. #define WM8995_AIF2_EQ_GAINS_2 0x581
  171. #define WM8995_AIF2_EQ_BAND_1_A 0x582
  172. #define WM8995_AIF2_EQ_BAND_1_B 0x583
  173. #define WM8995_AIF2_EQ_BAND_1_PG 0x584
  174. #define WM8995_AIF2_EQ_BAND_2_A 0x585
  175. #define WM8995_AIF2_EQ_BAND_2_B 0x586
  176. #define WM8995_AIF2_EQ_BAND_2_C 0x587
  177. #define WM8995_AIF2_EQ_BAND_2_PG 0x588
  178. #define WM8995_AIF2_EQ_BAND_3_A 0x589
  179. #define WM8995_AIF2_EQ_BAND_3_B 0x58A
  180. #define WM8995_AIF2_EQ_BAND_3_C 0x58B
  181. #define WM8995_AIF2_EQ_BAND_3_PG 0x58C
  182. #define WM8995_AIF2_EQ_BAND_4_A 0x58D
  183. #define WM8995_AIF2_EQ_BAND_4_B 0x58E
  184. #define WM8995_AIF2_EQ_BAND_4_C 0x58F
  185. #define WM8995_AIF2_EQ_BAND_4_PG 0x590
  186. #define WM8995_AIF2_EQ_BAND_5_A 0x591
  187. #define WM8995_AIF2_EQ_BAND_5_B 0x592
  188. #define WM8995_AIF2_EQ_BAND_5_PG 0x593
  189. #define WM8995_DAC1_MIXER_VOLUMES 0x600
  190. #define WM8995_DAC1_LEFT_MIXER_ROUTING 0x601
  191. #define WM8995_DAC1_RIGHT_MIXER_ROUTING 0x602
  192. #define WM8995_DAC2_MIXER_VOLUMES 0x603
  193. #define WM8995_DAC2_LEFT_MIXER_ROUTING 0x604
  194. #define WM8995_DAC2_RIGHT_MIXER_ROUTING 0x605
  195. #define WM8995_AIF1_ADC1_LEFT_MIXER_ROUTING 0x606
  196. #define WM8995_AIF1_ADC1_RIGHT_MIXER_ROUTING 0x607
  197. #define WM8995_AIF1_ADC2_LEFT_MIXER_ROUTING 0x608
  198. #define WM8995_AIF1_ADC2_RIGHT_MIXER_ROUTING 0x609
  199. #define WM8995_DAC_SOFTMUTE 0x610
  200. #define WM8995_OVERSAMPLING 0x620
  201. #define WM8995_SIDETONE 0x621
  202. #define WM8995_GPIO_1 0x700
  203. #define WM8995_GPIO_2 0x701
  204. #define WM8995_GPIO_3 0x702
  205. #define WM8995_GPIO_4 0x703
  206. #define WM8995_GPIO_5 0x704
  207. #define WM8995_GPIO_6 0x705
  208. #define WM8995_GPIO_7 0x706
  209. #define WM8995_GPIO_8 0x707
  210. #define WM8995_GPIO_9 0x708
  211. #define WM8995_GPIO_10 0x709
  212. #define WM8995_GPIO_11 0x70A
  213. #define WM8995_GPIO_12 0x70B
  214. #define WM8995_GPIO_13 0x70C
  215. #define WM8995_GPIO_14 0x70D
  216. #define WM8995_PULL_CONTROL_1 0x720
  217. #define WM8995_PULL_CONTROL_2 0x721
  218. #define WM8995_INTERRUPT_STATUS_1 0x730
  219. #define WM8995_INTERRUPT_STATUS_2 0x731
  220. #define WM8995_INTERRUPT_RAW_STATUS_2 0x732
  221. #define WM8995_INTERRUPT_STATUS_1_MASK 0x738
  222. #define WM8995_INTERRUPT_STATUS_2_MASK 0x739
  223. #define WM8995_INTERRUPT_CONTROL 0x740
  224. #define WM8995_LEFT_PDM_SPEAKER_1 0x800
  225. #define WM8995_RIGHT_PDM_SPEAKER_1 0x801
  226. #define WM8995_PDM_SPEAKER_1_MUTE_SEQUENCE 0x802
  227. #define WM8995_LEFT_PDM_SPEAKER_2 0x808
  228. #define WM8995_RIGHT_PDM_SPEAKER_2 0x809
  229. #define WM8995_PDM_SPEAKER_2_MUTE_SEQUENCE 0x80A
  230. #define WM8995_WRITE_SEQUENCER_0 0x3000
  231. #define WM8995_WRITE_SEQUENCER_1 0x3001
  232. #define WM8995_WRITE_SEQUENCER_2 0x3002
  233. #define WM8995_WRITE_SEQUENCER_3 0x3003
  234. #define WM8995_WRITE_SEQUENCER_4 0x3004
  235. #define WM8995_WRITE_SEQUENCER_5 0x3005
  236. #define WM8995_WRITE_SEQUENCER_6 0x3006
  237. #define WM8995_WRITE_SEQUENCER_7 0x3007
  238. #define WM8995_WRITE_SEQUENCER_8 0x3008
  239. #define WM8995_WRITE_SEQUENCER_9 0x3009
  240. #define WM8995_WRITE_SEQUENCER_10 0x300A
  241. #define WM8995_WRITE_SEQUENCER_11 0x300B
  242. #define WM8995_WRITE_SEQUENCER_12 0x300C
  243. #define WM8995_WRITE_SEQUENCER_13 0x300D
  244. #define WM8995_WRITE_SEQUENCER_14 0x300E
  245. #define WM8995_WRITE_SEQUENCER_15 0x300F
  246. #define WM8995_WRITE_SEQUENCER_16 0x3010
  247. #define WM8995_WRITE_SEQUENCER_17 0x3011
  248. #define WM8995_WRITE_SEQUENCER_18 0x3012
  249. #define WM8995_WRITE_SEQUENCER_19 0x3013
  250. #define WM8995_WRITE_SEQUENCER_20 0x3014
  251. #define WM8995_WRITE_SEQUENCER_21 0x3015
  252. #define WM8995_WRITE_SEQUENCER_22 0x3016
  253. #define WM8995_WRITE_SEQUENCER_23 0x3017
  254. #define WM8995_WRITE_SEQUENCER_24 0x3018
  255. #define WM8995_WRITE_SEQUENCER_25 0x3019
  256. #define WM8995_WRITE_SEQUENCER_26 0x301A
  257. #define WM8995_WRITE_SEQUENCER_27 0x301B
  258. #define WM8995_WRITE_SEQUENCER_28 0x301C
  259. #define WM8995_WRITE_SEQUENCER_29 0x301D
  260. #define WM8995_WRITE_SEQUENCER_30 0x301E
  261. #define WM8995_WRITE_SEQUENCER_31 0x301F
  262. #define WM8995_WRITE_SEQUENCER_32 0x3020
  263. #define WM8995_WRITE_SEQUENCER_33 0x3021
  264. #define WM8995_WRITE_SEQUENCER_34 0x3022
  265. #define WM8995_WRITE_SEQUENCER_35 0x3023
  266. #define WM8995_WRITE_SEQUENCER_36 0x3024
  267. #define WM8995_WRITE_SEQUENCER_37 0x3025
  268. #define WM8995_WRITE_SEQUENCER_38 0x3026
  269. #define WM8995_WRITE_SEQUENCER_39 0x3027
  270. #define WM8995_WRITE_SEQUENCER_40 0x3028
  271. #define WM8995_WRITE_SEQUENCER_41 0x3029
  272. #define WM8995_WRITE_SEQUENCER_42 0x302A
  273. #define WM8995_WRITE_SEQUENCER_43 0x302B
  274. #define WM8995_WRITE_SEQUENCER_44 0x302C
  275. #define WM8995_WRITE_SEQUENCER_45 0x302D
  276. #define WM8995_WRITE_SEQUENCER_46 0x302E
  277. #define WM8995_WRITE_SEQUENCER_47 0x302F
  278. #define WM8995_WRITE_SEQUENCER_48 0x3030
  279. #define WM8995_WRITE_SEQUENCER_49 0x3031
  280. #define WM8995_WRITE_SEQUENCER_50 0x3032
  281. #define WM8995_WRITE_SEQUENCER_51 0x3033
  282. #define WM8995_WRITE_SEQUENCER_52 0x3034
  283. #define WM8995_WRITE_SEQUENCER_53 0x3035
  284. #define WM8995_WRITE_SEQUENCER_54 0x3036
  285. #define WM8995_WRITE_SEQUENCER_55 0x3037
  286. #define WM8995_WRITE_SEQUENCER_56 0x3038
  287. #define WM8995_WRITE_SEQUENCER_57 0x3039
  288. #define WM8995_WRITE_SEQUENCER_58 0x303A
  289. #define WM8995_WRITE_SEQUENCER_59 0x303B
  290. #define WM8995_WRITE_SEQUENCER_60 0x303C
  291. #define WM8995_WRITE_SEQUENCER_61 0x303D
  292. #define WM8995_WRITE_SEQUENCER_62 0x303E
  293. #define WM8995_WRITE_SEQUENCER_63 0x303F
  294. #define WM8995_WRITE_SEQUENCER_64 0x3040
  295. #define WM8995_WRITE_SEQUENCER_65 0x3041
  296. #define WM8995_WRITE_SEQUENCER_66 0x3042
  297. #define WM8995_WRITE_SEQUENCER_67 0x3043
  298. #define WM8995_WRITE_SEQUENCER_68 0x3044
  299. #define WM8995_WRITE_SEQUENCER_69 0x3045
  300. #define WM8995_WRITE_SEQUENCER_70 0x3046
  301. #define WM8995_WRITE_SEQUENCER_71 0x3047
  302. #define WM8995_WRITE_SEQUENCER_72 0x3048
  303. #define WM8995_WRITE_SEQUENCER_73 0x3049
  304. #define WM8995_WRITE_SEQUENCER_74 0x304A
  305. #define WM8995_WRITE_SEQUENCER_75 0x304B
  306. #define WM8995_WRITE_SEQUENCER_76 0x304C
  307. #define WM8995_WRITE_SEQUENCER_77 0x304D
  308. #define WM8995_WRITE_SEQUENCER_78 0x304E
  309. #define WM8995_WRITE_SEQUENCER_79 0x304F
  310. #define WM8995_WRITE_SEQUENCER_80 0x3050
  311. #define WM8995_WRITE_SEQUENCER_81 0x3051
  312. #define WM8995_WRITE_SEQUENCER_82 0x3052
  313. #define WM8995_WRITE_SEQUENCER_83 0x3053
  314. #define WM8995_WRITE_SEQUENCER_84 0x3054
  315. #define WM8995_WRITE_SEQUENCER_85 0x3055
  316. #define WM8995_WRITE_SEQUENCER_86 0x3056
  317. #define WM8995_WRITE_SEQUENCER_87 0x3057
  318. #define WM8995_WRITE_SEQUENCER_88 0x3058
  319. #define WM8995_WRITE_SEQUENCER_89 0x3059
  320. #define WM8995_WRITE_SEQUENCER_90 0x305A
  321. #define WM8995_WRITE_SEQUENCER_91 0x305B
  322. #define WM8995_WRITE_SEQUENCER_92 0x305C
  323. #define WM8995_WRITE_SEQUENCER_93 0x305D
  324. #define WM8995_WRITE_SEQUENCER_94 0x305E
  325. #define WM8995_WRITE_SEQUENCER_95 0x305F
  326. #define WM8995_WRITE_SEQUENCER_96 0x3060
  327. #define WM8995_WRITE_SEQUENCER_97 0x3061
  328. #define WM8995_WRITE_SEQUENCER_98 0x3062
  329. #define WM8995_WRITE_SEQUENCER_99 0x3063
  330. #define WM8995_WRITE_SEQUENCER_100 0x3064
  331. #define WM8995_WRITE_SEQUENCER_101 0x3065
  332. #define WM8995_WRITE_SEQUENCER_102 0x3066
  333. #define WM8995_WRITE_SEQUENCER_103 0x3067
  334. #define WM8995_WRITE_SEQUENCER_104 0x3068
  335. #define WM8995_WRITE_SEQUENCER_105 0x3069
  336. #define WM8995_WRITE_SEQUENCER_106 0x306A
  337. #define WM8995_WRITE_SEQUENCER_107 0x306B
  338. #define WM8995_WRITE_SEQUENCER_108 0x306C
  339. #define WM8995_WRITE_SEQUENCER_109 0x306D
  340. #define WM8995_WRITE_SEQUENCER_110 0x306E
  341. #define WM8995_WRITE_SEQUENCER_111 0x306F
  342. #define WM8995_WRITE_SEQUENCER_112 0x3070
  343. #define WM8995_WRITE_SEQUENCER_113 0x3071
  344. #define WM8995_WRITE_SEQUENCER_114 0x3072
  345. #define WM8995_WRITE_SEQUENCER_115 0x3073
  346. #define WM8995_WRITE_SEQUENCER_116 0x3074
  347. #define WM8995_WRITE_SEQUENCER_117 0x3075
  348. #define WM8995_WRITE_SEQUENCER_118 0x3076
  349. #define WM8995_WRITE_SEQUENCER_119 0x3077
  350. #define WM8995_WRITE_SEQUENCER_120 0x3078
  351. #define WM8995_WRITE_SEQUENCER_121 0x3079
  352. #define WM8995_WRITE_SEQUENCER_122 0x307A
  353. #define WM8995_WRITE_SEQUENCER_123 0x307B
  354. #define WM8995_WRITE_SEQUENCER_124 0x307C
  355. #define WM8995_WRITE_SEQUENCER_125 0x307D
  356. #define WM8995_WRITE_SEQUENCER_126 0x307E
  357. #define WM8995_WRITE_SEQUENCER_127 0x307F
  358. #define WM8995_WRITE_SEQUENCER_128 0x3080
  359. #define WM8995_WRITE_SEQUENCER_129 0x3081
  360. #define WM8995_WRITE_SEQUENCER_130 0x3082
  361. #define WM8995_WRITE_SEQUENCER_131 0x3083
  362. #define WM8995_WRITE_SEQUENCER_132 0x3084
  363. #define WM8995_WRITE_SEQUENCER_133 0x3085
  364. #define WM8995_WRITE_SEQUENCER_134 0x3086
  365. #define WM8995_WRITE_SEQUENCER_135 0x3087
  366. #define WM8995_WRITE_SEQUENCER_136 0x3088
  367. #define WM8995_WRITE_SEQUENCER_137 0x3089
  368. #define WM8995_WRITE_SEQUENCER_138 0x308A
  369. #define WM8995_WRITE_SEQUENCER_139 0x308B
  370. #define WM8995_WRITE_SEQUENCER_140 0x308C
  371. #define WM8995_WRITE_SEQUENCER_141 0x308D
  372. #define WM8995_WRITE_SEQUENCER_142 0x308E
  373. #define WM8995_WRITE_SEQUENCER_143 0x308F
  374. #define WM8995_WRITE_SEQUENCER_144 0x3090
  375. #define WM8995_WRITE_SEQUENCER_145 0x3091
  376. #define WM8995_WRITE_SEQUENCER_146 0x3092
  377. #define WM8995_WRITE_SEQUENCER_147 0x3093
  378. #define WM8995_WRITE_SEQUENCER_148 0x3094
  379. #define WM8995_WRITE_SEQUENCER_149 0x3095
  380. #define WM8995_WRITE_SEQUENCER_150 0x3096
  381. #define WM8995_WRITE_SEQUENCER_151 0x3097
  382. #define WM8995_WRITE_SEQUENCER_152 0x3098
  383. #define WM8995_WRITE_SEQUENCER_153 0x3099
  384. #define WM8995_WRITE_SEQUENCER_154 0x309A
  385. #define WM8995_WRITE_SEQUENCER_155 0x309B
  386. #define WM8995_WRITE_SEQUENCER_156 0x309C
  387. #define WM8995_WRITE_SEQUENCER_157 0x309D
  388. #define WM8995_WRITE_SEQUENCER_158 0x309E
  389. #define WM8995_WRITE_SEQUENCER_159 0x309F
  390. #define WM8995_WRITE_SEQUENCER_160 0x30A0
  391. #define WM8995_WRITE_SEQUENCER_161 0x30A1
  392. #define WM8995_WRITE_SEQUENCER_162 0x30A2
  393. #define WM8995_WRITE_SEQUENCER_163 0x30A3
  394. #define WM8995_WRITE_SEQUENCER_164 0x30A4
  395. #define WM8995_WRITE_SEQUENCER_165 0x30A5
  396. #define WM8995_WRITE_SEQUENCER_166 0x30A6
  397. #define WM8995_WRITE_SEQUENCER_167 0x30A7
  398. #define WM8995_WRITE_SEQUENCER_168 0x30A8
  399. #define WM8995_WRITE_SEQUENCER_169 0x30A9
  400. #define WM8995_WRITE_SEQUENCER_170 0x30AA
  401. #define WM8995_WRITE_SEQUENCER_171 0x30AB
  402. #define WM8995_WRITE_SEQUENCER_172 0x30AC
  403. #define WM8995_WRITE_SEQUENCER_173 0x30AD
  404. #define WM8995_WRITE_SEQUENCER_174 0x30AE
  405. #define WM8995_WRITE_SEQUENCER_175 0x30AF
  406. #define WM8995_WRITE_SEQUENCER_176 0x30B0
  407. #define WM8995_WRITE_SEQUENCER_177 0x30B1
  408. #define WM8995_WRITE_SEQUENCER_178 0x30B2
  409. #define WM8995_WRITE_SEQUENCER_179 0x30B3
  410. #define WM8995_WRITE_SEQUENCER_180 0x30B4
  411. #define WM8995_WRITE_SEQUENCER_181 0x30B5
  412. #define WM8995_WRITE_SEQUENCER_182 0x30B6
  413. #define WM8995_WRITE_SEQUENCER_183 0x30B7
  414. #define WM8995_WRITE_SEQUENCER_184 0x30B8
  415. #define WM8995_WRITE_SEQUENCER_185 0x30B9
  416. #define WM8995_WRITE_SEQUENCER_186 0x30BA
  417. #define WM8995_WRITE_SEQUENCER_187 0x30BB
  418. #define WM8995_WRITE_SEQUENCER_188 0x30BC
  419. #define WM8995_WRITE_SEQUENCER_189 0x30BD
  420. #define WM8995_WRITE_SEQUENCER_190 0x30BE
  421. #define WM8995_WRITE_SEQUENCER_191 0x30BF
  422. #define WM8995_WRITE_SEQUENCER_192 0x30C0
  423. #define WM8995_WRITE_SEQUENCER_193 0x30C1
  424. #define WM8995_WRITE_SEQUENCER_194 0x30C2
  425. #define WM8995_WRITE_SEQUENCER_195 0x30C3
  426. #define WM8995_WRITE_SEQUENCER_196 0x30C4
  427. #define WM8995_WRITE_SEQUENCER_197 0x30C5
  428. #define WM8995_WRITE_SEQUENCER_198 0x30C6
  429. #define WM8995_WRITE_SEQUENCER_199 0x30C7
  430. #define WM8995_WRITE_SEQUENCER_200 0x30C8
  431. #define WM8995_WRITE_SEQUENCER_201 0x30C9
  432. #define WM8995_WRITE_SEQUENCER_202 0x30CA
  433. #define WM8995_WRITE_SEQUENCER_203 0x30CB
  434. #define WM8995_WRITE_SEQUENCER_204 0x30CC
  435. #define WM8995_WRITE_SEQUENCER_205 0x30CD
  436. #define WM8995_WRITE_SEQUENCER_206 0x30CE
  437. #define WM8995_WRITE_SEQUENCER_207 0x30CF
  438. #define WM8995_WRITE_SEQUENCER_208 0x30D0
  439. #define WM8995_WRITE_SEQUENCER_209 0x30D1
  440. #define WM8995_WRITE_SEQUENCER_210 0x30D2
  441. #define WM8995_WRITE_SEQUENCER_211 0x30D3
  442. #define WM8995_WRITE_SEQUENCER_212 0x30D4
  443. #define WM8995_WRITE_SEQUENCER_213 0x30D5
  444. #define WM8995_WRITE_SEQUENCER_214 0x30D6
  445. #define WM8995_WRITE_SEQUENCER_215 0x30D7
  446. #define WM8995_WRITE_SEQUENCER_216 0x30D8
  447. #define WM8995_WRITE_SEQUENCER_217 0x30D9
  448. #define WM8995_WRITE_SEQUENCER_218 0x30DA
  449. #define WM8995_WRITE_SEQUENCER_219 0x30DB
  450. #define WM8995_WRITE_SEQUENCER_220 0x30DC
  451. #define WM8995_WRITE_SEQUENCER_221 0x30DD
  452. #define WM8995_WRITE_SEQUENCER_222 0x30DE
  453. #define WM8995_WRITE_SEQUENCER_223 0x30DF
  454. #define WM8995_WRITE_SEQUENCER_224 0x30E0
  455. #define WM8995_WRITE_SEQUENCER_225 0x30E1
  456. #define WM8995_WRITE_SEQUENCER_226 0x30E2
  457. #define WM8995_WRITE_SEQUENCER_227 0x30E3
  458. #define WM8995_WRITE_SEQUENCER_228 0x30E4
  459. #define WM8995_WRITE_SEQUENCER_229 0x30E5
  460. #define WM8995_WRITE_SEQUENCER_230 0x30E6
  461. #define WM8995_WRITE_SEQUENCER_231 0x30E7
  462. #define WM8995_WRITE_SEQUENCER_232 0x30E8
  463. #define WM8995_WRITE_SEQUENCER_233 0x30E9
  464. #define WM8995_WRITE_SEQUENCER_234 0x30EA
  465. #define WM8995_WRITE_SEQUENCER_235 0x30EB
  466. #define WM8995_WRITE_SEQUENCER_236 0x30EC
  467. #define WM8995_WRITE_SEQUENCER_237 0x30ED
  468. #define WM8995_WRITE_SEQUENCER_238 0x30EE
  469. #define WM8995_WRITE_SEQUENCER_239 0x30EF
  470. #define WM8995_WRITE_SEQUENCER_240 0x30F0
  471. #define WM8995_WRITE_SEQUENCER_241 0x30F1
  472. #define WM8995_WRITE_SEQUENCER_242 0x30F2
  473. #define WM8995_WRITE_SEQUENCER_243 0x30F3
  474. #define WM8995_WRITE_SEQUENCER_244 0x30F4
  475. #define WM8995_WRITE_SEQUENCER_245 0x30F5
  476. #define WM8995_WRITE_SEQUENCER_246 0x30F6
  477. #define WM8995_WRITE_SEQUENCER_247 0x30F7
  478. #define WM8995_WRITE_SEQUENCER_248 0x30F8
  479. #define WM8995_WRITE_SEQUENCER_249 0x30F9
  480. #define WM8995_WRITE_SEQUENCER_250 0x30FA
  481. #define WM8995_WRITE_SEQUENCER_251 0x30FB
  482. #define WM8995_WRITE_SEQUENCER_252 0x30FC
  483. #define WM8995_WRITE_SEQUENCER_253 0x30FD
  484. #define WM8995_WRITE_SEQUENCER_254 0x30FE
  485. #define WM8995_WRITE_SEQUENCER_255 0x30FF
  486. #define WM8995_WRITE_SEQUENCER_256 0x3100
  487. #define WM8995_WRITE_SEQUENCER_257 0x3101
  488. #define WM8995_WRITE_SEQUENCER_258 0x3102
  489. #define WM8995_WRITE_SEQUENCER_259 0x3103
  490. #define WM8995_WRITE_SEQUENCER_260 0x3104
  491. #define WM8995_WRITE_SEQUENCER_261 0x3105
  492. #define WM8995_WRITE_SEQUENCER_262 0x3106
  493. #define WM8995_WRITE_SEQUENCER_263 0x3107
  494. #define WM8995_WRITE_SEQUENCER_264 0x3108
  495. #define WM8995_WRITE_SEQUENCER_265 0x3109
  496. #define WM8995_WRITE_SEQUENCER_266 0x310A
  497. #define WM8995_WRITE_SEQUENCER_267 0x310B
  498. #define WM8995_WRITE_SEQUENCER_268 0x310C
  499. #define WM8995_WRITE_SEQUENCER_269 0x310D
  500. #define WM8995_WRITE_SEQUENCER_270 0x310E
  501. #define WM8995_WRITE_SEQUENCER_271 0x310F
  502. #define WM8995_WRITE_SEQUENCER_272 0x3110
  503. #define WM8995_WRITE_SEQUENCER_273 0x3111
  504. #define WM8995_WRITE_SEQUENCER_274 0x3112
  505. #define WM8995_WRITE_SEQUENCER_275 0x3113
  506. #define WM8995_WRITE_SEQUENCER_276 0x3114
  507. #define WM8995_WRITE_SEQUENCER_277 0x3115
  508. #define WM8995_WRITE_SEQUENCER_278 0x3116
  509. #define WM8995_WRITE_SEQUENCER_279 0x3117
  510. #define WM8995_WRITE_SEQUENCER_280 0x3118
  511. #define WM8995_WRITE_SEQUENCER_281 0x3119
  512. #define WM8995_WRITE_SEQUENCER_282 0x311A
  513. #define WM8995_WRITE_SEQUENCER_283 0x311B
  514. #define WM8995_WRITE_SEQUENCER_284 0x311C
  515. #define WM8995_WRITE_SEQUENCER_285 0x311D
  516. #define WM8995_WRITE_SEQUENCER_286 0x311E
  517. #define WM8995_WRITE_SEQUENCER_287 0x311F
  518. #define WM8995_WRITE_SEQUENCER_288 0x3120
  519. #define WM8995_WRITE_SEQUENCER_289 0x3121
  520. #define WM8995_WRITE_SEQUENCER_290 0x3122
  521. #define WM8995_WRITE_SEQUENCER_291 0x3123
  522. #define WM8995_WRITE_SEQUENCER_292 0x3124
  523. #define WM8995_WRITE_SEQUENCER_293 0x3125
  524. #define WM8995_WRITE_SEQUENCER_294 0x3126
  525. #define WM8995_WRITE_SEQUENCER_295 0x3127
  526. #define WM8995_WRITE_SEQUENCER_296 0x3128
  527. #define WM8995_WRITE_SEQUENCER_297 0x3129
  528. #define WM8995_WRITE_SEQUENCER_298 0x312A
  529. #define WM8995_WRITE_SEQUENCER_299 0x312B
  530. #define WM8995_WRITE_SEQUENCER_300 0x312C
  531. #define WM8995_WRITE_SEQUENCER_301 0x312D
  532. #define WM8995_WRITE_SEQUENCER_302 0x312E
  533. #define WM8995_WRITE_SEQUENCER_303 0x312F
  534. #define WM8995_WRITE_SEQUENCER_304 0x3130
  535. #define WM8995_WRITE_SEQUENCER_305 0x3131
  536. #define WM8995_WRITE_SEQUENCER_306 0x3132
  537. #define WM8995_WRITE_SEQUENCER_307 0x3133
  538. #define WM8995_WRITE_SEQUENCER_308 0x3134
  539. #define WM8995_WRITE_SEQUENCER_309 0x3135
  540. #define WM8995_WRITE_SEQUENCER_310 0x3136
  541. #define WM8995_WRITE_SEQUENCER_311 0x3137
  542. #define WM8995_WRITE_SEQUENCER_312 0x3138
  543. #define WM8995_WRITE_SEQUENCER_313 0x3139
  544. #define WM8995_WRITE_SEQUENCER_314 0x313A
  545. #define WM8995_WRITE_SEQUENCER_315 0x313B
  546. #define WM8995_WRITE_SEQUENCER_316 0x313C
  547. #define WM8995_WRITE_SEQUENCER_317 0x313D
  548. #define WM8995_WRITE_SEQUENCER_318 0x313E
  549. #define WM8995_WRITE_SEQUENCER_319 0x313F
  550. #define WM8995_WRITE_SEQUENCER_320 0x3140
  551. #define WM8995_WRITE_SEQUENCER_321 0x3141
  552. #define WM8995_WRITE_SEQUENCER_322 0x3142
  553. #define WM8995_WRITE_SEQUENCER_323 0x3143
  554. #define WM8995_WRITE_SEQUENCER_324 0x3144
  555. #define WM8995_WRITE_SEQUENCER_325 0x3145
  556. #define WM8995_WRITE_SEQUENCER_326 0x3146
  557. #define WM8995_WRITE_SEQUENCER_327 0x3147
  558. #define WM8995_WRITE_SEQUENCER_328 0x3148
  559. #define WM8995_WRITE_SEQUENCER_329 0x3149
  560. #define WM8995_WRITE_SEQUENCER_330 0x314A
  561. #define WM8995_WRITE_SEQUENCER_331 0x314B
  562. #define WM8995_WRITE_SEQUENCER_332 0x314C
  563. #define WM8995_WRITE_SEQUENCER_333 0x314D
  564. #define WM8995_WRITE_SEQUENCER_334 0x314E
  565. #define WM8995_WRITE_SEQUENCER_335 0x314F
  566. #define WM8995_WRITE_SEQUENCER_336 0x3150
  567. #define WM8995_WRITE_SEQUENCER_337 0x3151
  568. #define WM8995_WRITE_SEQUENCER_338 0x3152
  569. #define WM8995_WRITE_SEQUENCER_339 0x3153
  570. #define WM8995_WRITE_SEQUENCER_340 0x3154
  571. #define WM8995_WRITE_SEQUENCER_341 0x3155
  572. #define WM8995_WRITE_SEQUENCER_342 0x3156
  573. #define WM8995_WRITE_SEQUENCER_343 0x3157
  574. #define WM8995_WRITE_SEQUENCER_344 0x3158
  575. #define WM8995_WRITE_SEQUENCER_345 0x3159
  576. #define WM8995_WRITE_SEQUENCER_346 0x315A
  577. #define WM8995_WRITE_SEQUENCER_347 0x315B
  578. #define WM8995_WRITE_SEQUENCER_348 0x315C
  579. #define WM8995_WRITE_SEQUENCER_349 0x315D
  580. #define WM8995_WRITE_SEQUENCER_350 0x315E
  581. #define WM8995_WRITE_SEQUENCER_351 0x315F
  582. #define WM8995_WRITE_SEQUENCER_352 0x3160
  583. #define WM8995_WRITE_SEQUENCER_353 0x3161
  584. #define WM8995_WRITE_SEQUENCER_354 0x3162
  585. #define WM8995_WRITE_SEQUENCER_355 0x3163
  586. #define WM8995_WRITE_SEQUENCER_356 0x3164
  587. #define WM8995_WRITE_SEQUENCER_357 0x3165
  588. #define WM8995_WRITE_SEQUENCER_358 0x3166
  589. #define WM8995_WRITE_SEQUENCER_359 0x3167
  590. #define WM8995_WRITE_SEQUENCER_360 0x3168
  591. #define WM8995_WRITE_SEQUENCER_361 0x3169
  592. #define WM8995_WRITE_SEQUENCER_362 0x316A
  593. #define WM8995_WRITE_SEQUENCER_363 0x316B
  594. #define WM8995_WRITE_SEQUENCER_364 0x316C
  595. #define WM8995_WRITE_SEQUENCER_365 0x316D
  596. #define WM8995_WRITE_SEQUENCER_366 0x316E
  597. #define WM8995_WRITE_SEQUENCER_367 0x316F
  598. #define WM8995_WRITE_SEQUENCER_368 0x3170
  599. #define WM8995_WRITE_SEQUENCER_369 0x3171
  600. #define WM8995_WRITE_SEQUENCER_370 0x3172
  601. #define WM8995_WRITE_SEQUENCER_371 0x3173
  602. #define WM8995_WRITE_SEQUENCER_372 0x3174
  603. #define WM8995_WRITE_SEQUENCER_373 0x3175
  604. #define WM8995_WRITE_SEQUENCER_374 0x3176
  605. #define WM8995_WRITE_SEQUENCER_375 0x3177
  606. #define WM8995_WRITE_SEQUENCER_376 0x3178
  607. #define WM8995_WRITE_SEQUENCER_377 0x3179
  608. #define WM8995_WRITE_SEQUENCER_378 0x317A
  609. #define WM8995_WRITE_SEQUENCER_379 0x317B
  610. #define WM8995_WRITE_SEQUENCER_380 0x317C
  611. #define WM8995_WRITE_SEQUENCER_381 0x317D
  612. #define WM8995_WRITE_SEQUENCER_382 0x317E
  613. #define WM8995_WRITE_SEQUENCER_383 0x317F
  614. #define WM8995_WRITE_SEQUENCER_384 0x3180
  615. #define WM8995_WRITE_SEQUENCER_385 0x3181
  616. #define WM8995_WRITE_SEQUENCER_386 0x3182
  617. #define WM8995_WRITE_SEQUENCER_387 0x3183
  618. #define WM8995_WRITE_SEQUENCER_388 0x3184
  619. #define WM8995_WRITE_SEQUENCER_389 0x3185
  620. #define WM8995_WRITE_SEQUENCER_390 0x3186
  621. #define WM8995_WRITE_SEQUENCER_391 0x3187
  622. #define WM8995_WRITE_SEQUENCER_392 0x3188
  623. #define WM8995_WRITE_SEQUENCER_393 0x3189
  624. #define WM8995_WRITE_SEQUENCER_394 0x318A
  625. #define WM8995_WRITE_SEQUENCER_395 0x318B
  626. #define WM8995_WRITE_SEQUENCER_396 0x318C
  627. #define WM8995_WRITE_SEQUENCER_397 0x318D
  628. #define WM8995_WRITE_SEQUENCER_398 0x318E
  629. #define WM8995_WRITE_SEQUENCER_399 0x318F
  630. #define WM8995_WRITE_SEQUENCER_400 0x3190
  631. #define WM8995_WRITE_SEQUENCER_401 0x3191
  632. #define WM8995_WRITE_SEQUENCER_402 0x3192
  633. #define WM8995_WRITE_SEQUENCER_403 0x3193
  634. #define WM8995_WRITE_SEQUENCER_404 0x3194
  635. #define WM8995_WRITE_SEQUENCER_405 0x3195
  636. #define WM8995_WRITE_SEQUENCER_406 0x3196
  637. #define WM8995_WRITE_SEQUENCER_407 0x3197
  638. #define WM8995_WRITE_SEQUENCER_408 0x3198
  639. #define WM8995_WRITE_SEQUENCER_409 0x3199
  640. #define WM8995_WRITE_SEQUENCER_410 0x319A
  641. #define WM8995_WRITE_SEQUENCER_411 0x319B
  642. #define WM8995_WRITE_SEQUENCER_412 0x319C
  643. #define WM8995_WRITE_SEQUENCER_413 0x319D
  644. #define WM8995_WRITE_SEQUENCER_414 0x319E
  645. #define WM8995_WRITE_SEQUENCER_415 0x319F
  646. #define WM8995_WRITE_SEQUENCER_416 0x31A0
  647. #define WM8995_WRITE_SEQUENCER_417 0x31A1
  648. #define WM8995_WRITE_SEQUENCER_418 0x31A2
  649. #define WM8995_WRITE_SEQUENCER_419 0x31A3
  650. #define WM8995_WRITE_SEQUENCER_420 0x31A4
  651. #define WM8995_WRITE_SEQUENCER_421 0x31A5
  652. #define WM8995_WRITE_SEQUENCER_422 0x31A6
  653. #define WM8995_WRITE_SEQUENCER_423 0x31A7
  654. #define WM8995_WRITE_SEQUENCER_424 0x31A8
  655. #define WM8995_WRITE_SEQUENCER_425 0x31A9
  656. #define WM8995_WRITE_SEQUENCER_426 0x31AA
  657. #define WM8995_WRITE_SEQUENCER_427 0x31AB
  658. #define WM8995_WRITE_SEQUENCER_428 0x31AC
  659. #define WM8995_WRITE_SEQUENCER_429 0x31AD
  660. #define WM8995_WRITE_SEQUENCER_430 0x31AE
  661. #define WM8995_WRITE_SEQUENCER_431 0x31AF
  662. #define WM8995_WRITE_SEQUENCER_432 0x31B0
  663. #define WM8995_WRITE_SEQUENCER_433 0x31B1
  664. #define WM8995_WRITE_SEQUENCER_434 0x31B2
  665. #define WM8995_WRITE_SEQUENCER_435 0x31B3
  666. #define WM8995_WRITE_SEQUENCER_436 0x31B4
  667. #define WM8995_WRITE_SEQUENCER_437 0x31B5
  668. #define WM8995_WRITE_SEQUENCER_438 0x31B6
  669. #define WM8995_WRITE_SEQUENCER_439 0x31B7
  670. #define WM8995_WRITE_SEQUENCER_440 0x31B8
  671. #define WM8995_WRITE_SEQUENCER_441 0x31B9
  672. #define WM8995_WRITE_SEQUENCER_442 0x31BA
  673. #define WM8995_WRITE_SEQUENCER_443 0x31BB
  674. #define WM8995_WRITE_SEQUENCER_444 0x31BC
  675. #define WM8995_WRITE_SEQUENCER_445 0x31BD
  676. #define WM8995_WRITE_SEQUENCER_446 0x31BE
  677. #define WM8995_WRITE_SEQUENCER_447 0x31BF
  678. #define WM8995_WRITE_SEQUENCER_448 0x31C0
  679. #define WM8995_WRITE_SEQUENCER_449 0x31C1
  680. #define WM8995_WRITE_SEQUENCER_450 0x31C2
  681. #define WM8995_WRITE_SEQUENCER_451 0x31C3
  682. #define WM8995_WRITE_SEQUENCER_452 0x31C4
  683. #define WM8995_WRITE_SEQUENCER_453 0x31C5
  684. #define WM8995_WRITE_SEQUENCER_454 0x31C6
  685. #define WM8995_WRITE_SEQUENCER_455 0x31C7
  686. #define WM8995_WRITE_SEQUENCER_456 0x31C8
  687. #define WM8995_WRITE_SEQUENCER_457 0x31C9
  688. #define WM8995_WRITE_SEQUENCER_458 0x31CA
  689. #define WM8995_WRITE_SEQUENCER_459 0x31CB
  690. #define WM8995_WRITE_SEQUENCER_460 0x31CC
  691. #define WM8995_WRITE_SEQUENCER_461 0x31CD
  692. #define WM8995_WRITE_SEQUENCER_462 0x31CE
  693. #define WM8995_WRITE_SEQUENCER_463 0x31CF
  694. #define WM8995_WRITE_SEQUENCER_464 0x31D0
  695. #define WM8995_WRITE_SEQUENCER_465 0x31D1
  696. #define WM8995_WRITE_SEQUENCER_466 0x31D2
  697. #define WM8995_WRITE_SEQUENCER_467 0x31D3
  698. #define WM8995_WRITE_SEQUENCER_468 0x31D4
  699. #define WM8995_WRITE_SEQUENCER_469 0x31D5
  700. #define WM8995_WRITE_SEQUENCER_470 0x31D6
  701. #define WM8995_WRITE_SEQUENCER_471 0x31D7
  702. #define WM8995_WRITE_SEQUENCER_472 0x31D8
  703. #define WM8995_WRITE_SEQUENCER_473 0x31D9
  704. #define WM8995_WRITE_SEQUENCER_474 0x31DA
  705. #define WM8995_WRITE_SEQUENCER_475 0x31DB
  706. #define WM8995_WRITE_SEQUENCER_476 0x31DC
  707. #define WM8995_WRITE_SEQUENCER_477 0x31DD
  708. #define WM8995_WRITE_SEQUENCER_478 0x31DE
  709. #define WM8995_WRITE_SEQUENCER_479 0x31DF
  710. #define WM8995_WRITE_SEQUENCER_480 0x31E0
  711. #define WM8995_WRITE_SEQUENCER_481 0x31E1
  712. #define WM8995_WRITE_SEQUENCER_482 0x31E2
  713. #define WM8995_WRITE_SEQUENCER_483 0x31E3
  714. #define WM8995_WRITE_SEQUENCER_484 0x31E4
  715. #define WM8995_WRITE_SEQUENCER_485 0x31E5
  716. #define WM8995_WRITE_SEQUENCER_486 0x31E6
  717. #define WM8995_WRITE_SEQUENCER_487 0x31E7
  718. #define WM8995_WRITE_SEQUENCER_488 0x31E8
  719. #define WM8995_WRITE_SEQUENCER_489 0x31E9
  720. #define WM8995_WRITE_SEQUENCER_490 0x31EA
  721. #define WM8995_WRITE_SEQUENCER_491 0x31EB
  722. #define WM8995_WRITE_SEQUENCER_492 0x31EC
  723. #define WM8995_WRITE_SEQUENCER_493 0x31ED
  724. #define WM8995_WRITE_SEQUENCER_494 0x31EE
  725. #define WM8995_WRITE_SEQUENCER_495 0x31EF
  726. #define WM8995_WRITE_SEQUENCER_496 0x31F0
  727. #define WM8995_WRITE_SEQUENCER_497 0x31F1
  728. #define WM8995_WRITE_SEQUENCER_498 0x31F2
  729. #define WM8995_WRITE_SEQUENCER_499 0x31F3
  730. #define WM8995_WRITE_SEQUENCER_500 0x31F4
  731. #define WM8995_WRITE_SEQUENCER_501 0x31F5
  732. #define WM8995_WRITE_SEQUENCER_502 0x31F6
  733. #define WM8995_WRITE_SEQUENCER_503 0x31F7
  734. #define WM8995_WRITE_SEQUENCER_504 0x31F8
  735. #define WM8995_WRITE_SEQUENCER_505 0x31F9
  736. #define WM8995_WRITE_SEQUENCER_506 0x31FA
  737. #define WM8995_WRITE_SEQUENCER_507 0x31FB
  738. #define WM8995_WRITE_SEQUENCER_508 0x31FC
  739. #define WM8995_WRITE_SEQUENCER_509 0x31FD
  740. #define WM8995_WRITE_SEQUENCER_510 0x31FE
  741. #define WM8995_WRITE_SEQUENCER_511 0x31FF
  742. #define WM8995_REGISTER_COUNT 725
  743. #define WM8995_MAX_REGISTER 0x31FF
  744. #define WM8995_MAX_CACHED_REGISTER WM8995_MAX_REGISTER
  745. /*
  746. * Field Definitions.
  747. */
  748. /*
  749. * R0 (0x00) - Software Reset
  750. */
  751. #define WM8995_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
  752. #define WM8995_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
  753. #define WM8995_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
  754. /*
  755. * R1 (0x01) - Power Management (1)
  756. */
  757. #define WM8995_MICB2_ENA 0x0200 /* MICB2_ENA */
  758. #define WM8995_MICB2_ENA_MASK 0x0200 /* MICB2_ENA */
  759. #define WM8995_MICB2_ENA_SHIFT 9 /* MICB2_ENA */
  760. #define WM8995_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  761. #define WM8995_MICB1_ENA 0x0100 /* MICB1_ENA */
  762. #define WM8995_MICB1_ENA_MASK 0x0100 /* MICB1_ENA */
  763. #define WM8995_MICB1_ENA_SHIFT 8 /* MICB1_ENA */
  764. #define WM8995_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  765. #define WM8995_HPOUT2L_ENA 0x0080 /* HPOUT2L_ENA */
  766. #define WM8995_HPOUT2L_ENA_MASK 0x0080 /* HPOUT2L_ENA */
  767. #define WM8995_HPOUT2L_ENA_SHIFT 7 /* HPOUT2L_ENA */
  768. #define WM8995_HPOUT2L_ENA_WIDTH 1 /* HPOUT2L_ENA */
  769. #define WM8995_HPOUT2R_ENA 0x0040 /* HPOUT2R_ENA */
  770. #define WM8995_HPOUT2R_ENA_MASK 0x0040 /* HPOUT2R_ENA */
  771. #define WM8995_HPOUT2R_ENA_SHIFT 6 /* HPOUT2R_ENA */
  772. #define WM8995_HPOUT2R_ENA_WIDTH 1 /* HPOUT2R_ENA */
  773. #define WM8995_HPOUT1L_ENA 0x0020 /* HPOUT1L_ENA */
  774. #define WM8995_HPOUT1L_ENA_MASK 0x0020 /* HPOUT1L_ENA */
  775. #define WM8995_HPOUT1L_ENA_SHIFT 5 /* HPOUT1L_ENA */
  776. #define WM8995_HPOUT1L_ENA_WIDTH 1 /* HPOUT1L_ENA */
  777. #define WM8995_HPOUT1R_ENA 0x0010 /* HPOUT1R_ENA */
  778. #define WM8995_HPOUT1R_ENA_MASK 0x0010 /* HPOUT1R_ENA */
  779. #define WM8995_HPOUT1R_ENA_SHIFT 4 /* HPOUT1R_ENA */
  780. #define WM8995_HPOUT1R_ENA_WIDTH 1 /* HPOUT1R_ENA */
  781. #define WM8995_BG_ENA 0x0001 /* BG_ENA */
  782. #define WM8995_BG_ENA_MASK 0x0001 /* BG_ENA */
  783. #define WM8995_BG_ENA_SHIFT 0 /* BG_ENA */
  784. #define WM8995_BG_ENA_WIDTH 1 /* BG_ENA */
  785. /*
  786. * R2 (0x02) - Power Management (2)
  787. */
  788. #define WM8995_OPCLK_ENA 0x0800 /* OPCLK_ENA */
  789. #define WM8995_OPCLK_ENA_MASK 0x0800 /* OPCLK_ENA */
  790. #define WM8995_OPCLK_ENA_SHIFT 11 /* OPCLK_ENA */
  791. #define WM8995_OPCLK_ENA_WIDTH 1 /* OPCLK_ENA */
  792. #define WM8995_IN1L_ENA 0x0020 /* IN1L_ENA */
  793. #define WM8995_IN1L_ENA_MASK 0x0020 /* IN1L_ENA */
  794. #define WM8995_IN1L_ENA_SHIFT 5 /* IN1L_ENA */
  795. #define WM8995_IN1L_ENA_WIDTH 1 /* IN1L_ENA */
  796. #define WM8995_IN1R_ENA 0x0010 /* IN1R_ENA */
  797. #define WM8995_IN1R_ENA_MASK 0x0010 /* IN1R_ENA */
  798. #define WM8995_IN1R_ENA_SHIFT 4 /* IN1R_ENA */
  799. #define WM8995_IN1R_ENA_WIDTH 1 /* IN1R_ENA */
  800. #define WM8995_LDO2_ENA 0x0002 /* LDO2_ENA */
  801. #define WM8995_LDO2_ENA_MASK 0x0002 /* LDO2_ENA */
  802. #define WM8995_LDO2_ENA_SHIFT 1 /* LDO2_ENA */
  803. #define WM8995_LDO2_ENA_WIDTH 1 /* LDO2_ENA */
  804. /*
  805. * R3 (0x03) - Power Management (3)
  806. */
  807. #define WM8995_AIF2ADCL_ENA 0x2000 /* AIF2ADCL_ENA */
  808. #define WM8995_AIF2ADCL_ENA_MASK 0x2000 /* AIF2ADCL_ENA */
  809. #define WM8995_AIF2ADCL_ENA_SHIFT 13 /* AIF2ADCL_ENA */
  810. #define WM8995_AIF2ADCL_ENA_WIDTH 1 /* AIF2ADCL_ENA */
  811. #define WM8995_AIF2ADCR_ENA 0x1000 /* AIF2ADCR_ENA */
  812. #define WM8995_AIF2ADCR_ENA_MASK 0x1000 /* AIF2ADCR_ENA */
  813. #define WM8995_AIF2ADCR_ENA_SHIFT 12 /* AIF2ADCR_ENA */
  814. #define WM8995_AIF2ADCR_ENA_WIDTH 1 /* AIF2ADCR_ENA */
  815. #define WM8995_AIF1ADC2L_ENA 0x0800 /* AIF1ADC2L_ENA */
  816. #define WM8995_AIF1ADC2L_ENA_MASK 0x0800 /* AIF1ADC2L_ENA */
  817. #define WM8995_AIF1ADC2L_ENA_SHIFT 11 /* AIF1ADC2L_ENA */
  818. #define WM8995_AIF1ADC2L_ENA_WIDTH 1 /* AIF1ADC2L_ENA */
  819. #define WM8995_AIF1ADC2R_ENA 0x0400 /* AIF1ADC2R_ENA */
  820. #define WM8995_AIF1ADC2R_ENA_MASK 0x0400 /* AIF1ADC2R_ENA */
  821. #define WM8995_AIF1ADC2R_ENA_SHIFT 10 /* AIF1ADC2R_ENA */
  822. #define WM8995_AIF1ADC2R_ENA_WIDTH 1 /* AIF1ADC2R_ENA */
  823. #define WM8995_AIF1ADC1L_ENA 0x0200 /* AIF1ADC1L_ENA */
  824. #define WM8995_AIF1ADC1L_ENA_MASK 0x0200 /* AIF1ADC1L_ENA */
  825. #define WM8995_AIF1ADC1L_ENA_SHIFT 9 /* AIF1ADC1L_ENA */
  826. #define WM8995_AIF1ADC1L_ENA_WIDTH 1 /* AIF1ADC1L_ENA */
  827. #define WM8995_AIF1ADC1R_ENA 0x0100 /* AIF1ADC1R_ENA */
  828. #define WM8995_AIF1ADC1R_ENA_MASK 0x0100 /* AIF1ADC1R_ENA */
  829. #define WM8995_AIF1ADC1R_ENA_SHIFT 8 /* AIF1ADC1R_ENA */
  830. #define WM8995_AIF1ADC1R_ENA_WIDTH 1 /* AIF1ADC1R_ENA */
  831. #define WM8995_DMIC3L_ENA 0x0080 /* DMIC3L_ENA */
  832. #define WM8995_DMIC3L_ENA_MASK 0x0080 /* DMIC3L_ENA */
  833. #define WM8995_DMIC3L_ENA_SHIFT 7 /* DMIC3L_ENA */
  834. #define WM8995_DMIC3L_ENA_WIDTH 1 /* DMIC3L_ENA */
  835. #define WM8995_DMIC3R_ENA 0x0040 /* DMIC3R_ENA */
  836. #define WM8995_DMIC3R_ENA_MASK 0x0040 /* DMIC3R_ENA */
  837. #define WM8995_DMIC3R_ENA_SHIFT 6 /* DMIC3R_ENA */
  838. #define WM8995_DMIC3R_ENA_WIDTH 1 /* DMIC3R_ENA */
  839. #define WM8995_DMIC2L_ENA 0x0020 /* DMIC2L_ENA */
  840. #define WM8995_DMIC2L_ENA_MASK 0x0020 /* DMIC2L_ENA */
  841. #define WM8995_DMIC2L_ENA_SHIFT 5 /* DMIC2L_ENA */
  842. #define WM8995_DMIC2L_ENA_WIDTH 1 /* DMIC2L_ENA */
  843. #define WM8995_DMIC2R_ENA 0x0010 /* DMIC2R_ENA */
  844. #define WM8995_DMIC2R_ENA_MASK 0x0010 /* DMIC2R_ENA */
  845. #define WM8995_DMIC2R_ENA_SHIFT 4 /* DMIC2R_ENA */
  846. #define WM8995_DMIC2R_ENA_WIDTH 1 /* DMIC2R_ENA */
  847. #define WM8995_DMIC1L_ENA 0x0008 /* DMIC1L_ENA */
  848. #define WM8995_DMIC1L_ENA_MASK 0x0008 /* DMIC1L_ENA */
  849. #define WM8995_DMIC1L_ENA_SHIFT 3 /* DMIC1L_ENA */
  850. #define WM8995_DMIC1L_ENA_WIDTH 1 /* DMIC1L_ENA */
  851. #define WM8995_DMIC1R_ENA 0x0004 /* DMIC1R_ENA */
  852. #define WM8995_DMIC1R_ENA_MASK 0x0004 /* DMIC1R_ENA */
  853. #define WM8995_DMIC1R_ENA_SHIFT 2 /* DMIC1R_ENA */
  854. #define WM8995_DMIC1R_ENA_WIDTH 1 /* DMIC1R_ENA */
  855. #define WM8995_ADCL_ENA 0x0002 /* ADCL_ENA */
  856. #define WM8995_ADCL_ENA_MASK 0x0002 /* ADCL_ENA */
  857. #define WM8995_ADCL_ENA_SHIFT 1 /* ADCL_ENA */
  858. #define WM8995_ADCL_ENA_WIDTH 1 /* ADCL_ENA */
  859. #define WM8995_ADCR_ENA 0x0001 /* ADCR_ENA */
  860. #define WM8995_ADCR_ENA_MASK 0x0001 /* ADCR_ENA */
  861. #define WM8995_ADCR_ENA_SHIFT 0 /* ADCR_ENA */
  862. #define WM8995_ADCR_ENA_WIDTH 1 /* ADCR_ENA */
  863. /*
  864. * R4 (0x04) - Power Management (4)
  865. */
  866. #define WM8995_AIF2DACL_ENA 0x2000 /* AIF2DACL_ENA */
  867. #define WM8995_AIF2DACL_ENA_MASK 0x2000 /* AIF2DACL_ENA */
  868. #define WM8995_AIF2DACL_ENA_SHIFT 13 /* AIF2DACL_ENA */
  869. #define WM8995_AIF2DACL_ENA_WIDTH 1 /* AIF2DACL_ENA */
  870. #define WM8995_AIF2DACR_ENA 0x1000 /* AIF2DACR_ENA */
  871. #define WM8995_AIF2DACR_ENA_MASK 0x1000 /* AIF2DACR_ENA */
  872. #define WM8995_AIF2DACR_ENA_SHIFT 12 /* AIF2DACR_ENA */
  873. #define WM8995_AIF2DACR_ENA_WIDTH 1 /* AIF2DACR_ENA */
  874. #define WM8995_AIF1DAC2L_ENA 0x0800 /* AIF1DAC2L_ENA */
  875. #define WM8995_AIF1DAC2L_ENA_MASK 0x0800 /* AIF1DAC2L_ENA */
  876. #define WM8995_AIF1DAC2L_ENA_SHIFT 11 /* AIF1DAC2L_ENA */
  877. #define WM8995_AIF1DAC2L_ENA_WIDTH 1 /* AIF1DAC2L_ENA */
  878. #define WM8995_AIF1DAC2R_ENA 0x0400 /* AIF1DAC2R_ENA */
  879. #define WM8995_AIF1DAC2R_ENA_MASK 0x0400 /* AIF1DAC2R_ENA */
  880. #define WM8995_AIF1DAC2R_ENA_SHIFT 10 /* AIF1DAC2R_ENA */
  881. #define WM8995_AIF1DAC2R_ENA_WIDTH 1 /* AIF1DAC2R_ENA */
  882. #define WM8995_AIF1DAC1L_ENA 0x0200 /* AIF1DAC1L_ENA */
  883. #define WM8995_AIF1DAC1L_ENA_MASK 0x0200 /* AIF1DAC1L_ENA */
  884. #define WM8995_AIF1DAC1L_ENA_SHIFT 9 /* AIF1DAC1L_ENA */
  885. #define WM8995_AIF1DAC1L_ENA_WIDTH 1 /* AIF1DAC1L_ENA */
  886. #define WM8995_AIF1DAC1R_ENA 0x0100 /* AIF1DAC1R_ENA */
  887. #define WM8995_AIF1DAC1R_ENA_MASK 0x0100 /* AIF1DAC1R_ENA */
  888. #define WM8995_AIF1DAC1R_ENA_SHIFT 8 /* AIF1DAC1R_ENA */
  889. #define WM8995_AIF1DAC1R_ENA_WIDTH 1 /* AIF1DAC1R_ENA */
  890. #define WM8995_DAC2L_ENA 0x0008 /* DAC2L_ENA */
  891. #define WM8995_DAC2L_ENA_MASK 0x0008 /* DAC2L_ENA */
  892. #define WM8995_DAC2L_ENA_SHIFT 3 /* DAC2L_ENA */
  893. #define WM8995_DAC2L_ENA_WIDTH 1 /* DAC2L_ENA */
  894. #define WM8995_DAC2R_ENA 0x0004 /* DAC2R_ENA */
  895. #define WM8995_DAC2R_ENA_MASK 0x0004 /* DAC2R_ENA */
  896. #define WM8995_DAC2R_ENA_SHIFT 2 /* DAC2R_ENA */
  897. #define WM8995_DAC2R_ENA_WIDTH 1 /* DAC2R_ENA */
  898. #define WM8995_DAC1L_ENA 0x0002 /* DAC1L_ENA */
  899. #define WM8995_DAC1L_ENA_MASK 0x0002 /* DAC1L_ENA */
  900. #define WM8995_DAC1L_ENA_SHIFT 1 /* DAC1L_ENA */
  901. #define WM8995_DAC1L_ENA_WIDTH 1 /* DAC1L_ENA */
  902. #define WM8995_DAC1R_ENA 0x0001 /* DAC1R_ENA */
  903. #define WM8995_DAC1R_ENA_MASK 0x0001 /* DAC1R_ENA */
  904. #define WM8995_DAC1R_ENA_SHIFT 0 /* DAC1R_ENA */
  905. #define WM8995_DAC1R_ENA_WIDTH 1 /* DAC1R_ENA */
  906. /*
  907. * R5 (0x05) - Power Management (5)
  908. */
  909. #define WM8995_DMIC_SRC2_MASK 0x0300 /* DMIC_SRC2 - [9:8] */
  910. #define WM8995_DMIC_SRC2_SHIFT 8 /* DMIC_SRC2 - [9:8] */
  911. #define WM8995_DMIC_SRC2_WIDTH 2 /* DMIC_SRC2 - [9:8] */
  912. #define WM8995_DMIC_SRC1_MASK 0x00C0 /* DMIC_SRC1 - [7:6] */
  913. #define WM8995_DMIC_SRC1_SHIFT 6 /* DMIC_SRC1 - [7:6] */
  914. #define WM8995_DMIC_SRC1_WIDTH 2 /* DMIC_SRC1 - [7:6] */
  915. #define WM8995_AIF3_TRI 0x0020 /* AIF3_TRI */
  916. #define WM8995_AIF3_TRI_MASK 0x0020 /* AIF3_TRI */
  917. #define WM8995_AIF3_TRI_SHIFT 5 /* AIF3_TRI */
  918. #define WM8995_AIF3_TRI_WIDTH 1 /* AIF3_TRI */
  919. #define WM8995_AIF3_ADCDAT_SRC_MASK 0x0018 /* AIF3_ADCDAT_SRC - [4:3] */
  920. #define WM8995_AIF3_ADCDAT_SRC_SHIFT 3 /* AIF3_ADCDAT_SRC - [4:3] */
  921. #define WM8995_AIF3_ADCDAT_SRC_WIDTH 2 /* AIF3_ADCDAT_SRC - [4:3] */
  922. #define WM8995_AIF2_ADCDAT_SRC 0x0004 /* AIF2_ADCDAT_SRC */
  923. #define WM8995_AIF2_ADCDAT_SRC_MASK 0x0004 /* AIF2_ADCDAT_SRC */
  924. #define WM8995_AIF2_ADCDAT_SRC_SHIFT 2 /* AIF2_ADCDAT_SRC */
  925. #define WM8995_AIF2_ADCDAT_SRC_WIDTH 1 /* AIF2_ADCDAT_SRC */
  926. #define WM8995_AIF2_DACDAT_SRC 0x0002 /* AIF2_DACDAT_SRC */
  927. #define WM8995_AIF2_DACDAT_SRC_MASK 0x0002 /* AIF2_DACDAT_SRC */
  928. #define WM8995_AIF2_DACDAT_SRC_SHIFT 1 /* AIF2_DACDAT_SRC */
  929. #define WM8995_AIF2_DACDAT_SRC_WIDTH 1 /* AIF2_DACDAT_SRC */
  930. #define WM8995_AIF1_DACDAT_SRC 0x0001 /* AIF1_DACDAT_SRC */
  931. #define WM8995_AIF1_DACDAT_SRC_MASK 0x0001 /* AIF1_DACDAT_SRC */
  932. #define WM8995_AIF1_DACDAT_SRC_SHIFT 0 /* AIF1_DACDAT_SRC */
  933. #define WM8995_AIF1_DACDAT_SRC_WIDTH 1 /* AIF1_DACDAT_SRC */
  934. /*
  935. * R16 (0x10) - Left Line Input 1 Volume
  936. */
  937. #define WM8995_IN1_VU 0x0080 /* IN1_VU */
  938. #define WM8995_IN1_VU_MASK 0x0080 /* IN1_VU */
  939. #define WM8995_IN1_VU_SHIFT 7 /* IN1_VU */
  940. #define WM8995_IN1_VU_WIDTH 1 /* IN1_VU */
  941. #define WM8995_IN1L_ZC 0x0020 /* IN1L_ZC */
  942. #define WM8995_IN1L_ZC_MASK 0x0020 /* IN1L_ZC */
  943. #define WM8995_IN1L_ZC_SHIFT 5 /* IN1L_ZC */
  944. #define WM8995_IN1L_ZC_WIDTH 1 /* IN1L_ZC */
  945. #define WM8995_IN1L_VOL_MASK 0x001F /* IN1L_VOL - [4:0] */
  946. #define WM8995_IN1L_VOL_SHIFT 0 /* IN1L_VOL - [4:0] */
  947. #define WM8995_IN1L_VOL_WIDTH 5 /* IN1L_VOL - [4:0] */
  948. /*
  949. * R17 (0x11) - Right Line Input 1 Volume
  950. */
  951. #define WM8995_IN1_VU 0x0080 /* IN1_VU */
  952. #define WM8995_IN1_VU_MASK 0x0080 /* IN1_VU */
  953. #define WM8995_IN1_VU_SHIFT 7 /* IN1_VU */
  954. #define WM8995_IN1_VU_WIDTH 1 /* IN1_VU */
  955. #define WM8995_IN1R_ZC 0x0020 /* IN1R_ZC */
  956. #define WM8995_IN1R_ZC_MASK 0x0020 /* IN1R_ZC */
  957. #define WM8995_IN1R_ZC_SHIFT 5 /* IN1R_ZC */
  958. #define WM8995_IN1R_ZC_WIDTH 1 /* IN1R_ZC */
  959. #define WM8995_IN1R_VOL_MASK 0x001F /* IN1R_VOL - [4:0] */
  960. #define WM8995_IN1R_VOL_SHIFT 0 /* IN1R_VOL - [4:0] */
  961. #define WM8995_IN1R_VOL_WIDTH 5 /* IN1R_VOL - [4:0] */
  962. /*
  963. * R18 (0x12) - Left Line Input Control
  964. */
  965. #define WM8995_IN1L_BOOST_MASK 0x0030 /* IN1L_BOOST - [5:4] */
  966. #define WM8995_IN1L_BOOST_SHIFT 4 /* IN1L_BOOST - [5:4] */
  967. #define WM8995_IN1L_BOOST_WIDTH 2 /* IN1L_BOOST - [5:4] */
  968. #define WM8995_IN1L_MODE_MASK 0x000C /* IN1L_MODE - [3:2] */
  969. #define WM8995_IN1L_MODE_SHIFT 2 /* IN1L_MODE - [3:2] */
  970. #define WM8995_IN1L_MODE_WIDTH 2 /* IN1L_MODE - [3:2] */
  971. #define WM8995_IN1R_MODE_MASK 0x0003 /* IN1R_MODE - [1:0] */
  972. #define WM8995_IN1R_MODE_SHIFT 0 /* IN1R_MODE - [1:0] */
  973. #define WM8995_IN1R_MODE_WIDTH 2 /* IN1R_MODE - [1:0] */
  974. /*
  975. * R24 (0x18) - DAC1 Left Volume
  976. */
  977. #define WM8995_DAC1L_MUTE 0x0200 /* DAC1L_MUTE */
  978. #define WM8995_DAC1L_MUTE_MASK 0x0200 /* DAC1L_MUTE */
  979. #define WM8995_DAC1L_MUTE_SHIFT 9 /* DAC1L_MUTE */
  980. #define WM8995_DAC1L_MUTE_WIDTH 1 /* DAC1L_MUTE */
  981. #define WM8995_DAC1_VU 0x0100 /* DAC1_VU */
  982. #define WM8995_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  983. #define WM8995_DAC1_VU_SHIFT 8 /* DAC1_VU */
  984. #define WM8995_DAC1_VU_WIDTH 1 /* DAC1_VU */
  985. #define WM8995_DAC1L_VOL_MASK 0x00FF /* DAC1L_VOL - [7:0] */
  986. #define WM8995_DAC1L_VOL_SHIFT 0 /* DAC1L_VOL - [7:0] */
  987. #define WM8995_DAC1L_VOL_WIDTH 8 /* DAC1L_VOL - [7:0] */
  988. /*
  989. * R25 (0x19) - DAC1 Right Volume
  990. */
  991. #define WM8995_DAC1R_MUTE 0x0200 /* DAC1R_MUTE */
  992. #define WM8995_DAC1R_MUTE_MASK 0x0200 /* DAC1R_MUTE */
  993. #define WM8995_DAC1R_MUTE_SHIFT 9 /* DAC1R_MUTE */
  994. #define WM8995_DAC1R_MUTE_WIDTH 1 /* DAC1R_MUTE */
  995. #define WM8995_DAC1_VU 0x0100 /* DAC1_VU */
  996. #define WM8995_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  997. #define WM8995_DAC1_VU_SHIFT 8 /* DAC1_VU */
  998. #define WM8995_DAC1_VU_WIDTH 1 /* DAC1_VU */
  999. #define WM8995_DAC1R_VOL_MASK 0x00FF /* DAC1R_VOL - [7:0] */
  1000. #define WM8995_DAC1R_VOL_SHIFT 0 /* DAC1R_VOL - [7:0] */
  1001. #define WM8995_DAC1R_VOL_WIDTH 8 /* DAC1R_VOL - [7:0] */
  1002. /*
  1003. * R26 (0x1A) - DAC2 Left Volume
  1004. */
  1005. #define WM8995_DAC2L_MUTE 0x0200 /* DAC2L_MUTE */
  1006. #define WM8995_DAC2L_MUTE_MASK 0x0200 /* DAC2L_MUTE */
  1007. #define WM8995_DAC2L_MUTE_SHIFT 9 /* DAC2L_MUTE */
  1008. #define WM8995_DAC2L_MUTE_WIDTH 1 /* DAC2L_MUTE */
  1009. #define WM8995_DAC2_VU 0x0100 /* DAC2_VU */
  1010. #define WM8995_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1011. #define WM8995_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1012. #define WM8995_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1013. #define WM8995_DAC2L_VOL_MASK 0x00FF /* DAC2L_VOL - [7:0] */
  1014. #define WM8995_DAC2L_VOL_SHIFT 0 /* DAC2L_VOL - [7:0] */
  1015. #define WM8995_DAC2L_VOL_WIDTH 8 /* DAC2L_VOL - [7:0] */
  1016. /*
  1017. * R27 (0x1B) - DAC2 Right Volume
  1018. */
  1019. #define WM8995_DAC2R_MUTE 0x0200 /* DAC2R_MUTE */
  1020. #define WM8995_DAC2R_MUTE_MASK 0x0200 /* DAC2R_MUTE */
  1021. #define WM8995_DAC2R_MUTE_SHIFT 9 /* DAC2R_MUTE */
  1022. #define WM8995_DAC2R_MUTE_WIDTH 1 /* DAC2R_MUTE */
  1023. #define WM8995_DAC2_VU 0x0100 /* DAC2_VU */
  1024. #define WM8995_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1025. #define WM8995_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1026. #define WM8995_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1027. #define WM8995_DAC2R_VOL_MASK 0x00FF /* DAC2R_VOL - [7:0] */
  1028. #define WM8995_DAC2R_VOL_SHIFT 0 /* DAC2R_VOL - [7:0] */
  1029. #define WM8995_DAC2R_VOL_WIDTH 8 /* DAC2R_VOL - [7:0] */
  1030. /*
  1031. * R28 (0x1C) - Output Volume ZC (1)
  1032. */
  1033. #define WM8995_HPOUT2L_ZC 0x0008 /* HPOUT2L_ZC */
  1034. #define WM8995_HPOUT2L_ZC_MASK 0x0008 /* HPOUT2L_ZC */
  1035. #define WM8995_HPOUT2L_ZC_SHIFT 3 /* HPOUT2L_ZC */
  1036. #define WM8995_HPOUT2L_ZC_WIDTH 1 /* HPOUT2L_ZC */
  1037. #define WM8995_HPOUT2R_ZC 0x0004 /* HPOUT2R_ZC */
  1038. #define WM8995_HPOUT2R_ZC_MASK 0x0004 /* HPOUT2R_ZC */
  1039. #define WM8995_HPOUT2R_ZC_SHIFT 2 /* HPOUT2R_ZC */
  1040. #define WM8995_HPOUT2R_ZC_WIDTH 1 /* HPOUT2R_ZC */
  1041. #define WM8995_HPOUT1L_ZC 0x0002 /* HPOUT1L_ZC */
  1042. #define WM8995_HPOUT1L_ZC_MASK 0x0002 /* HPOUT1L_ZC */
  1043. #define WM8995_HPOUT1L_ZC_SHIFT 1 /* HPOUT1L_ZC */
  1044. #define WM8995_HPOUT1L_ZC_WIDTH 1 /* HPOUT1L_ZC */
  1045. #define WM8995_HPOUT1R_ZC 0x0001 /* HPOUT1R_ZC */
  1046. #define WM8995_HPOUT1R_ZC_MASK 0x0001 /* HPOUT1R_ZC */
  1047. #define WM8995_HPOUT1R_ZC_SHIFT 0 /* HPOUT1R_ZC */
  1048. #define WM8995_HPOUT1R_ZC_WIDTH 1 /* HPOUT1R_ZC */
  1049. /*
  1050. * R32 (0x20) - MICBIAS (1)
  1051. */
  1052. #define WM8995_MICB1_MODE 0x0008 /* MICB1_MODE */
  1053. #define WM8995_MICB1_MODE_MASK 0x0008 /* MICB1_MODE */
  1054. #define WM8995_MICB1_MODE_SHIFT 3 /* MICB1_MODE */
  1055. #define WM8995_MICB1_MODE_WIDTH 1 /* MICB1_MODE */
  1056. #define WM8995_MICB1_LVL_MASK 0x0006 /* MICB1_LVL - [2:1] */
  1057. #define WM8995_MICB1_LVL_SHIFT 1 /* MICB1_LVL - [2:1] */
  1058. #define WM8995_MICB1_LVL_WIDTH 2 /* MICB1_LVL - [2:1] */
  1059. #define WM8995_MICB1_DISCH 0x0001 /* MICB1_DISCH */
  1060. #define WM8995_MICB1_DISCH_MASK 0x0001 /* MICB1_DISCH */
  1061. #define WM8995_MICB1_DISCH_SHIFT 0 /* MICB1_DISCH */
  1062. #define WM8995_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  1063. /*
  1064. * R33 (0x21) - MICBIAS (2)
  1065. */
  1066. #define WM8995_MICB2_MODE 0x0008 /* MICB2_MODE */
  1067. #define WM8995_MICB2_MODE_MASK 0x0008 /* MICB2_MODE */
  1068. #define WM8995_MICB2_MODE_SHIFT 3 /* MICB2_MODE */
  1069. #define WM8995_MICB2_MODE_WIDTH 1 /* MICB2_MODE */
  1070. #define WM8995_MICB2_LVL_MASK 0x0006 /* MICB2_LVL - [2:1] */
  1071. #define WM8995_MICB2_LVL_SHIFT 1 /* MICB2_LVL - [2:1] */
  1072. #define WM8995_MICB2_LVL_WIDTH 2 /* MICB2_LVL - [2:1] */
  1073. #define WM8995_MICB2_DISCH 0x0001 /* MICB2_DISCH */
  1074. #define WM8995_MICB2_DISCH_MASK 0x0001 /* MICB2_DISCH */
  1075. #define WM8995_MICB2_DISCH_SHIFT 0 /* MICB2_DISCH */
  1076. #define WM8995_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  1077. /*
  1078. * R40 (0x28) - LDO 1
  1079. */
  1080. #define WM8995_LDO1_MODE 0x0020 /* LDO1_MODE */
  1081. #define WM8995_LDO1_MODE_MASK 0x0020 /* LDO1_MODE */
  1082. #define WM8995_LDO1_MODE_SHIFT 5 /* LDO1_MODE */
  1083. #define WM8995_LDO1_MODE_WIDTH 1 /* LDO1_MODE */
  1084. #define WM8995_LDO1_VSEL_MASK 0x0006 /* LDO1_VSEL - [2:1] */
  1085. #define WM8995_LDO1_VSEL_SHIFT 1 /* LDO1_VSEL - [2:1] */
  1086. #define WM8995_LDO1_VSEL_WIDTH 2 /* LDO1_VSEL - [2:1] */
  1087. #define WM8995_LDO1_DISCH 0x0001 /* LDO1_DISCH */
  1088. #define WM8995_LDO1_DISCH_MASK 0x0001 /* LDO1_DISCH */
  1089. #define WM8995_LDO1_DISCH_SHIFT 0 /* LDO1_DISCH */
  1090. #define WM8995_LDO1_DISCH_WIDTH 1 /* LDO1_DISCH */
  1091. /*
  1092. * R41 (0x29) - LDO 2
  1093. */
  1094. #define WM8995_LDO2_MODE 0x0020 /* LDO2_MODE */
  1095. #define WM8995_LDO2_MODE_MASK 0x0020 /* LDO2_MODE */
  1096. #define WM8995_LDO2_MODE_SHIFT 5 /* LDO2_MODE */
  1097. #define WM8995_LDO2_MODE_WIDTH 1 /* LDO2_MODE */
  1098. #define WM8995_LDO2_VSEL_MASK 0x001E /* LDO2_VSEL - [4:1] */
  1099. #define WM8995_LDO2_VSEL_SHIFT 1 /* LDO2_VSEL - [4:1] */
  1100. #define WM8995_LDO2_VSEL_WIDTH 4 /* LDO2_VSEL - [4:1] */
  1101. #define WM8995_LDO2_DISCH 0x0001 /* LDO2_DISCH */
  1102. #define WM8995_LDO2_DISCH_MASK 0x0001 /* LDO2_DISCH */
  1103. #define WM8995_LDO2_DISCH_SHIFT 0 /* LDO2_DISCH */
  1104. #define WM8995_LDO2_DISCH_WIDTH 1 /* LDO2_DISCH */
  1105. /*
  1106. * R48 (0x30) - Accessory Detect Mode1
  1107. */
  1108. #define WM8995_JD_MODE_MASK 0x0003 /* JD_MODE - [1:0] */
  1109. #define WM8995_JD_MODE_SHIFT 0 /* JD_MODE - [1:0] */
  1110. #define WM8995_JD_MODE_WIDTH 2 /* JD_MODE - [1:0] */
  1111. /*
  1112. * R49 (0x31) - Accessory Detect Mode2
  1113. */
  1114. #define WM8995_VID_ENA 0x0001 /* VID_ENA */
  1115. #define WM8995_VID_ENA_MASK 0x0001 /* VID_ENA */
  1116. #define WM8995_VID_ENA_SHIFT 0 /* VID_ENA */
  1117. #define WM8995_VID_ENA_WIDTH 1 /* VID_ENA */
  1118. /*
  1119. * R52 (0x34) - Headphone Detect1
  1120. */
  1121. #define WM8995_HP_RAMPRATE 0x0002 /* HP_RAMPRATE */
  1122. #define WM8995_HP_RAMPRATE_MASK 0x0002 /* HP_RAMPRATE */
  1123. #define WM8995_HP_RAMPRATE_SHIFT 1 /* HP_RAMPRATE */
  1124. #define WM8995_HP_RAMPRATE_WIDTH 1 /* HP_RAMPRATE */
  1125. #define WM8995_HP_POLL 0x0001 /* HP_POLL */
  1126. #define WM8995_HP_POLL_MASK 0x0001 /* HP_POLL */
  1127. #define WM8995_HP_POLL_SHIFT 0 /* HP_POLL */
  1128. #define WM8995_HP_POLL_WIDTH 1 /* HP_POLL */
  1129. /*
  1130. * R53 (0x35) - Headphone Detect2
  1131. */
  1132. #define WM8995_HP_DONE 0x0080 /* HP_DONE */
  1133. #define WM8995_HP_DONE_MASK 0x0080 /* HP_DONE */
  1134. #define WM8995_HP_DONE_SHIFT 7 /* HP_DONE */
  1135. #define WM8995_HP_DONE_WIDTH 1 /* HP_DONE */
  1136. #define WM8995_HP_LVL_MASK 0x007F /* HP_LVL - [6:0] */
  1137. #define WM8995_HP_LVL_SHIFT 0 /* HP_LVL - [6:0] */
  1138. #define WM8995_HP_LVL_WIDTH 7 /* HP_LVL - [6:0] */
  1139. /*
  1140. * R56 (0x38) - Mic Detect (1)
  1141. */
  1142. #define WM8995_MICD_RATE_MASK 0x7800 /* MICD_RATE - [14:11] */
  1143. #define WM8995_MICD_RATE_SHIFT 11 /* MICD_RATE - [14:11] */
  1144. #define WM8995_MICD_RATE_WIDTH 4 /* MICD_RATE - [14:11] */
  1145. #define WM8995_MICD_LVL_SEL_MASK 0x01F8 /* MICD_LVL_SEL - [8:3] */
  1146. #define WM8995_MICD_LVL_SEL_SHIFT 3 /* MICD_LVL_SEL - [8:3] */
  1147. #define WM8995_MICD_LVL_SEL_WIDTH 6 /* MICD_LVL_SEL - [8:3] */
  1148. #define WM8995_MICD_DBTIME 0x0002 /* MICD_DBTIME */
  1149. #define WM8995_MICD_DBTIME_MASK 0x0002 /* MICD_DBTIME */
  1150. #define WM8995_MICD_DBTIME_SHIFT 1 /* MICD_DBTIME */
  1151. #define WM8995_MICD_DBTIME_WIDTH 1 /* MICD_DBTIME */
  1152. #define WM8995_MICD_ENA 0x0001 /* MICD_ENA */
  1153. #define WM8995_MICD_ENA_MASK 0x0001 /* MICD_ENA */
  1154. #define WM8995_MICD_ENA_SHIFT 0 /* MICD_ENA */
  1155. #define WM8995_MICD_ENA_WIDTH 1 /* MICD_ENA */
  1156. /*
  1157. * R57 (0x39) - Mic Detect (2)
  1158. */
  1159. #define WM8995_MICD_LVL_MASK 0x01FC /* MICD_LVL - [8:2] */
  1160. #define WM8995_MICD_LVL_SHIFT 2 /* MICD_LVL - [8:2] */
  1161. #define WM8995_MICD_LVL_WIDTH 7 /* MICD_LVL - [8:2] */
  1162. #define WM8995_MICD_VALID 0x0002 /* MICD_VALID */
  1163. #define WM8995_MICD_VALID_MASK 0x0002 /* MICD_VALID */
  1164. #define WM8995_MICD_VALID_SHIFT 1 /* MICD_VALID */
  1165. #define WM8995_MICD_VALID_WIDTH 1 /* MICD_VALID */
  1166. #define WM8995_MICD_STS 0x0001 /* MICD_STS */
  1167. #define WM8995_MICD_STS_MASK 0x0001 /* MICD_STS */
  1168. #define WM8995_MICD_STS_SHIFT 0 /* MICD_STS */
  1169. #define WM8995_MICD_STS_WIDTH 1 /* MICD_STS */
  1170. /*
  1171. * R64 (0x40) - Charge Pump (1)
  1172. */
  1173. #define WM8995_CP_ENA 0x8000 /* CP_ENA */
  1174. #define WM8995_CP_ENA_MASK 0x8000 /* CP_ENA */
  1175. #define WM8995_CP_ENA_SHIFT 15 /* CP_ENA */
  1176. #define WM8995_CP_ENA_WIDTH 1 /* CP_ENA */
  1177. /*
  1178. * R69 (0x45) - Class W (1)
  1179. */
  1180. #define WM8995_CP_DYN_SRC_SEL_MASK 0x0300 /* CP_DYN_SRC_SEL - [9:8] */
  1181. #define WM8995_CP_DYN_SRC_SEL_SHIFT 8 /* CP_DYN_SRC_SEL - [9:8] */
  1182. #define WM8995_CP_DYN_SRC_SEL_WIDTH 2 /* CP_DYN_SRC_SEL - [9:8] */
  1183. #define WM8995_CP_DYN_PWR 0x0001 /* CP_DYN_PWR */
  1184. #define WM8995_CP_DYN_PWR_MASK 0x0001 /* CP_DYN_PWR */
  1185. #define WM8995_CP_DYN_PWR_SHIFT 0 /* CP_DYN_PWR */
  1186. #define WM8995_CP_DYN_PWR_WIDTH 1 /* CP_DYN_PWR */
  1187. /*
  1188. * R80 (0x50) - DC Servo (1)
  1189. */
  1190. #define WM8995_DCS_ENA_CHAN_3 0x0008 /* DCS_ENA_CHAN_3 */
  1191. #define WM8995_DCS_ENA_CHAN_3_MASK 0x0008 /* DCS_ENA_CHAN_3 */
  1192. #define WM8995_DCS_ENA_CHAN_3_SHIFT 3 /* DCS_ENA_CHAN_3 */
  1193. #define WM8995_DCS_ENA_CHAN_3_WIDTH 1 /* DCS_ENA_CHAN_3 */
  1194. #define WM8995_DCS_ENA_CHAN_2 0x0004 /* DCS_ENA_CHAN_2 */
  1195. #define WM8995_DCS_ENA_CHAN_2_MASK 0x0004 /* DCS_ENA_CHAN_2 */
  1196. #define WM8995_DCS_ENA_CHAN_2_SHIFT 2 /* DCS_ENA_CHAN_2 */
  1197. #define WM8995_DCS_ENA_CHAN_2_WIDTH 1 /* DCS_ENA_CHAN_2 */
  1198. #define WM8995_DCS_ENA_CHAN_1 0x0002 /* DCS_ENA_CHAN_1 */
  1199. #define WM8995_DCS_ENA_CHAN_1_MASK 0x0002 /* DCS_ENA_CHAN_1 */
  1200. #define WM8995_DCS_ENA_CHAN_1_SHIFT 1 /* DCS_ENA_CHAN_1 */
  1201. #define WM8995_DCS_ENA_CHAN_1_WIDTH 1 /* DCS_ENA_CHAN_1 */
  1202. #define WM8995_DCS_ENA_CHAN_0 0x0001 /* DCS_ENA_CHAN_0 */
  1203. #define WM8995_DCS_ENA_CHAN_0_MASK 0x0001 /* DCS_ENA_CHAN_0 */
  1204. #define WM8995_DCS_ENA_CHAN_0_SHIFT 0 /* DCS_ENA_CHAN_0 */
  1205. #define WM8995_DCS_ENA_CHAN_0_WIDTH 1 /* DCS_ENA_CHAN_0 */
  1206. /*
  1207. * R81 (0x51) - DC Servo (2)
  1208. */
  1209. #define WM8995_DCS_TRIG_SINGLE_3 0x8000 /* DCS_TRIG_SINGLE_3 */
  1210. #define WM8995_DCS_TRIG_SINGLE_3_MASK 0x8000 /* DCS_TRIG_SINGLE_3 */
  1211. #define WM8995_DCS_TRIG_SINGLE_3_SHIFT 15 /* DCS_TRIG_SINGLE_3 */
  1212. #define WM8995_DCS_TRIG_SINGLE_3_WIDTH 1 /* DCS_TRIG_SINGLE_3 */
  1213. #define WM8995_DCS_TRIG_SINGLE_2 0x4000 /* DCS_TRIG_SINGLE_2 */
  1214. #define WM8995_DCS_TRIG_SINGLE_2_MASK 0x4000 /* DCS_TRIG_SINGLE_2 */
  1215. #define WM8995_DCS_TRIG_SINGLE_2_SHIFT 14 /* DCS_TRIG_SINGLE_2 */
  1216. #define WM8995_DCS_TRIG_SINGLE_2_WIDTH 1 /* DCS_TRIG_SINGLE_2 */
  1217. #define WM8995_DCS_TRIG_SINGLE_1 0x2000 /* DCS_TRIG_SINGLE_1 */
  1218. #define WM8995_DCS_TRIG_SINGLE_1_MASK 0x2000 /* DCS_TRIG_SINGLE_1 */
  1219. #define WM8995_DCS_TRIG_SINGLE_1_SHIFT 13 /* DCS_TRIG_SINGLE_1 */
  1220. #define WM8995_DCS_TRIG_SINGLE_1_WIDTH 1 /* DCS_TRIG_SINGLE_1 */
  1221. #define WM8995_DCS_TRIG_SINGLE_0 0x1000 /* DCS_TRIG_SINGLE_0 */
  1222. #define WM8995_DCS_TRIG_SINGLE_0_MASK 0x1000 /* DCS_TRIG_SINGLE_0 */
  1223. #define WM8995_DCS_TRIG_SINGLE_0_SHIFT 12 /* DCS_TRIG_SINGLE_0 */
  1224. #define WM8995_DCS_TRIG_SINGLE_0_WIDTH 1 /* DCS_TRIG_SINGLE_0 */
  1225. #define WM8995_DCS_TRIG_SERIES_3 0x0800 /* DCS_TRIG_SERIES_3 */
  1226. #define WM8995_DCS_TRIG_SERIES_3_MASK 0x0800 /* DCS_TRIG_SERIES_3 */
  1227. #define WM8995_DCS_TRIG_SERIES_3_SHIFT 11 /* DCS_TRIG_SERIES_3 */
  1228. #define WM8995_DCS_TRIG_SERIES_3_WIDTH 1 /* DCS_TRIG_SERIES_3 */
  1229. #define WM8995_DCS_TRIG_SERIES_2 0x0400 /* DCS_TRIG_SERIES_2 */
  1230. #define WM8995_DCS_TRIG_SERIES_2_MASK 0x0400 /* DCS_TRIG_SERIES_2 */
  1231. #define WM8995_DCS_TRIG_SERIES_2_SHIFT 10 /* DCS_TRIG_SERIES_2 */
  1232. #define WM8995_DCS_TRIG_SERIES_2_WIDTH 1 /* DCS_TRIG_SERIES_2 */
  1233. #define WM8995_DCS_TRIG_SERIES_1 0x0200 /* DCS_TRIG_SERIES_1 */
  1234. #define WM8995_DCS_TRIG_SERIES_1_MASK 0x0200 /* DCS_TRIG_SERIES_1 */
  1235. #define WM8995_DCS_TRIG_SERIES_1_SHIFT 9 /* DCS_TRIG_SERIES_1 */
  1236. #define WM8995_DCS_TRIG_SERIES_1_WIDTH 1 /* DCS_TRIG_SERIES_1 */
  1237. #define WM8995_DCS_TRIG_SERIES_0 0x0100 /* DCS_TRIG_SERIES_0 */
  1238. #define WM8995_DCS_TRIG_SERIES_0_MASK 0x0100 /* DCS_TRIG_SERIES_0 */
  1239. #define WM8995_DCS_TRIG_SERIES_0_SHIFT 8 /* DCS_TRIG_SERIES_0 */
  1240. #define WM8995_DCS_TRIG_SERIES_0_WIDTH 1 /* DCS_TRIG_SERIES_0 */
  1241. #define WM8995_DCS_TRIG_STARTUP_3 0x0080 /* DCS_TRIG_STARTUP_3 */
  1242. #define WM8995_DCS_TRIG_STARTUP_3_MASK 0x0080 /* DCS_TRIG_STARTUP_3 */
  1243. #define WM8995_DCS_TRIG_STARTUP_3_SHIFT 7 /* DCS_TRIG_STARTUP_3 */
  1244. #define WM8995_DCS_TRIG_STARTUP_3_WIDTH 1 /* DCS_TRIG_STARTUP_3 */
  1245. #define WM8995_DCS_TRIG_STARTUP_2 0x0040 /* DCS_TRIG_STARTUP_2 */
  1246. #define WM8995_DCS_TRIG_STARTUP_2_MASK 0x0040 /* DCS_TRIG_STARTUP_2 */
  1247. #define WM8995_DCS_TRIG_STARTUP_2_SHIFT 6 /* DCS_TRIG_STARTUP_2 */
  1248. #define WM8995_DCS_TRIG_STARTUP_2_WIDTH 1 /* DCS_TRIG_STARTUP_2 */
  1249. #define WM8995_DCS_TRIG_STARTUP_1 0x0020 /* DCS_TRIG_STARTUP_1 */
  1250. #define WM8995_DCS_TRIG_STARTUP_1_MASK 0x0020 /* DCS_TRIG_STARTUP_1 */
  1251. #define WM8995_DCS_TRIG_STARTUP_1_SHIFT 5 /* DCS_TRIG_STARTUP_1 */
  1252. #define WM8995_DCS_TRIG_STARTUP_1_WIDTH 1 /* DCS_TRIG_STARTUP_1 */
  1253. #define WM8995_DCS_TRIG_STARTUP_0 0x0010 /* DCS_TRIG_STARTUP_0 */
  1254. #define WM8995_DCS_TRIG_STARTUP_0_MASK 0x0010 /* DCS_TRIG_STARTUP_0 */
  1255. #define WM8995_DCS_TRIG_STARTUP_0_SHIFT 4 /* DCS_TRIG_STARTUP_0 */
  1256. #define WM8995_DCS_TRIG_STARTUP_0_WIDTH 1 /* DCS_TRIG_STARTUP_0 */
  1257. #define WM8995_DCS_TRIG_DAC_WR_3 0x0008 /* DCS_TRIG_DAC_WR_3 */
  1258. #define WM8995_DCS_TRIG_DAC_WR_3_MASK 0x0008 /* DCS_TRIG_DAC_WR_3 */
  1259. #define WM8995_DCS_TRIG_DAC_WR_3_SHIFT 3 /* DCS_TRIG_DAC_WR_3 */
  1260. #define WM8995_DCS_TRIG_DAC_WR_3_WIDTH 1 /* DCS_TRIG_DAC_WR_3 */
  1261. #define WM8995_DCS_TRIG_DAC_WR_2 0x0004 /* DCS_TRIG_DAC_WR_2 */
  1262. #define WM8995_DCS_TRIG_DAC_WR_2_MASK 0x0004 /* DCS_TRIG_DAC_WR_2 */
  1263. #define WM8995_DCS_TRIG_DAC_WR_2_SHIFT 2 /* DCS_TRIG_DAC_WR_2 */
  1264. #define WM8995_DCS_TRIG_DAC_WR_2_WIDTH 1 /* DCS_TRIG_DAC_WR_2 */
  1265. #define WM8995_DCS_TRIG_DAC_WR_1 0x0002 /* DCS_TRIG_DAC_WR_1 */
  1266. #define WM8995_DCS_TRIG_DAC_WR_1_MASK 0x0002 /* DCS_TRIG_DAC_WR_1 */
  1267. #define WM8995_DCS_TRIG_DAC_WR_1_SHIFT 1 /* DCS_TRIG_DAC_WR_1 */
  1268. #define WM8995_DCS_TRIG_DAC_WR_1_WIDTH 1 /* DCS_TRIG_DAC_WR_1 */
  1269. #define WM8995_DCS_TRIG_DAC_WR_0 0x0001 /* DCS_TRIG_DAC_WR_0 */
  1270. #define WM8995_DCS_TRIG_DAC_WR_0_MASK 0x0001 /* DCS_TRIG_DAC_WR_0 */
  1271. #define WM8995_DCS_TRIG_DAC_WR_0_SHIFT 0 /* DCS_TRIG_DAC_WR_0 */
  1272. #define WM8995_DCS_TRIG_DAC_WR_0_WIDTH 1 /* DCS_TRIG_DAC_WR_0 */
  1273. /*
  1274. * R82 (0x52) - DC Servo (3)
  1275. */
  1276. #define WM8995_DCS_TIMER_PERIOD_23_MASK 0x0F00 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1277. #define WM8995_DCS_TIMER_PERIOD_23_SHIFT 8 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1278. #define WM8995_DCS_TIMER_PERIOD_23_WIDTH 4 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1279. #define WM8995_DCS_TIMER_PERIOD_01_MASK 0x000F /* DCS_TIMER_PERIOD_01 - [3:0] */
  1280. #define WM8995_DCS_TIMER_PERIOD_01_SHIFT 0 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1281. #define WM8995_DCS_TIMER_PERIOD_01_WIDTH 4 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1282. /*
  1283. * R84 (0x54) - DC Servo (5)
  1284. */
  1285. #define WM8995_DCS_SERIES_NO_23_MASK 0x7F00 /* DCS_SERIES_NO_23 - [14:8] */
  1286. #define WM8995_DCS_SERIES_NO_23_SHIFT 8 /* DCS_SERIES_NO_23 - [14:8] */
  1287. #define WM8995_DCS_SERIES_NO_23_WIDTH 7 /* DCS_SERIES_NO_23 - [14:8] */
  1288. #define WM8995_DCS_SERIES_NO_01_MASK 0x007F /* DCS_SERIES_NO_01 - [6:0] */
  1289. #define WM8995_DCS_SERIES_NO_01_SHIFT 0 /* DCS_SERIES_NO_01 - [6:0] */
  1290. #define WM8995_DCS_SERIES_NO_01_WIDTH 7 /* DCS_SERIES_NO_01 - [6:0] */
  1291. /*
  1292. * R85 (0x55) - DC Servo (6)
  1293. */
  1294. #define WM8995_DCS_DAC_WR_VAL_3_MASK 0xFF00 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1295. #define WM8995_DCS_DAC_WR_VAL_3_SHIFT 8 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1296. #define WM8995_DCS_DAC_WR_VAL_3_WIDTH 8 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1297. #define WM8995_DCS_DAC_WR_VAL_2_MASK 0x00FF /* DCS_DAC_WR_VAL_2 - [7:0] */
  1298. #define WM8995_DCS_DAC_WR_VAL_2_SHIFT 0 /* DCS_DAC_WR_VAL_2 - [7:0] */
  1299. #define WM8995_DCS_DAC_WR_VAL_2_WIDTH 8 /* DCS_DAC_WR_VAL_2 - [7:0] */
  1300. /*
  1301. * R86 (0x56) - DC Servo (7)
  1302. */
  1303. #define WM8995_DCS_DAC_WR_VAL_1_MASK 0xFF00 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1304. #define WM8995_DCS_DAC_WR_VAL_1_SHIFT 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1305. #define WM8995_DCS_DAC_WR_VAL_1_WIDTH 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1306. #define WM8995_DCS_DAC_WR_VAL_0_MASK 0x00FF /* DCS_DAC_WR_VAL_0 - [7:0] */
  1307. #define WM8995_DCS_DAC_WR_VAL_0_SHIFT 0 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1308. #define WM8995_DCS_DAC_WR_VAL_0_WIDTH 8 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1309. /*
  1310. * R87 (0x57) - DC Servo Readback 0
  1311. */
  1312. #define WM8995_DCS_CAL_COMPLETE_MASK 0x0F00 /* DCS_CAL_COMPLETE - [11:8] */
  1313. #define WM8995_DCS_CAL_COMPLETE_SHIFT 8 /* DCS_CAL_COMPLETE - [11:8] */
  1314. #define WM8995_DCS_CAL_COMPLETE_WIDTH 4 /* DCS_CAL_COMPLETE - [11:8] */
  1315. #define WM8995_DCS_DAC_WR_COMPLETE_MASK 0x00F0 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1316. #define WM8995_DCS_DAC_WR_COMPLETE_SHIFT 4 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1317. #define WM8995_DCS_DAC_WR_COMPLETE_WIDTH 4 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1318. #define WM8995_DCS_STARTUP_COMPLETE_MASK 0x000F /* DCS_STARTUP_COMPLETE - [3:0] */
  1319. #define WM8995_DCS_STARTUP_COMPLETE_SHIFT 0 /* DCS_STARTUP_COMPLETE - [3:0] */
  1320. #define WM8995_DCS_STARTUP_COMPLETE_WIDTH 4 /* DCS_STARTUP_COMPLETE - [3:0] */
  1321. /*
  1322. * R96 (0x60) - Analogue HP (1)
  1323. */
  1324. #define WM8995_HPOUT1L_RMV_SHORT 0x0080 /* HPOUT1L_RMV_SHORT */
  1325. #define WM8995_HPOUT1L_RMV_SHORT_MASK 0x0080 /* HPOUT1L_RMV_SHORT */
  1326. #define WM8995_HPOUT1L_RMV_SHORT_SHIFT 7 /* HPOUT1L_RMV_SHORT */
  1327. #define WM8995_HPOUT1L_RMV_SHORT_WIDTH 1 /* HPOUT1L_RMV_SHORT */
  1328. #define WM8995_HPOUT1L_OUTP 0x0040 /* HPOUT1L_OUTP */
  1329. #define WM8995_HPOUT1L_OUTP_MASK 0x0040 /* HPOUT1L_OUTP */
  1330. #define WM8995_HPOUT1L_OUTP_SHIFT 6 /* HPOUT1L_OUTP */
  1331. #define WM8995_HPOUT1L_OUTP_WIDTH 1 /* HPOUT1L_OUTP */
  1332. #define WM8995_HPOUT1L_DLY 0x0020 /* HPOUT1L_DLY */
  1333. #define WM8995_HPOUT1L_DLY_MASK 0x0020 /* HPOUT1L_DLY */
  1334. #define WM8995_HPOUT1L_DLY_SHIFT 5 /* HPOUT1L_DLY */
  1335. #define WM8995_HPOUT1L_DLY_WIDTH 1 /* HPOUT1L_DLY */
  1336. #define WM8995_HPOUT1R_RMV_SHORT 0x0008 /* HPOUT1R_RMV_SHORT */
  1337. #define WM8995_HPOUT1R_RMV_SHORT_MASK 0x0008 /* HPOUT1R_RMV_SHORT */
  1338. #define WM8995_HPOUT1R_RMV_SHORT_SHIFT 3 /* HPOUT1R_RMV_SHORT */
  1339. #define WM8995_HPOUT1R_RMV_SHORT_WIDTH 1 /* HPOUT1R_RMV_SHORT */
  1340. #define WM8995_HPOUT1R_OUTP 0x0004 /* HPOUT1R_OUTP */
  1341. #define WM8995_HPOUT1R_OUTP_MASK 0x0004 /* HPOUT1R_OUTP */
  1342. #define WM8995_HPOUT1R_OUTP_SHIFT 2 /* HPOUT1R_OUTP */
  1343. #define WM8995_HPOUT1R_OUTP_WIDTH 1 /* HPOUT1R_OUTP */
  1344. #define WM8995_HPOUT1R_DLY 0x0002 /* HPOUT1R_DLY */
  1345. #define WM8995_HPOUT1R_DLY_MASK 0x0002 /* HPOUT1R_DLY */
  1346. #define WM8995_HPOUT1R_DLY_SHIFT 1 /* HPOUT1R_DLY */
  1347. #define WM8995_HPOUT1R_DLY_WIDTH 1 /* HPOUT1R_DLY */
  1348. /*
  1349. * R97 (0x61) - Analogue HP (2)
  1350. */
  1351. #define WM8995_HPOUT2L_RMV_SHORT 0x0080 /* HPOUT2L_RMV_SHORT */
  1352. #define WM8995_HPOUT2L_RMV_SHORT_MASK 0x0080 /* HPOUT2L_RMV_SHORT */
  1353. #define WM8995_HPOUT2L_RMV_SHORT_SHIFT 7 /* HPOUT2L_RMV_SHORT */
  1354. #define WM8995_HPOUT2L_RMV_SHORT_WIDTH 1 /* HPOUT2L_RMV_SHORT */
  1355. #define WM8995_HPOUT2L_OUTP 0x0040 /* HPOUT2L_OUTP */
  1356. #define WM8995_HPOUT2L_OUTP_MASK 0x0040 /* HPOUT2L_OUTP */
  1357. #define WM8995_HPOUT2L_OUTP_SHIFT 6 /* HPOUT2L_OUTP */
  1358. #define WM8995_HPOUT2L_OUTP_WIDTH 1 /* HPOUT2L_OUTP */
  1359. #define WM8995_HPOUT2L_DLY 0x0020 /* HPOUT2L_DLY */
  1360. #define WM8995_HPOUT2L_DLY_MASK 0x0020 /* HPOUT2L_DLY */
  1361. #define WM8995_HPOUT2L_DLY_SHIFT 5 /* HPOUT2L_DLY */
  1362. #define WM8995_HPOUT2L_DLY_WIDTH 1 /* HPOUT2L_DLY */
  1363. #define WM8995_HPOUT2R_RMV_SHORT 0x0008 /* HPOUT2R_RMV_SHORT */
  1364. #define WM8995_HPOUT2R_RMV_SHORT_MASK 0x0008 /* HPOUT2R_RMV_SHORT */
  1365. #define WM8995_HPOUT2R_RMV_SHORT_SHIFT 3 /* HPOUT2R_RMV_SHORT */
  1366. #define WM8995_HPOUT2R_RMV_SHORT_WIDTH 1 /* HPOUT2R_RMV_SHORT */
  1367. #define WM8995_HPOUT2R_OUTP 0x0004 /* HPOUT2R_OUTP */
  1368. #define WM8995_HPOUT2R_OUTP_MASK 0x0004 /* HPOUT2R_OUTP */
  1369. #define WM8995_HPOUT2R_OUTP_SHIFT 2 /* HPOUT2R_OUTP */
  1370. #define WM8995_HPOUT2R_OUTP_WIDTH 1 /* HPOUT2R_OUTP */
  1371. #define WM8995_HPOUT2R_DLY 0x0002 /* HPOUT2R_DLY */
  1372. #define WM8995_HPOUT2R_DLY_MASK 0x0002 /* HPOUT2R_DLY */
  1373. #define WM8995_HPOUT2R_DLY_SHIFT 1 /* HPOUT2R_DLY */
  1374. #define WM8995_HPOUT2R_DLY_WIDTH 1 /* HPOUT2R_DLY */
  1375. /*
  1376. * R256 (0x100) - Chip Revision
  1377. */
  1378. #define WM8995_CHIP_REV_MASK 0x000F /* CHIP_REV - [3:0] */
  1379. #define WM8995_CHIP_REV_SHIFT 0 /* CHIP_REV - [3:0] */
  1380. #define WM8995_CHIP_REV_WIDTH 4 /* CHIP_REV - [3:0] */
  1381. /*
  1382. * R257 (0x101) - Control Interface (1)
  1383. */
  1384. #define WM8995_REG_SYNC 0x8000 /* REG_SYNC */
  1385. #define WM8995_REG_SYNC_MASK 0x8000 /* REG_SYNC */
  1386. #define WM8995_REG_SYNC_SHIFT 15 /* REG_SYNC */
  1387. #define WM8995_REG_SYNC_WIDTH 1 /* REG_SYNC */
  1388. #define WM8995_SPI_CONTRD 0x0040 /* SPI_CONTRD */
  1389. #define WM8995_SPI_CONTRD_MASK 0x0040 /* SPI_CONTRD */
  1390. #define WM8995_SPI_CONTRD_SHIFT 6 /* SPI_CONTRD */
  1391. #define WM8995_SPI_CONTRD_WIDTH 1 /* SPI_CONTRD */
  1392. #define WM8995_SPI_4WIRE 0x0020 /* SPI_4WIRE */
  1393. #define WM8995_SPI_4WIRE_MASK 0x0020 /* SPI_4WIRE */
  1394. #define WM8995_SPI_4WIRE_SHIFT 5 /* SPI_4WIRE */
  1395. #define WM8995_SPI_4WIRE_WIDTH 1 /* SPI_4WIRE */
  1396. #define WM8995_SPI_CFG 0x0010 /* SPI_CFG */
  1397. #define WM8995_SPI_CFG_MASK 0x0010 /* SPI_CFG */
  1398. #define WM8995_SPI_CFG_SHIFT 4 /* SPI_CFG */
  1399. #define WM8995_SPI_CFG_WIDTH 1 /* SPI_CFG */
  1400. #define WM8995_AUTO_INC 0x0004 /* AUTO_INC */
  1401. #define WM8995_AUTO_INC_MASK 0x0004 /* AUTO_INC */
  1402. #define WM8995_AUTO_INC_SHIFT 2 /* AUTO_INC */
  1403. #define WM8995_AUTO_INC_WIDTH 1 /* AUTO_INC */
  1404. /*
  1405. * R258 (0x102) - Control Interface (2)
  1406. */
  1407. #define WM8995_CTRL_IF_SRC 0x0001 /* CTRL_IF_SRC */
  1408. #define WM8995_CTRL_IF_SRC_MASK 0x0001 /* CTRL_IF_SRC */
  1409. #define WM8995_CTRL_IF_SRC_SHIFT 0 /* CTRL_IF_SRC */
  1410. #define WM8995_CTRL_IF_SRC_WIDTH 1 /* CTRL_IF_SRC */
  1411. /*
  1412. * R272 (0x110) - Write Sequencer Ctrl (1)
  1413. */
  1414. #define WM8995_WSEQ_ENA 0x8000 /* WSEQ_ENA */
  1415. #define WM8995_WSEQ_ENA_MASK 0x8000 /* WSEQ_ENA */
  1416. #define WM8995_WSEQ_ENA_SHIFT 15 /* WSEQ_ENA */
  1417. #define WM8995_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */
  1418. #define WM8995_WSEQ_ABORT 0x0200 /* WSEQ_ABORT */
  1419. #define WM8995_WSEQ_ABORT_MASK 0x0200 /* WSEQ_ABORT */
  1420. #define WM8995_WSEQ_ABORT_SHIFT 9 /* WSEQ_ABORT */
  1421. #define WM8995_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */
  1422. #define WM8995_WSEQ_START 0x0100 /* WSEQ_START */
  1423. #define WM8995_WSEQ_START_MASK 0x0100 /* WSEQ_START */
  1424. #define WM8995_WSEQ_START_SHIFT 8 /* WSEQ_START */
  1425. #define WM8995_WSEQ_START_WIDTH 1 /* WSEQ_START */
  1426. #define WM8995_WSEQ_START_INDEX_MASK 0x007F /* WSEQ_START_INDEX - [6:0] */
  1427. #define WM8995_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [6:0] */
  1428. #define WM8995_WSEQ_START_INDEX_WIDTH 7 /* WSEQ_START_INDEX - [6:0] */
  1429. /*
  1430. * R273 (0x111) - Write Sequencer Ctrl (2)
  1431. */
  1432. #define WM8995_WSEQ_BUSY 0x0100 /* WSEQ_BUSY */
  1433. #define WM8995_WSEQ_BUSY_MASK 0x0100 /* WSEQ_BUSY */
  1434. #define WM8995_WSEQ_BUSY_SHIFT 8 /* WSEQ_BUSY */
  1435. #define WM8995_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */
  1436. #define WM8995_WSEQ_CURRENT_INDEX_MASK 0x007F /* WSEQ_CURRENT_INDEX - [6:0] */
  1437. #define WM8995_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [6:0] */
  1438. #define WM8995_WSEQ_CURRENT_INDEX_WIDTH 7 /* WSEQ_CURRENT_INDEX - [6:0] */
  1439. /*
  1440. * R512 (0x200) - AIF1 Clocking (1)
  1441. */
  1442. #define WM8995_AIF1CLK_SRC_MASK 0x0018 /* AIF1CLK_SRC - [4:3] */
  1443. #define WM8995_AIF1CLK_SRC_SHIFT 3 /* AIF1CLK_SRC - [4:3] */
  1444. #define WM8995_AIF1CLK_SRC_WIDTH 2 /* AIF1CLK_SRC - [4:3] */
  1445. #define WM8995_AIF1CLK_INV 0x0004 /* AIF1CLK_INV */
  1446. #define WM8995_AIF1CLK_INV_MASK 0x0004 /* AIF1CLK_INV */
  1447. #define WM8995_AIF1CLK_INV_SHIFT 2 /* AIF1CLK_INV */
  1448. #define WM8995_AIF1CLK_INV_WIDTH 1 /* AIF1CLK_INV */
  1449. #define WM8995_AIF1CLK_DIV 0x0002 /* AIF1CLK_DIV */
  1450. #define WM8995_AIF1CLK_DIV_MASK 0x0002 /* AIF1CLK_DIV */
  1451. #define WM8995_AIF1CLK_DIV_SHIFT 1 /* AIF1CLK_DIV */
  1452. #define WM8995_AIF1CLK_DIV_WIDTH 1 /* AIF1CLK_DIV */
  1453. #define WM8995_AIF1CLK_ENA 0x0001 /* AIF1CLK_ENA */
  1454. #define WM8995_AIF1CLK_ENA_MASK 0x0001 /* AIF1CLK_ENA */
  1455. #define WM8995_AIF1CLK_ENA_SHIFT 0 /* AIF1CLK_ENA */
  1456. #define WM8995_AIF1CLK_ENA_WIDTH 1 /* AIF1CLK_ENA */
  1457. /*
  1458. * R513 (0x201) - AIF1 Clocking (2)
  1459. */
  1460. #define WM8995_AIF1DAC_DIV_MASK 0x0038 /* AIF1DAC_DIV - [5:3] */
  1461. #define WM8995_AIF1DAC_DIV_SHIFT 3 /* AIF1DAC_DIV - [5:3] */
  1462. #define WM8995_AIF1DAC_DIV_WIDTH 3 /* AIF1DAC_DIV - [5:3] */
  1463. #define WM8995_AIF1ADC_DIV_MASK 0x0007 /* AIF1ADC_DIV - [2:0] */
  1464. #define WM8995_AIF1ADC_DIV_SHIFT 0 /* AIF1ADC_DIV - [2:0] */
  1465. #define WM8995_AIF1ADC_DIV_WIDTH 3 /* AIF1ADC_DIV - [2:0] */
  1466. /*
  1467. * R516 (0x204) - AIF2 Clocking (1)
  1468. */
  1469. #define WM8995_AIF2CLK_SRC_MASK 0x0018 /* AIF2CLK_SRC - [4:3] */
  1470. #define WM8995_AIF2CLK_SRC_SHIFT 3 /* AIF2CLK_SRC - [4:3] */
  1471. #define WM8995_AIF2CLK_SRC_WIDTH 2 /* AIF2CLK_SRC - [4:3] */
  1472. #define WM8995_AIF2CLK_INV 0x0004 /* AIF2CLK_INV */
  1473. #define WM8995_AIF2CLK_INV_MASK 0x0004 /* AIF2CLK_INV */
  1474. #define WM8995_AIF2CLK_INV_SHIFT 2 /* AIF2CLK_INV */
  1475. #define WM8995_AIF2CLK_INV_WIDTH 1 /* AIF2CLK_INV */
  1476. #define WM8995_AIF2CLK_DIV 0x0002 /* AIF2CLK_DIV */
  1477. #define WM8995_AIF2CLK_DIV_MASK 0x0002 /* AIF2CLK_DIV */
  1478. #define WM8995_AIF2CLK_DIV_SHIFT 1 /* AIF2CLK_DIV */
  1479. #define WM8995_AIF2CLK_DIV_WIDTH 1 /* AIF2CLK_DIV */
  1480. #define WM8995_AIF2CLK_ENA 0x0001 /* AIF2CLK_ENA */
  1481. #define WM8995_AIF2CLK_ENA_MASK 0x0001 /* AIF2CLK_ENA */
  1482. #define WM8995_AIF2CLK_ENA_SHIFT 0 /* AIF2CLK_ENA */
  1483. #define WM8995_AIF2CLK_ENA_WIDTH 1 /* AIF2CLK_ENA */
  1484. /*
  1485. * R517 (0x205) - AIF2 Clocking (2)
  1486. */
  1487. #define WM8995_AIF2DAC_DIV_MASK 0x0038 /* AIF2DAC_DIV - [5:3] */
  1488. #define WM8995_AIF2DAC_DIV_SHIFT 3 /* AIF2DAC_DIV - [5:3] */
  1489. #define WM8995_AIF2DAC_DIV_WIDTH 3 /* AIF2DAC_DIV - [5:3] */
  1490. #define WM8995_AIF2ADC_DIV_MASK 0x0007 /* AIF2ADC_DIV - [2:0] */
  1491. #define WM8995_AIF2ADC_DIV_SHIFT 0 /* AIF2ADC_DIV - [2:0] */
  1492. #define WM8995_AIF2ADC_DIV_WIDTH 3 /* AIF2ADC_DIV - [2:0] */
  1493. /*
  1494. * R520 (0x208) - Clocking (1)
  1495. */
  1496. #define WM8995_LFCLK_ENA 0x0020 /* LFCLK_ENA */
  1497. #define WM8995_LFCLK_ENA_MASK 0x0020 /* LFCLK_ENA */
  1498. #define WM8995_LFCLK_ENA_SHIFT 5 /* LFCLK_ENA */
  1499. #define WM8995_LFCLK_ENA_WIDTH 1 /* LFCLK_ENA */
  1500. #define WM8995_TOCLK_ENA 0x0010 /* TOCLK_ENA */
  1501. #define WM8995_TOCLK_ENA_MASK 0x0010 /* TOCLK_ENA */
  1502. #define WM8995_TOCLK_ENA_SHIFT 4 /* TOCLK_ENA */
  1503. #define WM8995_TOCLK_ENA_WIDTH 1 /* TOCLK_ENA */
  1504. #define WM8995_AIF1DSPCLK_ENA 0x0008 /* AIF1DSPCLK_ENA */
  1505. #define WM8995_AIF1DSPCLK_ENA_MASK 0x0008 /* AIF1DSPCLK_ENA */
  1506. #define WM8995_AIF1DSPCLK_ENA_SHIFT 3 /* AIF1DSPCLK_ENA */
  1507. #define WM8995_AIF1DSPCLK_ENA_WIDTH 1 /* AIF1DSPCLK_ENA */
  1508. #define WM8995_AIF2DSPCLK_ENA 0x0004 /* AIF2DSPCLK_ENA */
  1509. #define WM8995_AIF2DSPCLK_ENA_MASK 0x0004 /* AIF2DSPCLK_ENA */
  1510. #define WM8995_AIF2DSPCLK_ENA_SHIFT 2 /* AIF2DSPCLK_ENA */
  1511. #define WM8995_AIF2DSPCLK_ENA_WIDTH 1 /* AIF2DSPCLK_ENA */
  1512. #define WM8995_SYSDSPCLK_ENA 0x0002 /* SYSDSPCLK_ENA */
  1513. #define WM8995_SYSDSPCLK_ENA_MASK 0x0002 /* SYSDSPCLK_ENA */
  1514. #define WM8995_SYSDSPCLK_ENA_SHIFT 1 /* SYSDSPCLK_ENA */
  1515. #define WM8995_SYSDSPCLK_ENA_WIDTH 1 /* SYSDSPCLK_ENA */
  1516. #define WM8995_SYSCLK_SRC 0x0001 /* SYSCLK_SRC */
  1517. #define WM8995_SYSCLK_SRC_MASK 0x0001 /* SYSCLK_SRC */
  1518. #define WM8995_SYSCLK_SRC_SHIFT 0 /* SYSCLK_SRC */
  1519. #define WM8995_SYSCLK_SRC_WIDTH 1 /* SYSCLK_SRC */
  1520. /*
  1521. * R521 (0x209) - Clocking (2)
  1522. */
  1523. #define WM8995_TOCLK_DIV_MASK 0x0700 /* TOCLK_DIV - [10:8] */
  1524. #define WM8995_TOCLK_DIV_SHIFT 8 /* TOCLK_DIV - [10:8] */
  1525. #define WM8995_TOCLK_DIV_WIDTH 3 /* TOCLK_DIV - [10:8] */
  1526. #define WM8995_DBCLK_DIV_MASK 0x00F0 /* DBCLK_DIV - [7:4] */
  1527. #define WM8995_DBCLK_DIV_SHIFT 4 /* DBCLK_DIV - [7:4] */
  1528. #define WM8995_DBCLK_DIV_WIDTH 4 /* DBCLK_DIV - [7:4] */
  1529. #define WM8995_OPCLK_DIV_MASK 0x0007 /* OPCLK_DIV - [2:0] */
  1530. #define WM8995_OPCLK_DIV_SHIFT 0 /* OPCLK_DIV - [2:0] */
  1531. #define WM8995_OPCLK_DIV_WIDTH 3 /* OPCLK_DIV - [2:0] */
  1532. /*
  1533. * R528 (0x210) - AIF1 Rate
  1534. */
  1535. #define WM8995_AIF1_SR_MASK 0x00F0 /* AIF1_SR - [7:4] */
  1536. #define WM8995_AIF1_SR_SHIFT 4 /* AIF1_SR - [7:4] */
  1537. #define WM8995_AIF1_SR_WIDTH 4 /* AIF1_SR - [7:4] */
  1538. #define WM8995_AIF1CLK_RATE_MASK 0x000F /* AIF1CLK_RATE - [3:0] */
  1539. #define WM8995_AIF1CLK_RATE_SHIFT 0 /* AIF1CLK_RATE - [3:0] */
  1540. #define WM8995_AIF1CLK_RATE_WIDTH 4 /* AIF1CLK_RATE - [3:0] */
  1541. /*
  1542. * R529 (0x211) - AIF2 Rate
  1543. */
  1544. #define WM8995_AIF2_SR_MASK 0x00F0 /* AIF2_SR - [7:4] */
  1545. #define WM8995_AIF2_SR_SHIFT 4 /* AIF2_SR - [7:4] */
  1546. #define WM8995_AIF2_SR_WIDTH 4 /* AIF2_SR - [7:4] */
  1547. #define WM8995_AIF2CLK_RATE_MASK 0x000F /* AIF2CLK_RATE - [3:0] */
  1548. #define WM8995_AIF2CLK_RATE_SHIFT 0 /* AIF2CLK_RATE - [3:0] */
  1549. #define WM8995_AIF2CLK_RATE_WIDTH 4 /* AIF2CLK_RATE - [3:0] */
  1550. /*
  1551. * R530 (0x212) - Rate Status
  1552. */
  1553. #define WM8995_SR_ERROR_MASK 0x000F /* SR_ERROR - [3:0] */
  1554. #define WM8995_SR_ERROR_SHIFT 0 /* SR_ERROR - [3:0] */
  1555. #define WM8995_SR_ERROR_WIDTH 4 /* SR_ERROR - [3:0] */
  1556. /*
  1557. * R544 (0x220) - FLL1 Control (1)
  1558. */
  1559. #define WM8995_FLL1_OSC_ENA 0x0002 /* FLL1_OSC_ENA */
  1560. #define WM8995_FLL1_OSC_ENA_MASK 0x0002 /* FLL1_OSC_ENA */
  1561. #define WM8995_FLL1_OSC_ENA_SHIFT 1 /* FLL1_OSC_ENA */
  1562. #define WM8995_FLL1_OSC_ENA_WIDTH 1 /* FLL1_OSC_ENA */
  1563. #define WM8995_FLL1_ENA 0x0001 /* FLL1_ENA */
  1564. #define WM8995_FLL1_ENA_MASK 0x0001 /* FLL1_ENA */
  1565. #define WM8995_FLL1_ENA_SHIFT 0 /* FLL1_ENA */
  1566. #define WM8995_FLL1_ENA_WIDTH 1 /* FLL1_ENA */
  1567. /*
  1568. * R545 (0x221) - FLL1 Control (2)
  1569. */
  1570. #define WM8995_FLL1_OUTDIV_MASK 0x3F00 /* FLL1_OUTDIV - [13:8] */
  1571. #define WM8995_FLL1_OUTDIV_SHIFT 8 /* FLL1_OUTDIV - [13:8] */
  1572. #define WM8995_FLL1_OUTDIV_WIDTH 6 /* FLL1_OUTDIV - [13:8] */
  1573. #define WM8995_FLL1_CTRL_RATE_MASK 0x0070 /* FLL1_CTRL_RATE - [6:4] */
  1574. #define WM8995_FLL1_CTRL_RATE_SHIFT 4 /* FLL1_CTRL_RATE - [6:4] */
  1575. #define WM8995_FLL1_CTRL_RATE_WIDTH 3 /* FLL1_CTRL_RATE - [6:4] */
  1576. #define WM8995_FLL1_FRATIO_MASK 0x0007 /* FLL1_FRATIO - [2:0] */
  1577. #define WM8995_FLL1_FRATIO_SHIFT 0 /* FLL1_FRATIO - [2:0] */
  1578. #define WM8995_FLL1_FRATIO_WIDTH 3 /* FLL1_FRATIO - [2:0] */
  1579. /*
  1580. * R546 (0x222) - FLL1 Control (3)
  1581. */
  1582. #define WM8995_FLL1_K_MASK 0xFFFF /* FLL1_K - [15:0] */
  1583. #define WM8995_FLL1_K_SHIFT 0 /* FLL1_K - [15:0] */
  1584. #define WM8995_FLL1_K_WIDTH 16 /* FLL1_K - [15:0] */
  1585. /*
  1586. * R547 (0x223) - FLL1 Control (4)
  1587. */
  1588. #define WM8995_FLL1_N_MASK 0x7FE0 /* FLL1_N - [14:5] */
  1589. #define WM8995_FLL1_N_SHIFT 5 /* FLL1_N - [14:5] */
  1590. #define WM8995_FLL1_N_WIDTH 10 /* FLL1_N - [14:5] */
  1591. #define WM8995_FLL1_LOOP_GAIN_MASK 0x000F /* FLL1_LOOP_GAIN - [3:0] */
  1592. #define WM8995_FLL1_LOOP_GAIN_SHIFT 0 /* FLL1_LOOP_GAIN - [3:0] */
  1593. #define WM8995_FLL1_LOOP_GAIN_WIDTH 4 /* FLL1_LOOP_GAIN - [3:0] */
  1594. /*
  1595. * R548 (0x224) - FLL1 Control (5)
  1596. */
  1597. #define WM8995_FLL1_FRC_NCO_VAL_MASK 0x1F80 /* FLL1_FRC_NCO_VAL - [12:7] */
  1598. #define WM8995_FLL1_FRC_NCO_VAL_SHIFT 7 /* FLL1_FRC_NCO_VAL - [12:7] */
  1599. #define WM8995_FLL1_FRC_NCO_VAL_WIDTH 6 /* FLL1_FRC_NCO_VAL - [12:7] */
  1600. #define WM8995_FLL1_FRC_NCO 0x0040 /* FLL1_FRC_NCO */
  1601. #define WM8995_FLL1_FRC_NCO_MASK 0x0040 /* FLL1_FRC_NCO */
  1602. #define WM8995_FLL1_FRC_NCO_SHIFT 6 /* FLL1_FRC_NCO */
  1603. #define WM8995_FLL1_FRC_NCO_WIDTH 1 /* FLL1_FRC_NCO */
  1604. #define WM8995_FLL1_REFCLK_DIV_MASK 0x0018 /* FLL1_REFCLK_DIV - [4:3] */
  1605. #define WM8995_FLL1_REFCLK_DIV_SHIFT 3 /* FLL1_REFCLK_DIV - [4:3] */
  1606. #define WM8995_FLL1_REFCLK_DIV_WIDTH 2 /* FLL1_REFCLK_DIV - [4:3] */
  1607. #define WM8995_FLL1_REFCLK_SRC_MASK 0x0003 /* FLL1_REFCLK_SRC - [1:0] */
  1608. #define WM8995_FLL1_REFCLK_SRC_SHIFT 0 /* FLL1_REFCLK_SRC - [1:0] */
  1609. #define WM8995_FLL1_REFCLK_SRC_WIDTH 2 /* FLL1_REFCLK_SRC - [1:0] */
  1610. /*
  1611. * R576 (0x240) - FLL2 Control (1)
  1612. */
  1613. #define WM8995_FLL2_OSC_ENA 0x0002 /* FLL2_OSC_ENA */
  1614. #define WM8995_FLL2_OSC_ENA_MASK 0x0002 /* FLL2_OSC_ENA */
  1615. #define WM8995_FLL2_OSC_ENA_SHIFT 1 /* FLL2_OSC_ENA */
  1616. #define WM8995_FLL2_OSC_ENA_WIDTH 1 /* FLL2_OSC_ENA */
  1617. #define WM8995_FLL2_ENA 0x0001 /* FLL2_ENA */
  1618. #define WM8995_FLL2_ENA_MASK 0x0001 /* FLL2_ENA */
  1619. #define WM8995_FLL2_ENA_SHIFT 0 /* FLL2_ENA */
  1620. #define WM8995_FLL2_ENA_WIDTH 1 /* FLL2_ENA */
  1621. /*
  1622. * R577 (0x241) - FLL2 Control (2)
  1623. */
  1624. #define WM8995_FLL2_OUTDIV_MASK 0x3F00 /* FLL2_OUTDIV - [13:8] */
  1625. #define WM8995_FLL2_OUTDIV_SHIFT 8 /* FLL2_OUTDIV - [13:8] */
  1626. #define WM8995_FLL2_OUTDIV_WIDTH 6 /* FLL2_OUTDIV - [13:8] */
  1627. #define WM8995_FLL2_CTRL_RATE_MASK 0x0070 /* FLL2_CTRL_RATE - [6:4] */
  1628. #define WM8995_FLL2_CTRL_RATE_SHIFT 4 /* FLL2_CTRL_RATE - [6:4] */
  1629. #define WM8995_FLL2_CTRL_RATE_WIDTH 3 /* FLL2_CTRL_RATE - [6:4] */
  1630. #define WM8995_FLL2_FRATIO_MASK 0x0007 /* FLL2_FRATIO - [2:0] */
  1631. #define WM8995_FLL2_FRATIO_SHIFT 0 /* FLL2_FRATIO - [2:0] */
  1632. #define WM8995_FLL2_FRATIO_WIDTH 3 /* FLL2_FRATIO - [2:0] */
  1633. /*
  1634. * R578 (0x242) - FLL2 Control (3)
  1635. */
  1636. #define WM8995_FLL2_K_MASK 0xFFFF /* FLL2_K - [15:0] */
  1637. #define WM8995_FLL2_K_SHIFT 0 /* FLL2_K - [15:0] */
  1638. #define WM8995_FLL2_K_WIDTH 16 /* FLL2_K - [15:0] */
  1639. /*
  1640. * R579 (0x243) - FLL2 Control (4)
  1641. */
  1642. #define WM8995_FLL2_N_MASK 0x7FE0 /* FLL2_N - [14:5] */
  1643. #define WM8995_FLL2_N_SHIFT 5 /* FLL2_N - [14:5] */
  1644. #define WM8995_FLL2_N_WIDTH 10 /* FLL2_N - [14:5] */
  1645. #define WM8995_FLL2_LOOP_GAIN_MASK 0x000F /* FLL2_LOOP_GAIN - [3:0] */
  1646. #define WM8995_FLL2_LOOP_GAIN_SHIFT 0 /* FLL2_LOOP_GAIN - [3:0] */
  1647. #define WM8995_FLL2_LOOP_GAIN_WIDTH 4 /* FLL2_LOOP_GAIN - [3:0] */
  1648. /*
  1649. * R580 (0x244) - FLL2 Control (5)
  1650. */
  1651. #define WM8995_FLL2_FRC_NCO_VAL_MASK 0x1F80 /* FLL2_FRC_NCO_VAL - [12:7] */
  1652. #define WM8995_FLL2_FRC_NCO_VAL_SHIFT 7 /* FLL2_FRC_NCO_VAL - [12:7] */
  1653. #define WM8995_FLL2_FRC_NCO_VAL_WIDTH 6 /* FLL2_FRC_NCO_VAL - [12:7] */
  1654. #define WM8995_FLL2_FRC_NCO 0x0040 /* FLL2_FRC_NCO */
  1655. #define WM8995_FLL2_FRC_NCO_MASK 0x0040 /* FLL2_FRC_NCO */
  1656. #define WM8995_FLL2_FRC_NCO_SHIFT 6 /* FLL2_FRC_NCO */
  1657. #define WM8995_FLL2_FRC_NCO_WIDTH 1 /* FLL2_FRC_NCO */
  1658. #define WM8995_FLL2_REFCLK_DIV_MASK 0x0018 /* FLL2_REFCLK_DIV - [4:3] */
  1659. #define WM8995_FLL2_REFCLK_DIV_SHIFT 3 /* FLL2_REFCLK_DIV - [4:3] */
  1660. #define WM8995_FLL2_REFCLK_DIV_WIDTH 2 /* FLL2_REFCLK_DIV - [4:3] */
  1661. #define WM8995_FLL2_REFCLK_SRC_MASK 0x0003 /* FLL2_REFCLK_SRC - [1:0] */
  1662. #define WM8995_FLL2_REFCLK_SRC_SHIFT 0 /* FLL2_REFCLK_SRC - [1:0] */
  1663. #define WM8995_FLL2_REFCLK_SRC_WIDTH 2 /* FLL2_REFCLK_SRC - [1:0] */
  1664. /*
  1665. * R768 (0x300) - AIF1 Control (1)
  1666. */
  1667. #define WM8995_AIF1ADCL_SRC 0x8000 /* AIF1ADCL_SRC */
  1668. #define WM8995_AIF1ADCL_SRC_MASK 0x8000 /* AIF1ADCL_SRC */
  1669. #define WM8995_AIF1ADCL_SRC_SHIFT 15 /* AIF1ADCL_SRC */
  1670. #define WM8995_AIF1ADCL_SRC_WIDTH 1 /* AIF1ADCL_SRC */
  1671. #define WM8995_AIF1ADCR_SRC 0x4000 /* AIF1ADCR_SRC */
  1672. #define WM8995_AIF1ADCR_SRC_MASK 0x4000 /* AIF1ADCR_SRC */
  1673. #define WM8995_AIF1ADCR_SRC_SHIFT 14 /* AIF1ADCR_SRC */
  1674. #define WM8995_AIF1ADCR_SRC_WIDTH 1 /* AIF1ADCR_SRC */
  1675. #define WM8995_AIF1ADC_TDM 0x2000 /* AIF1ADC_TDM */
  1676. #define WM8995_AIF1ADC_TDM_MASK 0x2000 /* AIF1ADC_TDM */
  1677. #define WM8995_AIF1ADC_TDM_SHIFT 13 /* AIF1ADC_TDM */
  1678. #define WM8995_AIF1ADC_TDM_WIDTH 1 /* AIF1ADC_TDM */
  1679. #define WM8995_AIF1_BCLK_INV 0x0100 /* AIF1_BCLK_INV */
  1680. #define WM8995_AIF1_BCLK_INV_MASK 0x0100 /* AIF1_BCLK_INV */
  1681. #define WM8995_AIF1_BCLK_INV_SHIFT 8 /* AIF1_BCLK_INV */
  1682. #define WM8995_AIF1_BCLK_INV_WIDTH 1 /* AIF1_BCLK_INV */
  1683. #define WM8995_AIF1_LRCLK_INV 0x0080 /* AIF1_LRCLK_INV */
  1684. #define WM8995_AIF1_LRCLK_INV_MASK 0x0080 /* AIF1_LRCLK_INV */
  1685. #define WM8995_AIF1_LRCLK_INV_SHIFT 7 /* AIF1_LRCLK_INV */
  1686. #define WM8995_AIF1_LRCLK_INV_WIDTH 1 /* AIF1_LRCLK_INV */
  1687. #define WM8995_AIF1_WL_MASK 0x0060 /* AIF1_WL - [6:5] */
  1688. #define WM8995_AIF1_WL_SHIFT 5 /* AIF1_WL - [6:5] */
  1689. #define WM8995_AIF1_WL_WIDTH 2 /* AIF1_WL - [6:5] */
  1690. #define WM8995_AIF1_FMT_MASK 0x0018 /* AIF1_FMT - [4:3] */
  1691. #define WM8995_AIF1_FMT_SHIFT 3 /* AIF1_FMT - [4:3] */
  1692. #define WM8995_AIF1_FMT_WIDTH 2 /* AIF1_FMT - [4:3] */
  1693. /*
  1694. * R769 (0x301) - AIF1 Control (2)
  1695. */
  1696. #define WM8995_AIF1DACL_SRC 0x8000 /* AIF1DACL_SRC */
  1697. #define WM8995_AIF1DACL_SRC_MASK 0x8000 /* AIF1DACL_SRC */
  1698. #define WM8995_AIF1DACL_SRC_SHIFT 15 /* AIF1DACL_SRC */
  1699. #define WM8995_AIF1DACL_SRC_WIDTH 1 /* AIF1DACL_SRC */
  1700. #define WM8995_AIF1DACR_SRC 0x4000 /* AIF1DACR_SRC */
  1701. #define WM8995_AIF1DACR_SRC_MASK 0x4000 /* AIF1DACR_SRC */
  1702. #define WM8995_AIF1DACR_SRC_SHIFT 14 /* AIF1DACR_SRC */
  1703. #define WM8995_AIF1DACR_SRC_WIDTH 1 /* AIF1DACR_SRC */
  1704. #define WM8995_AIF1DAC_BOOST_MASK 0x0C00 /* AIF1DAC_BOOST - [11:10] */
  1705. #define WM8995_AIF1DAC_BOOST_SHIFT 10 /* AIF1DAC_BOOST - [11:10] */
  1706. #define WM8995_AIF1DAC_BOOST_WIDTH 2 /* AIF1DAC_BOOST - [11:10] */
  1707. #define WM8995_AIF1DAC_COMP 0x0010 /* AIF1DAC_COMP */
  1708. #define WM8995_AIF1DAC_COMP_MASK 0x0010 /* AIF1DAC_COMP */
  1709. #define WM8995_AIF1DAC_COMP_SHIFT 4 /* AIF1DAC_COMP */
  1710. #define WM8995_AIF1DAC_COMP_WIDTH 1 /* AIF1DAC_COMP */
  1711. #define WM8995_AIF1DAC_COMPMODE 0x0008 /* AIF1DAC_COMPMODE */
  1712. #define WM8995_AIF1DAC_COMPMODE_MASK 0x0008 /* AIF1DAC_COMPMODE */
  1713. #define WM8995_AIF1DAC_COMPMODE_SHIFT 3 /* AIF1DAC_COMPMODE */
  1714. #define WM8995_AIF1DAC_COMPMODE_WIDTH 1 /* AIF1DAC_COMPMODE */
  1715. #define WM8995_AIF1ADC_COMP 0x0004 /* AIF1ADC_COMP */
  1716. #define WM8995_AIF1ADC_COMP_MASK 0x0004 /* AIF1ADC_COMP */
  1717. #define WM8995_AIF1ADC_COMP_SHIFT 2 /* AIF1ADC_COMP */
  1718. #define WM8995_AIF1ADC_COMP_WIDTH 1 /* AIF1ADC_COMP */
  1719. #define WM8995_AIF1ADC_COMPMODE 0x0002 /* AIF1ADC_COMPMODE */
  1720. #define WM8995_AIF1ADC_COMPMODE_MASK 0x0002 /* AIF1ADC_COMPMODE */
  1721. #define WM8995_AIF1ADC_COMPMODE_SHIFT 1 /* AIF1ADC_COMPMODE */
  1722. #define WM8995_AIF1ADC_COMPMODE_WIDTH 1 /* AIF1ADC_COMPMODE */
  1723. #define WM8995_AIF1_LOOPBACK 0x0001 /* AIF1_LOOPBACK */
  1724. #define WM8995_AIF1_LOOPBACK_MASK 0x0001 /* AIF1_LOOPBACK */
  1725. #define WM8995_AIF1_LOOPBACK_SHIFT 0 /* AIF1_LOOPBACK */
  1726. #define WM8995_AIF1_LOOPBACK_WIDTH 1 /* AIF1_LOOPBACK */
  1727. /*
  1728. * R770 (0x302) - AIF1 Master/Slave
  1729. */
  1730. #define WM8995_AIF1_TRI 0x8000 /* AIF1_TRI */
  1731. #define WM8995_AIF1_TRI_MASK 0x8000 /* AIF1_TRI */
  1732. #define WM8995_AIF1_TRI_SHIFT 15 /* AIF1_TRI */
  1733. #define WM8995_AIF1_TRI_WIDTH 1 /* AIF1_TRI */
  1734. #define WM8995_AIF1_MSTR 0x4000 /* AIF1_MSTR */
  1735. #define WM8995_AIF1_MSTR_MASK 0x4000 /* AIF1_MSTR */
  1736. #define WM8995_AIF1_MSTR_SHIFT 14 /* AIF1_MSTR */
  1737. #define WM8995_AIF1_MSTR_WIDTH 1 /* AIF1_MSTR */
  1738. #define WM8995_AIF1_CLK_FRC 0x2000 /* AIF1_CLK_FRC */
  1739. #define WM8995_AIF1_CLK_FRC_MASK 0x2000 /* AIF1_CLK_FRC */
  1740. #define WM8995_AIF1_CLK_FRC_SHIFT 13 /* AIF1_CLK_FRC */
  1741. #define WM8995_AIF1_CLK_FRC_WIDTH 1 /* AIF1_CLK_FRC */
  1742. #define WM8995_AIF1_LRCLK_FRC 0x1000 /* AIF1_LRCLK_FRC */
  1743. #define WM8995_AIF1_LRCLK_FRC_MASK 0x1000 /* AIF1_LRCLK_FRC */
  1744. #define WM8995_AIF1_LRCLK_FRC_SHIFT 12 /* AIF1_LRCLK_FRC */
  1745. #define WM8995_AIF1_LRCLK_FRC_WIDTH 1 /* AIF1_LRCLK_FRC */
  1746. /*
  1747. * R771 (0x303) - AIF1 BCLK
  1748. */
  1749. #define WM8995_AIF1_BCLK_DIV_MASK 0x00F0 /* AIF1_BCLK_DIV - [7:4] */
  1750. #define WM8995_AIF1_BCLK_DIV_SHIFT 4 /* AIF1_BCLK_DIV - [7:4] */
  1751. #define WM8995_AIF1_BCLK_DIV_WIDTH 4 /* AIF1_BCLK_DIV - [7:4] */
  1752. /*
  1753. * R772 (0x304) - AIF1ADC LRCLK
  1754. */
  1755. #define WM8995_AIF1ADC_LRCLK_DIR 0x0800 /* AIF1ADC_LRCLK_DIR */
  1756. #define WM8995_AIF1ADC_LRCLK_DIR_MASK 0x0800 /* AIF1ADC_LRCLK_DIR */
  1757. #define WM8995_AIF1ADC_LRCLK_DIR_SHIFT 11 /* AIF1ADC_LRCLK_DIR */
  1758. #define WM8995_AIF1ADC_LRCLK_DIR_WIDTH 1 /* AIF1ADC_LRCLK_DIR */
  1759. #define WM8995_AIF1ADC_RATE_MASK 0x07FF /* AIF1ADC_RATE - [10:0] */
  1760. #define WM8995_AIF1ADC_RATE_SHIFT 0 /* AIF1ADC_RATE - [10:0] */
  1761. #define WM8995_AIF1ADC_RATE_WIDTH 11 /* AIF1ADC_RATE - [10:0] */
  1762. /*
  1763. * R773 (0x305) - AIF1DAC LRCLK
  1764. */
  1765. #define WM8995_AIF1DAC_LRCLK_DIR 0x0800 /* AIF1DAC_LRCLK_DIR */
  1766. #define WM8995_AIF1DAC_LRCLK_DIR_MASK 0x0800 /* AIF1DAC_LRCLK_DIR */
  1767. #define WM8995_AIF1DAC_LRCLK_DIR_SHIFT 11 /* AIF1DAC_LRCLK_DIR */
  1768. #define WM8995_AIF1DAC_LRCLK_DIR_WIDTH 1 /* AIF1DAC_LRCLK_DIR */
  1769. #define WM8995_AIF1DAC_RATE_MASK 0x07FF /* AIF1DAC_RATE - [10:0] */
  1770. #define WM8995_AIF1DAC_RATE_SHIFT 0 /* AIF1DAC_RATE - [10:0] */
  1771. #define WM8995_AIF1DAC_RATE_WIDTH 11 /* AIF1DAC_RATE - [10:0] */
  1772. /*
  1773. * R774 (0x306) - AIF1DAC Data
  1774. */
  1775. #define WM8995_AIF1DACL_DAT_INV 0x0002 /* AIF1DACL_DAT_INV */
  1776. #define WM8995_AIF1DACL_DAT_INV_MASK 0x0002 /* AIF1DACL_DAT_INV */
  1777. #define WM8995_AIF1DACL_DAT_INV_SHIFT 1 /* AIF1DACL_DAT_INV */
  1778. #define WM8995_AIF1DACL_DAT_INV_WIDTH 1 /* AIF1DACL_DAT_INV */
  1779. #define WM8995_AIF1DACR_DAT_INV 0x0001 /* AIF1DACR_DAT_INV */
  1780. #define WM8995_AIF1DACR_DAT_INV_MASK 0x0001 /* AIF1DACR_DAT_INV */
  1781. #define WM8995_AIF1DACR_DAT_INV_SHIFT 0 /* AIF1DACR_DAT_INV */
  1782. #define WM8995_AIF1DACR_DAT_INV_WIDTH 1 /* AIF1DACR_DAT_INV */
  1783. /*
  1784. * R775 (0x307) - AIF1ADC Data
  1785. */
  1786. #define WM8995_AIF1ADCL_DAT_INV 0x0002 /* AIF1ADCL_DAT_INV */
  1787. #define WM8995_AIF1ADCL_DAT_INV_MASK 0x0002 /* AIF1ADCL_DAT_INV */
  1788. #define WM8995_AIF1ADCL_DAT_INV_SHIFT 1 /* AIF1ADCL_DAT_INV */
  1789. #define WM8995_AIF1ADCL_DAT_INV_WIDTH 1 /* AIF1ADCL_DAT_INV */
  1790. #define WM8995_AIF1ADCR_DAT_INV 0x0001 /* AIF1ADCR_DAT_INV */
  1791. #define WM8995_AIF1ADCR_DAT_INV_MASK 0x0001 /* AIF1ADCR_DAT_INV */
  1792. #define WM8995_AIF1ADCR_DAT_INV_SHIFT 0 /* AIF1ADCR_DAT_INV */
  1793. #define WM8995_AIF1ADCR_DAT_INV_WIDTH 1 /* AIF1ADCR_DAT_INV */
  1794. /*
  1795. * R784 (0x310) - AIF2 Control (1)
  1796. */
  1797. #define WM8995_AIF2ADCL_SRC 0x8000 /* AIF2ADCL_SRC */
  1798. #define WM8995_AIF2ADCL_SRC_MASK 0x8000 /* AIF2ADCL_SRC */
  1799. #define WM8995_AIF2ADCL_SRC_SHIFT 15 /* AIF2ADCL_SRC */
  1800. #define WM8995_AIF2ADCL_SRC_WIDTH 1 /* AIF2ADCL_SRC */
  1801. #define WM8995_AIF2ADCR_SRC 0x4000 /* AIF2ADCR_SRC */
  1802. #define WM8995_AIF2ADCR_SRC_MASK 0x4000 /* AIF2ADCR_SRC */
  1803. #define WM8995_AIF2ADCR_SRC_SHIFT 14 /* AIF2ADCR_SRC */
  1804. #define WM8995_AIF2ADCR_SRC_WIDTH 1 /* AIF2ADCR_SRC */
  1805. #define WM8995_AIF2ADC_TDM 0x2000 /* AIF2ADC_TDM */
  1806. #define WM8995_AIF2ADC_TDM_MASK 0x2000 /* AIF2ADC_TDM */
  1807. #define WM8995_AIF2ADC_TDM_SHIFT 13 /* AIF2ADC_TDM */
  1808. #define WM8995_AIF2ADC_TDM_WIDTH 1 /* AIF2ADC_TDM */
  1809. #define WM8995_AIF2ADC_TDM_CHAN 0x1000 /* AIF2ADC_TDM_CHAN */
  1810. #define WM8995_AIF2ADC_TDM_CHAN_MASK 0x1000 /* AIF2ADC_TDM_CHAN */
  1811. #define WM8995_AIF2ADC_TDM_CHAN_SHIFT 12 /* AIF2ADC_TDM_CHAN */
  1812. #define WM8995_AIF2ADC_TDM_CHAN_WIDTH 1 /* AIF2ADC_TDM_CHAN */
  1813. #define WM8995_AIF2_BCLK_INV 0x0100 /* AIF2_BCLK_INV */
  1814. #define WM8995_AIF2_BCLK_INV_MASK 0x0100 /* AIF2_BCLK_INV */
  1815. #define WM8995_AIF2_BCLK_INV_SHIFT 8 /* AIF2_BCLK_INV */
  1816. #define WM8995_AIF2_BCLK_INV_WIDTH 1 /* AIF2_BCLK_INV */
  1817. #define WM8995_AIF2_LRCLK_INV 0x0080 /* AIF2_LRCLK_INV */
  1818. #define WM8995_AIF2_LRCLK_INV_MASK 0x0080 /* AIF2_LRCLK_INV */
  1819. #define WM8995_AIF2_LRCLK_INV_SHIFT 7 /* AIF2_LRCLK_INV */
  1820. #define WM8995_AIF2_LRCLK_INV_WIDTH 1 /* AIF2_LRCLK_INV */
  1821. #define WM8995_AIF2_WL_MASK 0x0060 /* AIF2_WL - [6:5] */
  1822. #define WM8995_AIF2_WL_SHIFT 5 /* AIF2_WL - [6:5] */
  1823. #define WM8995_AIF2_WL_WIDTH 2 /* AIF2_WL - [6:5] */
  1824. #define WM8995_AIF2_FMT_MASK 0x0018 /* AIF2_FMT - [4:3] */
  1825. #define WM8995_AIF2_FMT_SHIFT 3 /* AIF2_FMT - [4:3] */
  1826. #define WM8995_AIF2_FMT_WIDTH 2 /* AIF2_FMT - [4:3] */
  1827. /*
  1828. * R785 (0x311) - AIF2 Control (2)
  1829. */
  1830. #define WM8995_AIF2DACL_SRC 0x8000 /* AIF2DACL_SRC */
  1831. #define WM8995_AIF2DACL_SRC_MASK 0x8000 /* AIF2DACL_SRC */
  1832. #define WM8995_AIF2DACL_SRC_SHIFT 15 /* AIF2DACL_SRC */
  1833. #define WM8995_AIF2DACL_SRC_WIDTH 1 /* AIF2DACL_SRC */
  1834. #define WM8995_AIF2DACR_SRC 0x4000 /* AIF2DACR_SRC */
  1835. #define WM8995_AIF2DACR_SRC_MASK 0x4000 /* AIF2DACR_SRC */
  1836. #define WM8995_AIF2DACR_SRC_SHIFT 14 /* AIF2DACR_SRC */
  1837. #define WM8995_AIF2DACR_SRC_WIDTH 1 /* AIF2DACR_SRC */
  1838. #define WM8995_AIF2DAC_TDM 0x2000 /* AIF2DAC_TDM */
  1839. #define WM8995_AIF2DAC_TDM_MASK 0x2000 /* AIF2DAC_TDM */
  1840. #define WM8995_AIF2DAC_TDM_SHIFT 13 /* AIF2DAC_TDM */
  1841. #define WM8995_AIF2DAC_TDM_WIDTH 1 /* AIF2DAC_TDM */
  1842. #define WM8995_AIF2DAC_TDM_CHAN 0x1000 /* AIF2DAC_TDM_CHAN */
  1843. #define WM8995_AIF2DAC_TDM_CHAN_MASK 0x1000 /* AIF2DAC_TDM_CHAN */
  1844. #define WM8995_AIF2DAC_TDM_CHAN_SHIFT 12 /* AIF2DAC_TDM_CHAN */
  1845. #define WM8995_AIF2DAC_TDM_CHAN_WIDTH 1 /* AIF2DAC_TDM_CHAN */
  1846. #define WM8995_AIF2DAC_BOOST_MASK 0x0C00 /* AIF2DAC_BOOST - [11:10] */
  1847. #define WM8995_AIF2DAC_BOOST_SHIFT 10 /* AIF2DAC_BOOST - [11:10] */
  1848. #define WM8995_AIF2DAC_BOOST_WIDTH 2 /* AIF2DAC_BOOST - [11:10] */
  1849. #define WM8995_AIF2DAC_COMP 0x0010 /* AIF2DAC_COMP */
  1850. #define WM8995_AIF2DAC_COMP_MASK 0x0010 /* AIF2DAC_COMP */
  1851. #define WM8995_AIF2DAC_COMP_SHIFT 4 /* AIF2DAC_COMP */
  1852. #define WM8995_AIF2DAC_COMP_WIDTH 1 /* AIF2DAC_COMP */
  1853. #define WM8995_AIF2DAC_COMPMODE 0x0008 /* AIF2DAC_COMPMODE */
  1854. #define WM8995_AIF2DAC_COMPMODE_MASK 0x0008 /* AIF2DAC_COMPMODE */
  1855. #define WM8995_AIF2DAC_COMPMODE_SHIFT 3 /* AIF2DAC_COMPMODE */
  1856. #define WM8995_AIF2DAC_COMPMODE_WIDTH 1 /* AIF2DAC_COMPMODE */
  1857. #define WM8995_AIF2ADC_COMP 0x0004 /* AIF2ADC_COMP */
  1858. #define WM8995_AIF2ADC_COMP_MASK 0x0004 /* AIF2ADC_COMP */
  1859. #define WM8995_AIF2ADC_COMP_SHIFT 2 /* AIF2ADC_COMP */
  1860. #define WM8995_AIF2ADC_COMP_WIDTH 1 /* AIF2ADC_COMP */
  1861. #define WM8995_AIF2ADC_COMPMODE 0x0002 /* AIF2ADC_COMPMODE */
  1862. #define WM8995_AIF2ADC_COMPMODE_MASK 0x0002 /* AIF2ADC_COMPMODE */
  1863. #define WM8995_AIF2ADC_COMPMODE_SHIFT 1 /* AIF2ADC_COMPMODE */
  1864. #define WM8995_AIF2ADC_COMPMODE_WIDTH 1 /* AIF2ADC_COMPMODE */
  1865. #define WM8995_AIF2_LOOPBACK 0x0001 /* AIF2_LOOPBACK */
  1866. #define WM8995_AIF2_LOOPBACK_MASK 0x0001 /* AIF2_LOOPBACK */
  1867. #define WM8995_AIF2_LOOPBACK_SHIFT 0 /* AIF2_LOOPBACK */
  1868. #define WM8995_AIF2_LOOPBACK_WIDTH 1 /* AIF2_LOOPBACK */
  1869. /*
  1870. * R786 (0x312) - AIF2 Master/Slave
  1871. */
  1872. #define WM8995_AIF2_TRI 0x8000 /* AIF2_TRI */
  1873. #define WM8995_AIF2_TRI_MASK 0x8000 /* AIF2_TRI */
  1874. #define WM8995_AIF2_TRI_SHIFT 15 /* AIF2_TRI */
  1875. #define WM8995_AIF2_TRI_WIDTH 1 /* AIF2_TRI */
  1876. #define WM8995_AIF2_MSTR 0x4000 /* AIF2_MSTR */
  1877. #define WM8995_AIF2_MSTR_MASK 0x4000 /* AIF2_MSTR */
  1878. #define WM8995_AIF2_MSTR_SHIFT 14 /* AIF2_MSTR */
  1879. #define WM8995_AIF2_MSTR_WIDTH 1 /* AIF2_MSTR */
  1880. #define WM8995_AIF2_CLK_FRC 0x2000 /* AIF2_CLK_FRC */
  1881. #define WM8995_AIF2_CLK_FRC_MASK 0x2000 /* AIF2_CLK_FRC */
  1882. #define WM8995_AIF2_CLK_FRC_SHIFT 13 /* AIF2_CLK_FRC */
  1883. #define WM8995_AIF2_CLK_FRC_WIDTH 1 /* AIF2_CLK_FRC */
  1884. #define WM8995_AIF2_LRCLK_FRC 0x1000 /* AIF2_LRCLK_FRC */
  1885. #define WM8995_AIF2_LRCLK_FRC_MASK 0x1000 /* AIF2_LRCLK_FRC */
  1886. #define WM8995_AIF2_LRCLK_FRC_SHIFT 12 /* AIF2_LRCLK_FRC */
  1887. #define WM8995_AIF2_LRCLK_FRC_WIDTH 1 /* AIF2_LRCLK_FRC */
  1888. /*
  1889. * R787 (0x313) - AIF2 BCLK
  1890. */
  1891. #define WM8995_AIF2_BCLK_DIV_MASK 0x00F0 /* AIF2_BCLK_DIV - [7:4] */
  1892. #define WM8995_AIF2_BCLK_DIV_SHIFT 4 /* AIF2_BCLK_DIV - [7:4] */
  1893. #define WM8995_AIF2_BCLK_DIV_WIDTH 4 /* AIF2_BCLK_DIV - [7:4] */
  1894. /*
  1895. * R788 (0x314) - AIF2ADC LRCLK
  1896. */
  1897. #define WM8995_AIF2ADC_LRCLK_DIR 0x0800 /* AIF2ADC_LRCLK_DIR */
  1898. #define WM8995_AIF2ADC_LRCLK_DIR_MASK 0x0800 /* AIF2ADC_LRCLK_DIR */
  1899. #define WM8995_AIF2ADC_LRCLK_DIR_SHIFT 11 /* AIF2ADC_LRCLK_DIR */
  1900. #define WM8995_AIF2ADC_LRCLK_DIR_WIDTH 1 /* AIF2ADC_LRCLK_DIR */
  1901. #define WM8995_AIF2ADC_RATE_MASK 0x07FF /* AIF2ADC_RATE - [10:0] */
  1902. #define WM8995_AIF2ADC_RATE_SHIFT 0 /* AIF2ADC_RATE - [10:0] */
  1903. #define WM8995_AIF2ADC_RATE_WIDTH 11 /* AIF2ADC_RATE - [10:0] */
  1904. /*
  1905. * R789 (0x315) - AIF2DAC LRCLK
  1906. */
  1907. #define WM8995_AIF2DAC_LRCLK_DIR 0x0800 /* AIF2DAC_LRCLK_DIR */
  1908. #define WM8995_AIF2DAC_LRCLK_DIR_MASK 0x0800 /* AIF2DAC_LRCLK_DIR */
  1909. #define WM8995_AIF2DAC_LRCLK_DIR_SHIFT 11 /* AIF2DAC_LRCLK_DIR */
  1910. #define WM8995_AIF2DAC_LRCLK_DIR_WIDTH 1 /* AIF2DAC_LRCLK_DIR */
  1911. #define WM8995_AIF2DAC_RATE_MASK 0x07FF /* AIF2DAC_RATE - [10:0] */
  1912. #define WM8995_AIF2DAC_RATE_SHIFT 0 /* AIF2DAC_RATE - [10:0] */
  1913. #define WM8995_AIF2DAC_RATE_WIDTH 11 /* AIF2DAC_RATE - [10:0] */
  1914. /*
  1915. * R790 (0x316) - AIF2DAC Data
  1916. */
  1917. #define WM8995_AIF2DACL_DAT_INV 0x0002 /* AIF2DACL_DAT_INV */
  1918. #define WM8995_AIF2DACL_DAT_INV_MASK 0x0002 /* AIF2DACL_DAT_INV */
  1919. #define WM8995_AIF2DACL_DAT_INV_SHIFT 1 /* AIF2DACL_DAT_INV */
  1920. #define WM8995_AIF2DACL_DAT_INV_WIDTH 1 /* AIF2DACL_DAT_INV */
  1921. #define WM8995_AIF2DACR_DAT_INV 0x0001 /* AIF2DACR_DAT_INV */
  1922. #define WM8995_AIF2DACR_DAT_INV_MASK 0x0001 /* AIF2DACR_DAT_INV */
  1923. #define WM8995_AIF2DACR_DAT_INV_SHIFT 0 /* AIF2DACR_DAT_INV */
  1924. #define WM8995_AIF2DACR_DAT_INV_WIDTH 1 /* AIF2DACR_DAT_INV */
  1925. /*
  1926. * R791 (0x317) - AIF2ADC Data
  1927. */
  1928. #define WM8995_AIF2ADCL_DAT_INV 0x0002 /* AIF2ADCL_DAT_INV */
  1929. #define WM8995_AIF2ADCL_DAT_INV_MASK 0x0002 /* AIF2ADCL_DAT_INV */
  1930. #define WM8995_AIF2ADCL_DAT_INV_SHIFT 1 /* AIF2ADCL_DAT_INV */
  1931. #define WM8995_AIF2ADCL_DAT_INV_WIDTH 1 /* AIF2ADCL_DAT_INV */
  1932. #define WM8995_AIF2ADCR_DAT_INV 0x0001 /* AIF2ADCR_DAT_INV */
  1933. #define WM8995_AIF2ADCR_DAT_INV_MASK 0x0001 /* AIF2ADCR_DAT_INV */
  1934. #define WM8995_AIF2ADCR_DAT_INV_SHIFT 0 /* AIF2ADCR_DAT_INV */
  1935. #define WM8995_AIF2ADCR_DAT_INV_WIDTH 1 /* AIF2ADCR_DAT_INV */
  1936. /*
  1937. * R1024 (0x400) - AIF1 ADC1 Left Volume
  1938. */
  1939. #define WM8995_AIF1ADC1_VU 0x0100 /* AIF1ADC1_VU */
  1940. #define WM8995_AIF1ADC1_VU_MASK 0x0100 /* AIF1ADC1_VU */
  1941. #define WM8995_AIF1ADC1_VU_SHIFT 8 /* AIF1ADC1_VU */
  1942. #define WM8995_AIF1ADC1_VU_WIDTH 1 /* AIF1ADC1_VU */
  1943. #define WM8995_AIF1ADC1L_VOL_MASK 0x00FF /* AIF1ADC1L_VOL - [7:0] */
  1944. #define WM8995_AIF1ADC1L_VOL_SHIFT 0 /* AIF1ADC1L_VOL - [7:0] */
  1945. #define WM8995_AIF1ADC1L_VOL_WIDTH 8 /* AIF1ADC1L_VOL - [7:0] */
  1946. /*
  1947. * R1025 (0x401) - AIF1 ADC1 Right Volume
  1948. */
  1949. #define WM8995_AIF1ADC1_VU 0x0100 /* AIF1ADC1_VU */
  1950. #define WM8995_AIF1ADC1_VU_MASK 0x0100 /* AIF1ADC1_VU */
  1951. #define WM8995_AIF1ADC1_VU_SHIFT 8 /* AIF1ADC1_VU */
  1952. #define WM8995_AIF1ADC1_VU_WIDTH 1 /* AIF1ADC1_VU */
  1953. #define WM8995_AIF1ADC1R_VOL_MASK 0x00FF /* AIF1ADC1R_VOL - [7:0] */
  1954. #define WM8995_AIF1ADC1R_VOL_SHIFT 0 /* AIF1ADC1R_VOL - [7:0] */
  1955. #define WM8995_AIF1ADC1R_VOL_WIDTH 8 /* AIF1ADC1R_VOL - [7:0] */
  1956. /*
  1957. * R1026 (0x402) - AIF1 DAC1 Left Volume
  1958. */
  1959. #define WM8995_AIF1DAC1_VU 0x0100 /* AIF1DAC1_VU */
  1960. #define WM8995_AIF1DAC1_VU_MASK 0x0100 /* AIF1DAC1_VU */
  1961. #define WM8995_AIF1DAC1_VU_SHIFT 8 /* AIF1DAC1_VU */
  1962. #define WM8995_AIF1DAC1_VU_WIDTH 1 /* AIF1DAC1_VU */
  1963. #define WM8995_AIF1DAC1L_VOL_MASK 0x00FF /* AIF1DAC1L_VOL - [7:0] */
  1964. #define WM8995_AIF1DAC1L_VOL_SHIFT 0 /* AIF1DAC1L_VOL - [7:0] */
  1965. #define WM8995_AIF1DAC1L_VOL_WIDTH 8 /* AIF1DAC1L_VOL - [7:0] */
  1966. /*
  1967. * R1027 (0x403) - AIF1 DAC1 Right Volume
  1968. */
  1969. #define WM8995_AIF1DAC1_VU 0x0100 /* AIF1DAC1_VU */
  1970. #define WM8995_AIF1DAC1_VU_MASK 0x0100 /* AIF1DAC1_VU */
  1971. #define WM8995_AIF1DAC1_VU_SHIFT 8 /* AIF1DAC1_VU */
  1972. #define WM8995_AIF1DAC1_VU_WIDTH 1 /* AIF1DAC1_VU */
  1973. #define WM8995_AIF1DAC1R_VOL_MASK 0x00FF /* AIF1DAC1R_VOL - [7:0] */
  1974. #define WM8995_AIF1DAC1R_VOL_SHIFT 0 /* AIF1DAC1R_VOL - [7:0] */
  1975. #define WM8995_AIF1DAC1R_VOL_WIDTH 8 /* AIF1DAC1R_VOL - [7:0] */
  1976. /*
  1977. * R1028 (0x404) - AIF1 ADC2 Left Volume
  1978. */
  1979. #define WM8995_AIF1ADC2_VU 0x0100 /* AIF1ADC2_VU */
  1980. #define WM8995_AIF1ADC2_VU_MASK 0x0100 /* AIF1ADC2_VU */
  1981. #define WM8995_AIF1ADC2_VU_SHIFT 8 /* AIF1ADC2_VU */
  1982. #define WM8995_AIF1ADC2_VU_WIDTH 1 /* AIF1ADC2_VU */
  1983. #define WM8995_AIF1ADC2L_VOL_MASK 0x00FF /* AIF1ADC2L_VOL - [7:0] */
  1984. #define WM8995_AIF1ADC2L_VOL_SHIFT 0 /* AIF1ADC2L_VOL - [7:0] */
  1985. #define WM8995_AIF1ADC2L_VOL_WIDTH 8 /* AIF1ADC2L_VOL - [7:0] */
  1986. /*
  1987. * R1029 (0x405) - AIF1 ADC2 Right Volume
  1988. */
  1989. #define WM8995_AIF1ADC2_VU 0x0100 /* AIF1ADC2_VU */
  1990. #define WM8995_AIF1ADC2_VU_MASK 0x0100 /* AIF1ADC2_VU */
  1991. #define WM8995_AIF1ADC2_VU_SHIFT 8 /* AIF1ADC2_VU */
  1992. #define WM8995_AIF1ADC2_VU_WIDTH 1 /* AIF1ADC2_VU */
  1993. #define WM8995_AIF1ADC2R_VOL_MASK 0x00FF /* AIF1ADC2R_VOL - [7:0] */
  1994. #define WM8995_AIF1ADC2R_VOL_SHIFT 0 /* AIF1ADC2R_VOL - [7:0] */
  1995. #define WM8995_AIF1ADC2R_VOL_WIDTH 8 /* AIF1ADC2R_VOL - [7:0] */
  1996. /*
  1997. * R1030 (0x406) - AIF1 DAC2 Left Volume
  1998. */
  1999. #define WM8995_AIF1DAC2_VU 0x0100 /* AIF1DAC2_VU */
  2000. #define WM8995_AIF1DAC2_VU_MASK 0x0100 /* AIF1DAC2_VU */
  2001. #define WM8995_AIF1DAC2_VU_SHIFT 8 /* AIF1DAC2_VU */
  2002. #define WM8995_AIF1DAC2_VU_WIDTH 1 /* AIF1DAC2_VU */
  2003. #define WM8995_AIF1DAC2L_VOL_MASK 0x00FF /* AIF1DAC2L_VOL - [7:0] */
  2004. #define WM8995_AIF1DAC2L_VOL_SHIFT 0 /* AIF1DAC2L_VOL - [7:0] */
  2005. #define WM8995_AIF1DAC2L_VOL_WIDTH 8 /* AIF1DAC2L_VOL - [7:0] */
  2006. /*
  2007. * R1031 (0x407) - AIF1 DAC2 Right Volume
  2008. */
  2009. #define WM8995_AIF1DAC2_VU 0x0100 /* AIF1DAC2_VU */
  2010. #define WM8995_AIF1DAC2_VU_MASK 0x0100 /* AIF1DAC2_VU */
  2011. #define WM8995_AIF1DAC2_VU_SHIFT 8 /* AIF1DAC2_VU */
  2012. #define WM8995_AIF1DAC2_VU_WIDTH 1 /* AIF1DAC2_VU */
  2013. #define WM8995_AIF1DAC2R_VOL_MASK 0x00FF /* AIF1DAC2R_VOL - [7:0] */
  2014. #define WM8995_AIF1DAC2R_VOL_SHIFT 0 /* AIF1DAC2R_VOL - [7:0] */
  2015. #define WM8995_AIF1DAC2R_VOL_WIDTH 8 /* AIF1DAC2R_VOL - [7:0] */
  2016. /*
  2017. * R1040 (0x410) - AIF1 ADC1 Filters
  2018. */
  2019. #define WM8995_AIF1ADC_4FS 0x8000 /* AIF1ADC_4FS */
  2020. #define WM8995_AIF1ADC_4FS_MASK 0x8000 /* AIF1ADC_4FS */
  2021. #define WM8995_AIF1ADC_4FS_SHIFT 15 /* AIF1ADC_4FS */
  2022. #define WM8995_AIF1ADC_4FS_WIDTH 1 /* AIF1ADC_4FS */
  2023. #define WM8995_AIF1ADC1L_HPF 0x1000 /* AIF1ADC1L_HPF */
  2024. #define WM8995_AIF1ADC1L_HPF_MASK 0x1000 /* AIF1ADC1L_HPF */
  2025. #define WM8995_AIF1ADC1L_HPF_SHIFT 12 /* AIF1ADC1L_HPF */
  2026. #define WM8995_AIF1ADC1L_HPF_WIDTH 1 /* AIF1ADC1L_HPF */
  2027. #define WM8995_AIF1ADC1R_HPF 0x0800 /* AIF1ADC1R_HPF */
  2028. #define WM8995_AIF1ADC1R_HPF_MASK 0x0800 /* AIF1ADC1R_HPF */
  2029. #define WM8995_AIF1ADC1R_HPF_SHIFT 11 /* AIF1ADC1R_HPF */
  2030. #define WM8995_AIF1ADC1R_HPF_WIDTH 1 /* AIF1ADC1R_HPF */
  2031. #define WM8995_AIF1ADC1_HPF_MODE 0x0008 /* AIF1ADC1_HPF_MODE */
  2032. #define WM8995_AIF1ADC1_HPF_MODE_MASK 0x0008 /* AIF1ADC1_HPF_MODE */
  2033. #define WM8995_AIF1ADC1_HPF_MODE_SHIFT 3 /* AIF1ADC1_HPF_MODE */
  2034. #define WM8995_AIF1ADC1_HPF_MODE_WIDTH 1 /* AIF1ADC1_HPF_MODE */
  2035. #define WM8995_AIF1ADC1_HPF_CUT_MASK 0x0007 /* AIF1ADC1_HPF_CUT - [2:0] */
  2036. #define WM8995_AIF1ADC1_HPF_CUT_SHIFT 0 /* AIF1ADC1_HPF_CUT - [2:0] */
  2037. #define WM8995_AIF1ADC1_HPF_CUT_WIDTH 3 /* AIF1ADC1_HPF_CUT - [2:0] */
  2038. /*
  2039. * R1041 (0x411) - AIF1 ADC2 Filters
  2040. */
  2041. #define WM8995_AIF1ADC2L_HPF 0x1000 /* AIF1ADC2L_HPF */
  2042. #define WM8995_AIF1ADC2L_HPF_MASK 0x1000 /* AIF1ADC2L_HPF */
  2043. #define WM8995_AIF1ADC2L_HPF_SHIFT 12 /* AIF1ADC2L_HPF */
  2044. #define WM8995_AIF1ADC2L_HPF_WIDTH 1 /* AIF1ADC2L_HPF */
  2045. #define WM8995_AIF1ADC2R_HPF 0x0800 /* AIF1ADC2R_HPF */
  2046. #define WM8995_AIF1ADC2R_HPF_MASK 0x0800 /* AIF1ADC2R_HPF */
  2047. #define WM8995_AIF1ADC2R_HPF_SHIFT 11 /* AIF1ADC2R_HPF */
  2048. #define WM8995_AIF1ADC2R_HPF_WIDTH 1 /* AIF1ADC2R_HPF */
  2049. #define WM8995_AIF1ADC2_HPF_MODE 0x0008 /* AIF1ADC2_HPF_MODE */
  2050. #define WM8995_AIF1ADC2_HPF_MODE_MASK 0x0008 /* AIF1ADC2_HPF_MODE */
  2051. #define WM8995_AIF1ADC2_HPF_MODE_SHIFT 3 /* AIF1ADC2_HPF_MODE */
  2052. #define WM8995_AIF1ADC2_HPF_MODE_WIDTH 1 /* AIF1ADC2_HPF_MODE */
  2053. #define WM8995_AIF1ADC2_HPF_CUT_MASK 0x0007 /* AIF1ADC2_HPF_CUT - [2:0] */
  2054. #define WM8995_AIF1ADC2_HPF_CUT_SHIFT 0 /* AIF1ADC2_HPF_CUT - [2:0] */
  2055. #define WM8995_AIF1ADC2_HPF_CUT_WIDTH 3 /* AIF1ADC2_HPF_CUT - [2:0] */
  2056. /*
  2057. * R1056 (0x420) - AIF1 DAC1 Filters (1)
  2058. */
  2059. #define WM8995_AIF1DAC1_MUTE 0x0200 /* AIF1DAC1_MUTE */
  2060. #define WM8995_AIF1DAC1_MUTE_MASK 0x0200 /* AIF1DAC1_MUTE */
  2061. #define WM8995_AIF1DAC1_MUTE_SHIFT 9 /* AIF1DAC1_MUTE */
  2062. #define WM8995_AIF1DAC1_MUTE_WIDTH 1 /* AIF1DAC1_MUTE */
  2063. #define WM8995_AIF1DAC1_MONO 0x0080 /* AIF1DAC1_MONO */
  2064. #define WM8995_AIF1DAC1_MONO_MASK 0x0080 /* AIF1DAC1_MONO */
  2065. #define WM8995_AIF1DAC1_MONO_SHIFT 7 /* AIF1DAC1_MONO */
  2066. #define WM8995_AIF1DAC1_MONO_WIDTH 1 /* AIF1DAC1_MONO */
  2067. #define WM8995_AIF1DAC1_MUTERATE 0x0020 /* AIF1DAC1_MUTERATE */
  2068. #define WM8995_AIF1DAC1_MUTERATE_MASK 0x0020 /* AIF1DAC1_MUTERATE */
  2069. #define WM8995_AIF1DAC1_MUTERATE_SHIFT 5 /* AIF1DAC1_MUTERATE */
  2070. #define WM8995_AIF1DAC1_MUTERATE_WIDTH 1 /* AIF1DAC1_MUTERATE */
  2071. #define WM8995_AIF1DAC1_UNMUTE_RAMP 0x0010 /* AIF1DAC1_UNMUTE_RAMP */
  2072. #define WM8995_AIF1DAC1_UNMUTE_RAMP_MASK 0x0010 /* AIF1DAC1_UNMUTE_RAMP */
  2073. #define WM8995_AIF1DAC1_UNMUTE_RAMP_SHIFT 4 /* AIF1DAC1_UNMUTE_RAMP */
  2074. #define WM8995_AIF1DAC1_UNMUTE_RAMP_WIDTH 1 /* AIF1DAC1_UNMUTE_RAMP */
  2075. #define WM8995_AIF1DAC1_DEEMP_MASK 0x0006 /* AIF1DAC1_DEEMP - [2:1] */
  2076. #define WM8995_AIF1DAC1_DEEMP_SHIFT 1 /* AIF1DAC1_DEEMP - [2:1] */
  2077. #define WM8995_AIF1DAC1_DEEMP_WIDTH 2 /* AIF1DAC1_DEEMP - [2:1] */
  2078. /*
  2079. * R1057 (0x421) - AIF1 DAC1 Filters (2)
  2080. */
  2081. #define WM8995_AIF1DAC1_3D_GAIN_MASK 0x3E00 /* AIF1DAC1_3D_GAIN - [13:9] */
  2082. #define WM8995_AIF1DAC1_3D_GAIN_SHIFT 9 /* AIF1DAC1_3D_GAIN - [13:9] */
  2083. #define WM8995_AIF1DAC1_3D_GAIN_WIDTH 5 /* AIF1DAC1_3D_GAIN - [13:9] */
  2084. #define WM8995_AIF1DAC1_3D_ENA 0x0100 /* AIF1DAC1_3D_ENA */
  2085. #define WM8995_AIF1DAC1_3D_ENA_MASK 0x0100 /* AIF1DAC1_3D_ENA */
  2086. #define WM8995_AIF1DAC1_3D_ENA_SHIFT 8 /* AIF1DAC1_3D_ENA */
  2087. #define WM8995_AIF1DAC1_3D_ENA_WIDTH 1 /* AIF1DAC1_3D_ENA */
  2088. /*
  2089. * R1058 (0x422) - AIF1 DAC2 Filters (1)
  2090. */
  2091. #define WM8995_AIF1DAC2_MUTE 0x0200 /* AIF1DAC2_MUTE */
  2092. #define WM8995_AIF1DAC2_MUTE_MASK 0x0200 /* AIF1DAC2_MUTE */
  2093. #define WM8995_AIF1DAC2_MUTE_SHIFT 9 /* AIF1DAC2_MUTE */
  2094. #define WM8995_AIF1DAC2_MUTE_WIDTH 1 /* AIF1DAC2_MUTE */
  2095. #define WM8995_AIF1DAC2_MONO 0x0080 /* AIF1DAC2_MONO */
  2096. #define WM8995_AIF1DAC2_MONO_MASK 0x0080 /* AIF1DAC2_MONO */
  2097. #define WM8995_AIF1DAC2_MONO_SHIFT 7 /* AIF1DAC2_MONO */
  2098. #define WM8995_AIF1DAC2_MONO_WIDTH 1 /* AIF1DAC2_MONO */
  2099. #define WM8995_AIF1DAC2_MUTERATE 0x0020 /* AIF1DAC2_MUTERATE */
  2100. #define WM8995_AIF1DAC2_MUTERATE_MASK 0x0020 /* AIF1DAC2_MUTERATE */
  2101. #define WM8995_AIF1DAC2_MUTERATE_SHIFT 5 /* AIF1DAC2_MUTERATE */
  2102. #define WM8995_AIF1DAC2_MUTERATE_WIDTH 1 /* AIF1DAC2_MUTERATE */
  2103. #define WM8995_AIF1DAC2_UNMUTE_RAMP 0x0010 /* AIF1DAC2_UNMUTE_RAMP */
  2104. #define WM8995_AIF1DAC2_UNMUTE_RAMP_MASK 0x0010 /* AIF1DAC2_UNMUTE_RAMP */
  2105. #define WM8995_AIF1DAC2_UNMUTE_RAMP_SHIFT 4 /* AIF1DAC2_UNMUTE_RAMP */
  2106. #define WM8995_AIF1DAC2_UNMUTE_RAMP_WIDTH 1 /* AIF1DAC2_UNMUTE_RAMP */
  2107. #define WM8995_AIF1DAC2_DEEMP_MASK 0x0006 /* AIF1DAC2_DEEMP - [2:1] */
  2108. #define WM8995_AIF1DAC2_DEEMP_SHIFT 1 /* AIF1DAC2_DEEMP - [2:1] */
  2109. #define WM8995_AIF1DAC2_DEEMP_WIDTH 2 /* AIF1DAC2_DEEMP - [2:1] */
  2110. /*
  2111. * R1059 (0x423) - AIF1 DAC2 Filters (2)
  2112. */
  2113. #define WM8995_AIF1DAC2_3D_GAIN_MASK 0x3E00 /* AIF1DAC2_3D_GAIN - [13:9] */
  2114. #define WM8995_AIF1DAC2_3D_GAIN_SHIFT 9 /* AIF1DAC2_3D_GAIN - [13:9] */
  2115. #define WM8995_AIF1DAC2_3D_GAIN_WIDTH 5 /* AIF1DAC2_3D_GAIN - [13:9] */
  2116. #define WM8995_AIF1DAC2_3D_ENA 0x0100 /* AIF1DAC2_3D_ENA */
  2117. #define WM8995_AIF1DAC2_3D_ENA_MASK 0x0100 /* AIF1DAC2_3D_ENA */
  2118. #define WM8995_AIF1DAC2_3D_ENA_SHIFT 8 /* AIF1DAC2_3D_ENA */
  2119. #define WM8995_AIF1DAC2_3D_ENA_WIDTH 1 /* AIF1DAC2_3D_ENA */
  2120. /*
  2121. * R1088 (0x440) - AIF1 DRC1 (1)
  2122. */
  2123. #define WM8995_AIF1DRC1_SIG_DET_RMS_MASK 0xF800 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  2124. #define WM8995_AIF1DRC1_SIG_DET_RMS_SHIFT 11 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  2125. #define WM8995_AIF1DRC1_SIG_DET_RMS_WIDTH 5 /* AIF1DRC1_SIG_DET_RMS - [15:11] */
  2126. #define WM8995_AIF1DRC1_SIG_DET_PK_MASK 0x0600 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  2127. #define WM8995_AIF1DRC1_SIG_DET_PK_SHIFT 9 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  2128. #define WM8995_AIF1DRC1_SIG_DET_PK_WIDTH 2 /* AIF1DRC1_SIG_DET_PK - [10:9] */
  2129. #define WM8995_AIF1DRC1_NG_ENA 0x0100 /* AIF1DRC1_NG_ENA */
  2130. #define WM8995_AIF1DRC1_NG_ENA_MASK 0x0100 /* AIF1DRC1_NG_ENA */
  2131. #define WM8995_AIF1DRC1_NG_ENA_SHIFT 8 /* AIF1DRC1_NG_ENA */
  2132. #define WM8995_AIF1DRC1_NG_ENA_WIDTH 1 /* AIF1DRC1_NG_ENA */
  2133. #define WM8995_AIF1DRC1_SIG_DET_MODE 0x0080 /* AIF1DRC1_SIG_DET_MODE */
  2134. #define WM8995_AIF1DRC1_SIG_DET_MODE_MASK 0x0080 /* AIF1DRC1_SIG_DET_MODE */
  2135. #define WM8995_AIF1DRC1_SIG_DET_MODE_SHIFT 7 /* AIF1DRC1_SIG_DET_MODE */
  2136. #define WM8995_AIF1DRC1_SIG_DET_MODE_WIDTH 1 /* AIF1DRC1_SIG_DET_MODE */
  2137. #define WM8995_AIF1DRC1_SIG_DET 0x0040 /* AIF1DRC1_SIG_DET */
  2138. #define WM8995_AIF1DRC1_SIG_DET_MASK 0x0040 /* AIF1DRC1_SIG_DET */
  2139. #define WM8995_AIF1DRC1_SIG_DET_SHIFT 6 /* AIF1DRC1_SIG_DET */
  2140. #define WM8995_AIF1DRC1_SIG_DET_WIDTH 1 /* AIF1DRC1_SIG_DET */
  2141. #define WM8995_AIF1DRC1_KNEE2_OP_ENA 0x0020 /* AIF1DRC1_KNEE2_OP_ENA */
  2142. #define WM8995_AIF1DRC1_KNEE2_OP_ENA_MASK 0x0020 /* AIF1DRC1_KNEE2_OP_ENA */
  2143. #define WM8995_AIF1DRC1_KNEE2_OP_ENA_SHIFT 5 /* AIF1DRC1_KNEE2_OP_ENA */
  2144. #define WM8995_AIF1DRC1_KNEE2_OP_ENA_WIDTH 1 /* AIF1DRC1_KNEE2_OP_ENA */
  2145. #define WM8995_AIF1DRC1_QR 0x0010 /* AIF1DRC1_QR */
  2146. #define WM8995_AIF1DRC1_QR_MASK 0x0010 /* AIF1DRC1_QR */
  2147. #define WM8995_AIF1DRC1_QR_SHIFT 4 /* AIF1DRC1_QR */
  2148. #define WM8995_AIF1DRC1_QR_WIDTH 1 /* AIF1DRC1_QR */
  2149. #define WM8995_AIF1DRC1_ANTICLIP 0x0008 /* AIF1DRC1_ANTICLIP */
  2150. #define WM8995_AIF1DRC1_ANTICLIP_MASK 0x0008 /* AIF1DRC1_ANTICLIP */
  2151. #define WM8995_AIF1DRC1_ANTICLIP_SHIFT 3 /* AIF1DRC1_ANTICLIP */
  2152. #define WM8995_AIF1DRC1_ANTICLIP_WIDTH 1 /* AIF1DRC1_ANTICLIP */
  2153. #define WM8995_AIF1DAC1_DRC_ENA 0x0004 /* AIF1DAC1_DRC_ENA */
  2154. #define WM8995_AIF1DAC1_DRC_ENA_MASK 0x0004 /* AIF1DAC1_DRC_ENA */
  2155. #define WM8995_AIF1DAC1_DRC_ENA_SHIFT 2 /* AIF1DAC1_DRC_ENA */
  2156. #define WM8995_AIF1DAC1_DRC_ENA_WIDTH 1 /* AIF1DAC1_DRC_ENA */
  2157. #define WM8995_AIF1ADC1L_DRC_ENA 0x0002 /* AIF1ADC1L_DRC_ENA */
  2158. #define WM8995_AIF1ADC1L_DRC_ENA_MASK 0x0002 /* AIF1ADC1L_DRC_ENA */
  2159. #define WM8995_AIF1ADC1L_DRC_ENA_SHIFT 1 /* AIF1ADC1L_DRC_ENA */
  2160. #define WM8995_AIF1ADC1L_DRC_ENA_WIDTH 1 /* AIF1ADC1L_DRC_ENA */
  2161. #define WM8995_AIF1ADC1R_DRC_ENA 0x0001 /* AIF1ADC1R_DRC_ENA */
  2162. #define WM8995_AIF1ADC1R_DRC_ENA_MASK 0x0001 /* AIF1ADC1R_DRC_ENA */
  2163. #define WM8995_AIF1ADC1R_DRC_ENA_SHIFT 0 /* AIF1ADC1R_DRC_ENA */
  2164. #define WM8995_AIF1ADC1R_DRC_ENA_WIDTH 1 /* AIF1ADC1R_DRC_ENA */
  2165. /*
  2166. * R1089 (0x441) - AIF1 DRC1 (2)
  2167. */
  2168. #define WM8995_AIF1DRC1_ATK_MASK 0x1E00 /* AIF1DRC1_ATK - [12:9] */
  2169. #define WM8995_AIF1DRC1_ATK_SHIFT 9 /* AIF1DRC1_ATK - [12:9] */
  2170. #define WM8995_AIF1DRC1_ATK_WIDTH 4 /* AIF1DRC1_ATK - [12:9] */
  2171. #define WM8995_AIF1DRC1_DCY_MASK 0x01E0 /* AIF1DRC1_DCY - [8:5] */
  2172. #define WM8995_AIF1DRC1_DCY_SHIFT 5 /* AIF1DRC1_DCY - [8:5] */
  2173. #define WM8995_AIF1DRC1_DCY_WIDTH 4 /* AIF1DRC1_DCY - [8:5] */
  2174. #define WM8995_AIF1DRC1_MINGAIN_MASK 0x001C /* AIF1DRC1_MINGAIN - [4:2] */
  2175. #define WM8995_AIF1DRC1_MINGAIN_SHIFT 2 /* AIF1DRC1_MINGAIN - [4:2] */
  2176. #define WM8995_AIF1DRC1_MINGAIN_WIDTH 3 /* AIF1DRC1_MINGAIN - [4:2] */
  2177. #define WM8995_AIF1DRC1_MAXGAIN_MASK 0x0003 /* AIF1DRC1_MAXGAIN - [1:0] */
  2178. #define WM8995_AIF1DRC1_MAXGAIN_SHIFT 0 /* AIF1DRC1_MAXGAIN - [1:0] */
  2179. #define WM8995_AIF1DRC1_MAXGAIN_WIDTH 2 /* AIF1DRC1_MAXGAIN - [1:0] */
  2180. /*
  2181. * R1090 (0x442) - AIF1 DRC1 (3)
  2182. */
  2183. #define WM8995_AIF1DRC1_NG_MINGAIN_MASK 0xF000 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  2184. #define WM8995_AIF1DRC1_NG_MINGAIN_SHIFT 12 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  2185. #define WM8995_AIF1DRC1_NG_MINGAIN_WIDTH 4 /* AIF1DRC1_NG_MINGAIN - [15:12] */
  2186. #define WM8995_AIF1DRC1_NG_EXP_MASK 0x0C00 /* AIF1DRC1_NG_EXP - [11:10] */
  2187. #define WM8995_AIF1DRC1_NG_EXP_SHIFT 10 /* AIF1DRC1_NG_EXP - [11:10] */
  2188. #define WM8995_AIF1DRC1_NG_EXP_WIDTH 2 /* AIF1DRC1_NG_EXP - [11:10] */
  2189. #define WM8995_AIF1DRC1_QR_THR_MASK 0x0300 /* AIF1DRC1_QR_THR - [9:8] */
  2190. #define WM8995_AIF1DRC1_QR_THR_SHIFT 8 /* AIF1DRC1_QR_THR - [9:8] */
  2191. #define WM8995_AIF1DRC1_QR_THR_WIDTH 2 /* AIF1DRC1_QR_THR - [9:8] */
  2192. #define WM8995_AIF1DRC1_QR_DCY_MASK 0x00C0 /* AIF1DRC1_QR_DCY - [7:6] */
  2193. #define WM8995_AIF1DRC1_QR_DCY_SHIFT 6 /* AIF1DRC1_QR_DCY - [7:6] */
  2194. #define WM8995_AIF1DRC1_QR_DCY_WIDTH 2 /* AIF1DRC1_QR_DCY - [7:6] */
  2195. #define WM8995_AIF1DRC1_HI_COMP_MASK 0x0038 /* AIF1DRC1_HI_COMP - [5:3] */
  2196. #define WM8995_AIF1DRC1_HI_COMP_SHIFT 3 /* AIF1DRC1_HI_COMP - [5:3] */
  2197. #define WM8995_AIF1DRC1_HI_COMP_WIDTH 3 /* AIF1DRC1_HI_COMP - [5:3] */
  2198. #define WM8995_AIF1DRC1_LO_COMP_MASK 0x0007 /* AIF1DRC1_LO_COMP - [2:0] */
  2199. #define WM8995_AIF1DRC1_LO_COMP_SHIFT 0 /* AIF1DRC1_LO_COMP - [2:0] */
  2200. #define WM8995_AIF1DRC1_LO_COMP_WIDTH 3 /* AIF1DRC1_LO_COMP - [2:0] */
  2201. /*
  2202. * R1091 (0x443) - AIF1 DRC1 (4)
  2203. */
  2204. #define WM8995_AIF1DRC1_KNEE_IP_MASK 0x07E0 /* AIF1DRC1_KNEE_IP - [10:5] */
  2205. #define WM8995_AIF1DRC1_KNEE_IP_SHIFT 5 /* AIF1DRC1_KNEE_IP - [10:5] */
  2206. #define WM8995_AIF1DRC1_KNEE_IP_WIDTH 6 /* AIF1DRC1_KNEE_IP - [10:5] */
  2207. #define WM8995_AIF1DRC1_KNEE_OP_MASK 0x001F /* AIF1DRC1_KNEE_OP - [4:0] */
  2208. #define WM8995_AIF1DRC1_KNEE_OP_SHIFT 0 /* AIF1DRC1_KNEE_OP - [4:0] */
  2209. #define WM8995_AIF1DRC1_KNEE_OP_WIDTH 5 /* AIF1DRC1_KNEE_OP - [4:0] */
  2210. /*
  2211. * R1092 (0x444) - AIF1 DRC1 (5)
  2212. */
  2213. #define WM8995_AIF1DRC1_KNEE2_IP_MASK 0x03E0 /* AIF1DRC1_KNEE2_IP - [9:5] */
  2214. #define WM8995_AIF1DRC1_KNEE2_IP_SHIFT 5 /* AIF1DRC1_KNEE2_IP - [9:5] */
  2215. #define WM8995_AIF1DRC1_KNEE2_IP_WIDTH 5 /* AIF1DRC1_KNEE2_IP - [9:5] */
  2216. #define WM8995_AIF1DRC1_KNEE2_OP_MASK 0x001F /* AIF1DRC1_KNEE2_OP - [4:0] */
  2217. #define WM8995_AIF1DRC1_KNEE2_OP_SHIFT 0 /* AIF1DRC1_KNEE2_OP - [4:0] */
  2218. #define WM8995_AIF1DRC1_KNEE2_OP_WIDTH 5 /* AIF1DRC1_KNEE2_OP - [4:0] */
  2219. /*
  2220. * R1104 (0x450) - AIF1 DRC2 (1)
  2221. */
  2222. #define WM8995_AIF1DRC2_SIG_DET_RMS_MASK 0xF800 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  2223. #define WM8995_AIF1DRC2_SIG_DET_RMS_SHIFT 11 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  2224. #define WM8995_AIF1DRC2_SIG_DET_RMS_WIDTH 5 /* AIF1DRC2_SIG_DET_RMS - [15:11] */
  2225. #define WM8995_AIF1DRC2_SIG_DET_PK_MASK 0x0600 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  2226. #define WM8995_AIF1DRC2_SIG_DET_PK_SHIFT 9 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  2227. #define WM8995_AIF1DRC2_SIG_DET_PK_WIDTH 2 /* AIF1DRC2_SIG_DET_PK - [10:9] */
  2228. #define WM8995_AIF1DRC2_NG_ENA 0x0100 /* AIF1DRC2_NG_ENA */
  2229. #define WM8995_AIF1DRC2_NG_ENA_MASK 0x0100 /* AIF1DRC2_NG_ENA */
  2230. #define WM8995_AIF1DRC2_NG_ENA_SHIFT 8 /* AIF1DRC2_NG_ENA */
  2231. #define WM8995_AIF1DRC2_NG_ENA_WIDTH 1 /* AIF1DRC2_NG_ENA */
  2232. #define WM8995_AIF1DRC2_SIG_DET_MODE 0x0080 /* AIF1DRC2_SIG_DET_MODE */
  2233. #define WM8995_AIF1DRC2_SIG_DET_MODE_MASK 0x0080 /* AIF1DRC2_SIG_DET_MODE */
  2234. #define WM8995_AIF1DRC2_SIG_DET_MODE_SHIFT 7 /* AIF1DRC2_SIG_DET_MODE */
  2235. #define WM8995_AIF1DRC2_SIG_DET_MODE_WIDTH 1 /* AIF1DRC2_SIG_DET_MODE */
  2236. #define WM8995_AIF1DRC2_SIG_DET 0x0040 /* AIF1DRC2_SIG_DET */
  2237. #define WM8995_AIF1DRC2_SIG_DET_MASK 0x0040 /* AIF1DRC2_SIG_DET */
  2238. #define WM8995_AIF1DRC2_SIG_DET_SHIFT 6 /* AIF1DRC2_SIG_DET */
  2239. #define WM8995_AIF1DRC2_SIG_DET_WIDTH 1 /* AIF1DRC2_SIG_DET */
  2240. #define WM8995_AIF1DRC2_KNEE2_OP_ENA 0x0020 /* AIF1DRC2_KNEE2_OP_ENA */
  2241. #define WM8995_AIF1DRC2_KNEE2_OP_ENA_MASK 0x0020 /* AIF1DRC2_KNEE2_OP_ENA */
  2242. #define WM8995_AIF1DRC2_KNEE2_OP_ENA_SHIFT 5 /* AIF1DRC2_KNEE2_OP_ENA */
  2243. #define WM8995_AIF1DRC2_KNEE2_OP_ENA_WIDTH 1 /* AIF1DRC2_KNEE2_OP_ENA */
  2244. #define WM8995_AIF1DRC2_QR 0x0010 /* AIF1DRC2_QR */
  2245. #define WM8995_AIF1DRC2_QR_MASK 0x0010 /* AIF1DRC2_QR */
  2246. #define WM8995_AIF1DRC2_QR_SHIFT 4 /* AIF1DRC2_QR */
  2247. #define WM8995_AIF1DRC2_QR_WIDTH 1 /* AIF1DRC2_QR */
  2248. #define WM8995_AIF1DRC2_ANTICLIP 0x0008 /* AIF1DRC2_ANTICLIP */
  2249. #define WM8995_AIF1DRC2_ANTICLIP_MASK 0x0008 /* AIF1DRC2_ANTICLIP */
  2250. #define WM8995_AIF1DRC2_ANTICLIP_SHIFT 3 /* AIF1DRC2_ANTICLIP */
  2251. #define WM8995_AIF1DRC2_ANTICLIP_WIDTH 1 /* AIF1DRC2_ANTICLIP */
  2252. #define WM8995_AIF1DAC2_DRC_ENA 0x0004 /* AIF1DAC2_DRC_ENA */
  2253. #define WM8995_AIF1DAC2_DRC_ENA_MASK 0x0004 /* AIF1DAC2_DRC_ENA */
  2254. #define WM8995_AIF1DAC2_DRC_ENA_SHIFT 2 /* AIF1DAC2_DRC_ENA */
  2255. #define WM8995_AIF1DAC2_DRC_ENA_WIDTH 1 /* AIF1DAC2_DRC_ENA */
  2256. #define WM8995_AIF1ADC2L_DRC_ENA 0x0002 /* AIF1ADC2L_DRC_ENA */
  2257. #define WM8995_AIF1ADC2L_DRC_ENA_MASK 0x0002 /* AIF1ADC2L_DRC_ENA */
  2258. #define WM8995_AIF1ADC2L_DRC_ENA_SHIFT 1 /* AIF1ADC2L_DRC_ENA */
  2259. #define WM8995_AIF1ADC2L_DRC_ENA_WIDTH 1 /* AIF1ADC2L_DRC_ENA */
  2260. #define WM8995_AIF1ADC2R_DRC_ENA 0x0001 /* AIF1ADC2R_DRC_ENA */
  2261. #define WM8995_AIF1ADC2R_DRC_ENA_MASK 0x0001 /* AIF1ADC2R_DRC_ENA */
  2262. #define WM8995_AIF1ADC2R_DRC_ENA_SHIFT 0 /* AIF1ADC2R_DRC_ENA */
  2263. #define WM8995_AIF1ADC2R_DRC_ENA_WIDTH 1 /* AIF1ADC2R_DRC_ENA */
  2264. /*
  2265. * R1105 (0x451) - AIF1 DRC2 (2)
  2266. */
  2267. #define WM8995_AIF1DRC2_ATK_MASK 0x1E00 /* AIF1DRC2_ATK - [12:9] */
  2268. #define WM8995_AIF1DRC2_ATK_SHIFT 9 /* AIF1DRC2_ATK - [12:9] */
  2269. #define WM8995_AIF1DRC2_ATK_WIDTH 4 /* AIF1DRC2_ATK - [12:9] */
  2270. #define WM8995_AIF1DRC2_DCY_MASK 0x01E0 /* AIF1DRC2_DCY - [8:5] */
  2271. #define WM8995_AIF1DRC2_DCY_SHIFT 5 /* AIF1DRC2_DCY - [8:5] */
  2272. #define WM8995_AIF1DRC2_DCY_WIDTH 4 /* AIF1DRC2_DCY - [8:5] */
  2273. #define WM8995_AIF1DRC2_MINGAIN_MASK 0x001C /* AIF1DRC2_MINGAIN - [4:2] */
  2274. #define WM8995_AIF1DRC2_MINGAIN_SHIFT 2 /* AIF1DRC2_MINGAIN - [4:2] */
  2275. #define WM8995_AIF1DRC2_MINGAIN_WIDTH 3 /* AIF1DRC2_MINGAIN - [4:2] */
  2276. #define WM8995_AIF1DRC2_MAXGAIN_MASK 0x0003 /* AIF1DRC2_MAXGAIN - [1:0] */
  2277. #define WM8995_AIF1DRC2_MAXGAIN_SHIFT 0 /* AIF1DRC2_MAXGAIN - [1:0] */
  2278. #define WM8995_AIF1DRC2_MAXGAIN_WIDTH 2 /* AIF1DRC2_MAXGAIN - [1:0] */
  2279. /*
  2280. * R1106 (0x452) - AIF1 DRC2 (3)
  2281. */
  2282. #define WM8995_AIF1DRC2_NG_MINGAIN_MASK 0xF000 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  2283. #define WM8995_AIF1DRC2_NG_MINGAIN_SHIFT 12 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  2284. #define WM8995_AIF1DRC2_NG_MINGAIN_WIDTH 4 /* AIF1DRC2_NG_MINGAIN - [15:12] */
  2285. #define WM8995_AIF1DRC2_NG_EXP_MASK 0x0C00 /* AIF1DRC2_NG_EXP - [11:10] */
  2286. #define WM8995_AIF1DRC2_NG_EXP_SHIFT 10 /* AIF1DRC2_NG_EXP - [11:10] */
  2287. #define WM8995_AIF1DRC2_NG_EXP_WIDTH 2 /* AIF1DRC2_NG_EXP - [11:10] */
  2288. #define WM8995_AIF1DRC2_QR_THR_MASK 0x0300 /* AIF1DRC2_QR_THR - [9:8] */
  2289. #define WM8995_AIF1DRC2_QR_THR_SHIFT 8 /* AIF1DRC2_QR_THR - [9:8] */
  2290. #define WM8995_AIF1DRC2_QR_THR_WIDTH 2 /* AIF1DRC2_QR_THR - [9:8] */
  2291. #define WM8995_AIF1DRC2_QR_DCY_MASK 0x00C0 /* AIF1DRC2_QR_DCY - [7:6] */
  2292. #define WM8995_AIF1DRC2_QR_DCY_SHIFT 6 /* AIF1DRC2_QR_DCY - [7:6] */
  2293. #define WM8995_AIF1DRC2_QR_DCY_WIDTH 2 /* AIF1DRC2_QR_DCY - [7:6] */
  2294. #define WM8995_AIF1DRC2_HI_COMP_MASK 0x0038 /* AIF1DRC2_HI_COMP - [5:3] */
  2295. #define WM8995_AIF1DRC2_HI_COMP_SHIFT 3 /* AIF1DRC2_HI_COMP - [5:3] */
  2296. #define WM8995_AIF1DRC2_HI_COMP_WIDTH 3 /* AIF1DRC2_HI_COMP - [5:3] */
  2297. #define WM8995_AIF1DRC2_LO_COMP_MASK 0x0007 /* AIF1DRC2_LO_COMP - [2:0] */
  2298. #define WM8995_AIF1DRC2_LO_COMP_SHIFT 0 /* AIF1DRC2_LO_COMP - [2:0] */
  2299. #define WM8995_AIF1DRC2_LO_COMP_WIDTH 3 /* AIF1DRC2_LO_COMP - [2:0] */
  2300. /*
  2301. * R1107 (0x453) - AIF1 DRC2 (4)
  2302. */
  2303. #define WM8995_AIF1DRC2_KNEE_IP_MASK 0x07E0 /* AIF1DRC2_KNEE_IP - [10:5] */
  2304. #define WM8995_AIF1DRC2_KNEE_IP_SHIFT 5 /* AIF1DRC2_KNEE_IP - [10:5] */
  2305. #define WM8995_AIF1DRC2_KNEE_IP_WIDTH 6 /* AIF1DRC2_KNEE_IP - [10:5] */
  2306. #define WM8995_AIF1DRC2_KNEE_OP_MASK 0x001F /* AIF1DRC2_KNEE_OP - [4:0] */
  2307. #define WM8995_AIF1DRC2_KNEE_OP_SHIFT 0 /* AIF1DRC2_KNEE_OP - [4:0] */
  2308. #define WM8995_AIF1DRC2_KNEE_OP_WIDTH 5 /* AIF1DRC2_KNEE_OP - [4:0] */
  2309. /*
  2310. * R1108 (0x454) - AIF1 DRC2 (5)
  2311. */
  2312. #define WM8995_AIF1DRC2_KNEE2_IP_MASK 0x03E0 /* AIF1DRC2_KNEE2_IP - [9:5] */
  2313. #define WM8995_AIF1DRC2_KNEE2_IP_SHIFT 5 /* AIF1DRC2_KNEE2_IP - [9:5] */
  2314. #define WM8995_AIF1DRC2_KNEE2_IP_WIDTH 5 /* AIF1DRC2_KNEE2_IP - [9:5] */
  2315. #define WM8995_AIF1DRC2_KNEE2_OP_MASK 0x001F /* AIF1DRC2_KNEE2_OP - [4:0] */
  2316. #define WM8995_AIF1DRC2_KNEE2_OP_SHIFT 0 /* AIF1DRC2_KNEE2_OP - [4:0] */
  2317. #define WM8995_AIF1DRC2_KNEE2_OP_WIDTH 5 /* AIF1DRC2_KNEE2_OP - [4:0] */
  2318. /*
  2319. * R1152 (0x480) - AIF1 DAC1 EQ Gains (1)
  2320. */
  2321. #define WM8995_AIF1DAC1_EQ_B1_GAIN_MASK 0xF800 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  2322. #define WM8995_AIF1DAC1_EQ_B1_GAIN_SHIFT 11 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  2323. #define WM8995_AIF1DAC1_EQ_B1_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B1_GAIN - [15:11] */
  2324. #define WM8995_AIF1DAC1_EQ_B2_GAIN_MASK 0x07C0 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  2325. #define WM8995_AIF1DAC1_EQ_B2_GAIN_SHIFT 6 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  2326. #define WM8995_AIF1DAC1_EQ_B2_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B2_GAIN - [10:6] */
  2327. #define WM8995_AIF1DAC1_EQ_B3_GAIN_MASK 0x003E /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  2328. #define WM8995_AIF1DAC1_EQ_B3_GAIN_SHIFT 1 /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  2329. #define WM8995_AIF1DAC1_EQ_B3_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B3_GAIN - [5:1] */
  2330. #define WM8995_AIF1DAC1_EQ_ENA 0x0001 /* AIF1DAC1_EQ_ENA */
  2331. #define WM8995_AIF1DAC1_EQ_ENA_MASK 0x0001 /* AIF1DAC1_EQ_ENA */
  2332. #define WM8995_AIF1DAC1_EQ_ENA_SHIFT 0 /* AIF1DAC1_EQ_ENA */
  2333. #define WM8995_AIF1DAC1_EQ_ENA_WIDTH 1 /* AIF1DAC1_EQ_ENA */
  2334. /*
  2335. * R1153 (0x481) - AIF1 DAC1 EQ Gains (2)
  2336. */
  2337. #define WM8995_AIF1DAC1_EQ_B4_GAIN_MASK 0xF800 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  2338. #define WM8995_AIF1DAC1_EQ_B4_GAIN_SHIFT 11 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  2339. #define WM8995_AIF1DAC1_EQ_B4_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B4_GAIN - [15:11] */
  2340. #define WM8995_AIF1DAC1_EQ_B5_GAIN_MASK 0x07C0 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  2341. #define WM8995_AIF1DAC1_EQ_B5_GAIN_SHIFT 6 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  2342. #define WM8995_AIF1DAC1_EQ_B5_GAIN_WIDTH 5 /* AIF1DAC1_EQ_B5_GAIN - [10:6] */
  2343. /*
  2344. * R1154 (0x482) - AIF1 DAC1 EQ Band 1 A
  2345. */
  2346. #define WM8995_AIF1DAC1_EQ_B1_A_MASK 0xFFFF /* AIF1DAC1_EQ_B1_A - [15:0] */
  2347. #define WM8995_AIF1DAC1_EQ_B1_A_SHIFT 0 /* AIF1DAC1_EQ_B1_A - [15:0] */
  2348. #define WM8995_AIF1DAC1_EQ_B1_A_WIDTH 16 /* AIF1DAC1_EQ_B1_A - [15:0] */
  2349. /*
  2350. * R1155 (0x483) - AIF1 DAC1 EQ Band 1 B
  2351. */
  2352. #define WM8995_AIF1DAC1_EQ_B1_B_MASK 0xFFFF /* AIF1DAC1_EQ_B1_B - [15:0] */
  2353. #define WM8995_AIF1DAC1_EQ_B1_B_SHIFT 0 /* AIF1DAC1_EQ_B1_B - [15:0] */
  2354. #define WM8995_AIF1DAC1_EQ_B1_B_WIDTH 16 /* AIF1DAC1_EQ_B1_B - [15:0] */
  2355. /*
  2356. * R1156 (0x484) - AIF1 DAC1 EQ Band 1 PG
  2357. */
  2358. #define WM8995_AIF1DAC1_EQ_B1_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B1_PG - [15:0] */
  2359. #define WM8995_AIF1DAC1_EQ_B1_PG_SHIFT 0 /* AIF1DAC1_EQ_B1_PG - [15:0] */
  2360. #define WM8995_AIF1DAC1_EQ_B1_PG_WIDTH 16 /* AIF1DAC1_EQ_B1_PG - [15:0] */
  2361. /*
  2362. * R1157 (0x485) - AIF1 DAC1 EQ Band 2 A
  2363. */
  2364. #define WM8995_AIF1DAC1_EQ_B2_A_MASK 0xFFFF /* AIF1DAC1_EQ_B2_A - [15:0] */
  2365. #define WM8995_AIF1DAC1_EQ_B2_A_SHIFT 0 /* AIF1DAC1_EQ_B2_A - [15:0] */
  2366. #define WM8995_AIF1DAC1_EQ_B2_A_WIDTH 16 /* AIF1DAC1_EQ_B2_A - [15:0] */
  2367. /*
  2368. * R1158 (0x486) - AIF1 DAC1 EQ Band 2 B
  2369. */
  2370. #define WM8995_AIF1DAC1_EQ_B2_B_MASK 0xFFFF /* AIF1DAC1_EQ_B2_B - [15:0] */
  2371. #define WM8995_AIF1DAC1_EQ_B2_B_SHIFT 0 /* AIF1DAC1_EQ_B2_B - [15:0] */
  2372. #define WM8995_AIF1DAC1_EQ_B2_B_WIDTH 16 /* AIF1DAC1_EQ_B2_B - [15:0] */
  2373. /*
  2374. * R1159 (0x487) - AIF1 DAC1 EQ Band 2 C
  2375. */
  2376. #define WM8995_AIF1DAC1_EQ_B2_C_MASK 0xFFFF /* AIF1DAC1_EQ_B2_C - [15:0] */
  2377. #define WM8995_AIF1DAC1_EQ_B2_C_SHIFT 0 /* AIF1DAC1_EQ_B2_C - [15:0] */
  2378. #define WM8995_AIF1DAC1_EQ_B2_C_WIDTH 16 /* AIF1DAC1_EQ_B2_C - [15:0] */
  2379. /*
  2380. * R1160 (0x488) - AIF1 DAC1 EQ Band 2 PG
  2381. */
  2382. #define WM8995_AIF1DAC1_EQ_B2_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B2_PG - [15:0] */
  2383. #define WM8995_AIF1DAC1_EQ_B2_PG_SHIFT 0 /* AIF1DAC1_EQ_B2_PG - [15:0] */
  2384. #define WM8995_AIF1DAC1_EQ_B2_PG_WIDTH 16 /* AIF1DAC1_EQ_B2_PG - [15:0] */
  2385. /*
  2386. * R1161 (0x489) - AIF1 DAC1 EQ Band 3 A
  2387. */
  2388. #define WM8995_AIF1DAC1_EQ_B3_A_MASK 0xFFFF /* AIF1DAC1_EQ_B3_A - [15:0] */
  2389. #define WM8995_AIF1DAC1_EQ_B3_A_SHIFT 0 /* AIF1DAC1_EQ_B3_A - [15:0] */
  2390. #define WM8995_AIF1DAC1_EQ_B3_A_WIDTH 16 /* AIF1DAC1_EQ_B3_A - [15:0] */
  2391. /*
  2392. * R1162 (0x48A) - AIF1 DAC1 EQ Band 3 B
  2393. */
  2394. #define WM8995_AIF1DAC1_EQ_B3_B_MASK 0xFFFF /* AIF1DAC1_EQ_B3_B - [15:0] */
  2395. #define WM8995_AIF1DAC1_EQ_B3_B_SHIFT 0 /* AIF1DAC1_EQ_B3_B - [15:0] */
  2396. #define WM8995_AIF1DAC1_EQ_B3_B_WIDTH 16 /* AIF1DAC1_EQ_B3_B - [15:0] */
  2397. /*
  2398. * R1163 (0x48B) - AIF1 DAC1 EQ Band 3 C
  2399. */
  2400. #define WM8995_AIF1DAC1_EQ_B3_C_MASK 0xFFFF /* AIF1DAC1_EQ_B3_C - [15:0] */
  2401. #define WM8995_AIF1DAC1_EQ_B3_C_SHIFT 0 /* AIF1DAC1_EQ_B3_C - [15:0] */
  2402. #define WM8995_AIF1DAC1_EQ_B3_C_WIDTH 16 /* AIF1DAC1_EQ_B3_C - [15:0] */
  2403. /*
  2404. * R1164 (0x48C) - AIF1 DAC1 EQ Band 3 PG
  2405. */
  2406. #define WM8995_AIF1DAC1_EQ_B3_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B3_PG - [15:0] */
  2407. #define WM8995_AIF1DAC1_EQ_B3_PG_SHIFT 0 /* AIF1DAC1_EQ_B3_PG - [15:0] */
  2408. #define WM8995_AIF1DAC1_EQ_B3_PG_WIDTH 16 /* AIF1DAC1_EQ_B3_PG - [15:0] */
  2409. /*
  2410. * R1165 (0x48D) - AIF1 DAC1 EQ Band 4 A
  2411. */
  2412. #define WM8995_AIF1DAC1_EQ_B4_A_MASK 0xFFFF /* AIF1DAC1_EQ_B4_A - [15:0] */
  2413. #define WM8995_AIF1DAC1_EQ_B4_A_SHIFT 0 /* AIF1DAC1_EQ_B4_A - [15:0] */
  2414. #define WM8995_AIF1DAC1_EQ_B4_A_WIDTH 16 /* AIF1DAC1_EQ_B4_A - [15:0] */
  2415. /*
  2416. * R1166 (0x48E) - AIF1 DAC1 EQ Band 4 B
  2417. */
  2418. #define WM8995_AIF1DAC1_EQ_B4_B_MASK 0xFFFF /* AIF1DAC1_EQ_B4_B - [15:0] */
  2419. #define WM8995_AIF1DAC1_EQ_B4_B_SHIFT 0 /* AIF1DAC1_EQ_B4_B - [15:0] */
  2420. #define WM8995_AIF1DAC1_EQ_B4_B_WIDTH 16 /* AIF1DAC1_EQ_B4_B - [15:0] */
  2421. /*
  2422. * R1167 (0x48F) - AIF1 DAC1 EQ Band 4 C
  2423. */
  2424. #define WM8995_AIF1DAC1_EQ_B4_C_MASK 0xFFFF /* AIF1DAC1_EQ_B4_C - [15:0] */
  2425. #define WM8995_AIF1DAC1_EQ_B4_C_SHIFT 0 /* AIF1DAC1_EQ_B4_C - [15:0] */
  2426. #define WM8995_AIF1DAC1_EQ_B4_C_WIDTH 16 /* AIF1DAC1_EQ_B4_C - [15:0] */
  2427. /*
  2428. * R1168 (0x490) - AIF1 DAC1 EQ Band 4 PG
  2429. */
  2430. #define WM8995_AIF1DAC1_EQ_B4_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B4_PG - [15:0] */
  2431. #define WM8995_AIF1DAC1_EQ_B4_PG_SHIFT 0 /* AIF1DAC1_EQ_B4_PG - [15:0] */
  2432. #define WM8995_AIF1DAC1_EQ_B4_PG_WIDTH 16 /* AIF1DAC1_EQ_B4_PG - [15:0] */
  2433. /*
  2434. * R1169 (0x491) - AIF1 DAC1 EQ Band 5 A
  2435. */
  2436. #define WM8995_AIF1DAC1_EQ_B5_A_MASK 0xFFFF /* AIF1DAC1_EQ_B5_A - [15:0] */
  2437. #define WM8995_AIF1DAC1_EQ_B5_A_SHIFT 0 /* AIF1DAC1_EQ_B5_A - [15:0] */
  2438. #define WM8995_AIF1DAC1_EQ_B5_A_WIDTH 16 /* AIF1DAC1_EQ_B5_A - [15:0] */
  2439. /*
  2440. * R1170 (0x492) - AIF1 DAC1 EQ Band 5 B
  2441. */
  2442. #define WM8995_AIF1DAC1_EQ_B5_B_MASK 0xFFFF /* AIF1DAC1_EQ_B5_B - [15:0] */
  2443. #define WM8995_AIF1DAC1_EQ_B5_B_SHIFT 0 /* AIF1DAC1_EQ_B5_B - [15:0] */
  2444. #define WM8995_AIF1DAC1_EQ_B5_B_WIDTH 16 /* AIF1DAC1_EQ_B5_B - [15:0] */
  2445. /*
  2446. * R1171 (0x493) - AIF1 DAC1 EQ Band 5 PG
  2447. */
  2448. #define WM8995_AIF1DAC1_EQ_B5_PG_MASK 0xFFFF /* AIF1DAC1_EQ_B5_PG - [15:0] */
  2449. #define WM8995_AIF1DAC1_EQ_B5_PG_SHIFT 0 /* AIF1DAC1_EQ_B5_PG - [15:0] */
  2450. #define WM8995_AIF1DAC1_EQ_B5_PG_WIDTH 16 /* AIF1DAC1_EQ_B5_PG - [15:0] */
  2451. /*
  2452. * R1184 (0x4A0) - AIF1 DAC2 EQ Gains (1)
  2453. */
  2454. #define WM8995_AIF1DAC2_EQ_B1_GAIN_MASK 0xF800 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  2455. #define WM8995_AIF1DAC2_EQ_B1_GAIN_SHIFT 11 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  2456. #define WM8995_AIF1DAC2_EQ_B1_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B1_GAIN - [15:11] */
  2457. #define WM8995_AIF1DAC2_EQ_B2_GAIN_MASK 0x07C0 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  2458. #define WM8995_AIF1DAC2_EQ_B2_GAIN_SHIFT 6 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  2459. #define WM8995_AIF1DAC2_EQ_B2_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B2_GAIN - [10:6] */
  2460. #define WM8995_AIF1DAC2_EQ_B3_GAIN_MASK 0x003E /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  2461. #define WM8995_AIF1DAC2_EQ_B3_GAIN_SHIFT 1 /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  2462. #define WM8995_AIF1DAC2_EQ_B3_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B3_GAIN - [5:1] */
  2463. #define WM8995_AIF1DAC2_EQ_ENA 0x0001 /* AIF1DAC2_EQ_ENA */
  2464. #define WM8995_AIF1DAC2_EQ_ENA_MASK 0x0001 /* AIF1DAC2_EQ_ENA */
  2465. #define WM8995_AIF1DAC2_EQ_ENA_SHIFT 0 /* AIF1DAC2_EQ_ENA */
  2466. #define WM8995_AIF1DAC2_EQ_ENA_WIDTH 1 /* AIF1DAC2_EQ_ENA */
  2467. /*
  2468. * R1185 (0x4A1) - AIF1 DAC2 EQ Gains (2)
  2469. */
  2470. #define WM8995_AIF1DAC2_EQ_B4_GAIN_MASK 0xF800 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  2471. #define WM8995_AIF1DAC2_EQ_B4_GAIN_SHIFT 11 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  2472. #define WM8995_AIF1DAC2_EQ_B4_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B4_GAIN - [15:11] */
  2473. #define WM8995_AIF1DAC2_EQ_B5_GAIN_MASK 0x07C0 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  2474. #define WM8995_AIF1DAC2_EQ_B5_GAIN_SHIFT 6 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  2475. #define WM8995_AIF1DAC2_EQ_B5_GAIN_WIDTH 5 /* AIF1DAC2_EQ_B5_GAIN - [10:6] */
  2476. /*
  2477. * R1186 (0x4A2) - AIF1 DAC2 EQ Band 1 A
  2478. */
  2479. #define WM8995_AIF1DAC2_EQ_B1_A_MASK 0xFFFF /* AIF1DAC2_EQ_B1_A - [15:0] */
  2480. #define WM8995_AIF1DAC2_EQ_B1_A_SHIFT 0 /* AIF1DAC2_EQ_B1_A - [15:0] */
  2481. #define WM8995_AIF1DAC2_EQ_B1_A_WIDTH 16 /* AIF1DAC2_EQ_B1_A - [15:0] */
  2482. /*
  2483. * R1187 (0x4A3) - AIF1 DAC2 EQ Band 1 B
  2484. */
  2485. #define WM8995_AIF1DAC2_EQ_B1_B_MASK 0xFFFF /* AIF1DAC2_EQ_B1_B - [15:0] */
  2486. #define WM8995_AIF1DAC2_EQ_B1_B_SHIFT 0 /* AIF1DAC2_EQ_B1_B - [15:0] */
  2487. #define WM8995_AIF1DAC2_EQ_B1_B_WIDTH 16 /* AIF1DAC2_EQ_B1_B - [15:0] */
  2488. /*
  2489. * R1188 (0x4A4) - AIF1 DAC2 EQ Band 1 PG
  2490. */
  2491. #define WM8995_AIF1DAC2_EQ_B1_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B1_PG - [15:0] */
  2492. #define WM8995_AIF1DAC2_EQ_B1_PG_SHIFT 0 /* AIF1DAC2_EQ_B1_PG - [15:0] */
  2493. #define WM8995_AIF1DAC2_EQ_B1_PG_WIDTH 16 /* AIF1DAC2_EQ_B1_PG - [15:0] */
  2494. /*
  2495. * R1189 (0x4A5) - AIF1 DAC2 EQ Band 2 A
  2496. */
  2497. #define WM8995_AIF1DAC2_EQ_B2_A_MASK 0xFFFF /* AIF1DAC2_EQ_B2_A - [15:0] */
  2498. #define WM8995_AIF1DAC2_EQ_B2_A_SHIFT 0 /* AIF1DAC2_EQ_B2_A - [15:0] */
  2499. #define WM8995_AIF1DAC2_EQ_B2_A_WIDTH 16 /* AIF1DAC2_EQ_B2_A - [15:0] */
  2500. /*
  2501. * R1190 (0x4A6) - AIF1 DAC2 EQ Band 2 B
  2502. */
  2503. #define WM8995_AIF1DAC2_EQ_B2_B_MASK 0xFFFF /* AIF1DAC2_EQ_B2_B - [15:0] */
  2504. #define WM8995_AIF1DAC2_EQ_B2_B_SHIFT 0 /* AIF1DAC2_EQ_B2_B - [15:0] */
  2505. #define WM8995_AIF1DAC2_EQ_B2_B_WIDTH 16 /* AIF1DAC2_EQ_B2_B - [15:0] */
  2506. /*
  2507. * R1191 (0x4A7) - AIF1 DAC2 EQ Band 2 C
  2508. */
  2509. #define WM8995_AIF1DAC2_EQ_B2_C_MASK 0xFFFF /* AIF1DAC2_EQ_B2_C - [15:0] */
  2510. #define WM8995_AIF1DAC2_EQ_B2_C_SHIFT 0 /* AIF1DAC2_EQ_B2_C - [15:0] */
  2511. #define WM8995_AIF1DAC2_EQ_B2_C_WIDTH 16 /* AIF1DAC2_EQ_B2_C - [15:0] */
  2512. /*
  2513. * R1192 (0x4A8) - AIF1 DAC2 EQ Band 2 PG
  2514. */
  2515. #define WM8995_AIF1DAC2_EQ_B2_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B2_PG - [15:0] */
  2516. #define WM8995_AIF1DAC2_EQ_B2_PG_SHIFT 0 /* AIF1DAC2_EQ_B2_PG - [15:0] */
  2517. #define WM8995_AIF1DAC2_EQ_B2_PG_WIDTH 16 /* AIF1DAC2_EQ_B2_PG - [15:0] */
  2518. /*
  2519. * R1193 (0x4A9) - AIF1 DAC2 EQ Band 3 A
  2520. */
  2521. #define WM8995_AIF1DAC2_EQ_B3_A_MASK 0xFFFF /* AIF1DAC2_EQ_B3_A - [15:0] */
  2522. #define WM8995_AIF1DAC2_EQ_B3_A_SHIFT 0 /* AIF1DAC2_EQ_B3_A - [15:0] */
  2523. #define WM8995_AIF1DAC2_EQ_B3_A_WIDTH 16 /* AIF1DAC2_EQ_B3_A - [15:0] */
  2524. /*
  2525. * R1194 (0x4AA) - AIF1 DAC2 EQ Band 3 B
  2526. */
  2527. #define WM8995_AIF1DAC2_EQ_B3_B_MASK 0xFFFF /* AIF1DAC2_EQ_B3_B - [15:0] */
  2528. #define WM8995_AIF1DAC2_EQ_B3_B_SHIFT 0 /* AIF1DAC2_EQ_B3_B - [15:0] */
  2529. #define WM8995_AIF1DAC2_EQ_B3_B_WIDTH 16 /* AIF1DAC2_EQ_B3_B - [15:0] */
  2530. /*
  2531. * R1195 (0x4AB) - AIF1 DAC2 EQ Band 3 C
  2532. */
  2533. #define WM8995_AIF1DAC2_EQ_B3_C_MASK 0xFFFF /* AIF1DAC2_EQ_B3_C - [15:0] */
  2534. #define WM8995_AIF1DAC2_EQ_B3_C_SHIFT 0 /* AIF1DAC2_EQ_B3_C - [15:0] */
  2535. #define WM8995_AIF1DAC2_EQ_B3_C_WIDTH 16 /* AIF1DAC2_EQ_B3_C - [15:0] */
  2536. /*
  2537. * R1196 (0x4AC) - AIF1 DAC2 EQ Band 3 PG
  2538. */
  2539. #define WM8995_AIF1DAC2_EQ_B3_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B3_PG - [15:0] */
  2540. #define WM8995_AIF1DAC2_EQ_B3_PG_SHIFT 0 /* AIF1DAC2_EQ_B3_PG - [15:0] */
  2541. #define WM8995_AIF1DAC2_EQ_B3_PG_WIDTH 16 /* AIF1DAC2_EQ_B3_PG - [15:0] */
  2542. /*
  2543. * R1197 (0x4AD) - AIF1 DAC2 EQ Band 4 A
  2544. */
  2545. #define WM8995_AIF1DAC2_EQ_B4_A_MASK 0xFFFF /* AIF1DAC2_EQ_B4_A - [15:0] */
  2546. #define WM8995_AIF1DAC2_EQ_B4_A_SHIFT 0 /* AIF1DAC2_EQ_B4_A - [15:0] */
  2547. #define WM8995_AIF1DAC2_EQ_B4_A_WIDTH 16 /* AIF1DAC2_EQ_B4_A - [15:0] */
  2548. /*
  2549. * R1198 (0x4AE) - AIF1 DAC2 EQ Band 4 B
  2550. */
  2551. #define WM8995_AIF1DAC2_EQ_B4_B_MASK 0xFFFF /* AIF1DAC2_EQ_B4_B - [15:0] */
  2552. #define WM8995_AIF1DAC2_EQ_B4_B_SHIFT 0 /* AIF1DAC2_EQ_B4_B - [15:0] */
  2553. #define WM8995_AIF1DAC2_EQ_B4_B_WIDTH 16 /* AIF1DAC2_EQ_B4_B - [15:0] */
  2554. /*
  2555. * R1199 (0x4AF) - AIF1 DAC2 EQ Band 4 C
  2556. */
  2557. #define WM8995_AIF1DAC2_EQ_B4_C_MASK 0xFFFF /* AIF1DAC2_EQ_B4_C - [15:0] */
  2558. #define WM8995_AIF1DAC2_EQ_B4_C_SHIFT 0 /* AIF1DAC2_EQ_B4_C - [15:0] */
  2559. #define WM8995_AIF1DAC2_EQ_B4_C_WIDTH 16 /* AIF1DAC2_EQ_B4_C - [15:0] */
  2560. /*
  2561. * R1200 (0x4B0) - AIF1 DAC2 EQ Band 4 PG
  2562. */
  2563. #define WM8995_AIF1DAC2_EQ_B4_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B4_PG - [15:0] */
  2564. #define WM8995_AIF1DAC2_EQ_B4_PG_SHIFT 0 /* AIF1DAC2_EQ_B4_PG - [15:0] */
  2565. #define WM8995_AIF1DAC2_EQ_B4_PG_WIDTH 16 /* AIF1DAC2_EQ_B4_PG - [15:0] */
  2566. /*
  2567. * R1201 (0x4B1) - AIF1 DAC2 EQ Band 5 A
  2568. */
  2569. #define WM8995_AIF1DAC2_EQ_B5_A_MASK 0xFFFF /* AIF1DAC2_EQ_B5_A - [15:0] */
  2570. #define WM8995_AIF1DAC2_EQ_B5_A_SHIFT 0 /* AIF1DAC2_EQ_B5_A - [15:0] */
  2571. #define WM8995_AIF1DAC2_EQ_B5_A_WIDTH 16 /* AIF1DAC2_EQ_B5_A - [15:0] */
  2572. /*
  2573. * R1202 (0x4B2) - AIF1 DAC2 EQ Band 5 B
  2574. */
  2575. #define WM8995_AIF1DAC2_EQ_B5_B_MASK 0xFFFF /* AIF1DAC2_EQ_B5_B - [15:0] */
  2576. #define WM8995_AIF1DAC2_EQ_B5_B_SHIFT 0 /* AIF1DAC2_EQ_B5_B - [15:0] */
  2577. #define WM8995_AIF1DAC2_EQ_B5_B_WIDTH 16 /* AIF1DAC2_EQ_B5_B - [15:0] */
  2578. /*
  2579. * R1203 (0x4B3) - AIF1 DAC2 EQ Band 5 PG
  2580. */
  2581. #define WM8995_AIF1DAC2_EQ_B5_PG_MASK 0xFFFF /* AIF1DAC2_EQ_B5_PG - [15:0] */
  2582. #define WM8995_AIF1DAC2_EQ_B5_PG_SHIFT 0 /* AIF1DAC2_EQ_B5_PG - [15:0] */
  2583. #define WM8995_AIF1DAC2_EQ_B5_PG_WIDTH 16 /* AIF1DAC2_EQ_B5_PG - [15:0] */
  2584. /*
  2585. * R1280 (0x500) - AIF2 ADC Left Volume
  2586. */
  2587. #define WM8995_AIF2ADC_VU 0x0100 /* AIF2ADC_VU */
  2588. #define WM8995_AIF2ADC_VU_MASK 0x0100 /* AIF2ADC_VU */
  2589. #define WM8995_AIF2ADC_VU_SHIFT 8 /* AIF2ADC_VU */
  2590. #define WM8995_AIF2ADC_VU_WIDTH 1 /* AIF2ADC_VU */
  2591. #define WM8995_AIF2ADCL_VOL_MASK 0x00FF /* AIF2ADCL_VOL - [7:0] */
  2592. #define WM8995_AIF2ADCL_VOL_SHIFT 0 /* AIF2ADCL_VOL - [7:0] */
  2593. #define WM8995_AIF2ADCL_VOL_WIDTH 8 /* AIF2ADCL_VOL - [7:0] */
  2594. /*
  2595. * R1281 (0x501) - AIF2 ADC Right Volume
  2596. */
  2597. #define WM8995_AIF2ADC_VU 0x0100 /* AIF2ADC_VU */
  2598. #define WM8995_AIF2ADC_VU_MASK 0x0100 /* AIF2ADC_VU */
  2599. #define WM8995_AIF2ADC_VU_SHIFT 8 /* AIF2ADC_VU */
  2600. #define WM8995_AIF2ADC_VU_WIDTH 1 /* AIF2ADC_VU */
  2601. #define WM8995_AIF2ADCR_VOL_MASK 0x00FF /* AIF2ADCR_VOL - [7:0] */
  2602. #define WM8995_AIF2ADCR_VOL_SHIFT 0 /* AIF2ADCR_VOL - [7:0] */
  2603. #define WM8995_AIF2ADCR_VOL_WIDTH 8 /* AIF2ADCR_VOL - [7:0] */
  2604. /*
  2605. * R1282 (0x502) - AIF2 DAC Left Volume
  2606. */
  2607. #define WM8995_AIF2DAC_VU 0x0100 /* AIF2DAC_VU */
  2608. #define WM8995_AIF2DAC_VU_MASK 0x0100 /* AIF2DAC_VU */
  2609. #define WM8995_AIF2DAC_VU_SHIFT 8 /* AIF2DAC_VU */
  2610. #define WM8995_AIF2DAC_VU_WIDTH 1 /* AIF2DAC_VU */
  2611. #define WM8995_AIF2DACL_VOL_MASK 0x00FF /* AIF2DACL_VOL - [7:0] */
  2612. #define WM8995_AIF2DACL_VOL_SHIFT 0 /* AIF2DACL_VOL - [7:0] */
  2613. #define WM8995_AIF2DACL_VOL_WIDTH 8 /* AIF2DACL_VOL - [7:0] */
  2614. /*
  2615. * R1283 (0x503) - AIF2 DAC Right Volume
  2616. */
  2617. #define WM8995_AIF2DAC_VU 0x0100 /* AIF2DAC_VU */
  2618. #define WM8995_AIF2DAC_VU_MASK 0x0100 /* AIF2DAC_VU */
  2619. #define WM8995_AIF2DAC_VU_SHIFT 8 /* AIF2DAC_VU */
  2620. #define WM8995_AIF2DAC_VU_WIDTH 1 /* AIF2DAC_VU */
  2621. #define WM8995_AIF2DACR_VOL_MASK 0x00FF /* AIF2DACR_VOL - [7:0] */
  2622. #define WM8995_AIF2DACR_VOL_SHIFT 0 /* AIF2DACR_VOL - [7:0] */
  2623. #define WM8995_AIF2DACR_VOL_WIDTH 8 /* AIF2DACR_VOL - [7:0] */
  2624. /*
  2625. * R1296 (0x510) - AIF2 ADC Filters
  2626. */
  2627. #define WM8995_AIF2ADC_4FS 0x8000 /* AIF2ADC_4FS */
  2628. #define WM8995_AIF2ADC_4FS_MASK 0x8000 /* AIF2ADC_4FS */
  2629. #define WM8995_AIF2ADC_4FS_SHIFT 15 /* AIF2ADC_4FS */
  2630. #define WM8995_AIF2ADC_4FS_WIDTH 1 /* AIF2ADC_4FS */
  2631. #define WM8995_AIF2ADCL_HPF 0x1000 /* AIF2ADCL_HPF */
  2632. #define WM8995_AIF2ADCL_HPF_MASK 0x1000 /* AIF2ADCL_HPF */
  2633. #define WM8995_AIF2ADCL_HPF_SHIFT 12 /* AIF2ADCL_HPF */
  2634. #define WM8995_AIF2ADCL_HPF_WIDTH 1 /* AIF2ADCL_HPF */
  2635. #define WM8995_AIF2ADCR_HPF 0x0800 /* AIF2ADCR_HPF */
  2636. #define WM8995_AIF2ADCR_HPF_MASK 0x0800 /* AIF2ADCR_HPF */
  2637. #define WM8995_AIF2ADCR_HPF_SHIFT 11 /* AIF2ADCR_HPF */
  2638. #define WM8995_AIF2ADCR_HPF_WIDTH 1 /* AIF2ADCR_HPF */
  2639. #define WM8995_AIF2ADC_HPF_MODE 0x0008 /* AIF2ADC_HPF_MODE */
  2640. #define WM8995_AIF2ADC_HPF_MODE_MASK 0x0008 /* AIF2ADC_HPF_MODE */
  2641. #define WM8995_AIF2ADC_HPF_MODE_SHIFT 3 /* AIF2ADC_HPF_MODE */
  2642. #define WM8995_AIF2ADC_HPF_MODE_WIDTH 1 /* AIF2ADC_HPF_MODE */
  2643. #define WM8995_AIF2ADC_HPF_CUT_MASK 0x0007 /* AIF2ADC_HPF_CUT - [2:0] */
  2644. #define WM8995_AIF2ADC_HPF_CUT_SHIFT 0 /* AIF2ADC_HPF_CUT - [2:0] */
  2645. #define WM8995_AIF2ADC_HPF_CUT_WIDTH 3 /* AIF2ADC_HPF_CUT - [2:0] */
  2646. /*
  2647. * R1312 (0x520) - AIF2 DAC Filters (1)
  2648. */
  2649. #define WM8995_AIF2DAC_MUTE 0x0200 /* AIF2DAC_MUTE */
  2650. #define WM8995_AIF2DAC_MUTE_MASK 0x0200 /* AIF2DAC_MUTE */
  2651. #define WM8995_AIF2DAC_MUTE_SHIFT 9 /* AIF2DAC_MUTE */
  2652. #define WM8995_AIF2DAC_MUTE_WIDTH 1 /* AIF2DAC_MUTE */
  2653. #define WM8995_AIF2DAC_MONO 0x0080 /* AIF2DAC_MONO */
  2654. #define WM8995_AIF2DAC_MONO_MASK 0x0080 /* AIF2DAC_MONO */
  2655. #define WM8995_AIF2DAC_MONO_SHIFT 7 /* AIF2DAC_MONO */
  2656. #define WM8995_AIF2DAC_MONO_WIDTH 1 /* AIF2DAC_MONO */
  2657. #define WM8995_AIF2DAC_MUTERATE 0x0020 /* AIF2DAC_MUTERATE */
  2658. #define WM8995_AIF2DAC_MUTERATE_MASK 0x0020 /* AIF2DAC_MUTERATE */
  2659. #define WM8995_AIF2DAC_MUTERATE_SHIFT 5 /* AIF2DAC_MUTERATE */
  2660. #define WM8995_AIF2DAC_MUTERATE_WIDTH 1 /* AIF2DAC_MUTERATE */
  2661. #define WM8995_AIF2DAC_UNMUTE_RAMP 0x0010 /* AIF2DAC_UNMUTE_RAMP */
  2662. #define WM8995_AIF2DAC_UNMUTE_RAMP_MASK 0x0010 /* AIF2DAC_UNMUTE_RAMP */
  2663. #define WM8995_AIF2DAC_UNMUTE_RAMP_SHIFT 4 /* AIF2DAC_UNMUTE_RAMP */
  2664. #define WM8995_AIF2DAC_UNMUTE_RAMP_WIDTH 1 /* AIF2DAC_UNMUTE_RAMP */
  2665. #define WM8995_AIF2DAC_DEEMP_MASK 0x0006 /* AIF2DAC_DEEMP - [2:1] */
  2666. #define WM8995_AIF2DAC_DEEMP_SHIFT 1 /* AIF2DAC_DEEMP - [2:1] */
  2667. #define WM8995_AIF2DAC_DEEMP_WIDTH 2 /* AIF2DAC_DEEMP - [2:1] */
  2668. /*
  2669. * R1313 (0x521) - AIF2 DAC Filters (2)
  2670. */
  2671. #define WM8995_AIF2DAC_3D_GAIN_MASK 0x3E00 /* AIF2DAC_3D_GAIN - [13:9] */
  2672. #define WM8995_AIF2DAC_3D_GAIN_SHIFT 9 /* AIF2DAC_3D_GAIN - [13:9] */
  2673. #define WM8995_AIF2DAC_3D_GAIN_WIDTH 5 /* AIF2DAC_3D_GAIN - [13:9] */
  2674. #define WM8995_AIF2DAC_3D_ENA 0x0100 /* AIF2DAC_3D_ENA */
  2675. #define WM8995_AIF2DAC_3D_ENA_MASK 0x0100 /* AIF2DAC_3D_ENA */
  2676. #define WM8995_AIF2DAC_3D_ENA_SHIFT 8 /* AIF2DAC_3D_ENA */
  2677. #define WM8995_AIF2DAC_3D_ENA_WIDTH 1 /* AIF2DAC_3D_ENA */
  2678. /*
  2679. * R1344 (0x540) - AIF2 DRC (1)
  2680. */
  2681. #define WM8995_AIF2DRC_SIG_DET_RMS_MASK 0xF800 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  2682. #define WM8995_AIF2DRC_SIG_DET_RMS_SHIFT 11 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  2683. #define WM8995_AIF2DRC_SIG_DET_RMS_WIDTH 5 /* AIF2DRC_SIG_DET_RMS - [15:11] */
  2684. #define WM8995_AIF2DRC_SIG_DET_PK_MASK 0x0600 /* AIF2DRC_SIG_DET_PK - [10:9] */
  2685. #define WM8995_AIF2DRC_SIG_DET_PK_SHIFT 9 /* AIF2DRC_SIG_DET_PK - [10:9] */
  2686. #define WM8995_AIF2DRC_SIG_DET_PK_WIDTH 2 /* AIF2DRC_SIG_DET_PK - [10:9] */
  2687. #define WM8995_AIF2DRC_NG_ENA 0x0100 /* AIF2DRC_NG_ENA */
  2688. #define WM8995_AIF2DRC_NG_ENA_MASK 0x0100 /* AIF2DRC_NG_ENA */
  2689. #define WM8995_AIF2DRC_NG_ENA_SHIFT 8 /* AIF2DRC_NG_ENA */
  2690. #define WM8995_AIF2DRC_NG_ENA_WIDTH 1 /* AIF2DRC_NG_ENA */
  2691. #define WM8995_AIF2DRC_SIG_DET_MODE 0x0080 /* AIF2DRC_SIG_DET_MODE */
  2692. #define WM8995_AIF2DRC_SIG_DET_MODE_MASK 0x0080 /* AIF2DRC_SIG_DET_MODE */
  2693. #define WM8995_AIF2DRC_SIG_DET_MODE_SHIFT 7 /* AIF2DRC_SIG_DET_MODE */
  2694. #define WM8995_AIF2DRC_SIG_DET_MODE_WIDTH 1 /* AIF2DRC_SIG_DET_MODE */
  2695. #define WM8995_AIF2DRC_SIG_DET 0x0040 /* AIF2DRC_SIG_DET */
  2696. #define WM8995_AIF2DRC_SIG_DET_MASK 0x0040 /* AIF2DRC_SIG_DET */
  2697. #define WM8995_AIF2DRC_SIG_DET_SHIFT 6 /* AIF2DRC_SIG_DET */
  2698. #define WM8995_AIF2DRC_SIG_DET_WIDTH 1 /* AIF2DRC_SIG_DET */
  2699. #define WM8995_AIF2DRC_KNEE2_OP_ENA 0x0020 /* AIF2DRC_KNEE2_OP_ENA */
  2700. #define WM8995_AIF2DRC_KNEE2_OP_ENA_MASK 0x0020 /* AIF2DRC_KNEE2_OP_ENA */
  2701. #define WM8995_AIF2DRC_KNEE2_OP_ENA_SHIFT 5 /* AIF2DRC_KNEE2_OP_ENA */
  2702. #define WM8995_AIF2DRC_KNEE2_OP_ENA_WIDTH 1 /* AIF2DRC_KNEE2_OP_ENA */
  2703. #define WM8995_AIF2DRC_QR 0x0010 /* AIF2DRC_QR */
  2704. #define WM8995_AIF2DRC_QR_MASK 0x0010 /* AIF2DRC_QR */
  2705. #define WM8995_AIF2DRC_QR_SHIFT 4 /* AIF2DRC_QR */
  2706. #define WM8995_AIF2DRC_QR_WIDTH 1 /* AIF2DRC_QR */
  2707. #define WM8995_AIF2DRC_ANTICLIP 0x0008 /* AIF2DRC_ANTICLIP */
  2708. #define WM8995_AIF2DRC_ANTICLIP_MASK 0x0008 /* AIF2DRC_ANTICLIP */
  2709. #define WM8995_AIF2DRC_ANTICLIP_SHIFT 3 /* AIF2DRC_ANTICLIP */
  2710. #define WM8995_AIF2DRC_ANTICLIP_WIDTH 1 /* AIF2DRC_ANTICLIP */
  2711. #define WM8995_AIF2DAC_DRC_ENA 0x0004 /* AIF2DAC_DRC_ENA */
  2712. #define WM8995_AIF2DAC_DRC_ENA_MASK 0x0004 /* AIF2DAC_DRC_ENA */
  2713. #define WM8995_AIF2DAC_DRC_ENA_SHIFT 2 /* AIF2DAC_DRC_ENA */
  2714. #define WM8995_AIF2DAC_DRC_ENA_WIDTH 1 /* AIF2DAC_DRC_ENA */
  2715. #define WM8995_AIF2ADCL_DRC_ENA 0x0002 /* AIF2ADCL_DRC_ENA */
  2716. #define WM8995_AIF2ADCL_DRC_ENA_MASK 0x0002 /* AIF2ADCL_DRC_ENA */
  2717. #define WM8995_AIF2ADCL_DRC_ENA_SHIFT 1 /* AIF2ADCL_DRC_ENA */
  2718. #define WM8995_AIF2ADCL_DRC_ENA_WIDTH 1 /* AIF2ADCL_DRC_ENA */
  2719. #define WM8995_AIF2ADCR_DRC_ENA 0x0001 /* AIF2ADCR_DRC_ENA */
  2720. #define WM8995_AIF2ADCR_DRC_ENA_MASK 0x0001 /* AIF2ADCR_DRC_ENA */
  2721. #define WM8995_AIF2ADCR_DRC_ENA_SHIFT 0 /* AIF2ADCR_DRC_ENA */
  2722. #define WM8995_AIF2ADCR_DRC_ENA_WIDTH 1 /* AIF2ADCR_DRC_ENA */
  2723. /*
  2724. * R1345 (0x541) - AIF2 DRC (2)
  2725. */
  2726. #define WM8995_AIF2DRC_ATK_MASK 0x1E00 /* AIF2DRC_ATK - [12:9] */
  2727. #define WM8995_AIF2DRC_ATK_SHIFT 9 /* AIF2DRC_ATK - [12:9] */
  2728. #define WM8995_AIF2DRC_ATK_WIDTH 4 /* AIF2DRC_ATK - [12:9] */
  2729. #define WM8995_AIF2DRC_DCY_MASK 0x01E0 /* AIF2DRC_DCY - [8:5] */
  2730. #define WM8995_AIF2DRC_DCY_SHIFT 5 /* AIF2DRC_DCY - [8:5] */
  2731. #define WM8995_AIF2DRC_DCY_WIDTH 4 /* AIF2DRC_DCY - [8:5] */
  2732. #define WM8995_AIF2DRC_MINGAIN_MASK 0x001C /* AIF2DRC_MINGAIN - [4:2] */
  2733. #define WM8995_AIF2DRC_MINGAIN_SHIFT 2 /* AIF2DRC_MINGAIN - [4:2] */
  2734. #define WM8995_AIF2DRC_MINGAIN_WIDTH 3 /* AIF2DRC_MINGAIN - [4:2] */
  2735. #define WM8995_AIF2DRC_MAXGAIN_MASK 0x0003 /* AIF2DRC_MAXGAIN - [1:0] */
  2736. #define WM8995_AIF2DRC_MAXGAIN_SHIFT 0 /* AIF2DRC_MAXGAIN - [1:0] */
  2737. #define WM8995_AIF2DRC_MAXGAIN_WIDTH 2 /* AIF2DRC_MAXGAIN - [1:0] */
  2738. /*
  2739. * R1346 (0x542) - AIF2 DRC (3)
  2740. */
  2741. #define WM8995_AIF2DRC_NG_MINGAIN_MASK 0xF000 /* AIF2DRC_NG_MINGAIN - [15:12] */
  2742. #define WM8995_AIF2DRC_NG_MINGAIN_SHIFT 12 /* AIF2DRC_NG_MINGAIN - [15:12] */
  2743. #define WM8995_AIF2DRC_NG_MINGAIN_WIDTH 4 /* AIF2DRC_NG_MINGAIN - [15:12] */
  2744. #define WM8995_AIF2DRC_NG_EXP_MASK 0x0C00 /* AIF2DRC_NG_EXP - [11:10] */
  2745. #define WM8995_AIF2DRC_NG_EXP_SHIFT 10 /* AIF2DRC_NG_EXP - [11:10] */
  2746. #define WM8995_AIF2DRC_NG_EXP_WIDTH 2 /* AIF2DRC_NG_EXP - [11:10] */
  2747. #define WM8995_AIF2DRC_QR_THR_MASK 0x0300 /* AIF2DRC_QR_THR - [9:8] */
  2748. #define WM8995_AIF2DRC_QR_THR_SHIFT 8 /* AIF2DRC_QR_THR - [9:8] */
  2749. #define WM8995_AIF2DRC_QR_THR_WIDTH 2 /* AIF2DRC_QR_THR - [9:8] */
  2750. #define WM8995_AIF2DRC_QR_DCY_MASK 0x00C0 /* AIF2DRC_QR_DCY - [7:6] */
  2751. #define WM8995_AIF2DRC_QR_DCY_SHIFT 6 /* AIF2DRC_QR_DCY - [7:6] */
  2752. #define WM8995_AIF2DRC_QR_DCY_WIDTH 2 /* AIF2DRC_QR_DCY - [7:6] */
  2753. #define WM8995_AIF2DRC_HI_COMP_MASK 0x0038 /* AIF2DRC_HI_COMP - [5:3] */
  2754. #define WM8995_AIF2DRC_HI_COMP_SHIFT 3 /* AIF2DRC_HI_COMP - [5:3] */
  2755. #define WM8995_AIF2DRC_HI_COMP_WIDTH 3 /* AIF2DRC_HI_COMP - [5:3] */
  2756. #define WM8995_AIF2DRC_LO_COMP_MASK 0x0007 /* AIF2DRC_LO_COMP - [2:0] */
  2757. #define WM8995_AIF2DRC_LO_COMP_SHIFT 0 /* AIF2DRC_LO_COMP - [2:0] */
  2758. #define WM8995_AIF2DRC_LO_COMP_WIDTH 3 /* AIF2DRC_LO_COMP - [2:0] */
  2759. /*
  2760. * R1347 (0x543) - AIF2 DRC (4)
  2761. */
  2762. #define WM8995_AIF2DRC_KNEE_IP_MASK 0x07E0 /* AIF2DRC_KNEE_IP - [10:5] */
  2763. #define WM8995_AIF2DRC_KNEE_IP_SHIFT 5 /* AIF2DRC_KNEE_IP - [10:5] */
  2764. #define WM8995_AIF2DRC_KNEE_IP_WIDTH 6 /* AIF2DRC_KNEE_IP - [10:5] */
  2765. #define WM8995_AIF2DRC_KNEE_OP_MASK 0x001F /* AIF2DRC_KNEE_OP - [4:0] */
  2766. #define WM8995_AIF2DRC_KNEE_OP_SHIFT 0 /* AIF2DRC_KNEE_OP - [4:0] */
  2767. #define WM8995_AIF2DRC_KNEE_OP_WIDTH 5 /* AIF2DRC_KNEE_OP - [4:0] */
  2768. /*
  2769. * R1348 (0x544) - AIF2 DRC (5)
  2770. */
  2771. #define WM8995_AIF2DRC_KNEE2_IP_MASK 0x03E0 /* AIF2DRC_KNEE2_IP - [9:5] */
  2772. #define WM8995_AIF2DRC_KNEE2_IP_SHIFT 5 /* AIF2DRC_KNEE2_IP - [9:5] */
  2773. #define WM8995_AIF2DRC_KNEE2_IP_WIDTH 5 /* AIF2DRC_KNEE2_IP - [9:5] */
  2774. #define WM8995_AIF2DRC_KNEE2_OP_MASK 0x001F /* AIF2DRC_KNEE2_OP - [4:0] */
  2775. #define WM8995_AIF2DRC_KNEE2_OP_SHIFT 0 /* AIF2DRC_KNEE2_OP - [4:0] */
  2776. #define WM8995_AIF2DRC_KNEE2_OP_WIDTH 5 /* AIF2DRC_KNEE2_OP - [4:0] */
  2777. /*
  2778. * R1408 (0x580) - AIF2 EQ Gains (1)
  2779. */
  2780. #define WM8995_AIF2DAC_EQ_B1_GAIN_MASK 0xF800 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  2781. #define WM8995_AIF2DAC_EQ_B1_GAIN_SHIFT 11 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  2782. #define WM8995_AIF2DAC_EQ_B1_GAIN_WIDTH 5 /* AIF2DAC_EQ_B1_GAIN - [15:11] */
  2783. #define WM8995_AIF2DAC_EQ_B2_GAIN_MASK 0x07C0 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  2784. #define WM8995_AIF2DAC_EQ_B2_GAIN_SHIFT 6 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  2785. #define WM8995_AIF2DAC_EQ_B2_GAIN_WIDTH 5 /* AIF2DAC_EQ_B2_GAIN - [10:6] */
  2786. #define WM8995_AIF2DAC_EQ_B3_GAIN_MASK 0x003E /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  2787. #define WM8995_AIF2DAC_EQ_B3_GAIN_SHIFT 1 /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  2788. #define WM8995_AIF2DAC_EQ_B3_GAIN_WIDTH 5 /* AIF2DAC_EQ_B3_GAIN - [5:1] */
  2789. #define WM8995_AIF2DAC_EQ_ENA 0x0001 /* AIF2DAC_EQ_ENA */
  2790. #define WM8995_AIF2DAC_EQ_ENA_MASK 0x0001 /* AIF2DAC_EQ_ENA */
  2791. #define WM8995_AIF2DAC_EQ_ENA_SHIFT 0 /* AIF2DAC_EQ_ENA */
  2792. #define WM8995_AIF2DAC_EQ_ENA_WIDTH 1 /* AIF2DAC_EQ_ENA */
  2793. /*
  2794. * R1409 (0x581) - AIF2 EQ Gains (2)
  2795. */
  2796. #define WM8995_AIF2DAC_EQ_B4_GAIN_MASK 0xF800 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  2797. #define WM8995_AIF2DAC_EQ_B4_GAIN_SHIFT 11 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  2798. #define WM8995_AIF2DAC_EQ_B4_GAIN_WIDTH 5 /* AIF2DAC_EQ_B4_GAIN - [15:11] */
  2799. #define WM8995_AIF2DAC_EQ_B5_GAIN_MASK 0x07C0 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  2800. #define WM8995_AIF2DAC_EQ_B5_GAIN_SHIFT 6 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  2801. #define WM8995_AIF2DAC_EQ_B5_GAIN_WIDTH 5 /* AIF2DAC_EQ_B5_GAIN - [10:6] */
  2802. /*
  2803. * R1410 (0x582) - AIF2 EQ Band 1 A
  2804. */
  2805. #define WM8995_AIF2DAC_EQ_B1_A_MASK 0xFFFF /* AIF2DAC_EQ_B1_A - [15:0] */
  2806. #define WM8995_AIF2DAC_EQ_B1_A_SHIFT 0 /* AIF2DAC_EQ_B1_A - [15:0] */
  2807. #define WM8995_AIF2DAC_EQ_B1_A_WIDTH 16 /* AIF2DAC_EQ_B1_A - [15:0] */
  2808. /*
  2809. * R1411 (0x583) - AIF2 EQ Band 1 B
  2810. */
  2811. #define WM8995_AIF2DAC_EQ_B1_B_MASK 0xFFFF /* AIF2DAC_EQ_B1_B - [15:0] */
  2812. #define WM8995_AIF2DAC_EQ_B1_B_SHIFT 0 /* AIF2DAC_EQ_B1_B - [15:0] */
  2813. #define WM8995_AIF2DAC_EQ_B1_B_WIDTH 16 /* AIF2DAC_EQ_B1_B - [15:0] */
  2814. /*
  2815. * R1412 (0x584) - AIF2 EQ Band 1 PG
  2816. */
  2817. #define WM8995_AIF2DAC_EQ_B1_PG_MASK 0xFFFF /* AIF2DAC_EQ_B1_PG - [15:0] */
  2818. #define WM8995_AIF2DAC_EQ_B1_PG_SHIFT 0 /* AIF2DAC_EQ_B1_PG - [15:0] */
  2819. #define WM8995_AIF2DAC_EQ_B1_PG_WIDTH 16 /* AIF2DAC_EQ_B1_PG - [15:0] */
  2820. /*
  2821. * R1413 (0x585) - AIF2 EQ Band 2 A
  2822. */
  2823. #define WM8995_AIF2DAC_EQ_B2_A_MASK 0xFFFF /* AIF2DAC_EQ_B2_A - [15:0] */
  2824. #define WM8995_AIF2DAC_EQ_B2_A_SHIFT 0 /* AIF2DAC_EQ_B2_A - [15:0] */
  2825. #define WM8995_AIF2DAC_EQ_B2_A_WIDTH 16 /* AIF2DAC_EQ_B2_A - [15:0] */
  2826. /*
  2827. * R1414 (0x586) - AIF2 EQ Band 2 B
  2828. */
  2829. #define WM8995_AIF2DAC_EQ_B2_B_MASK 0xFFFF /* AIF2DAC_EQ_B2_B - [15:0] */
  2830. #define WM8995_AIF2DAC_EQ_B2_B_SHIFT 0 /* AIF2DAC_EQ_B2_B - [15:0] */
  2831. #define WM8995_AIF2DAC_EQ_B2_B_WIDTH 16 /* AIF2DAC_EQ_B2_B - [15:0] */
  2832. /*
  2833. * R1415 (0x587) - AIF2 EQ Band 2 C
  2834. */
  2835. #define WM8995_AIF2DAC_EQ_B2_C_MASK 0xFFFF /* AIF2DAC_EQ_B2_C - [15:0] */
  2836. #define WM8995_AIF2DAC_EQ_B2_C_SHIFT 0 /* AIF2DAC_EQ_B2_C - [15:0] */
  2837. #define WM8995_AIF2DAC_EQ_B2_C_WIDTH 16 /* AIF2DAC_EQ_B2_C - [15:0] */
  2838. /*
  2839. * R1416 (0x588) - AIF2 EQ Band 2 PG
  2840. */
  2841. #define WM8995_AIF2DAC_EQ_B2_PG_MASK 0xFFFF /* AIF2DAC_EQ_B2_PG - [15:0] */
  2842. #define WM8995_AIF2DAC_EQ_B2_PG_SHIFT 0 /* AIF2DAC_EQ_B2_PG - [15:0] */
  2843. #define WM8995_AIF2DAC_EQ_B2_PG_WIDTH 16 /* AIF2DAC_EQ_B2_PG - [15:0] */
  2844. /*
  2845. * R1417 (0x589) - AIF2 EQ Band 3 A
  2846. */
  2847. #define WM8995_AIF2DAC_EQ_B3_A_MASK 0xFFFF /* AIF2DAC_EQ_B3_A - [15:0] */
  2848. #define WM8995_AIF2DAC_EQ_B3_A_SHIFT 0 /* AIF2DAC_EQ_B3_A - [15:0] */
  2849. #define WM8995_AIF2DAC_EQ_B3_A_WIDTH 16 /* AIF2DAC_EQ_B3_A - [15:0] */
  2850. /*
  2851. * R1418 (0x58A) - AIF2 EQ Band 3 B
  2852. */
  2853. #define WM8995_AIF2DAC_EQ_B3_B_MASK 0xFFFF /* AIF2DAC_EQ_B3_B - [15:0] */
  2854. #define WM8995_AIF2DAC_EQ_B3_B_SHIFT 0 /* AIF2DAC_EQ_B3_B - [15:0] */
  2855. #define WM8995_AIF2DAC_EQ_B3_B_WIDTH 16 /* AIF2DAC_EQ_B3_B - [15:0] */
  2856. /*
  2857. * R1419 (0x58B) - AIF2 EQ Band 3 C
  2858. */
  2859. #define WM8995_AIF2DAC_EQ_B3_C_MASK 0xFFFF /* AIF2DAC_EQ_B3_C - [15:0] */
  2860. #define WM8995_AIF2DAC_EQ_B3_C_SHIFT 0 /* AIF2DAC_EQ_B3_C - [15:0] */
  2861. #define WM8995_AIF2DAC_EQ_B3_C_WIDTH 16 /* AIF2DAC_EQ_B3_C - [15:0] */
  2862. /*
  2863. * R1420 (0x58C) - AIF2 EQ Band 3 PG
  2864. */
  2865. #define WM8995_AIF2DAC_EQ_B3_PG_MASK 0xFFFF /* AIF2DAC_EQ_B3_PG - [15:0] */
  2866. #define WM8995_AIF2DAC_EQ_B3_PG_SHIFT 0 /* AIF2DAC_EQ_B3_PG - [15:0] */
  2867. #define WM8995_AIF2DAC_EQ_B3_PG_WIDTH 16 /* AIF2DAC_EQ_B3_PG - [15:0] */
  2868. /*
  2869. * R1421 (0x58D) - AIF2 EQ Band 4 A
  2870. */
  2871. #define WM8995_AIF2DAC_EQ_B4_A_MASK 0xFFFF /* AIF2DAC_EQ_B4_A - [15:0] */
  2872. #define WM8995_AIF2DAC_EQ_B4_A_SHIFT 0 /* AIF2DAC_EQ_B4_A - [15:0] */
  2873. #define WM8995_AIF2DAC_EQ_B4_A_WIDTH 16 /* AIF2DAC_EQ_B4_A - [15:0] */
  2874. /*
  2875. * R1422 (0x58E) - AIF2 EQ Band 4 B
  2876. */
  2877. #define WM8995_AIF2DAC_EQ_B4_B_MASK 0xFFFF /* AIF2DAC_EQ_B4_B - [15:0] */
  2878. #define WM8995_AIF2DAC_EQ_B4_B_SHIFT 0 /* AIF2DAC_EQ_B4_B - [15:0] */
  2879. #define WM8995_AIF2DAC_EQ_B4_B_WIDTH 16 /* AIF2DAC_EQ_B4_B - [15:0] */
  2880. /*
  2881. * R1423 (0x58F) - AIF2 EQ Band 4 C
  2882. */
  2883. #define WM8995_AIF2DAC_EQ_B4_C_MASK 0xFFFF /* AIF2DAC_EQ_B4_C - [15:0] */
  2884. #define WM8995_AIF2DAC_EQ_B4_C_SHIFT 0 /* AIF2DAC_EQ_B4_C - [15:0] */
  2885. #define WM8995_AIF2DAC_EQ_B4_C_WIDTH 16 /* AIF2DAC_EQ_B4_C - [15:0] */
  2886. /*
  2887. * R1424 (0x590) - AIF2 EQ Band 4 PG
  2888. */
  2889. #define WM8995_AIF2DAC_EQ_B4_PG_MASK 0xFFFF /* AIF2DAC_EQ_B4_PG - [15:0] */
  2890. #define WM8995_AIF2DAC_EQ_B4_PG_SHIFT 0 /* AIF2DAC_EQ_B4_PG - [15:0] */
  2891. #define WM8995_AIF2DAC_EQ_B4_PG_WIDTH 16 /* AIF2DAC_EQ_B4_PG - [15:0] */
  2892. /*
  2893. * R1425 (0x591) - AIF2 EQ Band 5 A
  2894. */
  2895. #define WM8995_AIF2DAC_EQ_B5_A_MASK 0xFFFF /* AIF2DAC_EQ_B5_A - [15:0] */
  2896. #define WM8995_AIF2DAC_EQ_B5_A_SHIFT 0 /* AIF2DAC_EQ_B5_A - [15:0] */
  2897. #define WM8995_AIF2DAC_EQ_B5_A_WIDTH 16 /* AIF2DAC_EQ_B5_A - [15:0] */
  2898. /*
  2899. * R1426 (0x592) - AIF2 EQ Band 5 B
  2900. */
  2901. #define WM8995_AIF2DAC_EQ_B5_B_MASK 0xFFFF /* AIF2DAC_EQ_B5_B - [15:0] */
  2902. #define WM8995_AIF2DAC_EQ_B5_B_SHIFT 0 /* AIF2DAC_EQ_B5_B - [15:0] */
  2903. #define WM8995_AIF2DAC_EQ_B5_B_WIDTH 16 /* AIF2DAC_EQ_B5_B - [15:0] */
  2904. /*
  2905. * R1427 (0x593) - AIF2 EQ Band 5 PG
  2906. */
  2907. #define WM8995_AIF2DAC_EQ_B5_PG_MASK 0xFFFF /* AIF2DAC_EQ_B5_PG - [15:0] */
  2908. #define WM8995_AIF2DAC_EQ_B5_PG_SHIFT 0 /* AIF2DAC_EQ_B5_PG - [15:0] */
  2909. #define WM8995_AIF2DAC_EQ_B5_PG_WIDTH 16 /* AIF2DAC_EQ_B5_PG - [15:0] */
  2910. /*
  2911. * R1536 (0x600) - DAC1 Mixer Volumes
  2912. */
  2913. #define WM8995_ADCR_DAC1_VOL_MASK 0x03E0 /* ADCR_DAC1_VOL - [9:5] */
  2914. #define WM8995_ADCR_DAC1_VOL_SHIFT 5 /* ADCR_DAC1_VOL - [9:5] */
  2915. #define WM8995_ADCR_DAC1_VOL_WIDTH 5 /* ADCR_DAC1_VOL - [9:5] */
  2916. #define WM8995_ADCL_DAC1_VOL_MASK 0x001F /* ADCL_DAC1_VOL - [4:0] */
  2917. #define WM8995_ADCL_DAC1_VOL_SHIFT 0 /* ADCL_DAC1_VOL - [4:0] */
  2918. #define WM8995_ADCL_DAC1_VOL_WIDTH 5 /* ADCL_DAC1_VOL - [4:0] */
  2919. /*
  2920. * R1537 (0x601) - DAC1 Left Mixer Routing
  2921. */
  2922. #define WM8995_ADCR_TO_DAC1L 0x0020 /* ADCR_TO_DAC1L */
  2923. #define WM8995_ADCR_TO_DAC1L_MASK 0x0020 /* ADCR_TO_DAC1L */
  2924. #define WM8995_ADCR_TO_DAC1L_SHIFT 5 /* ADCR_TO_DAC1L */
  2925. #define WM8995_ADCR_TO_DAC1L_WIDTH 1 /* ADCR_TO_DAC1L */
  2926. #define WM8995_ADCL_TO_DAC1L 0x0010 /* ADCL_TO_DAC1L */
  2927. #define WM8995_ADCL_TO_DAC1L_MASK 0x0010 /* ADCL_TO_DAC1L */
  2928. #define WM8995_ADCL_TO_DAC1L_SHIFT 4 /* ADCL_TO_DAC1L */
  2929. #define WM8995_ADCL_TO_DAC1L_WIDTH 1 /* ADCL_TO_DAC1L */
  2930. #define WM8995_AIF2DACL_TO_DAC1L 0x0004 /* AIF2DACL_TO_DAC1L */
  2931. #define WM8995_AIF2DACL_TO_DAC1L_MASK 0x0004 /* AIF2DACL_TO_DAC1L */
  2932. #define WM8995_AIF2DACL_TO_DAC1L_SHIFT 2 /* AIF2DACL_TO_DAC1L */
  2933. #define WM8995_AIF2DACL_TO_DAC1L_WIDTH 1 /* AIF2DACL_TO_DAC1L */
  2934. #define WM8995_AIF1DAC2L_TO_DAC1L 0x0002 /* AIF1DAC2L_TO_DAC1L */
  2935. #define WM8995_AIF1DAC2L_TO_DAC1L_MASK 0x0002 /* AIF1DAC2L_TO_DAC1L */
  2936. #define WM8995_AIF1DAC2L_TO_DAC1L_SHIFT 1 /* AIF1DAC2L_TO_DAC1L */
  2937. #define WM8995_AIF1DAC2L_TO_DAC1L_WIDTH 1 /* AIF1DAC2L_TO_DAC1L */
  2938. #define WM8995_AIF1DAC1L_TO_DAC1L 0x0001 /* AIF1DAC1L_TO_DAC1L */
  2939. #define WM8995_AIF1DAC1L_TO_DAC1L_MASK 0x0001 /* AIF1DAC1L_TO_DAC1L */
  2940. #define WM8995_AIF1DAC1L_TO_DAC1L_SHIFT 0 /* AIF1DAC1L_TO_DAC1L */
  2941. #define WM8995_AIF1DAC1L_TO_DAC1L_WIDTH 1 /* AIF1DAC1L_TO_DAC1L */
  2942. /*
  2943. * R1538 (0x602) - DAC1 Right Mixer Routing
  2944. */
  2945. #define WM8995_ADCR_TO_DAC1R 0x0020 /* ADCR_TO_DAC1R */
  2946. #define WM8995_ADCR_TO_DAC1R_MASK 0x0020 /* ADCR_TO_DAC1R */
  2947. #define WM8995_ADCR_TO_DAC1R_SHIFT 5 /* ADCR_TO_DAC1R */
  2948. #define WM8995_ADCR_TO_DAC1R_WIDTH 1 /* ADCR_TO_DAC1R */
  2949. #define WM8995_ADCL_TO_DAC1R 0x0010 /* ADCL_TO_DAC1R */
  2950. #define WM8995_ADCL_TO_DAC1R_MASK 0x0010 /* ADCL_TO_DAC1R */
  2951. #define WM8995_ADCL_TO_DAC1R_SHIFT 4 /* ADCL_TO_DAC1R */
  2952. #define WM8995_ADCL_TO_DAC1R_WIDTH 1 /* ADCL_TO_DAC1R */
  2953. #define WM8995_AIF2DACR_TO_DAC1R 0x0004 /* AIF2DACR_TO_DAC1R */
  2954. #define WM8995_AIF2DACR_TO_DAC1R_MASK 0x0004 /* AIF2DACR_TO_DAC1R */
  2955. #define WM8995_AIF2DACR_TO_DAC1R_SHIFT 2 /* AIF2DACR_TO_DAC1R */
  2956. #define WM8995_AIF2DACR_TO_DAC1R_WIDTH 1 /* AIF2DACR_TO_DAC1R */
  2957. #define WM8995_AIF1DAC2R_TO_DAC1R 0x0002 /* AIF1DAC2R_TO_DAC1R */
  2958. #define WM8995_AIF1DAC2R_TO_DAC1R_MASK 0x0002 /* AIF1DAC2R_TO_DAC1R */
  2959. #define WM8995_AIF1DAC2R_TO_DAC1R_SHIFT 1 /* AIF1DAC2R_TO_DAC1R */
  2960. #define WM8995_AIF1DAC2R_TO_DAC1R_WIDTH 1 /* AIF1DAC2R_TO_DAC1R */
  2961. #define WM8995_AIF1DAC1R_TO_DAC1R 0x0001 /* AIF1DAC1R_TO_DAC1R */
  2962. #define WM8995_AIF1DAC1R_TO_DAC1R_MASK 0x0001 /* AIF1DAC1R_TO_DAC1R */
  2963. #define WM8995_AIF1DAC1R_TO_DAC1R_SHIFT 0 /* AIF1DAC1R_TO_DAC1R */
  2964. #define WM8995_AIF1DAC1R_TO_DAC1R_WIDTH 1 /* AIF1DAC1R_TO_DAC1R */
  2965. /*
  2966. * R1539 (0x603) - DAC2 Mixer Volumes
  2967. */
  2968. #define WM8995_ADCR_DAC2_VOL_MASK 0x03E0 /* ADCR_DAC2_VOL - [9:5] */
  2969. #define WM8995_ADCR_DAC2_VOL_SHIFT 5 /* ADCR_DAC2_VOL - [9:5] */
  2970. #define WM8995_ADCR_DAC2_VOL_WIDTH 5 /* ADCR_DAC2_VOL - [9:5] */
  2971. #define WM8995_ADCL_DAC2_VOL_MASK 0x001F /* ADCL_DAC2_VOL - [4:0] */
  2972. #define WM8995_ADCL_DAC2_VOL_SHIFT 0 /* ADCL_DAC2_VOL - [4:0] */
  2973. #define WM8995_ADCL_DAC2_VOL_WIDTH 5 /* ADCL_DAC2_VOL - [4:0] */
  2974. /*
  2975. * R1540 (0x604) - DAC2 Left Mixer Routing
  2976. */
  2977. #define WM8995_ADCR_TO_DAC2L 0x0020 /* ADCR_TO_DAC2L */
  2978. #define WM8995_ADCR_TO_DAC2L_MASK 0x0020 /* ADCR_TO_DAC2L */
  2979. #define WM8995_ADCR_TO_DAC2L_SHIFT 5 /* ADCR_TO_DAC2L */
  2980. #define WM8995_ADCR_TO_DAC2L_WIDTH 1 /* ADCR_TO_DAC2L */
  2981. #define WM8995_ADCL_TO_DAC2L 0x0010 /* ADCL_TO_DAC2L */
  2982. #define WM8995_ADCL_TO_DAC2L_MASK 0x0010 /* ADCL_TO_DAC2L */
  2983. #define WM8995_ADCL_TO_DAC2L_SHIFT 4 /* ADCL_TO_DAC2L */
  2984. #define WM8995_ADCL_TO_DAC2L_WIDTH 1 /* ADCL_TO_DAC2L */
  2985. #define WM8995_AIF2DACL_TO_DAC2L 0x0004 /* AIF2DACL_TO_DAC2L */
  2986. #define WM8995_AIF2DACL_TO_DAC2L_MASK 0x0004 /* AIF2DACL_TO_DAC2L */
  2987. #define WM8995_AIF2DACL_TO_DAC2L_SHIFT 2 /* AIF2DACL_TO_DAC2L */
  2988. #define WM8995_AIF2DACL_TO_DAC2L_WIDTH 1 /* AIF2DACL_TO_DAC2L */
  2989. #define WM8995_AIF1DAC2L_TO_DAC2L 0x0002 /* AIF1DAC2L_TO_DAC2L */
  2990. #define WM8995_AIF1DAC2L_TO_DAC2L_MASK 0x0002 /* AIF1DAC2L_TO_DAC2L */
  2991. #define WM8995_AIF1DAC2L_TO_DAC2L_SHIFT 1 /* AIF1DAC2L_TO_DAC2L */
  2992. #define WM8995_AIF1DAC2L_TO_DAC2L_WIDTH 1 /* AIF1DAC2L_TO_DAC2L */
  2993. #define WM8995_AIF1DAC1L_TO_DAC2L 0x0001 /* AIF1DAC1L_TO_DAC2L */
  2994. #define WM8995_AIF1DAC1L_TO_DAC2L_MASK 0x0001 /* AIF1DAC1L_TO_DAC2L */
  2995. #define WM8995_AIF1DAC1L_TO_DAC2L_SHIFT 0 /* AIF1DAC1L_TO_DAC2L */
  2996. #define WM8995_AIF1DAC1L_TO_DAC2L_WIDTH 1 /* AIF1DAC1L_TO_DAC2L */
  2997. /*
  2998. * R1541 (0x605) - DAC2 Right Mixer Routing
  2999. */
  3000. #define WM8995_ADCR_TO_DAC2R 0x0020 /* ADCR_TO_DAC2R */
  3001. #define WM8995_ADCR_TO_DAC2R_MASK 0x0020 /* ADCR_TO_DAC2R */
  3002. #define WM8995_ADCR_TO_DAC2R_SHIFT 5 /* ADCR_TO_DAC2R */
  3003. #define WM8995_ADCR_TO_DAC2R_WIDTH 1 /* ADCR_TO_DAC2R */
  3004. #define WM8995_ADCL_TO_DAC2R 0x0010 /* ADCL_TO_DAC2R */
  3005. #define WM8995_ADCL_TO_DAC2R_MASK 0x0010 /* ADCL_TO_DAC2R */
  3006. #define WM8995_ADCL_TO_DAC2R_SHIFT 4 /* ADCL_TO_DAC2R */
  3007. #define WM8995_ADCL_TO_DAC2R_WIDTH 1 /* ADCL_TO_DAC2R */
  3008. #define WM8995_AIF2DACR_TO_DAC2R 0x0004 /* AIF2DACR_TO_DAC2R */
  3009. #define WM8995_AIF2DACR_TO_DAC2R_MASK 0x0004 /* AIF2DACR_TO_DAC2R */
  3010. #define WM8995_AIF2DACR_TO_DAC2R_SHIFT 2 /* AIF2DACR_TO_DAC2R */
  3011. #define WM8995_AIF2DACR_TO_DAC2R_WIDTH 1 /* AIF2DACR_TO_DAC2R */
  3012. #define WM8995_AIF1DAC2R_TO_DAC2R 0x0002 /* AIF1DAC2R_TO_DAC2R */
  3013. #define WM8995_AIF1DAC2R_TO_DAC2R_MASK 0x0002 /* AIF1DAC2R_TO_DAC2R */
  3014. #define WM8995_AIF1DAC2R_TO_DAC2R_SHIFT 1 /* AIF1DAC2R_TO_DAC2R */
  3015. #define WM8995_AIF1DAC2R_TO_DAC2R_WIDTH 1 /* AIF1DAC2R_TO_DAC2R */
  3016. #define WM8995_AIF1DAC1R_TO_DAC2R 0x0001 /* AIF1DAC1R_TO_DAC2R */
  3017. #define WM8995_AIF1DAC1R_TO_DAC2R_MASK 0x0001 /* AIF1DAC1R_TO_DAC2R */
  3018. #define WM8995_AIF1DAC1R_TO_DAC2R_SHIFT 0 /* AIF1DAC1R_TO_DAC2R */
  3019. #define WM8995_AIF1DAC1R_TO_DAC2R_WIDTH 1 /* AIF1DAC1R_TO_DAC2R */
  3020. /*
  3021. * R1542 (0x606) - AIF1 ADC1 Left Mixer Routing
  3022. */
  3023. #define WM8995_ADC1L_TO_AIF1ADC1L 0x0002 /* ADC1L_TO_AIF1ADC1L */
  3024. #define WM8995_ADC1L_TO_AIF1ADC1L_MASK 0x0002 /* ADC1L_TO_AIF1ADC1L */
  3025. #define WM8995_ADC1L_TO_AIF1ADC1L_SHIFT 1 /* ADC1L_TO_AIF1ADC1L */
  3026. #define WM8995_ADC1L_TO_AIF1ADC1L_WIDTH 1 /* ADC1L_TO_AIF1ADC1L */
  3027. #define WM8995_AIF2DACL_TO_AIF1ADC1L 0x0001 /* AIF2DACL_TO_AIF1ADC1L */
  3028. #define WM8995_AIF2DACL_TO_AIF1ADC1L_MASK 0x0001 /* AIF2DACL_TO_AIF1ADC1L */
  3029. #define WM8995_AIF2DACL_TO_AIF1ADC1L_SHIFT 0 /* AIF2DACL_TO_AIF1ADC1L */
  3030. #define WM8995_AIF2DACL_TO_AIF1ADC1L_WIDTH 1 /* AIF2DACL_TO_AIF1ADC1L */
  3031. /*
  3032. * R1543 (0x607) - AIF1 ADC1 Right Mixer Routing
  3033. */
  3034. #define WM8995_ADC1R_TO_AIF1ADC1R 0x0002 /* ADC1R_TO_AIF1ADC1R */
  3035. #define WM8995_ADC1R_TO_AIF1ADC1R_MASK 0x0002 /* ADC1R_TO_AIF1ADC1R */
  3036. #define WM8995_ADC1R_TO_AIF1ADC1R_SHIFT 1 /* ADC1R_TO_AIF1ADC1R */
  3037. #define WM8995_ADC1R_TO_AIF1ADC1R_WIDTH 1 /* ADC1R_TO_AIF1ADC1R */
  3038. #define WM8995_AIF2DACR_TO_AIF1ADC1R 0x0001 /* AIF2DACR_TO_AIF1ADC1R */
  3039. #define WM8995_AIF2DACR_TO_AIF1ADC1R_MASK 0x0001 /* AIF2DACR_TO_AIF1ADC1R */
  3040. #define WM8995_AIF2DACR_TO_AIF1ADC1R_SHIFT 0 /* AIF2DACR_TO_AIF1ADC1R */
  3041. #define WM8995_AIF2DACR_TO_AIF1ADC1R_WIDTH 1 /* AIF2DACR_TO_AIF1ADC1R */
  3042. /*
  3043. * R1544 (0x608) - AIF1 ADC2 Left Mixer Routing
  3044. */
  3045. #define WM8995_ADC2L_TO_AIF1ADC2L 0x0002 /* ADC2L_TO_AIF1ADC2L */
  3046. #define WM8995_ADC2L_TO_AIF1ADC2L_MASK 0x0002 /* ADC2L_TO_AIF1ADC2L */
  3047. #define WM8995_ADC2L_TO_AIF1ADC2L_SHIFT 1 /* ADC2L_TO_AIF1ADC2L */
  3048. #define WM8995_ADC2L_TO_AIF1ADC2L_WIDTH 1 /* ADC2L_TO_AIF1ADC2L */
  3049. #define WM8995_AIF2DACL_TO_AIF1ADC2L 0x0001 /* AIF2DACL_TO_AIF1ADC2L */
  3050. #define WM8995_AIF2DACL_TO_AIF1ADC2L_MASK 0x0001 /* AIF2DACL_TO_AIF1ADC2L */
  3051. #define WM8995_AIF2DACL_TO_AIF1ADC2L_SHIFT 0 /* AIF2DACL_TO_AIF1ADC2L */
  3052. #define WM8995_AIF2DACL_TO_AIF1ADC2L_WIDTH 1 /* AIF2DACL_TO_AIF1ADC2L */
  3053. /*
  3054. * R1545 (0x609) - AIF1 ADC2 Right mixer Routing
  3055. */
  3056. #define WM8995_ADC2R_TO_AIF1ADC2R 0x0002 /* ADC2R_TO_AIF1ADC2R */
  3057. #define WM8995_ADC2R_TO_AIF1ADC2R_MASK 0x0002 /* ADC2R_TO_AIF1ADC2R */
  3058. #define WM8995_ADC2R_TO_AIF1ADC2R_SHIFT 1 /* ADC2R_TO_AIF1ADC2R */
  3059. #define WM8995_ADC2R_TO_AIF1ADC2R_WIDTH 1 /* ADC2R_TO_AIF1ADC2R */
  3060. #define WM8995_AIF2DACR_TO_AIF1ADC2R 0x0001 /* AIF2DACR_TO_AIF1ADC2R */
  3061. #define WM8995_AIF2DACR_TO_AIF1ADC2R_MASK 0x0001 /* AIF2DACR_TO_AIF1ADC2R */
  3062. #define WM8995_AIF2DACR_TO_AIF1ADC2R_SHIFT 0 /* AIF2DACR_TO_AIF1ADC2R */
  3063. #define WM8995_AIF2DACR_TO_AIF1ADC2R_WIDTH 1 /* AIF2DACR_TO_AIF1ADC2R */
  3064. /*
  3065. * R1552 (0x610) - DAC Softmute
  3066. */
  3067. #define WM8995_DAC_SOFTMUTEMODE 0x0002 /* DAC_SOFTMUTEMODE */
  3068. #define WM8995_DAC_SOFTMUTEMODE_MASK 0x0002 /* DAC_SOFTMUTEMODE */
  3069. #define WM8995_DAC_SOFTMUTEMODE_SHIFT 1 /* DAC_SOFTMUTEMODE */
  3070. #define WM8995_DAC_SOFTMUTEMODE_WIDTH 1 /* DAC_SOFTMUTEMODE */
  3071. #define WM8995_DAC_MUTERATE 0x0001 /* DAC_MUTERATE */
  3072. #define WM8995_DAC_MUTERATE_MASK 0x0001 /* DAC_MUTERATE */
  3073. #define WM8995_DAC_MUTERATE_SHIFT 0 /* DAC_MUTERATE */
  3074. #define WM8995_DAC_MUTERATE_WIDTH 1 /* DAC_MUTERATE */
  3075. /*
  3076. * R1568 (0x620) - Oversampling
  3077. */
  3078. #define WM8995_ADC_OSR128 0x0002 /* ADC_OSR128 */
  3079. #define WM8995_ADC_OSR128_MASK 0x0002 /* ADC_OSR128 */
  3080. #define WM8995_ADC_OSR128_SHIFT 1 /* ADC_OSR128 */
  3081. #define WM8995_ADC_OSR128_WIDTH 1 /* ADC_OSR128 */
  3082. #define WM8995_DAC_OSR128 0x0001 /* DAC_OSR128 */
  3083. #define WM8995_DAC_OSR128_MASK 0x0001 /* DAC_OSR128 */
  3084. #define WM8995_DAC_OSR128_SHIFT 0 /* DAC_OSR128 */
  3085. #define WM8995_DAC_OSR128_WIDTH 1 /* DAC_OSR128 */
  3086. /*
  3087. * R1569 (0x621) - Sidetone
  3088. */
  3089. #define WM8995_ST_LPF 0x1000 /* ST_LPF */
  3090. #define WM8995_ST_LPF_MASK 0x1000 /* ST_LPF */
  3091. #define WM8995_ST_LPF_SHIFT 12 /* ST_LPF */
  3092. #define WM8995_ST_LPF_WIDTH 1 /* ST_LPF */
  3093. #define WM8995_ST_HPF_CUT_MASK 0x0380 /* ST_HPF_CUT - [9:7] */
  3094. #define WM8995_ST_HPF_CUT_SHIFT 7 /* ST_HPF_CUT - [9:7] */
  3095. #define WM8995_ST_HPF_CUT_WIDTH 3 /* ST_HPF_CUT - [9:7] */
  3096. #define WM8995_ST_HPF 0x0040 /* ST_HPF */
  3097. #define WM8995_ST_HPF_MASK 0x0040 /* ST_HPF */
  3098. #define WM8995_ST_HPF_SHIFT 6 /* ST_HPF */
  3099. #define WM8995_ST_HPF_WIDTH 1 /* ST_HPF */
  3100. #define WM8995_STR_SEL 0x0002 /* STR_SEL */
  3101. #define WM8995_STR_SEL_MASK 0x0002 /* STR_SEL */
  3102. #define WM8995_STR_SEL_SHIFT 1 /* STR_SEL */
  3103. #define WM8995_STR_SEL_WIDTH 1 /* STR_SEL */
  3104. #define WM8995_STL_SEL 0x0001 /* STL_SEL */
  3105. #define WM8995_STL_SEL_MASK 0x0001 /* STL_SEL */
  3106. #define WM8995_STL_SEL_SHIFT 0 /* STL_SEL */
  3107. #define WM8995_STL_SEL_WIDTH 1 /* STL_SEL */
  3108. /*
  3109. * R1792 (0x700) - GPIO 1
  3110. */
  3111. #define WM8995_GP1_DIR 0x8000 /* GP1_DIR */
  3112. #define WM8995_GP1_DIR_MASK 0x8000 /* GP1_DIR */
  3113. #define WM8995_GP1_DIR_SHIFT 15 /* GP1_DIR */
  3114. #define WM8995_GP1_DIR_WIDTH 1 /* GP1_DIR */
  3115. #define WM8995_GP1_PU 0x4000 /* GP1_PU */
  3116. #define WM8995_GP1_PU_MASK 0x4000 /* GP1_PU */
  3117. #define WM8995_GP1_PU_SHIFT 14 /* GP1_PU */
  3118. #define WM8995_GP1_PU_WIDTH 1 /* GP1_PU */
  3119. #define WM8995_GP1_PD 0x2000 /* GP1_PD */
  3120. #define WM8995_GP1_PD_MASK 0x2000 /* GP1_PD */
  3121. #define WM8995_GP1_PD_SHIFT 13 /* GP1_PD */
  3122. #define WM8995_GP1_PD_WIDTH 1 /* GP1_PD */
  3123. #define WM8995_GP1_POL 0x0400 /* GP1_POL */
  3124. #define WM8995_GP1_POL_MASK 0x0400 /* GP1_POL */
  3125. #define WM8995_GP1_POL_SHIFT 10 /* GP1_POL */
  3126. #define WM8995_GP1_POL_WIDTH 1 /* GP1_POL */
  3127. #define WM8995_GP1_OP_CFG 0x0200 /* GP1_OP_CFG */
  3128. #define WM8995_GP1_OP_CFG_MASK 0x0200 /* GP1_OP_CFG */
  3129. #define WM8995_GP1_OP_CFG_SHIFT 9 /* GP1_OP_CFG */
  3130. #define WM8995_GP1_OP_CFG_WIDTH 1 /* GP1_OP_CFG */
  3131. #define WM8995_GP1_DB 0x0100 /* GP1_DB */
  3132. #define WM8995_GP1_DB_MASK 0x0100 /* GP1_DB */
  3133. #define WM8995_GP1_DB_SHIFT 8 /* GP1_DB */
  3134. #define WM8995_GP1_DB_WIDTH 1 /* GP1_DB */
  3135. #define WM8995_GP1_LVL 0x0040 /* GP1_LVL */
  3136. #define WM8995_GP1_LVL_MASK 0x0040 /* GP1_LVL */
  3137. #define WM8995_GP1_LVL_SHIFT 6 /* GP1_LVL */
  3138. #define WM8995_GP1_LVL_WIDTH 1 /* GP1_LVL */
  3139. #define WM8995_GP1_FN_MASK 0x001F /* GP1_FN - [4:0] */
  3140. #define WM8995_GP1_FN_SHIFT 0 /* GP1_FN - [4:0] */
  3141. #define WM8995_GP1_FN_WIDTH 5 /* GP1_FN - [4:0] */
  3142. /*
  3143. * R1793 (0x701) - GPIO 2
  3144. */
  3145. #define WM8995_GP2_DIR 0x8000 /* GP2_DIR */
  3146. #define WM8995_GP2_DIR_MASK 0x8000 /* GP2_DIR */
  3147. #define WM8995_GP2_DIR_SHIFT 15 /* GP2_DIR */
  3148. #define WM8995_GP2_DIR_WIDTH 1 /* GP2_DIR */
  3149. #define WM8995_GP2_PU 0x4000 /* GP2_PU */
  3150. #define WM8995_GP2_PU_MASK 0x4000 /* GP2_PU */
  3151. #define WM8995_GP2_PU_SHIFT 14 /* GP2_PU */
  3152. #define WM8995_GP2_PU_WIDTH 1 /* GP2_PU */
  3153. #define WM8995_GP2_PD 0x2000 /* GP2_PD */
  3154. #define WM8995_GP2_PD_MASK 0x2000 /* GP2_PD */
  3155. #define WM8995_GP2_PD_SHIFT 13 /* GP2_PD */
  3156. #define WM8995_GP2_PD_WIDTH 1 /* GP2_PD */
  3157. #define WM8995_GP2_POL 0x0400 /* GP2_POL */
  3158. #define WM8995_GP2_POL_MASK 0x0400 /* GP2_POL */
  3159. #define WM8995_GP2_POL_SHIFT 10 /* GP2_POL */
  3160. #define WM8995_GP2_POL_WIDTH 1 /* GP2_POL */
  3161. #define WM8995_GP2_OP_CFG 0x0200 /* GP2_OP_CFG */
  3162. #define WM8995_GP2_OP_CFG_MASK 0x0200 /* GP2_OP_CFG */
  3163. #define WM8995_GP2_OP_CFG_SHIFT 9 /* GP2_OP_CFG */
  3164. #define WM8995_GP2_OP_CFG_WIDTH 1 /* GP2_OP_CFG */
  3165. #define WM8995_GP2_DB 0x0100 /* GP2_DB */
  3166. #define WM8995_GP2_DB_MASK 0x0100 /* GP2_DB */
  3167. #define WM8995_GP2_DB_SHIFT 8 /* GP2_DB */
  3168. #define WM8995_GP2_DB_WIDTH 1 /* GP2_DB */
  3169. #define WM8995_GP2_LVL 0x0040 /* GP2_LVL */
  3170. #define WM8995_GP2_LVL_MASK 0x0040 /* GP2_LVL */
  3171. #define WM8995_GP2_LVL_SHIFT 6 /* GP2_LVL */
  3172. #define WM8995_GP2_LVL_WIDTH 1 /* GP2_LVL */
  3173. #define WM8995_GP2_FN_MASK 0x001F /* GP2_FN - [4:0] */
  3174. #define WM8995_GP2_FN_SHIFT 0 /* GP2_FN - [4:0] */
  3175. #define WM8995_GP2_FN_WIDTH 5 /* GP2_FN - [4:0] */
  3176. /*
  3177. * R1794 (0x702) - GPIO 3
  3178. */
  3179. #define WM8995_GP3_DIR 0x8000 /* GP3_DIR */
  3180. #define WM8995_GP3_DIR_MASK 0x8000 /* GP3_DIR */
  3181. #define WM8995_GP3_DIR_SHIFT 15 /* GP3_DIR */
  3182. #define WM8995_GP3_DIR_WIDTH 1 /* GP3_DIR */
  3183. #define WM8995_GP3_PU 0x4000 /* GP3_PU */
  3184. #define WM8995_GP3_PU_MASK 0x4000 /* GP3_PU */
  3185. #define WM8995_GP3_PU_SHIFT 14 /* GP3_PU */
  3186. #define WM8995_GP3_PU_WIDTH 1 /* GP3_PU */
  3187. #define WM8995_GP3_PD 0x2000 /* GP3_PD */
  3188. #define WM8995_GP3_PD_MASK 0x2000 /* GP3_PD */
  3189. #define WM8995_GP3_PD_SHIFT 13 /* GP3_PD */
  3190. #define WM8995_GP3_PD_WIDTH 1 /* GP3_PD */
  3191. #define WM8995_GP3_POL 0x0400 /* GP3_POL */
  3192. #define WM8995_GP3_POL_MASK 0x0400 /* GP3_POL */
  3193. #define WM8995_GP3_POL_SHIFT 10 /* GP3_POL */
  3194. #define WM8995_GP3_POL_WIDTH 1 /* GP3_POL */
  3195. #define WM8995_GP3_OP_CFG 0x0200 /* GP3_OP_CFG */
  3196. #define WM8995_GP3_OP_CFG_MASK 0x0200 /* GP3_OP_CFG */
  3197. #define WM8995_GP3_OP_CFG_SHIFT 9 /* GP3_OP_CFG */
  3198. #define WM8995_GP3_OP_CFG_WIDTH 1 /* GP3_OP_CFG */
  3199. #define WM8995_GP3_DB 0x0100 /* GP3_DB */
  3200. #define WM8995_GP3_DB_MASK 0x0100 /* GP3_DB */
  3201. #define WM8995_GP3_DB_SHIFT 8 /* GP3_DB */
  3202. #define WM8995_GP3_DB_WIDTH 1 /* GP3_DB */
  3203. #define WM8995_GP3_LVL 0x0040 /* GP3_LVL */
  3204. #define WM8995_GP3_LVL_MASK 0x0040 /* GP3_LVL */
  3205. #define WM8995_GP3_LVL_SHIFT 6 /* GP3_LVL */
  3206. #define WM8995_GP3_LVL_WIDTH 1 /* GP3_LVL */
  3207. #define WM8995_GP3_FN_MASK 0x001F /* GP3_FN - [4:0] */
  3208. #define WM8995_GP3_FN_SHIFT 0 /* GP3_FN - [4:0] */
  3209. #define WM8995_GP3_FN_WIDTH 5 /* GP3_FN - [4:0] */
  3210. /*
  3211. * R1795 (0x703) - GPIO 4
  3212. */
  3213. #define WM8995_GP4_DIR 0x8000 /* GP4_DIR */
  3214. #define WM8995_GP4_DIR_MASK 0x8000 /* GP4_DIR */
  3215. #define WM8995_GP4_DIR_SHIFT 15 /* GP4_DIR */
  3216. #define WM8995_GP4_DIR_WIDTH 1 /* GP4_DIR */
  3217. #define WM8995_GP4_PU 0x4000 /* GP4_PU */
  3218. #define WM8995_GP4_PU_MASK 0x4000 /* GP4_PU */
  3219. #define WM8995_GP4_PU_SHIFT 14 /* GP4_PU */
  3220. #define WM8995_GP4_PU_WIDTH 1 /* GP4_PU */
  3221. #define WM8995_GP4_PD 0x2000 /* GP4_PD */
  3222. #define WM8995_GP4_PD_MASK 0x2000 /* GP4_PD */
  3223. #define WM8995_GP4_PD_SHIFT 13 /* GP4_PD */
  3224. #define WM8995_GP4_PD_WIDTH 1 /* GP4_PD */
  3225. #define WM8995_GP4_POL 0x0400 /* GP4_POL */
  3226. #define WM8995_GP4_POL_MASK 0x0400 /* GP4_POL */
  3227. #define WM8995_GP4_POL_SHIFT 10 /* GP4_POL */
  3228. #define WM8995_GP4_POL_WIDTH 1 /* GP4_POL */
  3229. #define WM8995_GP4_OP_CFG 0x0200 /* GP4_OP_CFG */
  3230. #define WM8995_GP4_OP_CFG_MASK 0x0200 /* GP4_OP_CFG */
  3231. #define WM8995_GP4_OP_CFG_SHIFT 9 /* GP4_OP_CFG */
  3232. #define WM8995_GP4_OP_CFG_WIDTH 1 /* GP4_OP_CFG */
  3233. #define WM8995_GP4_DB 0x0100 /* GP4_DB */
  3234. #define WM8995_GP4_DB_MASK 0x0100 /* GP4_DB */
  3235. #define WM8995_GP4_DB_SHIFT 8 /* GP4_DB */
  3236. #define WM8995_GP4_DB_WIDTH 1 /* GP4_DB */
  3237. #define WM8995_GP4_LVL 0x0040 /* GP4_LVL */
  3238. #define WM8995_GP4_LVL_MASK 0x0040 /* GP4_LVL */
  3239. #define WM8995_GP4_LVL_SHIFT 6 /* GP4_LVL */
  3240. #define WM8995_GP4_LVL_WIDTH 1 /* GP4_LVL */
  3241. #define WM8995_GP4_FN_MASK 0x001F /* GP4_FN - [4:0] */
  3242. #define WM8995_GP4_FN_SHIFT 0 /* GP4_FN - [4:0] */
  3243. #define WM8995_GP4_FN_WIDTH 5 /* GP4_FN - [4:0] */
  3244. /*
  3245. * R1796 (0x704) - GPIO 5
  3246. */
  3247. #define WM8995_GP5_DIR 0x8000 /* GP5_DIR */
  3248. #define WM8995_GP5_DIR_MASK 0x8000 /* GP5_DIR */
  3249. #define WM8995_GP5_DIR_SHIFT 15 /* GP5_DIR */
  3250. #define WM8995_GP5_DIR_WIDTH 1 /* GP5_DIR */
  3251. #define WM8995_GP5_PU 0x4000 /* GP5_PU */
  3252. #define WM8995_GP5_PU_MASK 0x4000 /* GP5_PU */
  3253. #define WM8995_GP5_PU_SHIFT 14 /* GP5_PU */
  3254. #define WM8995_GP5_PU_WIDTH 1 /* GP5_PU */
  3255. #define WM8995_GP5_PD 0x2000 /* GP5_PD */
  3256. #define WM8995_GP5_PD_MASK 0x2000 /* GP5_PD */
  3257. #define WM8995_GP5_PD_SHIFT 13 /* GP5_PD */
  3258. #define WM8995_GP5_PD_WIDTH 1 /* GP5_PD */
  3259. #define WM8995_GP5_POL 0x0400 /* GP5_POL */
  3260. #define WM8995_GP5_POL_MASK 0x0400 /* GP5_POL */
  3261. #define WM8995_GP5_POL_SHIFT 10 /* GP5_POL */
  3262. #define WM8995_GP5_POL_WIDTH 1 /* GP5_POL */
  3263. #define WM8995_GP5_OP_CFG 0x0200 /* GP5_OP_CFG */
  3264. #define WM8995_GP5_OP_CFG_MASK 0x0200 /* GP5_OP_CFG */
  3265. #define WM8995_GP5_OP_CFG_SHIFT 9 /* GP5_OP_CFG */
  3266. #define WM8995_GP5_OP_CFG_WIDTH 1 /* GP5_OP_CFG */
  3267. #define WM8995_GP5_DB 0x0100 /* GP5_DB */
  3268. #define WM8995_GP5_DB_MASK 0x0100 /* GP5_DB */
  3269. #define WM8995_GP5_DB_SHIFT 8 /* GP5_DB */
  3270. #define WM8995_GP5_DB_WIDTH 1 /* GP5_DB */
  3271. #define WM8995_GP5_LVL 0x0040 /* GP5_LVL */
  3272. #define WM8995_GP5_LVL_MASK 0x0040 /* GP5_LVL */
  3273. #define WM8995_GP5_LVL_SHIFT 6 /* GP5_LVL */
  3274. #define WM8995_GP5_LVL_WIDTH 1 /* GP5_LVL */
  3275. #define WM8995_GP5_FN_MASK 0x001F /* GP5_FN - [4:0] */
  3276. #define WM8995_GP5_FN_SHIFT 0 /* GP5_FN - [4:0] */
  3277. #define WM8995_GP5_FN_WIDTH 5 /* GP5_FN - [4:0] */
  3278. /*
  3279. * R1797 (0x705) - GPIO 6
  3280. */
  3281. #define WM8995_GP6_DIR 0x8000 /* GP6_DIR */
  3282. #define WM8995_GP6_DIR_MASK 0x8000 /* GP6_DIR */
  3283. #define WM8995_GP6_DIR_SHIFT 15 /* GP6_DIR */
  3284. #define WM8995_GP6_DIR_WIDTH 1 /* GP6_DIR */
  3285. #define WM8995_GP6_PU 0x4000 /* GP6_PU */
  3286. #define WM8995_GP6_PU_MASK 0x4000 /* GP6_PU */
  3287. #define WM8995_GP6_PU_SHIFT 14 /* GP6_PU */
  3288. #define WM8995_GP6_PU_WIDTH 1 /* GP6_PU */
  3289. #define WM8995_GP6_PD 0x2000 /* GP6_PD */
  3290. #define WM8995_GP6_PD_MASK 0x2000 /* GP6_PD */
  3291. #define WM8995_GP6_PD_SHIFT 13 /* GP6_PD */
  3292. #define WM8995_GP6_PD_WIDTH 1 /* GP6_PD */
  3293. #define WM8995_GP6_POL 0x0400 /* GP6_POL */
  3294. #define WM8995_GP6_POL_MASK 0x0400 /* GP6_POL */
  3295. #define WM8995_GP6_POL_SHIFT 10 /* GP6_POL */
  3296. #define WM8995_GP6_POL_WIDTH 1 /* GP6_POL */
  3297. #define WM8995_GP6_OP_CFG 0x0200 /* GP6_OP_CFG */
  3298. #define WM8995_GP6_OP_CFG_MASK 0x0200 /* GP6_OP_CFG */
  3299. #define WM8995_GP6_OP_CFG_SHIFT 9 /* GP6_OP_CFG */
  3300. #define WM8995_GP6_OP_CFG_WIDTH 1 /* GP6_OP_CFG */
  3301. #define WM8995_GP6_DB 0x0100 /* GP6_DB */
  3302. #define WM8995_GP6_DB_MASK 0x0100 /* GP6_DB */
  3303. #define WM8995_GP6_DB_SHIFT 8 /* GP6_DB */
  3304. #define WM8995_GP6_DB_WIDTH 1 /* GP6_DB */
  3305. #define WM8995_GP6_LVL 0x0040 /* GP6_LVL */
  3306. #define WM8995_GP6_LVL_MASK 0x0040 /* GP6_LVL */
  3307. #define WM8995_GP6_LVL_SHIFT 6 /* GP6_LVL */
  3308. #define WM8995_GP6_LVL_WIDTH 1 /* GP6_LVL */
  3309. #define WM8995_GP6_FN_MASK 0x001F /* GP6_FN - [4:0] */
  3310. #define WM8995_GP6_FN_SHIFT 0 /* GP6_FN - [4:0] */
  3311. #define WM8995_GP6_FN_WIDTH 5 /* GP6_FN - [4:0] */
  3312. /*
  3313. * R1798 (0x706) - GPIO 7
  3314. */
  3315. #define WM8995_GP7_DIR 0x8000 /* GP7_DIR */
  3316. #define WM8995_GP7_DIR_MASK 0x8000 /* GP7_DIR */
  3317. #define WM8995_GP7_DIR_SHIFT 15 /* GP7_DIR */
  3318. #define WM8995_GP7_DIR_WIDTH 1 /* GP7_DIR */
  3319. #define WM8995_GP7_PU 0x4000 /* GP7_PU */
  3320. #define WM8995_GP7_PU_MASK 0x4000 /* GP7_PU */
  3321. #define WM8995_GP7_PU_SHIFT 14 /* GP7_PU */
  3322. #define WM8995_GP7_PU_WIDTH 1 /* GP7_PU */
  3323. #define WM8995_GP7_PD 0x2000 /* GP7_PD */
  3324. #define WM8995_GP7_PD_MASK 0x2000 /* GP7_PD */
  3325. #define WM8995_GP7_PD_SHIFT 13 /* GP7_PD */
  3326. #define WM8995_GP7_PD_WIDTH 1 /* GP7_PD */
  3327. #define WM8995_GP7_POL 0x0400 /* GP7_POL */
  3328. #define WM8995_GP7_POL_MASK 0x0400 /* GP7_POL */
  3329. #define WM8995_GP7_POL_SHIFT 10 /* GP7_POL */
  3330. #define WM8995_GP7_POL_WIDTH 1 /* GP7_POL */
  3331. #define WM8995_GP7_OP_CFG 0x0200 /* GP7_OP_CFG */
  3332. #define WM8995_GP7_OP_CFG_MASK 0x0200 /* GP7_OP_CFG */
  3333. #define WM8995_GP7_OP_CFG_SHIFT 9 /* GP7_OP_CFG */
  3334. #define WM8995_GP7_OP_CFG_WIDTH 1 /* GP7_OP_CFG */
  3335. #define WM8995_GP7_DB 0x0100 /* GP7_DB */
  3336. #define WM8995_GP7_DB_MASK 0x0100 /* GP7_DB */
  3337. #define WM8995_GP7_DB_SHIFT 8 /* GP7_DB */
  3338. #define WM8995_GP7_DB_WIDTH 1 /* GP7_DB */
  3339. #define WM8995_GP7_LVL 0x0040 /* GP7_LVL */
  3340. #define WM8995_GP7_LVL_MASK 0x0040 /* GP7_LVL */
  3341. #define WM8995_GP7_LVL_SHIFT 6 /* GP7_LVL */
  3342. #define WM8995_GP7_LVL_WIDTH 1 /* GP7_LVL */
  3343. #define WM8995_GP7_FN_MASK 0x001F /* GP7_FN - [4:0] */
  3344. #define WM8995_GP7_FN_SHIFT 0 /* GP7_FN - [4:0] */
  3345. #define WM8995_GP7_FN_WIDTH 5 /* GP7_FN - [4:0] */
  3346. /*
  3347. * R1799 (0x707) - GPIO 8
  3348. */
  3349. #define WM8995_GP8_DIR 0x8000 /* GP8_DIR */
  3350. #define WM8995_GP8_DIR_MASK 0x8000 /* GP8_DIR */
  3351. #define WM8995_GP8_DIR_SHIFT 15 /* GP8_DIR */
  3352. #define WM8995_GP8_DIR_WIDTH 1 /* GP8_DIR */
  3353. #define WM8995_GP8_PU 0x4000 /* GP8_PU */
  3354. #define WM8995_GP8_PU_MASK 0x4000 /* GP8_PU */
  3355. #define WM8995_GP8_PU_SHIFT 14 /* GP8_PU */
  3356. #define WM8995_GP8_PU_WIDTH 1 /* GP8_PU */
  3357. #define WM8995_GP8_PD 0x2000 /* GP8_PD */
  3358. #define WM8995_GP8_PD_MASK 0x2000 /* GP8_PD */
  3359. #define WM8995_GP8_PD_SHIFT 13 /* GP8_PD */
  3360. #define WM8995_GP8_PD_WIDTH 1 /* GP8_PD */
  3361. #define WM8995_GP8_POL 0x0400 /* GP8_POL */
  3362. #define WM8995_GP8_POL_MASK 0x0400 /* GP8_POL */
  3363. #define WM8995_GP8_POL_SHIFT 10 /* GP8_POL */
  3364. #define WM8995_GP8_POL_WIDTH 1 /* GP8_POL */
  3365. #define WM8995_GP8_OP_CFG 0x0200 /* GP8_OP_CFG */
  3366. #define WM8995_GP8_OP_CFG_MASK 0x0200 /* GP8_OP_CFG */
  3367. #define WM8995_GP8_OP_CFG_SHIFT 9 /* GP8_OP_CFG */
  3368. #define WM8995_GP8_OP_CFG_WIDTH 1 /* GP8_OP_CFG */
  3369. #define WM8995_GP8_DB 0x0100 /* GP8_DB */
  3370. #define WM8995_GP8_DB_MASK 0x0100 /* GP8_DB */
  3371. #define WM8995_GP8_DB_SHIFT 8 /* GP8_DB */
  3372. #define WM8995_GP8_DB_WIDTH 1 /* GP8_DB */
  3373. #define WM8995_GP8_LVL 0x0040 /* GP8_LVL */
  3374. #define WM8995_GP8_LVL_MASK 0x0040 /* GP8_LVL */
  3375. #define WM8995_GP8_LVL_SHIFT 6 /* GP8_LVL */
  3376. #define WM8995_GP8_LVL_WIDTH 1 /* GP8_LVL */
  3377. #define WM8995_GP8_FN_MASK 0x001F /* GP8_FN - [4:0] */
  3378. #define WM8995_GP8_FN_SHIFT 0 /* GP8_FN - [4:0] */
  3379. #define WM8995_GP8_FN_WIDTH 5 /* GP8_FN - [4:0] */
  3380. /*
  3381. * R1800 (0x708) - GPIO 9
  3382. */
  3383. #define WM8995_GP9_DIR 0x8000 /* GP9_DIR */
  3384. #define WM8995_GP9_DIR_MASK 0x8000 /* GP9_DIR */
  3385. #define WM8995_GP9_DIR_SHIFT 15 /* GP9_DIR */
  3386. #define WM8995_GP9_DIR_WIDTH 1 /* GP9_DIR */
  3387. #define WM8995_GP9_PU 0x4000 /* GP9_PU */
  3388. #define WM8995_GP9_PU_MASK 0x4000 /* GP9_PU */
  3389. #define WM8995_GP9_PU_SHIFT 14 /* GP9_PU */
  3390. #define WM8995_GP9_PU_WIDTH 1 /* GP9_PU */
  3391. #define WM8995_GP9_PD 0x2000 /* GP9_PD */
  3392. #define WM8995_GP9_PD_MASK 0x2000 /* GP9_PD */
  3393. #define WM8995_GP9_PD_SHIFT 13 /* GP9_PD */
  3394. #define WM8995_GP9_PD_WIDTH 1 /* GP9_PD */
  3395. #define WM8995_GP9_POL 0x0400 /* GP9_POL */
  3396. #define WM8995_GP9_POL_MASK 0x0400 /* GP9_POL */
  3397. #define WM8995_GP9_POL_SHIFT 10 /* GP9_POL */
  3398. #define WM8995_GP9_POL_WIDTH 1 /* GP9_POL */
  3399. #define WM8995_GP9_OP_CFG 0x0200 /* GP9_OP_CFG */
  3400. #define WM8995_GP9_OP_CFG_MASK 0x0200 /* GP9_OP_CFG */
  3401. #define WM8995_GP9_OP_CFG_SHIFT 9 /* GP9_OP_CFG */
  3402. #define WM8995_GP9_OP_CFG_WIDTH 1 /* GP9_OP_CFG */
  3403. #define WM8995_GP9_DB 0x0100 /* GP9_DB */
  3404. #define WM8995_GP9_DB_MASK 0x0100 /* GP9_DB */
  3405. #define WM8995_GP9_DB_SHIFT 8 /* GP9_DB */
  3406. #define WM8995_GP9_DB_WIDTH 1 /* GP9_DB */
  3407. #define WM8995_GP9_LVL 0x0040 /* GP9_LVL */
  3408. #define WM8995_GP9_LVL_MASK 0x0040 /* GP9_LVL */
  3409. #define WM8995_GP9_LVL_SHIFT 6 /* GP9_LVL */
  3410. #define WM8995_GP9_LVL_WIDTH 1 /* GP9_LVL */
  3411. #define WM8995_GP9_FN_MASK 0x001F /* GP9_FN - [4:0] */
  3412. #define WM8995_GP9_FN_SHIFT 0 /* GP9_FN - [4:0] */
  3413. #define WM8995_GP9_FN_WIDTH 5 /* GP9_FN - [4:0] */
  3414. /*
  3415. * R1801 (0x709) - GPIO 10
  3416. */
  3417. #define WM8995_GP10_DIR 0x8000 /* GP10_DIR */
  3418. #define WM8995_GP10_DIR_MASK 0x8000 /* GP10_DIR */
  3419. #define WM8995_GP10_DIR_SHIFT 15 /* GP10_DIR */
  3420. #define WM8995_GP10_DIR_WIDTH 1 /* GP10_DIR */
  3421. #define WM8995_GP10_PU 0x4000 /* GP10_PU */
  3422. #define WM8995_GP10_PU_MASK 0x4000 /* GP10_PU */
  3423. #define WM8995_GP10_PU_SHIFT 14 /* GP10_PU */
  3424. #define WM8995_GP10_PU_WIDTH 1 /* GP10_PU */
  3425. #define WM8995_GP10_PD 0x2000 /* GP10_PD */
  3426. #define WM8995_GP10_PD_MASK 0x2000 /* GP10_PD */
  3427. #define WM8995_GP10_PD_SHIFT 13 /* GP10_PD */
  3428. #define WM8995_GP10_PD_WIDTH 1 /* GP10_PD */
  3429. #define WM8995_GP10_POL 0x0400 /* GP10_POL */
  3430. #define WM8995_GP10_POL_MASK 0x0400 /* GP10_POL */
  3431. #define WM8995_GP10_POL_SHIFT 10 /* GP10_POL */
  3432. #define WM8995_GP10_POL_WIDTH 1 /* GP10_POL */
  3433. #define WM8995_GP10_OP_CFG 0x0200 /* GP10_OP_CFG */
  3434. #define WM8995_GP10_OP_CFG_MASK 0x0200 /* GP10_OP_CFG */
  3435. #define WM8995_GP10_OP_CFG_SHIFT 9 /* GP10_OP_CFG */
  3436. #define WM8995_GP10_OP_CFG_WIDTH 1 /* GP10_OP_CFG */
  3437. #define WM8995_GP10_DB 0x0100 /* GP10_DB */
  3438. #define WM8995_GP10_DB_MASK 0x0100 /* GP10_DB */
  3439. #define WM8995_GP10_DB_SHIFT 8 /* GP10_DB */
  3440. #define WM8995_GP10_DB_WIDTH 1 /* GP10_DB */
  3441. #define WM8995_GP10_LVL 0x0040 /* GP10_LVL */
  3442. #define WM8995_GP10_LVL_MASK 0x0040 /* GP10_LVL */
  3443. #define WM8995_GP10_LVL_SHIFT 6 /* GP10_LVL */
  3444. #define WM8995_GP10_LVL_WIDTH 1 /* GP10_LVL */
  3445. #define WM8995_GP10_FN_MASK 0x001F /* GP10_FN - [4:0] */
  3446. #define WM8995_GP10_FN_SHIFT 0 /* GP10_FN - [4:0] */
  3447. #define WM8995_GP10_FN_WIDTH 5 /* GP10_FN - [4:0] */
  3448. /*
  3449. * R1802 (0x70A) - GPIO 11
  3450. */
  3451. #define WM8995_GP11_DIR 0x8000 /* GP11_DIR */
  3452. #define WM8995_GP11_DIR_MASK 0x8000 /* GP11_DIR */
  3453. #define WM8995_GP11_DIR_SHIFT 15 /* GP11_DIR */
  3454. #define WM8995_GP11_DIR_WIDTH 1 /* GP11_DIR */
  3455. #define WM8995_GP11_PU 0x4000 /* GP11_PU */
  3456. #define WM8995_GP11_PU_MASK 0x4000 /* GP11_PU */
  3457. #define WM8995_GP11_PU_SHIFT 14 /* GP11_PU */
  3458. #define WM8995_GP11_PU_WIDTH 1 /* GP11_PU */
  3459. #define WM8995_GP11_PD 0x2000 /* GP11_PD */
  3460. #define WM8995_GP11_PD_MASK 0x2000 /* GP11_PD */
  3461. #define WM8995_GP11_PD_SHIFT 13 /* GP11_PD */
  3462. #define WM8995_GP11_PD_WIDTH 1 /* GP11_PD */
  3463. #define WM8995_GP11_POL 0x0400 /* GP11_POL */
  3464. #define WM8995_GP11_POL_MASK 0x0400 /* GP11_POL */
  3465. #define WM8995_GP11_POL_SHIFT 10 /* GP11_POL */
  3466. #define WM8995_GP11_POL_WIDTH 1 /* GP11_POL */
  3467. #define WM8995_GP11_OP_CFG 0x0200 /* GP11_OP_CFG */
  3468. #define WM8995_GP11_OP_CFG_MASK 0x0200 /* GP11_OP_CFG */
  3469. #define WM8995_GP11_OP_CFG_SHIFT 9 /* GP11_OP_CFG */
  3470. #define WM8995_GP11_OP_CFG_WIDTH 1 /* GP11_OP_CFG */
  3471. #define WM8995_GP11_DB 0x0100 /* GP11_DB */
  3472. #define WM8995_GP11_DB_MASK 0x0100 /* GP11_DB */
  3473. #define WM8995_GP11_DB_SHIFT 8 /* GP11_DB */
  3474. #define WM8995_GP11_DB_WIDTH 1 /* GP11_DB */
  3475. #define WM8995_GP11_LVL 0x0040 /* GP11_LVL */
  3476. #define WM8995_GP11_LVL_MASK 0x0040 /* GP11_LVL */
  3477. #define WM8995_GP11_LVL_SHIFT 6 /* GP11_LVL */
  3478. #define WM8995_GP11_LVL_WIDTH 1 /* GP11_LVL */
  3479. #define WM8995_GP11_FN_MASK 0x001F /* GP11_FN - [4:0] */
  3480. #define WM8995_GP11_FN_SHIFT 0 /* GP11_FN - [4:0] */
  3481. #define WM8995_GP11_FN_WIDTH 5 /* GP11_FN - [4:0] */
  3482. /*
  3483. * R1803 (0x70B) - GPIO 12
  3484. */
  3485. #define WM8995_GP12_DIR 0x8000 /* GP12_DIR */
  3486. #define WM8995_GP12_DIR_MASK 0x8000 /* GP12_DIR */
  3487. #define WM8995_GP12_DIR_SHIFT 15 /* GP12_DIR */
  3488. #define WM8995_GP12_DIR_WIDTH 1 /* GP12_DIR */
  3489. #define WM8995_GP12_PU 0x4000 /* GP12_PU */
  3490. #define WM8995_GP12_PU_MASK 0x4000 /* GP12_PU */
  3491. #define WM8995_GP12_PU_SHIFT 14 /* GP12_PU */
  3492. #define WM8995_GP12_PU_WIDTH 1 /* GP12_PU */
  3493. #define WM8995_GP12_PD 0x2000 /* GP12_PD */
  3494. #define WM8995_GP12_PD_MASK 0x2000 /* GP12_PD */
  3495. #define WM8995_GP12_PD_SHIFT 13 /* GP12_PD */
  3496. #define WM8995_GP12_PD_WIDTH 1 /* GP12_PD */
  3497. #define WM8995_GP12_POL 0x0400 /* GP12_POL */
  3498. #define WM8995_GP12_POL_MASK 0x0400 /* GP12_POL */
  3499. #define WM8995_GP12_POL_SHIFT 10 /* GP12_POL */
  3500. #define WM8995_GP12_POL_WIDTH 1 /* GP12_POL */
  3501. #define WM8995_GP12_OP_CFG 0x0200 /* GP12_OP_CFG */
  3502. #define WM8995_GP12_OP_CFG_MASK 0x0200 /* GP12_OP_CFG */
  3503. #define WM8995_GP12_OP_CFG_SHIFT 9 /* GP12_OP_CFG */
  3504. #define WM8995_GP12_OP_CFG_WIDTH 1 /* GP12_OP_CFG */
  3505. #define WM8995_GP12_DB 0x0100 /* GP12_DB */
  3506. #define WM8995_GP12_DB_MASK 0x0100 /* GP12_DB */
  3507. #define WM8995_GP12_DB_SHIFT 8 /* GP12_DB */
  3508. #define WM8995_GP12_DB_WIDTH 1 /* GP12_DB */
  3509. #define WM8995_GP12_LVL 0x0040 /* GP12_LVL */
  3510. #define WM8995_GP12_LVL_MASK 0x0040 /* GP12_LVL */
  3511. #define WM8995_GP12_LVL_SHIFT 6 /* GP12_LVL */
  3512. #define WM8995_GP12_LVL_WIDTH 1 /* GP12_LVL */
  3513. #define WM8995_GP12_FN_MASK 0x001F /* GP12_FN - [4:0] */
  3514. #define WM8995_GP12_FN_SHIFT 0 /* GP12_FN - [4:0] */
  3515. #define WM8995_GP12_FN_WIDTH 5 /* GP12_FN - [4:0] */
  3516. /*
  3517. * R1804 (0x70C) - GPIO 13
  3518. */
  3519. #define WM8995_GP13_DIR 0x8000 /* GP13_DIR */
  3520. #define WM8995_GP13_DIR_MASK 0x8000 /* GP13_DIR */
  3521. #define WM8995_GP13_DIR_SHIFT 15 /* GP13_DIR */
  3522. #define WM8995_GP13_DIR_WIDTH 1 /* GP13_DIR */
  3523. #define WM8995_GP13_PU 0x4000 /* GP13_PU */
  3524. #define WM8995_GP13_PU_MASK 0x4000 /* GP13_PU */
  3525. #define WM8995_GP13_PU_SHIFT 14 /* GP13_PU */
  3526. #define WM8995_GP13_PU_WIDTH 1 /* GP13_PU */
  3527. #define WM8995_GP13_PD 0x2000 /* GP13_PD */
  3528. #define WM8995_GP13_PD_MASK 0x2000 /* GP13_PD */
  3529. #define WM8995_GP13_PD_SHIFT 13 /* GP13_PD */
  3530. #define WM8995_GP13_PD_WIDTH 1 /* GP13_PD */
  3531. #define WM8995_GP13_POL 0x0400 /* GP13_POL */
  3532. #define WM8995_GP13_POL_MASK 0x0400 /* GP13_POL */
  3533. #define WM8995_GP13_POL_SHIFT 10 /* GP13_POL */
  3534. #define WM8995_GP13_POL_WIDTH 1 /* GP13_POL */
  3535. #define WM8995_GP13_OP_CFG 0x0200 /* GP13_OP_CFG */
  3536. #define WM8995_GP13_OP_CFG_MASK 0x0200 /* GP13_OP_CFG */
  3537. #define WM8995_GP13_OP_CFG_SHIFT 9 /* GP13_OP_CFG */
  3538. #define WM8995_GP13_OP_CFG_WIDTH 1 /* GP13_OP_CFG */
  3539. #define WM8995_GP13_DB 0x0100 /* GP13_DB */
  3540. #define WM8995_GP13_DB_MASK 0x0100 /* GP13_DB */
  3541. #define WM8995_GP13_DB_SHIFT 8 /* GP13_DB */
  3542. #define WM8995_GP13_DB_WIDTH 1 /* GP13_DB */
  3543. #define WM8995_GP13_LVL 0x0040 /* GP13_LVL */
  3544. #define WM8995_GP13_LVL_MASK 0x0040 /* GP13_LVL */
  3545. #define WM8995_GP13_LVL_SHIFT 6 /* GP13_LVL */
  3546. #define WM8995_GP13_LVL_WIDTH 1 /* GP13_LVL */
  3547. #define WM8995_GP13_FN_MASK 0x001F /* GP13_FN - [4:0] */
  3548. #define WM8995_GP13_FN_SHIFT 0 /* GP13_FN - [4:0] */
  3549. #define WM8995_GP13_FN_WIDTH 5 /* GP13_FN - [4:0] */
  3550. /*
  3551. * R1805 (0x70D) - GPIO 14
  3552. */
  3553. #define WM8995_GP14_DIR 0x8000 /* GP14_DIR */
  3554. #define WM8995_GP14_DIR_MASK 0x8000 /* GP14_DIR */
  3555. #define WM8995_GP14_DIR_SHIFT 15 /* GP14_DIR */
  3556. #define WM8995_GP14_DIR_WIDTH 1 /* GP14_DIR */
  3557. #define WM8995_GP14_PU 0x4000 /* GP14_PU */
  3558. #define WM8995_GP14_PU_MASK 0x4000 /* GP14_PU */
  3559. #define WM8995_GP14_PU_SHIFT 14 /* GP14_PU */
  3560. #define WM8995_GP14_PU_WIDTH 1 /* GP14_PU */
  3561. #define WM8995_GP14_PD 0x2000 /* GP14_PD */
  3562. #define WM8995_GP14_PD_MASK 0x2000 /* GP14_PD */
  3563. #define WM8995_GP14_PD_SHIFT 13 /* GP14_PD */
  3564. #define WM8995_GP14_PD_WIDTH 1 /* GP14_PD */
  3565. #define WM8995_GP14_POL 0x0400 /* GP14_POL */
  3566. #define WM8995_GP14_POL_MASK 0x0400 /* GP14_POL */
  3567. #define WM8995_GP14_POL_SHIFT 10 /* GP14_POL */
  3568. #define WM8995_GP14_POL_WIDTH 1 /* GP14_POL */
  3569. #define WM8995_GP14_OP_CFG 0x0200 /* GP14_OP_CFG */
  3570. #define WM8995_GP14_OP_CFG_MASK 0x0200 /* GP14_OP_CFG */
  3571. #define WM8995_GP14_OP_CFG_SHIFT 9 /* GP14_OP_CFG */
  3572. #define WM8995_GP14_OP_CFG_WIDTH 1 /* GP14_OP_CFG */
  3573. #define WM8995_GP14_DB 0x0100 /* GP14_DB */
  3574. #define WM8995_GP14_DB_MASK 0x0100 /* GP14_DB */
  3575. #define WM8995_GP14_DB_SHIFT 8 /* GP14_DB */
  3576. #define WM8995_GP14_DB_WIDTH 1 /* GP14_DB */
  3577. #define WM8995_GP14_LVL 0x0040 /* GP14_LVL */
  3578. #define WM8995_GP14_LVL_MASK 0x0040 /* GP14_LVL */
  3579. #define WM8995_GP14_LVL_SHIFT 6 /* GP14_LVL */
  3580. #define WM8995_GP14_LVL_WIDTH 1 /* GP14_LVL */
  3581. #define WM8995_GP14_FN_MASK 0x001F /* GP14_FN - [4:0] */
  3582. #define WM8995_GP14_FN_SHIFT 0 /* GP14_FN - [4:0] */
  3583. #define WM8995_GP14_FN_WIDTH 5 /* GP14_FN - [4:0] */
  3584. /*
  3585. * R1824 (0x720) - Pull Control (1)
  3586. */
  3587. #define WM8995_DMICDAT3_PD 0x4000 /* DMICDAT3_PD */
  3588. #define WM8995_DMICDAT3_PD_MASK 0x4000 /* DMICDAT3_PD */
  3589. #define WM8995_DMICDAT3_PD_SHIFT 14 /* DMICDAT3_PD */
  3590. #define WM8995_DMICDAT3_PD_WIDTH 1 /* DMICDAT3_PD */
  3591. #define WM8995_DMICDAT2_PD 0x1000 /* DMICDAT2_PD */
  3592. #define WM8995_DMICDAT2_PD_MASK 0x1000 /* DMICDAT2_PD */
  3593. #define WM8995_DMICDAT2_PD_SHIFT 12 /* DMICDAT2_PD */
  3594. #define WM8995_DMICDAT2_PD_WIDTH 1 /* DMICDAT2_PD */
  3595. #define WM8995_DMICDAT1_PD 0x0400 /* DMICDAT1_PD */
  3596. #define WM8995_DMICDAT1_PD_MASK 0x0400 /* DMICDAT1_PD */
  3597. #define WM8995_DMICDAT1_PD_SHIFT 10 /* DMICDAT1_PD */
  3598. #define WM8995_DMICDAT1_PD_WIDTH 1 /* DMICDAT1_PD */
  3599. #define WM8995_MCLK2_PU 0x0200 /* MCLK2_PU */
  3600. #define WM8995_MCLK2_PU_MASK 0x0200 /* MCLK2_PU */
  3601. #define WM8995_MCLK2_PU_SHIFT 9 /* MCLK2_PU */
  3602. #define WM8995_MCLK2_PU_WIDTH 1 /* MCLK2_PU */
  3603. #define WM8995_MCLK2_PD 0x0100 /* MCLK2_PD */
  3604. #define WM8995_MCLK2_PD_MASK 0x0100 /* MCLK2_PD */
  3605. #define WM8995_MCLK2_PD_SHIFT 8 /* MCLK2_PD */
  3606. #define WM8995_MCLK2_PD_WIDTH 1 /* MCLK2_PD */
  3607. #define WM8995_MCLK1_PU 0x0080 /* MCLK1_PU */
  3608. #define WM8995_MCLK1_PU_MASK 0x0080 /* MCLK1_PU */
  3609. #define WM8995_MCLK1_PU_SHIFT 7 /* MCLK1_PU */
  3610. #define WM8995_MCLK1_PU_WIDTH 1 /* MCLK1_PU */
  3611. #define WM8995_MCLK1_PD 0x0040 /* MCLK1_PD */
  3612. #define WM8995_MCLK1_PD_MASK 0x0040 /* MCLK1_PD */
  3613. #define WM8995_MCLK1_PD_SHIFT 6 /* MCLK1_PD */
  3614. #define WM8995_MCLK1_PD_WIDTH 1 /* MCLK1_PD */
  3615. #define WM8995_DACDAT1_PU 0x0020 /* DACDAT1_PU */
  3616. #define WM8995_DACDAT1_PU_MASK 0x0020 /* DACDAT1_PU */
  3617. #define WM8995_DACDAT1_PU_SHIFT 5 /* DACDAT1_PU */
  3618. #define WM8995_DACDAT1_PU_WIDTH 1 /* DACDAT1_PU */
  3619. #define WM8995_DACDAT1_PD 0x0010 /* DACDAT1_PD */
  3620. #define WM8995_DACDAT1_PD_MASK 0x0010 /* DACDAT1_PD */
  3621. #define WM8995_DACDAT1_PD_SHIFT 4 /* DACDAT1_PD */
  3622. #define WM8995_DACDAT1_PD_WIDTH 1 /* DACDAT1_PD */
  3623. #define WM8995_DACLRCLK1_PU 0x0008 /* DACLRCLK1_PU */
  3624. #define WM8995_DACLRCLK1_PU_MASK 0x0008 /* DACLRCLK1_PU */
  3625. #define WM8995_DACLRCLK1_PU_SHIFT 3 /* DACLRCLK1_PU */
  3626. #define WM8995_DACLRCLK1_PU_WIDTH 1 /* DACLRCLK1_PU */
  3627. #define WM8995_DACLRCLK1_PD 0x0004 /* DACLRCLK1_PD */
  3628. #define WM8995_DACLRCLK1_PD_MASK 0x0004 /* DACLRCLK1_PD */
  3629. #define WM8995_DACLRCLK1_PD_SHIFT 2 /* DACLRCLK1_PD */
  3630. #define WM8995_DACLRCLK1_PD_WIDTH 1 /* DACLRCLK1_PD */
  3631. #define WM8995_BCLK1_PU 0x0002 /* BCLK1_PU */
  3632. #define WM8995_BCLK1_PU_MASK 0x0002 /* BCLK1_PU */
  3633. #define WM8995_BCLK1_PU_SHIFT 1 /* BCLK1_PU */
  3634. #define WM8995_BCLK1_PU_WIDTH 1 /* BCLK1_PU */
  3635. #define WM8995_BCLK1_PD 0x0001 /* BCLK1_PD */
  3636. #define WM8995_BCLK1_PD_MASK 0x0001 /* BCLK1_PD */
  3637. #define WM8995_BCLK1_PD_SHIFT 0 /* BCLK1_PD */
  3638. #define WM8995_BCLK1_PD_WIDTH 1 /* BCLK1_PD */
  3639. /*
  3640. * R1825 (0x721) - Pull Control (2)
  3641. */
  3642. #define WM8995_LDO1ENA_PD 0x0010 /* LDO1ENA_PD */
  3643. #define WM8995_LDO1ENA_PD_MASK 0x0010 /* LDO1ENA_PD */
  3644. #define WM8995_LDO1ENA_PD_SHIFT 4 /* LDO1ENA_PD */
  3645. #define WM8995_LDO1ENA_PD_WIDTH 1 /* LDO1ENA_PD */
  3646. #define WM8995_MODE_PD 0x0004 /* MODE_PD */
  3647. #define WM8995_MODE_PD_MASK 0x0004 /* MODE_PD */
  3648. #define WM8995_MODE_PD_SHIFT 2 /* MODE_PD */
  3649. #define WM8995_MODE_PD_WIDTH 1 /* MODE_PD */
  3650. #define WM8995_CSNADDR_PD 0x0001 /* CSNADDR_PD */
  3651. #define WM8995_CSNADDR_PD_MASK 0x0001 /* CSNADDR_PD */
  3652. #define WM8995_CSNADDR_PD_SHIFT 0 /* CSNADDR_PD */
  3653. #define WM8995_CSNADDR_PD_WIDTH 1 /* CSNADDR_PD */
  3654. /*
  3655. * R1840 (0x730) - Interrupt Status 1
  3656. */
  3657. #define WM8995_GP14_EINT 0x2000 /* GP14_EINT */
  3658. #define WM8995_GP14_EINT_MASK 0x2000 /* GP14_EINT */
  3659. #define WM8995_GP14_EINT_SHIFT 13 /* GP14_EINT */
  3660. #define WM8995_GP14_EINT_WIDTH 1 /* GP14_EINT */
  3661. #define WM8995_GP13_EINT 0x1000 /* GP13_EINT */
  3662. #define WM8995_GP13_EINT_MASK 0x1000 /* GP13_EINT */
  3663. #define WM8995_GP13_EINT_SHIFT 12 /* GP13_EINT */
  3664. #define WM8995_GP13_EINT_WIDTH 1 /* GP13_EINT */
  3665. #define WM8995_GP12_EINT 0x0800 /* GP12_EINT */
  3666. #define WM8995_GP12_EINT_MASK 0x0800 /* GP12_EINT */
  3667. #define WM8995_GP12_EINT_SHIFT 11 /* GP12_EINT */
  3668. #define WM8995_GP12_EINT_WIDTH 1 /* GP12_EINT */
  3669. #define WM8995_GP11_EINT 0x0400 /* GP11_EINT */
  3670. #define WM8995_GP11_EINT_MASK 0x0400 /* GP11_EINT */
  3671. #define WM8995_GP11_EINT_SHIFT 10 /* GP11_EINT */
  3672. #define WM8995_GP11_EINT_WIDTH 1 /* GP11_EINT */
  3673. #define WM8995_GP10_EINT 0x0200 /* GP10_EINT */
  3674. #define WM8995_GP10_EINT_MASK 0x0200 /* GP10_EINT */
  3675. #define WM8995_GP10_EINT_SHIFT 9 /* GP10_EINT */
  3676. #define WM8995_GP10_EINT_WIDTH 1 /* GP10_EINT */
  3677. #define WM8995_GP9_EINT 0x0100 /* GP9_EINT */
  3678. #define WM8995_GP9_EINT_MASK 0x0100 /* GP9_EINT */
  3679. #define WM8995_GP9_EINT_SHIFT 8 /* GP9_EINT */
  3680. #define WM8995_GP9_EINT_WIDTH 1 /* GP9_EINT */
  3681. #define WM8995_GP8_EINT 0x0080 /* GP8_EINT */
  3682. #define WM8995_GP8_EINT_MASK 0x0080 /* GP8_EINT */
  3683. #define WM8995_GP8_EINT_SHIFT 7 /* GP8_EINT */
  3684. #define WM8995_GP8_EINT_WIDTH 1 /* GP8_EINT */
  3685. #define WM8995_GP7_EINT 0x0040 /* GP7_EINT */
  3686. #define WM8995_GP7_EINT_MASK 0x0040 /* GP7_EINT */
  3687. #define WM8995_GP7_EINT_SHIFT 6 /* GP7_EINT */
  3688. #define WM8995_GP7_EINT_WIDTH 1 /* GP7_EINT */
  3689. #define WM8995_GP6_EINT 0x0020 /* GP6_EINT */
  3690. #define WM8995_GP6_EINT_MASK 0x0020 /* GP6_EINT */
  3691. #define WM8995_GP6_EINT_SHIFT 5 /* GP6_EINT */
  3692. #define WM8995_GP6_EINT_WIDTH 1 /* GP6_EINT */
  3693. #define WM8995_GP5_EINT 0x0010 /* GP5_EINT */
  3694. #define WM8995_GP5_EINT_MASK 0x0010 /* GP5_EINT */
  3695. #define WM8995_GP5_EINT_SHIFT 4 /* GP5_EINT */
  3696. #define WM8995_GP5_EINT_WIDTH 1 /* GP5_EINT */
  3697. #define WM8995_GP4_EINT 0x0008 /* GP4_EINT */
  3698. #define WM8995_GP4_EINT_MASK 0x0008 /* GP4_EINT */
  3699. #define WM8995_GP4_EINT_SHIFT 3 /* GP4_EINT */
  3700. #define WM8995_GP4_EINT_WIDTH 1 /* GP4_EINT */
  3701. #define WM8995_GP3_EINT 0x0004 /* GP3_EINT */
  3702. #define WM8995_GP3_EINT_MASK 0x0004 /* GP3_EINT */
  3703. #define WM8995_GP3_EINT_SHIFT 2 /* GP3_EINT */
  3704. #define WM8995_GP3_EINT_WIDTH 1 /* GP3_EINT */
  3705. #define WM8995_GP2_EINT 0x0002 /* GP2_EINT */
  3706. #define WM8995_GP2_EINT_MASK 0x0002 /* GP2_EINT */
  3707. #define WM8995_GP2_EINT_SHIFT 1 /* GP2_EINT */
  3708. #define WM8995_GP2_EINT_WIDTH 1 /* GP2_EINT */
  3709. #define WM8995_GP1_EINT 0x0001 /* GP1_EINT */
  3710. #define WM8995_GP1_EINT_MASK 0x0001 /* GP1_EINT */
  3711. #define WM8995_GP1_EINT_SHIFT 0 /* GP1_EINT */
  3712. #define WM8995_GP1_EINT_WIDTH 1 /* GP1_EINT */
  3713. /*
  3714. * R1841 (0x731) - Interrupt Status 2
  3715. */
  3716. #define WM8995_DCS_DONE_23_EINT 0x1000 /* DCS_DONE_23_EINT */
  3717. #define WM8995_DCS_DONE_23_EINT_MASK 0x1000 /* DCS_DONE_23_EINT */
  3718. #define WM8995_DCS_DONE_23_EINT_SHIFT 12 /* DCS_DONE_23_EINT */
  3719. #define WM8995_DCS_DONE_23_EINT_WIDTH 1 /* DCS_DONE_23_EINT */
  3720. #define WM8995_DCS_DONE_01_EINT 0x0800 /* DCS_DONE_01_EINT */
  3721. #define WM8995_DCS_DONE_01_EINT_MASK 0x0800 /* DCS_DONE_01_EINT */
  3722. #define WM8995_DCS_DONE_01_EINT_SHIFT 11 /* DCS_DONE_01_EINT */
  3723. #define WM8995_DCS_DONE_01_EINT_WIDTH 1 /* DCS_DONE_01_EINT */
  3724. #define WM8995_WSEQ_DONE_EINT 0x0400 /* WSEQ_DONE_EINT */
  3725. #define WM8995_WSEQ_DONE_EINT_MASK 0x0400 /* WSEQ_DONE_EINT */
  3726. #define WM8995_WSEQ_DONE_EINT_SHIFT 10 /* WSEQ_DONE_EINT */
  3727. #define WM8995_WSEQ_DONE_EINT_WIDTH 1 /* WSEQ_DONE_EINT */
  3728. #define WM8995_FIFOS_ERR_EINT 0x0200 /* FIFOS_ERR_EINT */
  3729. #define WM8995_FIFOS_ERR_EINT_MASK 0x0200 /* FIFOS_ERR_EINT */
  3730. #define WM8995_FIFOS_ERR_EINT_SHIFT 9 /* FIFOS_ERR_EINT */
  3731. #define WM8995_FIFOS_ERR_EINT_WIDTH 1 /* FIFOS_ERR_EINT */
  3732. #define WM8995_AIF2DRC_SIG_DET_EINT 0x0100 /* AIF2DRC_SIG_DET_EINT */
  3733. #define WM8995_AIF2DRC_SIG_DET_EINT_MASK 0x0100 /* AIF2DRC_SIG_DET_EINT */
  3734. #define WM8995_AIF2DRC_SIG_DET_EINT_SHIFT 8 /* AIF2DRC_SIG_DET_EINT */
  3735. #define WM8995_AIF2DRC_SIG_DET_EINT_WIDTH 1 /* AIF2DRC_SIG_DET_EINT */
  3736. #define WM8995_AIF1DRC2_SIG_DET_EINT 0x0080 /* AIF1DRC2_SIG_DET_EINT */
  3737. #define WM8995_AIF1DRC2_SIG_DET_EINT_MASK 0x0080 /* AIF1DRC2_SIG_DET_EINT */
  3738. #define WM8995_AIF1DRC2_SIG_DET_EINT_SHIFT 7 /* AIF1DRC2_SIG_DET_EINT */
  3739. #define WM8995_AIF1DRC2_SIG_DET_EINT_WIDTH 1 /* AIF1DRC2_SIG_DET_EINT */
  3740. #define WM8995_AIF1DRC1_SIG_DET_EINT 0x0040 /* AIF1DRC1_SIG_DET_EINT */
  3741. #define WM8995_AIF1DRC1_SIG_DET_EINT_MASK 0x0040 /* AIF1DRC1_SIG_DET_EINT */
  3742. #define WM8995_AIF1DRC1_SIG_DET_EINT_SHIFT 6 /* AIF1DRC1_SIG_DET_EINT */
  3743. #define WM8995_AIF1DRC1_SIG_DET_EINT_WIDTH 1 /* AIF1DRC1_SIG_DET_EINT */
  3744. #define WM8995_SRC2_LOCK_EINT 0x0020 /* SRC2_LOCK_EINT */
  3745. #define WM8995_SRC2_LOCK_EINT_MASK 0x0020 /* SRC2_LOCK_EINT */
  3746. #define WM8995_SRC2_LOCK_EINT_SHIFT 5 /* SRC2_LOCK_EINT */
  3747. #define WM8995_SRC2_LOCK_EINT_WIDTH 1 /* SRC2_LOCK_EINT */
  3748. #define WM8995_SRC1_LOCK_EINT 0x0010 /* SRC1_LOCK_EINT */
  3749. #define WM8995_SRC1_LOCK_EINT_MASK 0x0010 /* SRC1_LOCK_EINT */
  3750. #define WM8995_SRC1_LOCK_EINT_SHIFT 4 /* SRC1_LOCK_EINT */
  3751. #define WM8995_SRC1_LOCK_EINT_WIDTH 1 /* SRC1_LOCK_EINT */
  3752. #define WM8995_FLL2_LOCK_EINT 0x0008 /* FLL2_LOCK_EINT */
  3753. #define WM8995_FLL2_LOCK_EINT_MASK 0x0008 /* FLL2_LOCK_EINT */
  3754. #define WM8995_FLL2_LOCK_EINT_SHIFT 3 /* FLL2_LOCK_EINT */
  3755. #define WM8995_FLL2_LOCK_EINT_WIDTH 1 /* FLL2_LOCK_EINT */
  3756. #define WM8995_FLL1_LOCK_EINT 0x0004 /* FLL1_LOCK_EINT */
  3757. #define WM8995_FLL1_LOCK_EINT_MASK 0x0004 /* FLL1_LOCK_EINT */
  3758. #define WM8995_FLL1_LOCK_EINT_SHIFT 2 /* FLL1_LOCK_EINT */
  3759. #define WM8995_FLL1_LOCK_EINT_WIDTH 1 /* FLL1_LOCK_EINT */
  3760. #define WM8995_HP_DONE_EINT 0x0002 /* HP_DONE_EINT */
  3761. #define WM8995_HP_DONE_EINT_MASK 0x0002 /* HP_DONE_EINT */
  3762. #define WM8995_HP_DONE_EINT_SHIFT 1 /* HP_DONE_EINT */
  3763. #define WM8995_HP_DONE_EINT_WIDTH 1 /* HP_DONE_EINT */
  3764. #define WM8995_MICD_EINT 0x0001 /* MICD_EINT */
  3765. #define WM8995_MICD_EINT_MASK 0x0001 /* MICD_EINT */
  3766. #define WM8995_MICD_EINT_SHIFT 0 /* MICD_EINT */
  3767. #define WM8995_MICD_EINT_WIDTH 1 /* MICD_EINT */
  3768. /*
  3769. * R1842 (0x732) - Interrupt Raw Status 2
  3770. */
  3771. #define WM8995_DCS_DONE_23_STS 0x1000 /* DCS_DONE_23_STS */
  3772. #define WM8995_DCS_DONE_23_STS_MASK 0x1000 /* DCS_DONE_23_STS */
  3773. #define WM8995_DCS_DONE_23_STS_SHIFT 12 /* DCS_DONE_23_STS */
  3774. #define WM8995_DCS_DONE_23_STS_WIDTH 1 /* DCS_DONE_23_STS */
  3775. #define WM8995_DCS_DONE_01_STS 0x0800 /* DCS_DONE_01_STS */
  3776. #define WM8995_DCS_DONE_01_STS_MASK 0x0800 /* DCS_DONE_01_STS */
  3777. #define WM8995_DCS_DONE_01_STS_SHIFT 11 /* DCS_DONE_01_STS */
  3778. #define WM8995_DCS_DONE_01_STS_WIDTH 1 /* DCS_DONE_01_STS */
  3779. #define WM8995_WSEQ_DONE_STS 0x0400 /* WSEQ_DONE_STS */
  3780. #define WM8995_WSEQ_DONE_STS_MASK 0x0400 /* WSEQ_DONE_STS */
  3781. #define WM8995_WSEQ_DONE_STS_SHIFT 10 /* WSEQ_DONE_STS */
  3782. #define WM8995_WSEQ_DONE_STS_WIDTH 1 /* WSEQ_DONE_STS */
  3783. #define WM8995_FIFOS_ERR_STS 0x0200 /* FIFOS_ERR_STS */
  3784. #define WM8995_FIFOS_ERR_STS_MASK 0x0200 /* FIFOS_ERR_STS */
  3785. #define WM8995_FIFOS_ERR_STS_SHIFT 9 /* FIFOS_ERR_STS */
  3786. #define WM8995_FIFOS_ERR_STS_WIDTH 1 /* FIFOS_ERR_STS */
  3787. #define WM8995_AIF2DRC_SIG_DET_STS 0x0100 /* AIF2DRC_SIG_DET_STS */
  3788. #define WM8995_AIF2DRC_SIG_DET_STS_MASK 0x0100 /* AIF2DRC_SIG_DET_STS */
  3789. #define WM8995_AIF2DRC_SIG_DET_STS_SHIFT 8 /* AIF2DRC_SIG_DET_STS */
  3790. #define WM8995_AIF2DRC_SIG_DET_STS_WIDTH 1 /* AIF2DRC_SIG_DET_STS */
  3791. #define WM8995_AIF1DRC2_SIG_DET_STS 0x0080 /* AIF1DRC2_SIG_DET_STS */
  3792. #define WM8995_AIF1DRC2_SIG_DET_STS_MASK 0x0080 /* AIF1DRC2_SIG_DET_STS */
  3793. #define WM8995_AIF1DRC2_SIG_DET_STS_SHIFT 7 /* AIF1DRC2_SIG_DET_STS */
  3794. #define WM8995_AIF1DRC2_SIG_DET_STS_WIDTH 1 /* AIF1DRC2_SIG_DET_STS */
  3795. #define WM8995_AIF1DRC1_SIG_DET_STS 0x0040 /* AIF1DRC1_SIG_DET_STS */
  3796. #define WM8995_AIF1DRC1_SIG_DET_STS_MASK 0x0040 /* AIF1DRC1_SIG_DET_STS */
  3797. #define WM8995_AIF1DRC1_SIG_DET_STS_SHIFT 6 /* AIF1DRC1_SIG_DET_STS */
  3798. #define WM8995_AIF1DRC1_SIG_DET_STS_WIDTH 1 /* AIF1DRC1_SIG_DET_STS */
  3799. #define WM8995_SRC2_LOCK_STS 0x0020 /* SRC2_LOCK_STS */
  3800. #define WM8995_SRC2_LOCK_STS_MASK 0x0020 /* SRC2_LOCK_STS */
  3801. #define WM8995_SRC2_LOCK_STS_SHIFT 5 /* SRC2_LOCK_STS */
  3802. #define WM8995_SRC2_LOCK_STS_WIDTH 1 /* SRC2_LOCK_STS */
  3803. #define WM8995_SRC1_LOCK_STS 0x0010 /* SRC1_LOCK_STS */
  3804. #define WM8995_SRC1_LOCK_STS_MASK 0x0010 /* SRC1_LOCK_STS */
  3805. #define WM8995_SRC1_LOCK_STS_SHIFT 4 /* SRC1_LOCK_STS */
  3806. #define WM8995_SRC1_LOCK_STS_WIDTH 1 /* SRC1_LOCK_STS */
  3807. #define WM8995_FLL2_LOCK_STS 0x0008 /* FLL2_LOCK_STS */
  3808. #define WM8995_FLL2_LOCK_STS_MASK 0x0008 /* FLL2_LOCK_STS */
  3809. #define WM8995_FLL2_LOCK_STS_SHIFT 3 /* FLL2_LOCK_STS */
  3810. #define WM8995_FLL2_LOCK_STS_WIDTH 1 /* FLL2_LOCK_STS */
  3811. #define WM8995_FLL1_LOCK_STS 0x0004 /* FLL1_LOCK_STS */
  3812. #define WM8995_FLL1_LOCK_STS_MASK 0x0004 /* FLL1_LOCK_STS */
  3813. #define WM8995_FLL1_LOCK_STS_SHIFT 2 /* FLL1_LOCK_STS */
  3814. #define WM8995_FLL1_LOCK_STS_WIDTH 1 /* FLL1_LOCK_STS */
  3815. /*
  3816. * R1848 (0x738) - Interrupt Status 1 Mask
  3817. */
  3818. #define WM8995_IM_GP14_EINT 0x2000 /* IM_GP14_EINT */
  3819. #define WM8995_IM_GP14_EINT_MASK 0x2000 /* IM_GP14_EINT */
  3820. #define WM8995_IM_GP14_EINT_SHIFT 13 /* IM_GP14_EINT */
  3821. #define WM8995_IM_GP14_EINT_WIDTH 1 /* IM_GP14_EINT */
  3822. #define WM8995_IM_GP13_EINT 0x1000 /* IM_GP13_EINT */
  3823. #define WM8995_IM_GP13_EINT_MASK 0x1000 /* IM_GP13_EINT */
  3824. #define WM8995_IM_GP13_EINT_SHIFT 12 /* IM_GP13_EINT */
  3825. #define WM8995_IM_GP13_EINT_WIDTH 1 /* IM_GP13_EINT */
  3826. #define WM8995_IM_GP12_EINT 0x0800 /* IM_GP12_EINT */
  3827. #define WM8995_IM_GP12_EINT_MASK 0x0800 /* IM_GP12_EINT */
  3828. #define WM8995_IM_GP12_EINT_SHIFT 11 /* IM_GP12_EINT */
  3829. #define WM8995_IM_GP12_EINT_WIDTH 1 /* IM_GP12_EINT */
  3830. #define WM8995_IM_GP11_EINT 0x0400 /* IM_GP11_EINT */
  3831. #define WM8995_IM_GP11_EINT_MASK 0x0400 /* IM_GP11_EINT */
  3832. #define WM8995_IM_GP11_EINT_SHIFT 10 /* IM_GP11_EINT */
  3833. #define WM8995_IM_GP11_EINT_WIDTH 1 /* IM_GP11_EINT */
  3834. #define WM8995_IM_GP10_EINT 0x0200 /* IM_GP10_EINT */
  3835. #define WM8995_IM_GP10_EINT_MASK 0x0200 /* IM_GP10_EINT */
  3836. #define WM8995_IM_GP10_EINT_SHIFT 9 /* IM_GP10_EINT */
  3837. #define WM8995_IM_GP10_EINT_WIDTH 1 /* IM_GP10_EINT */
  3838. #define WM8995_IM_GP9_EINT 0x0100 /* IM_GP9_EINT */
  3839. #define WM8995_IM_GP9_EINT_MASK 0x0100 /* IM_GP9_EINT */
  3840. #define WM8995_IM_GP9_EINT_SHIFT 8 /* IM_GP9_EINT */
  3841. #define WM8995_IM_GP9_EINT_WIDTH 1 /* IM_GP9_EINT */
  3842. #define WM8995_IM_GP8_EINT 0x0080 /* IM_GP8_EINT */
  3843. #define WM8995_IM_GP8_EINT_MASK 0x0080 /* IM_GP8_EINT */
  3844. #define WM8995_IM_GP8_EINT_SHIFT 7 /* IM_GP8_EINT */
  3845. #define WM8995_IM_GP8_EINT_WIDTH 1 /* IM_GP8_EINT */
  3846. #define WM8995_IM_GP7_EINT 0x0040 /* IM_GP7_EINT */
  3847. #define WM8995_IM_GP7_EINT_MASK 0x0040 /* IM_GP7_EINT */
  3848. #define WM8995_IM_GP7_EINT_SHIFT 6 /* IM_GP7_EINT */
  3849. #define WM8995_IM_GP7_EINT_WIDTH 1 /* IM_GP7_EINT */
  3850. #define WM8995_IM_GP6_EINT 0x0020 /* IM_GP6_EINT */
  3851. #define WM8995_IM_GP6_EINT_MASK 0x0020 /* IM_GP6_EINT */
  3852. #define WM8995_IM_GP6_EINT_SHIFT 5 /* IM_GP6_EINT */
  3853. #define WM8995_IM_GP6_EINT_WIDTH 1 /* IM_GP6_EINT */
  3854. #define WM8995_IM_GP5_EINT 0x0010 /* IM_GP5_EINT */
  3855. #define WM8995_IM_GP5_EINT_MASK 0x0010 /* IM_GP5_EINT */
  3856. #define WM8995_IM_GP5_EINT_SHIFT 4 /* IM_GP5_EINT */
  3857. #define WM8995_IM_GP5_EINT_WIDTH 1 /* IM_GP5_EINT */
  3858. #define WM8995_IM_GP4_EINT 0x0008 /* IM_GP4_EINT */
  3859. #define WM8995_IM_GP4_EINT_MASK 0x0008 /* IM_GP4_EINT */
  3860. #define WM8995_IM_GP4_EINT_SHIFT 3 /* IM_GP4_EINT */
  3861. #define WM8995_IM_GP4_EINT_WIDTH 1 /* IM_GP4_EINT */
  3862. #define WM8995_IM_GP3_EINT 0x0004 /* IM_GP3_EINT */
  3863. #define WM8995_IM_GP3_EINT_MASK 0x0004 /* IM_GP3_EINT */
  3864. #define WM8995_IM_GP3_EINT_SHIFT 2 /* IM_GP3_EINT */
  3865. #define WM8995_IM_GP3_EINT_WIDTH 1 /* IM_GP3_EINT */
  3866. #define WM8995_IM_GP2_EINT 0x0002 /* IM_GP2_EINT */
  3867. #define WM8995_IM_GP2_EINT_MASK 0x0002 /* IM_GP2_EINT */
  3868. #define WM8995_IM_GP2_EINT_SHIFT 1 /* IM_GP2_EINT */
  3869. #define WM8995_IM_GP2_EINT_WIDTH 1 /* IM_GP2_EINT */
  3870. #define WM8995_IM_GP1_EINT 0x0001 /* IM_GP1_EINT */
  3871. #define WM8995_IM_GP1_EINT_MASK 0x0001 /* IM_GP1_EINT */
  3872. #define WM8995_IM_GP1_EINT_SHIFT 0 /* IM_GP1_EINT */
  3873. #define WM8995_IM_GP1_EINT_WIDTH 1 /* IM_GP1_EINT */
  3874. /*
  3875. * R1849 (0x739) - Interrupt Status 2 Mask
  3876. */
  3877. #define WM8995_IM_DCS_DONE_23_EINT 0x1000 /* IM_DCS_DONE_23_EINT */
  3878. #define WM8995_IM_DCS_DONE_23_EINT_MASK 0x1000 /* IM_DCS_DONE_23_EINT */
  3879. #define WM8995_IM_DCS_DONE_23_EINT_SHIFT 12 /* IM_DCS_DONE_23_EINT */
  3880. #define WM8995_IM_DCS_DONE_23_EINT_WIDTH 1 /* IM_DCS_DONE_23_EINT */
  3881. #define WM8995_IM_DCS_DONE_01_EINT 0x0800 /* IM_DCS_DONE_01_EINT */
  3882. #define WM8995_IM_DCS_DONE_01_EINT_MASK 0x0800 /* IM_DCS_DONE_01_EINT */
  3883. #define WM8995_IM_DCS_DONE_01_EINT_SHIFT 11 /* IM_DCS_DONE_01_EINT */
  3884. #define WM8995_IM_DCS_DONE_01_EINT_WIDTH 1 /* IM_DCS_DONE_01_EINT */
  3885. #define WM8995_IM_WSEQ_DONE_EINT 0x0400 /* IM_WSEQ_DONE_EINT */
  3886. #define WM8995_IM_WSEQ_DONE_EINT_MASK 0x0400 /* IM_WSEQ_DONE_EINT */
  3887. #define WM8995_IM_WSEQ_DONE_EINT_SHIFT 10 /* IM_WSEQ_DONE_EINT */
  3888. #define WM8995_IM_WSEQ_DONE_EINT_WIDTH 1 /* IM_WSEQ_DONE_EINT */
  3889. #define WM8995_IM_FIFOS_ERR_EINT 0x0200 /* IM_FIFOS_ERR_EINT */
  3890. #define WM8995_IM_FIFOS_ERR_EINT_MASK 0x0200 /* IM_FIFOS_ERR_EINT */
  3891. #define WM8995_IM_FIFOS_ERR_EINT_SHIFT 9 /* IM_FIFOS_ERR_EINT */
  3892. #define WM8995_IM_FIFOS_ERR_EINT_WIDTH 1 /* IM_FIFOS_ERR_EINT */
  3893. #define WM8995_IM_AIF2DRC_SIG_DET_EINT 0x0100 /* IM_AIF2DRC_SIG_DET_EINT */
  3894. #define WM8995_IM_AIF2DRC_SIG_DET_EINT_MASK 0x0100 /* IM_AIF2DRC_SIG_DET_EINT */
  3895. #define WM8995_IM_AIF2DRC_SIG_DET_EINT_SHIFT 8 /* IM_AIF2DRC_SIG_DET_EINT */
  3896. #define WM8995_IM_AIF2DRC_SIG_DET_EINT_WIDTH 1 /* IM_AIF2DRC_SIG_DET_EINT */
  3897. #define WM8995_IM_AIF1DRC2_SIG_DET_EINT 0x0080 /* IM_AIF1DRC2_SIG_DET_EINT */
  3898. #define WM8995_IM_AIF1DRC2_SIG_DET_EINT_MASK 0x0080 /* IM_AIF1DRC2_SIG_DET_EINT */
  3899. #define WM8995_IM_AIF1DRC2_SIG_DET_EINT_SHIFT 7 /* IM_AIF1DRC2_SIG_DET_EINT */
  3900. #define WM8995_IM_AIF1DRC2_SIG_DET_EINT_WIDTH 1 /* IM_AIF1DRC2_SIG_DET_EINT */
  3901. #define WM8995_IM_AIF1DRC1_SIG_DET_EINT 0x0040 /* IM_AIF1DRC1_SIG_DET_EINT */
  3902. #define WM8995_IM_AIF1DRC1_SIG_DET_EINT_MASK 0x0040 /* IM_AIF1DRC1_SIG_DET_EINT */
  3903. #define WM8995_IM_AIF1DRC1_SIG_DET_EINT_SHIFT 6 /* IM_AIF1DRC1_SIG_DET_EINT */
  3904. #define WM8995_IM_AIF1DRC1_SIG_DET_EINT_WIDTH 1 /* IM_AIF1DRC1_SIG_DET_EINT */
  3905. #define WM8995_IM_SRC2_LOCK_EINT 0x0020 /* IM_SRC2_LOCK_EINT */
  3906. #define WM8995_IM_SRC2_LOCK_EINT_MASK 0x0020 /* IM_SRC2_LOCK_EINT */
  3907. #define WM8995_IM_SRC2_LOCK_EINT_SHIFT 5 /* IM_SRC2_LOCK_EINT */
  3908. #define WM8995_IM_SRC2_LOCK_EINT_WIDTH 1 /* IM_SRC2_LOCK_EINT */
  3909. #define WM8995_IM_SRC1_LOCK_EINT 0x0010 /* IM_SRC1_LOCK_EINT */
  3910. #define WM8995_IM_SRC1_LOCK_EINT_MASK 0x0010 /* IM_SRC1_LOCK_EINT */
  3911. #define WM8995_IM_SRC1_LOCK_EINT_SHIFT 4 /* IM_SRC1_LOCK_EINT */
  3912. #define WM8995_IM_SRC1_LOCK_EINT_WIDTH 1 /* IM_SRC1_LOCK_EINT */
  3913. #define WM8995_IM_FLL2_LOCK_EINT 0x0008 /* IM_FLL2_LOCK_EINT */
  3914. #define WM8995_IM_FLL2_LOCK_EINT_MASK 0x0008 /* IM_FLL2_LOCK_EINT */
  3915. #define WM8995_IM_FLL2_LOCK_EINT_SHIFT 3 /* IM_FLL2_LOCK_EINT */
  3916. #define WM8995_IM_FLL2_LOCK_EINT_WIDTH 1 /* IM_FLL2_LOCK_EINT */
  3917. #define WM8995_IM_FLL1_LOCK_EINT 0x0004 /* IM_FLL1_LOCK_EINT */
  3918. #define WM8995_IM_FLL1_LOCK_EINT_MASK 0x0004 /* IM_FLL1_LOCK_EINT */
  3919. #define WM8995_IM_FLL1_LOCK_EINT_SHIFT 2 /* IM_FLL1_LOCK_EINT */
  3920. #define WM8995_IM_FLL1_LOCK_EINT_WIDTH 1 /* IM_FLL1_LOCK_EINT */
  3921. #define WM8995_IM_HP_DONE_EINT 0x0002 /* IM_HP_DONE_EINT */
  3922. #define WM8995_IM_HP_DONE_EINT_MASK 0x0002 /* IM_HP_DONE_EINT */
  3923. #define WM8995_IM_HP_DONE_EINT_SHIFT 1 /* IM_HP_DONE_EINT */
  3924. #define WM8995_IM_HP_DONE_EINT_WIDTH 1 /* IM_HP_DONE_EINT */
  3925. #define WM8995_IM_MICD_EINT 0x0001 /* IM_MICD_EINT */
  3926. #define WM8995_IM_MICD_EINT_MASK 0x0001 /* IM_MICD_EINT */
  3927. #define WM8995_IM_MICD_EINT_SHIFT 0 /* IM_MICD_EINT */
  3928. #define WM8995_IM_MICD_EINT_WIDTH 1 /* IM_MICD_EINT */
  3929. /*
  3930. * R1856 (0x740) - Interrupt Control
  3931. */
  3932. #define WM8995_IM_IRQ 0x0001 /* IM_IRQ */
  3933. #define WM8995_IM_IRQ_MASK 0x0001 /* IM_IRQ */
  3934. #define WM8995_IM_IRQ_SHIFT 0 /* IM_IRQ */
  3935. #define WM8995_IM_IRQ_WIDTH 1 /* IM_IRQ */
  3936. /*
  3937. * R2048 (0x800) - Left PDM Speaker 1
  3938. */
  3939. #define WM8995_SPK1L_ENA 0x0010 /* SPK1L_ENA */
  3940. #define WM8995_SPK1L_ENA_MASK 0x0010 /* SPK1L_ENA */
  3941. #define WM8995_SPK1L_ENA_SHIFT 4 /* SPK1L_ENA */
  3942. #define WM8995_SPK1L_ENA_WIDTH 1 /* SPK1L_ENA */
  3943. #define WM8995_SPK1L_MUTE 0x0008 /* SPK1L_MUTE */
  3944. #define WM8995_SPK1L_MUTE_MASK 0x0008 /* SPK1L_MUTE */
  3945. #define WM8995_SPK1L_MUTE_SHIFT 3 /* SPK1L_MUTE */
  3946. #define WM8995_SPK1L_MUTE_WIDTH 1 /* SPK1L_MUTE */
  3947. #define WM8995_SPK1L_MUTE_ZC 0x0004 /* SPK1L_MUTE_ZC */
  3948. #define WM8995_SPK1L_MUTE_ZC_MASK 0x0004 /* SPK1L_MUTE_ZC */
  3949. #define WM8995_SPK1L_MUTE_ZC_SHIFT 2 /* SPK1L_MUTE_ZC */
  3950. #define WM8995_SPK1L_MUTE_ZC_WIDTH 1 /* SPK1L_MUTE_ZC */
  3951. #define WM8995_SPK1L_SRC_MASK 0x0003 /* SPK1L_SRC - [1:0] */
  3952. #define WM8995_SPK1L_SRC_SHIFT 0 /* SPK1L_SRC - [1:0] */
  3953. #define WM8995_SPK1L_SRC_WIDTH 2 /* SPK1L_SRC - [1:0] */
  3954. /*
  3955. * R2049 (0x801) - Right PDM Speaker 1
  3956. */
  3957. #define WM8995_SPK1R_ENA 0x0010 /* SPK1R_ENA */
  3958. #define WM8995_SPK1R_ENA_MASK 0x0010 /* SPK1R_ENA */
  3959. #define WM8995_SPK1R_ENA_SHIFT 4 /* SPK1R_ENA */
  3960. #define WM8995_SPK1R_ENA_WIDTH 1 /* SPK1R_ENA */
  3961. #define WM8995_SPK1R_MUTE 0x0008 /* SPK1R_MUTE */
  3962. #define WM8995_SPK1R_MUTE_MASK 0x0008 /* SPK1R_MUTE */
  3963. #define WM8995_SPK1R_MUTE_SHIFT 3 /* SPK1R_MUTE */
  3964. #define WM8995_SPK1R_MUTE_WIDTH 1 /* SPK1R_MUTE */
  3965. #define WM8995_SPK1R_MUTE_ZC 0x0004 /* SPK1R_MUTE_ZC */
  3966. #define WM8995_SPK1R_MUTE_ZC_MASK 0x0004 /* SPK1R_MUTE_ZC */
  3967. #define WM8995_SPK1R_MUTE_ZC_SHIFT 2 /* SPK1R_MUTE_ZC */
  3968. #define WM8995_SPK1R_MUTE_ZC_WIDTH 1 /* SPK1R_MUTE_ZC */
  3969. #define WM8995_SPK1R_SRC_MASK 0x0003 /* SPK1R_SRC - [1:0] */
  3970. #define WM8995_SPK1R_SRC_SHIFT 0 /* SPK1R_SRC - [1:0] */
  3971. #define WM8995_SPK1R_SRC_WIDTH 2 /* SPK1R_SRC - [1:0] */
  3972. /*
  3973. * R2050 (0x802) - PDM Speaker 1 Mute Sequence
  3974. */
  3975. #define WM8995_SPK1_MUTE_SEQ1_MASK 0x00FF /* SPK1_MUTE_SEQ1 - [7:0] */
  3976. #define WM8995_SPK1_MUTE_SEQ1_SHIFT 0 /* SPK1_MUTE_SEQ1 - [7:0] */
  3977. #define WM8995_SPK1_MUTE_SEQ1_WIDTH 8 /* SPK1_MUTE_SEQ1 - [7:0] */
  3978. /*
  3979. * R2056 (0x808) - Left PDM Speaker 2
  3980. */
  3981. #define WM8995_SPK2L_ENA 0x0010 /* SPK2L_ENA */
  3982. #define WM8995_SPK2L_ENA_MASK 0x0010 /* SPK2L_ENA */
  3983. #define WM8995_SPK2L_ENA_SHIFT 4 /* SPK2L_ENA */
  3984. #define WM8995_SPK2L_ENA_WIDTH 1 /* SPK2L_ENA */
  3985. #define WM8995_SPK2L_MUTE 0x0008 /* SPK2L_MUTE */
  3986. #define WM8995_SPK2L_MUTE_MASK 0x0008 /* SPK2L_MUTE */
  3987. #define WM8995_SPK2L_MUTE_SHIFT 3 /* SPK2L_MUTE */
  3988. #define WM8995_SPK2L_MUTE_WIDTH 1 /* SPK2L_MUTE */
  3989. #define WM8995_SPK2L_MUTE_ZC 0x0004 /* SPK2L_MUTE_ZC */
  3990. #define WM8995_SPK2L_MUTE_ZC_MASK 0x0004 /* SPK2L_MUTE_ZC */
  3991. #define WM8995_SPK2L_MUTE_ZC_SHIFT 2 /* SPK2L_MUTE_ZC */
  3992. #define WM8995_SPK2L_MUTE_ZC_WIDTH 1 /* SPK2L_MUTE_ZC */
  3993. #define WM8995_SPK2L_SRC_MASK 0x0003 /* SPK2L_SRC - [1:0] */
  3994. #define WM8995_SPK2L_SRC_SHIFT 0 /* SPK2L_SRC - [1:0] */
  3995. #define WM8995_SPK2L_SRC_WIDTH 2 /* SPK2L_SRC - [1:0] */
  3996. /*
  3997. * R2057 (0x809) - Right PDM Speaker 2
  3998. */
  3999. #define WM8995_SPK2R_ENA 0x0010 /* SPK2R_ENA */
  4000. #define WM8995_SPK2R_ENA_MASK 0x0010 /* SPK2R_ENA */
  4001. #define WM8995_SPK2R_ENA_SHIFT 4 /* SPK2R_ENA */
  4002. #define WM8995_SPK2R_ENA_WIDTH 1 /* SPK2R_ENA */
  4003. #define WM8995_SPK2R_MUTE 0x0008 /* SPK2R_MUTE */
  4004. #define WM8995_SPK2R_MUTE_MASK 0x0008 /* SPK2R_MUTE */
  4005. #define WM8995_SPK2R_MUTE_SHIFT 3 /* SPK2R_MUTE */
  4006. #define WM8995_SPK2R_MUTE_WIDTH 1 /* SPK2R_MUTE */
  4007. #define WM8995_SPK2R_MUTE_ZC 0x0004 /* SPK2R_MUTE_ZC */
  4008. #define WM8995_SPK2R_MUTE_ZC_MASK 0x0004 /* SPK2R_MUTE_ZC */
  4009. #define WM8995_SPK2R_MUTE_ZC_SHIFT 2 /* SPK2R_MUTE_ZC */
  4010. #define WM8995_SPK2R_MUTE_ZC_WIDTH 1 /* SPK2R_MUTE_ZC */
  4011. #define WM8995_SPK2R_SRC_MASK 0x0003 /* SPK2R_SRC - [1:0] */
  4012. #define WM8995_SPK2R_SRC_SHIFT 0 /* SPK2R_SRC - [1:0] */
  4013. #define WM8995_SPK2R_SRC_WIDTH 2 /* SPK2R_SRC - [1:0] */
  4014. /*
  4015. * R2058 (0x80A) - PDM Speaker 2 Mute Sequence
  4016. */
  4017. #define WM8995_SPK2_MUTE_SEQ1_MASK 0x00FF /* SPK2_MUTE_SEQ1 - [7:0] */
  4018. #define WM8995_SPK2_MUTE_SEQ1_SHIFT 0 /* SPK2_MUTE_SEQ1 - [7:0] */
  4019. #define WM8995_SPK2_MUTE_SEQ1_WIDTH 8 /* SPK2_MUTE_SEQ1 - [7:0] */
  4020. #define WM8995_CLASS_W_SWITCH(xname, reg, shift, max, invert) \
  4021. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  4022. .info = snd_soc_info_volsw, \
  4023. .get = snd_soc_dapm_get_volsw, .put = wm8995_put_class_w, \
  4024. .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) \
  4025. }
  4026. struct wm8995_reg_access {
  4027. u16 read;
  4028. u16 write;
  4029. u16 vol;
  4030. };
  4031. /* Sources for AIF1/2 SYSCLK - use with set_dai_sysclk() */
  4032. enum clk_src {
  4033. WM8995_SYSCLK_MCLK1 = 1,
  4034. WM8995_SYSCLK_MCLK2,
  4035. WM8995_SYSCLK_FLL1,
  4036. WM8995_SYSCLK_FLL2,
  4037. WM8995_SYSCLK_OPCLK
  4038. };
  4039. #define WM8995_FLL1 1
  4040. #define WM8995_FLL2 2
  4041. #define WM8995_FLL_SRC_MCLK1 1
  4042. #define WM8995_FLL_SRC_MCLK2 2
  4043. #define WM8995_FLL_SRC_LRCLK 3
  4044. #define WM8995_FLL_SRC_BCLK 4
  4045. #endif /* _WM8995_H */