wm8996.h 216 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722
  1. /*
  2. * wm8996.h - WM8996 audio codec interface
  3. *
  4. * Copyright 2011 Wolfson Microelectronics PLC.
  5. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. #ifndef _WM8996_H
  13. #define _WM8996_H
  14. #define WM8996_SYSCLK_MCLK1 1
  15. #define WM8996_SYSCLK_MCLK2 2
  16. #define WM8996_SYSCLK_FLL 3
  17. #define WM8996_FLL_MCLK1 1
  18. #define WM8996_FLL_MCLK2 2
  19. #define WM8996_FLL_DACLRCLK1 3
  20. #define WM8996_FLL_BCLK1 4
  21. typedef void (*wm8996_polarity_fn)(struct snd_soc_codec *codec, int polarity);
  22. int wm8996_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
  23. wm8996_polarity_fn polarity_cb);
  24. /*
  25. * Register values.
  26. */
  27. #define WM8996_SOFTWARE_RESET 0x00
  28. #define WM8996_POWER_MANAGEMENT_1 0x01
  29. #define WM8996_POWER_MANAGEMENT_2 0x02
  30. #define WM8996_POWER_MANAGEMENT_3 0x03
  31. #define WM8996_POWER_MANAGEMENT_4 0x04
  32. #define WM8996_POWER_MANAGEMENT_5 0x05
  33. #define WM8996_POWER_MANAGEMENT_6 0x06
  34. #define WM8996_POWER_MANAGEMENT_7 0x07
  35. #define WM8996_POWER_MANAGEMENT_8 0x08
  36. #define WM8996_LEFT_LINE_INPUT_VOLUME 0x10
  37. #define WM8996_RIGHT_LINE_INPUT_VOLUME 0x11
  38. #define WM8996_LINE_INPUT_CONTROL 0x12
  39. #define WM8996_DAC1_HPOUT1_VOLUME 0x15
  40. #define WM8996_DAC2_HPOUT2_VOLUME 0x16
  41. #define WM8996_DAC1_LEFT_VOLUME 0x18
  42. #define WM8996_DAC1_RIGHT_VOLUME 0x19
  43. #define WM8996_DAC2_LEFT_VOLUME 0x1A
  44. #define WM8996_DAC2_RIGHT_VOLUME 0x1B
  45. #define WM8996_OUTPUT1_LEFT_VOLUME 0x1C
  46. #define WM8996_OUTPUT1_RIGHT_VOLUME 0x1D
  47. #define WM8996_OUTPUT2_LEFT_VOLUME 0x1E
  48. #define WM8996_OUTPUT2_RIGHT_VOLUME 0x1F
  49. #define WM8996_MICBIAS_1 0x20
  50. #define WM8996_MICBIAS_2 0x21
  51. #define WM8996_LDO_1 0x28
  52. #define WM8996_LDO_2 0x29
  53. #define WM8996_ACCESSORY_DETECT_MODE_1 0x30
  54. #define WM8996_ACCESSORY_DETECT_MODE_2 0x31
  55. #define WM8996_HEADPHONE_DETECT_1 0x34
  56. #define WM8996_HEADPHONE_DETECT_2 0x35
  57. #define WM8996_MIC_DETECT_1 0x38
  58. #define WM8996_MIC_DETECT_2 0x39
  59. #define WM8996_MIC_DETECT_3 0x3A
  60. #define WM8996_CHARGE_PUMP_1 0x40
  61. #define WM8996_CHARGE_PUMP_2 0x41
  62. #define WM8996_DC_SERVO_1 0x50
  63. #define WM8996_DC_SERVO_2 0x51
  64. #define WM8996_DC_SERVO_3 0x52
  65. #define WM8996_DC_SERVO_5 0x54
  66. #define WM8996_DC_SERVO_6 0x55
  67. #define WM8996_DC_SERVO_7 0x56
  68. #define WM8996_DC_SERVO_READBACK_0 0x57
  69. #define WM8996_ANALOGUE_HP_1 0x60
  70. #define WM8996_ANALOGUE_HP_2 0x61
  71. #define WM8996_CHIP_REVISION 0x100
  72. #define WM8996_CONTROL_INTERFACE_1 0x101
  73. #define WM8996_WRITE_SEQUENCER_CTRL_1 0x110
  74. #define WM8996_WRITE_SEQUENCER_CTRL_2 0x111
  75. #define WM8996_AIF_CLOCKING_1 0x200
  76. #define WM8996_AIF_CLOCKING_2 0x201
  77. #define WM8996_CLOCKING_1 0x208
  78. #define WM8996_CLOCKING_2 0x209
  79. #define WM8996_AIF_RATE 0x210
  80. #define WM8996_FLL_CONTROL_1 0x220
  81. #define WM8996_FLL_CONTROL_2 0x221
  82. #define WM8996_FLL_CONTROL_3 0x222
  83. #define WM8996_FLL_CONTROL_4 0x223
  84. #define WM8996_FLL_CONTROL_5 0x224
  85. #define WM8996_FLL_CONTROL_6 0x225
  86. #define WM8996_FLL_EFS_1 0x226
  87. #define WM8996_FLL_EFS_2 0x227
  88. #define WM8996_AIF1_CONTROL 0x300
  89. #define WM8996_AIF1_BCLK 0x301
  90. #define WM8996_AIF1_TX_LRCLK_1 0x302
  91. #define WM8996_AIF1_TX_LRCLK_2 0x303
  92. #define WM8996_AIF1_RX_LRCLK_1 0x304
  93. #define WM8996_AIF1_RX_LRCLK_2 0x305
  94. #define WM8996_AIF1TX_DATA_CONFIGURATION_1 0x306
  95. #define WM8996_AIF1TX_DATA_CONFIGURATION_2 0x307
  96. #define WM8996_AIF1RX_DATA_CONFIGURATION 0x308
  97. #define WM8996_AIF1TX_CHANNEL_0_CONFIGURATION 0x309
  98. #define WM8996_AIF1TX_CHANNEL_1_CONFIGURATION 0x30A
  99. #define WM8996_AIF1TX_CHANNEL_2_CONFIGURATION 0x30B
  100. #define WM8996_AIF1TX_CHANNEL_3_CONFIGURATION 0x30C
  101. #define WM8996_AIF1TX_CHANNEL_4_CONFIGURATION 0x30D
  102. #define WM8996_AIF1TX_CHANNEL_5_CONFIGURATION 0x30E
  103. #define WM8996_AIF1RX_CHANNEL_0_CONFIGURATION 0x30F
  104. #define WM8996_AIF1RX_CHANNEL_1_CONFIGURATION 0x310
  105. #define WM8996_AIF1RX_CHANNEL_2_CONFIGURATION 0x311
  106. #define WM8996_AIF1RX_CHANNEL_3_CONFIGURATION 0x312
  107. #define WM8996_AIF1RX_CHANNEL_4_CONFIGURATION 0x313
  108. #define WM8996_AIF1RX_CHANNEL_5_CONFIGURATION 0x314
  109. #define WM8996_AIF1RX_MONO_CONFIGURATION 0x315
  110. #define WM8996_AIF1TX_TEST 0x31A
  111. #define WM8996_AIF2_CONTROL 0x320
  112. #define WM8996_AIF2_BCLK 0x321
  113. #define WM8996_AIF2_TX_LRCLK_1 0x322
  114. #define WM8996_AIF2_TX_LRCLK_2 0x323
  115. #define WM8996_AIF2_RX_LRCLK_1 0x324
  116. #define WM8996_AIF2_RX_LRCLK_2 0x325
  117. #define WM8996_AIF2TX_DATA_CONFIGURATION_1 0x326
  118. #define WM8996_AIF2TX_DATA_CONFIGURATION_2 0x327
  119. #define WM8996_AIF2RX_DATA_CONFIGURATION 0x328
  120. #define WM8996_AIF2TX_CHANNEL_0_CONFIGURATION 0x329
  121. #define WM8996_AIF2TX_CHANNEL_1_CONFIGURATION 0x32A
  122. #define WM8996_AIF2RX_CHANNEL_0_CONFIGURATION 0x32B
  123. #define WM8996_AIF2RX_CHANNEL_1_CONFIGURATION 0x32C
  124. #define WM8996_AIF2RX_MONO_CONFIGURATION 0x32D
  125. #define WM8996_AIF2TX_TEST 0x32F
  126. #define WM8996_DSP1_TX_LEFT_VOLUME 0x400
  127. #define WM8996_DSP1_TX_RIGHT_VOLUME 0x401
  128. #define WM8996_DSP1_RX_LEFT_VOLUME 0x402
  129. #define WM8996_DSP1_RX_RIGHT_VOLUME 0x403
  130. #define WM8996_DSP1_TX_FILTERS 0x410
  131. #define WM8996_DSP1_RX_FILTERS_1 0x420
  132. #define WM8996_DSP1_RX_FILTERS_2 0x421
  133. #define WM8996_DSP1_DRC_1 0x440
  134. #define WM8996_DSP1_DRC_2 0x441
  135. #define WM8996_DSP1_DRC_3 0x442
  136. #define WM8996_DSP1_DRC_4 0x443
  137. #define WM8996_DSP1_DRC_5 0x444
  138. #define WM8996_DSP1_RX_EQ_GAINS_1 0x480
  139. #define WM8996_DSP1_RX_EQ_GAINS_2 0x481
  140. #define WM8996_DSP1_RX_EQ_BAND_1_A 0x482
  141. #define WM8996_DSP1_RX_EQ_BAND_1_B 0x483
  142. #define WM8996_DSP1_RX_EQ_BAND_1_PG 0x484
  143. #define WM8996_DSP1_RX_EQ_BAND_2_A 0x485
  144. #define WM8996_DSP1_RX_EQ_BAND_2_B 0x486
  145. #define WM8996_DSP1_RX_EQ_BAND_2_C 0x487
  146. #define WM8996_DSP1_RX_EQ_BAND_2_PG 0x488
  147. #define WM8996_DSP1_RX_EQ_BAND_3_A 0x489
  148. #define WM8996_DSP1_RX_EQ_BAND_3_B 0x48A
  149. #define WM8996_DSP1_RX_EQ_BAND_3_C 0x48B
  150. #define WM8996_DSP1_RX_EQ_BAND_3_PG 0x48C
  151. #define WM8996_DSP1_RX_EQ_BAND_4_A 0x48D
  152. #define WM8996_DSP1_RX_EQ_BAND_4_B 0x48E
  153. #define WM8996_DSP1_RX_EQ_BAND_4_C 0x48F
  154. #define WM8996_DSP1_RX_EQ_BAND_4_PG 0x490
  155. #define WM8996_DSP1_RX_EQ_BAND_5_A 0x491
  156. #define WM8996_DSP1_RX_EQ_BAND_5_B 0x492
  157. #define WM8996_DSP1_RX_EQ_BAND_5_PG 0x493
  158. #define WM8996_DSP2_TX_LEFT_VOLUME 0x500
  159. #define WM8996_DSP2_TX_RIGHT_VOLUME 0x501
  160. #define WM8996_DSP2_RX_LEFT_VOLUME 0x502
  161. #define WM8996_DSP2_RX_RIGHT_VOLUME 0x503
  162. #define WM8996_DSP2_TX_FILTERS 0x510
  163. #define WM8996_DSP2_RX_FILTERS_1 0x520
  164. #define WM8996_DSP2_RX_FILTERS_2 0x521
  165. #define WM8996_DSP2_DRC_1 0x540
  166. #define WM8996_DSP2_DRC_2 0x541
  167. #define WM8996_DSP2_DRC_3 0x542
  168. #define WM8996_DSP2_DRC_4 0x543
  169. #define WM8996_DSP2_DRC_5 0x544
  170. #define WM8996_DSP2_RX_EQ_GAINS_1 0x580
  171. #define WM8996_DSP2_RX_EQ_GAINS_2 0x581
  172. #define WM8996_DSP2_RX_EQ_BAND_1_A 0x582
  173. #define WM8996_DSP2_RX_EQ_BAND_1_B 0x583
  174. #define WM8996_DSP2_RX_EQ_BAND_1_PG 0x584
  175. #define WM8996_DSP2_RX_EQ_BAND_2_A 0x585
  176. #define WM8996_DSP2_RX_EQ_BAND_2_B 0x586
  177. #define WM8996_DSP2_RX_EQ_BAND_2_C 0x587
  178. #define WM8996_DSP2_RX_EQ_BAND_2_PG 0x588
  179. #define WM8996_DSP2_RX_EQ_BAND_3_A 0x589
  180. #define WM8996_DSP2_RX_EQ_BAND_3_B 0x58A
  181. #define WM8996_DSP2_RX_EQ_BAND_3_C 0x58B
  182. #define WM8996_DSP2_RX_EQ_BAND_3_PG 0x58C
  183. #define WM8996_DSP2_RX_EQ_BAND_4_A 0x58D
  184. #define WM8996_DSP2_RX_EQ_BAND_4_B 0x58E
  185. #define WM8996_DSP2_RX_EQ_BAND_4_C 0x58F
  186. #define WM8996_DSP2_RX_EQ_BAND_4_PG 0x590
  187. #define WM8996_DSP2_RX_EQ_BAND_5_A 0x591
  188. #define WM8996_DSP2_RX_EQ_BAND_5_B 0x592
  189. #define WM8996_DSP2_RX_EQ_BAND_5_PG 0x593
  190. #define WM8996_DAC1_MIXER_VOLUMES 0x600
  191. #define WM8996_DAC1_LEFT_MIXER_ROUTING 0x601
  192. #define WM8996_DAC1_RIGHT_MIXER_ROUTING 0x602
  193. #define WM8996_DAC2_MIXER_VOLUMES 0x603
  194. #define WM8996_DAC2_LEFT_MIXER_ROUTING 0x604
  195. #define WM8996_DAC2_RIGHT_MIXER_ROUTING 0x605
  196. #define WM8996_DSP1_TX_LEFT_MIXER_ROUTING 0x606
  197. #define WM8996_DSP1_TX_RIGHT_MIXER_ROUTING 0x607
  198. #define WM8996_DSP2_TX_LEFT_MIXER_ROUTING 0x608
  199. #define WM8996_DSP2_TX_RIGHT_MIXER_ROUTING 0x609
  200. #define WM8996_DSP_TX_MIXER_SELECT 0x60A
  201. #define WM8996_DAC_SOFTMUTE 0x610
  202. #define WM8996_OVERSAMPLING 0x620
  203. #define WM8996_SIDETONE 0x621
  204. #define WM8996_GPIO_1 0x700
  205. #define WM8996_GPIO_2 0x701
  206. #define WM8996_GPIO_3 0x702
  207. #define WM8996_GPIO_4 0x703
  208. #define WM8996_GPIO_5 0x704
  209. #define WM8996_PULL_CONTROL_1 0x720
  210. #define WM8996_PULL_CONTROL_2 0x721
  211. #define WM8996_INTERRUPT_STATUS_1 0x730
  212. #define WM8996_INTERRUPT_STATUS_2 0x731
  213. #define WM8996_INTERRUPT_RAW_STATUS_2 0x732
  214. #define WM8996_INTERRUPT_STATUS_1_MASK 0x738
  215. #define WM8996_INTERRUPT_STATUS_2_MASK 0x739
  216. #define WM8996_INTERRUPT_CONTROL 0x740
  217. #define WM8996_LEFT_PDM_SPEAKER 0x800
  218. #define WM8996_RIGHT_PDM_SPEAKER 0x801
  219. #define WM8996_PDM_SPEAKER_MUTE_SEQUENCE 0x802
  220. #define WM8996_PDM_SPEAKER_VOLUME 0x803
  221. #define WM8996_WRITE_SEQUENCER_0 0x3000
  222. #define WM8996_WRITE_SEQUENCER_1 0x3001
  223. #define WM8996_WRITE_SEQUENCER_2 0x3002
  224. #define WM8996_WRITE_SEQUENCER_3 0x3003
  225. #define WM8996_WRITE_SEQUENCER_4 0x3004
  226. #define WM8996_WRITE_SEQUENCER_5 0x3005
  227. #define WM8996_WRITE_SEQUENCER_6 0x3006
  228. #define WM8996_WRITE_SEQUENCER_7 0x3007
  229. #define WM8996_WRITE_SEQUENCER_8 0x3008
  230. #define WM8996_WRITE_SEQUENCER_9 0x3009
  231. #define WM8996_WRITE_SEQUENCER_10 0x300A
  232. #define WM8996_WRITE_SEQUENCER_11 0x300B
  233. #define WM8996_WRITE_SEQUENCER_12 0x300C
  234. #define WM8996_WRITE_SEQUENCER_13 0x300D
  235. #define WM8996_WRITE_SEQUENCER_14 0x300E
  236. #define WM8996_WRITE_SEQUENCER_15 0x300F
  237. #define WM8996_WRITE_SEQUENCER_16 0x3010
  238. #define WM8996_WRITE_SEQUENCER_17 0x3011
  239. #define WM8996_WRITE_SEQUENCER_18 0x3012
  240. #define WM8996_WRITE_SEQUENCER_19 0x3013
  241. #define WM8996_WRITE_SEQUENCER_20 0x3014
  242. #define WM8996_WRITE_SEQUENCER_21 0x3015
  243. #define WM8996_WRITE_SEQUENCER_22 0x3016
  244. #define WM8996_WRITE_SEQUENCER_23 0x3017
  245. #define WM8996_WRITE_SEQUENCER_24 0x3018
  246. #define WM8996_WRITE_SEQUENCER_25 0x3019
  247. #define WM8996_WRITE_SEQUENCER_26 0x301A
  248. #define WM8996_WRITE_SEQUENCER_27 0x301B
  249. #define WM8996_WRITE_SEQUENCER_28 0x301C
  250. #define WM8996_WRITE_SEQUENCER_29 0x301D
  251. #define WM8996_WRITE_SEQUENCER_30 0x301E
  252. #define WM8996_WRITE_SEQUENCER_31 0x301F
  253. #define WM8996_WRITE_SEQUENCER_32 0x3020
  254. #define WM8996_WRITE_SEQUENCER_33 0x3021
  255. #define WM8996_WRITE_SEQUENCER_34 0x3022
  256. #define WM8996_WRITE_SEQUENCER_35 0x3023
  257. #define WM8996_WRITE_SEQUENCER_36 0x3024
  258. #define WM8996_WRITE_SEQUENCER_37 0x3025
  259. #define WM8996_WRITE_SEQUENCER_38 0x3026
  260. #define WM8996_WRITE_SEQUENCER_39 0x3027
  261. #define WM8996_WRITE_SEQUENCER_40 0x3028
  262. #define WM8996_WRITE_SEQUENCER_41 0x3029
  263. #define WM8996_WRITE_SEQUENCER_42 0x302A
  264. #define WM8996_WRITE_SEQUENCER_43 0x302B
  265. #define WM8996_WRITE_SEQUENCER_44 0x302C
  266. #define WM8996_WRITE_SEQUENCER_45 0x302D
  267. #define WM8996_WRITE_SEQUENCER_46 0x302E
  268. #define WM8996_WRITE_SEQUENCER_47 0x302F
  269. #define WM8996_WRITE_SEQUENCER_48 0x3030
  270. #define WM8996_WRITE_SEQUENCER_49 0x3031
  271. #define WM8996_WRITE_SEQUENCER_50 0x3032
  272. #define WM8996_WRITE_SEQUENCER_51 0x3033
  273. #define WM8996_WRITE_SEQUENCER_52 0x3034
  274. #define WM8996_WRITE_SEQUENCER_53 0x3035
  275. #define WM8996_WRITE_SEQUENCER_54 0x3036
  276. #define WM8996_WRITE_SEQUENCER_55 0x3037
  277. #define WM8996_WRITE_SEQUENCER_56 0x3038
  278. #define WM8996_WRITE_SEQUENCER_57 0x3039
  279. #define WM8996_WRITE_SEQUENCER_58 0x303A
  280. #define WM8996_WRITE_SEQUENCER_59 0x303B
  281. #define WM8996_WRITE_SEQUENCER_60 0x303C
  282. #define WM8996_WRITE_SEQUENCER_61 0x303D
  283. #define WM8996_WRITE_SEQUENCER_62 0x303E
  284. #define WM8996_WRITE_SEQUENCER_63 0x303F
  285. #define WM8996_WRITE_SEQUENCER_64 0x3040
  286. #define WM8996_WRITE_SEQUENCER_65 0x3041
  287. #define WM8996_WRITE_SEQUENCER_66 0x3042
  288. #define WM8996_WRITE_SEQUENCER_67 0x3043
  289. #define WM8996_WRITE_SEQUENCER_68 0x3044
  290. #define WM8996_WRITE_SEQUENCER_69 0x3045
  291. #define WM8996_WRITE_SEQUENCER_70 0x3046
  292. #define WM8996_WRITE_SEQUENCER_71 0x3047
  293. #define WM8996_WRITE_SEQUENCER_72 0x3048
  294. #define WM8996_WRITE_SEQUENCER_73 0x3049
  295. #define WM8996_WRITE_SEQUENCER_74 0x304A
  296. #define WM8996_WRITE_SEQUENCER_75 0x304B
  297. #define WM8996_WRITE_SEQUENCER_76 0x304C
  298. #define WM8996_WRITE_SEQUENCER_77 0x304D
  299. #define WM8996_WRITE_SEQUENCER_78 0x304E
  300. #define WM8996_WRITE_SEQUENCER_79 0x304F
  301. #define WM8996_WRITE_SEQUENCER_80 0x3050
  302. #define WM8996_WRITE_SEQUENCER_81 0x3051
  303. #define WM8996_WRITE_SEQUENCER_82 0x3052
  304. #define WM8996_WRITE_SEQUENCER_83 0x3053
  305. #define WM8996_WRITE_SEQUENCER_84 0x3054
  306. #define WM8996_WRITE_SEQUENCER_85 0x3055
  307. #define WM8996_WRITE_SEQUENCER_86 0x3056
  308. #define WM8996_WRITE_SEQUENCER_87 0x3057
  309. #define WM8996_WRITE_SEQUENCER_88 0x3058
  310. #define WM8996_WRITE_SEQUENCER_89 0x3059
  311. #define WM8996_WRITE_SEQUENCER_90 0x305A
  312. #define WM8996_WRITE_SEQUENCER_91 0x305B
  313. #define WM8996_WRITE_SEQUENCER_92 0x305C
  314. #define WM8996_WRITE_SEQUENCER_93 0x305D
  315. #define WM8996_WRITE_SEQUENCER_94 0x305E
  316. #define WM8996_WRITE_SEQUENCER_95 0x305F
  317. #define WM8996_WRITE_SEQUENCER_96 0x3060
  318. #define WM8996_WRITE_SEQUENCER_97 0x3061
  319. #define WM8996_WRITE_SEQUENCER_98 0x3062
  320. #define WM8996_WRITE_SEQUENCER_99 0x3063
  321. #define WM8996_WRITE_SEQUENCER_100 0x3064
  322. #define WM8996_WRITE_SEQUENCER_101 0x3065
  323. #define WM8996_WRITE_SEQUENCER_102 0x3066
  324. #define WM8996_WRITE_SEQUENCER_103 0x3067
  325. #define WM8996_WRITE_SEQUENCER_104 0x3068
  326. #define WM8996_WRITE_SEQUENCER_105 0x3069
  327. #define WM8996_WRITE_SEQUENCER_106 0x306A
  328. #define WM8996_WRITE_SEQUENCER_107 0x306B
  329. #define WM8996_WRITE_SEQUENCER_108 0x306C
  330. #define WM8996_WRITE_SEQUENCER_109 0x306D
  331. #define WM8996_WRITE_SEQUENCER_110 0x306E
  332. #define WM8996_WRITE_SEQUENCER_111 0x306F
  333. #define WM8996_WRITE_SEQUENCER_112 0x3070
  334. #define WM8996_WRITE_SEQUENCER_113 0x3071
  335. #define WM8996_WRITE_SEQUENCER_114 0x3072
  336. #define WM8996_WRITE_SEQUENCER_115 0x3073
  337. #define WM8996_WRITE_SEQUENCER_116 0x3074
  338. #define WM8996_WRITE_SEQUENCER_117 0x3075
  339. #define WM8996_WRITE_SEQUENCER_118 0x3076
  340. #define WM8996_WRITE_SEQUENCER_119 0x3077
  341. #define WM8996_WRITE_SEQUENCER_120 0x3078
  342. #define WM8996_WRITE_SEQUENCER_121 0x3079
  343. #define WM8996_WRITE_SEQUENCER_122 0x307A
  344. #define WM8996_WRITE_SEQUENCER_123 0x307B
  345. #define WM8996_WRITE_SEQUENCER_124 0x307C
  346. #define WM8996_WRITE_SEQUENCER_125 0x307D
  347. #define WM8996_WRITE_SEQUENCER_126 0x307E
  348. #define WM8996_WRITE_SEQUENCER_127 0x307F
  349. #define WM8996_WRITE_SEQUENCER_128 0x3080
  350. #define WM8996_WRITE_SEQUENCER_129 0x3081
  351. #define WM8996_WRITE_SEQUENCER_130 0x3082
  352. #define WM8996_WRITE_SEQUENCER_131 0x3083
  353. #define WM8996_WRITE_SEQUENCER_132 0x3084
  354. #define WM8996_WRITE_SEQUENCER_133 0x3085
  355. #define WM8996_WRITE_SEQUENCER_134 0x3086
  356. #define WM8996_WRITE_SEQUENCER_135 0x3087
  357. #define WM8996_WRITE_SEQUENCER_136 0x3088
  358. #define WM8996_WRITE_SEQUENCER_137 0x3089
  359. #define WM8996_WRITE_SEQUENCER_138 0x308A
  360. #define WM8996_WRITE_SEQUENCER_139 0x308B
  361. #define WM8996_WRITE_SEQUENCER_140 0x308C
  362. #define WM8996_WRITE_SEQUENCER_141 0x308D
  363. #define WM8996_WRITE_SEQUENCER_142 0x308E
  364. #define WM8996_WRITE_SEQUENCER_143 0x308F
  365. #define WM8996_WRITE_SEQUENCER_144 0x3090
  366. #define WM8996_WRITE_SEQUENCER_145 0x3091
  367. #define WM8996_WRITE_SEQUENCER_146 0x3092
  368. #define WM8996_WRITE_SEQUENCER_147 0x3093
  369. #define WM8996_WRITE_SEQUENCER_148 0x3094
  370. #define WM8996_WRITE_SEQUENCER_149 0x3095
  371. #define WM8996_WRITE_SEQUENCER_150 0x3096
  372. #define WM8996_WRITE_SEQUENCER_151 0x3097
  373. #define WM8996_WRITE_SEQUENCER_152 0x3098
  374. #define WM8996_WRITE_SEQUENCER_153 0x3099
  375. #define WM8996_WRITE_SEQUENCER_154 0x309A
  376. #define WM8996_WRITE_SEQUENCER_155 0x309B
  377. #define WM8996_WRITE_SEQUENCER_156 0x309C
  378. #define WM8996_WRITE_SEQUENCER_157 0x309D
  379. #define WM8996_WRITE_SEQUENCER_158 0x309E
  380. #define WM8996_WRITE_SEQUENCER_159 0x309F
  381. #define WM8996_WRITE_SEQUENCER_160 0x30A0
  382. #define WM8996_WRITE_SEQUENCER_161 0x30A1
  383. #define WM8996_WRITE_SEQUENCER_162 0x30A2
  384. #define WM8996_WRITE_SEQUENCER_163 0x30A3
  385. #define WM8996_WRITE_SEQUENCER_164 0x30A4
  386. #define WM8996_WRITE_SEQUENCER_165 0x30A5
  387. #define WM8996_WRITE_SEQUENCER_166 0x30A6
  388. #define WM8996_WRITE_SEQUENCER_167 0x30A7
  389. #define WM8996_WRITE_SEQUENCER_168 0x30A8
  390. #define WM8996_WRITE_SEQUENCER_169 0x30A9
  391. #define WM8996_WRITE_SEQUENCER_170 0x30AA
  392. #define WM8996_WRITE_SEQUENCER_171 0x30AB
  393. #define WM8996_WRITE_SEQUENCER_172 0x30AC
  394. #define WM8996_WRITE_SEQUENCER_173 0x30AD
  395. #define WM8996_WRITE_SEQUENCER_174 0x30AE
  396. #define WM8996_WRITE_SEQUENCER_175 0x30AF
  397. #define WM8996_WRITE_SEQUENCER_176 0x30B0
  398. #define WM8996_WRITE_SEQUENCER_177 0x30B1
  399. #define WM8996_WRITE_SEQUENCER_178 0x30B2
  400. #define WM8996_WRITE_SEQUENCER_179 0x30B3
  401. #define WM8996_WRITE_SEQUENCER_180 0x30B4
  402. #define WM8996_WRITE_SEQUENCER_181 0x30B5
  403. #define WM8996_WRITE_SEQUENCER_182 0x30B6
  404. #define WM8996_WRITE_SEQUENCER_183 0x30B7
  405. #define WM8996_WRITE_SEQUENCER_184 0x30B8
  406. #define WM8996_WRITE_SEQUENCER_185 0x30B9
  407. #define WM8996_WRITE_SEQUENCER_186 0x30BA
  408. #define WM8996_WRITE_SEQUENCER_187 0x30BB
  409. #define WM8996_WRITE_SEQUENCER_188 0x30BC
  410. #define WM8996_WRITE_SEQUENCER_189 0x30BD
  411. #define WM8996_WRITE_SEQUENCER_190 0x30BE
  412. #define WM8996_WRITE_SEQUENCER_191 0x30BF
  413. #define WM8996_WRITE_SEQUENCER_192 0x30C0
  414. #define WM8996_WRITE_SEQUENCER_193 0x30C1
  415. #define WM8996_WRITE_SEQUENCER_194 0x30C2
  416. #define WM8996_WRITE_SEQUENCER_195 0x30C3
  417. #define WM8996_WRITE_SEQUENCER_196 0x30C4
  418. #define WM8996_WRITE_SEQUENCER_197 0x30C5
  419. #define WM8996_WRITE_SEQUENCER_198 0x30C6
  420. #define WM8996_WRITE_SEQUENCER_199 0x30C7
  421. #define WM8996_WRITE_SEQUENCER_200 0x30C8
  422. #define WM8996_WRITE_SEQUENCER_201 0x30C9
  423. #define WM8996_WRITE_SEQUENCER_202 0x30CA
  424. #define WM8996_WRITE_SEQUENCER_203 0x30CB
  425. #define WM8996_WRITE_SEQUENCER_204 0x30CC
  426. #define WM8996_WRITE_SEQUENCER_205 0x30CD
  427. #define WM8996_WRITE_SEQUENCER_206 0x30CE
  428. #define WM8996_WRITE_SEQUENCER_207 0x30CF
  429. #define WM8996_WRITE_SEQUENCER_208 0x30D0
  430. #define WM8996_WRITE_SEQUENCER_209 0x30D1
  431. #define WM8996_WRITE_SEQUENCER_210 0x30D2
  432. #define WM8996_WRITE_SEQUENCER_211 0x30D3
  433. #define WM8996_WRITE_SEQUENCER_212 0x30D4
  434. #define WM8996_WRITE_SEQUENCER_213 0x30D5
  435. #define WM8996_WRITE_SEQUENCER_214 0x30D6
  436. #define WM8996_WRITE_SEQUENCER_215 0x30D7
  437. #define WM8996_WRITE_SEQUENCER_216 0x30D8
  438. #define WM8996_WRITE_SEQUENCER_217 0x30D9
  439. #define WM8996_WRITE_SEQUENCER_218 0x30DA
  440. #define WM8996_WRITE_SEQUENCER_219 0x30DB
  441. #define WM8996_WRITE_SEQUENCER_220 0x30DC
  442. #define WM8996_WRITE_SEQUENCER_221 0x30DD
  443. #define WM8996_WRITE_SEQUENCER_222 0x30DE
  444. #define WM8996_WRITE_SEQUENCER_223 0x30DF
  445. #define WM8996_WRITE_SEQUENCER_224 0x30E0
  446. #define WM8996_WRITE_SEQUENCER_225 0x30E1
  447. #define WM8996_WRITE_SEQUENCER_226 0x30E2
  448. #define WM8996_WRITE_SEQUENCER_227 0x30E3
  449. #define WM8996_WRITE_SEQUENCER_228 0x30E4
  450. #define WM8996_WRITE_SEQUENCER_229 0x30E5
  451. #define WM8996_WRITE_SEQUENCER_230 0x30E6
  452. #define WM8996_WRITE_SEQUENCER_231 0x30E7
  453. #define WM8996_WRITE_SEQUENCER_232 0x30E8
  454. #define WM8996_WRITE_SEQUENCER_233 0x30E9
  455. #define WM8996_WRITE_SEQUENCER_234 0x30EA
  456. #define WM8996_WRITE_SEQUENCER_235 0x30EB
  457. #define WM8996_WRITE_SEQUENCER_236 0x30EC
  458. #define WM8996_WRITE_SEQUENCER_237 0x30ED
  459. #define WM8996_WRITE_SEQUENCER_238 0x30EE
  460. #define WM8996_WRITE_SEQUENCER_239 0x30EF
  461. #define WM8996_WRITE_SEQUENCER_240 0x30F0
  462. #define WM8996_WRITE_SEQUENCER_241 0x30F1
  463. #define WM8996_WRITE_SEQUENCER_242 0x30F2
  464. #define WM8996_WRITE_SEQUENCER_243 0x30F3
  465. #define WM8996_WRITE_SEQUENCER_244 0x30F4
  466. #define WM8996_WRITE_SEQUENCER_245 0x30F5
  467. #define WM8996_WRITE_SEQUENCER_246 0x30F6
  468. #define WM8996_WRITE_SEQUENCER_247 0x30F7
  469. #define WM8996_WRITE_SEQUENCER_248 0x30F8
  470. #define WM8996_WRITE_SEQUENCER_249 0x30F9
  471. #define WM8996_WRITE_SEQUENCER_250 0x30FA
  472. #define WM8996_WRITE_SEQUENCER_251 0x30FB
  473. #define WM8996_WRITE_SEQUENCER_252 0x30FC
  474. #define WM8996_WRITE_SEQUENCER_253 0x30FD
  475. #define WM8996_WRITE_SEQUENCER_254 0x30FE
  476. #define WM8996_WRITE_SEQUENCER_255 0x30FF
  477. #define WM8996_WRITE_SEQUENCER_256 0x3100
  478. #define WM8996_WRITE_SEQUENCER_257 0x3101
  479. #define WM8996_WRITE_SEQUENCER_258 0x3102
  480. #define WM8996_WRITE_SEQUENCER_259 0x3103
  481. #define WM8996_WRITE_SEQUENCER_260 0x3104
  482. #define WM8996_WRITE_SEQUENCER_261 0x3105
  483. #define WM8996_WRITE_SEQUENCER_262 0x3106
  484. #define WM8996_WRITE_SEQUENCER_263 0x3107
  485. #define WM8996_WRITE_SEQUENCER_264 0x3108
  486. #define WM8996_WRITE_SEQUENCER_265 0x3109
  487. #define WM8996_WRITE_SEQUENCER_266 0x310A
  488. #define WM8996_WRITE_SEQUENCER_267 0x310B
  489. #define WM8996_WRITE_SEQUENCER_268 0x310C
  490. #define WM8996_WRITE_SEQUENCER_269 0x310D
  491. #define WM8996_WRITE_SEQUENCER_270 0x310E
  492. #define WM8996_WRITE_SEQUENCER_271 0x310F
  493. #define WM8996_WRITE_SEQUENCER_272 0x3110
  494. #define WM8996_WRITE_SEQUENCER_273 0x3111
  495. #define WM8996_WRITE_SEQUENCER_274 0x3112
  496. #define WM8996_WRITE_SEQUENCER_275 0x3113
  497. #define WM8996_WRITE_SEQUENCER_276 0x3114
  498. #define WM8996_WRITE_SEQUENCER_277 0x3115
  499. #define WM8996_WRITE_SEQUENCER_278 0x3116
  500. #define WM8996_WRITE_SEQUENCER_279 0x3117
  501. #define WM8996_WRITE_SEQUENCER_280 0x3118
  502. #define WM8996_WRITE_SEQUENCER_281 0x3119
  503. #define WM8996_WRITE_SEQUENCER_282 0x311A
  504. #define WM8996_WRITE_SEQUENCER_283 0x311B
  505. #define WM8996_WRITE_SEQUENCER_284 0x311C
  506. #define WM8996_WRITE_SEQUENCER_285 0x311D
  507. #define WM8996_WRITE_SEQUENCER_286 0x311E
  508. #define WM8996_WRITE_SEQUENCER_287 0x311F
  509. #define WM8996_WRITE_SEQUENCER_288 0x3120
  510. #define WM8996_WRITE_SEQUENCER_289 0x3121
  511. #define WM8996_WRITE_SEQUENCER_290 0x3122
  512. #define WM8996_WRITE_SEQUENCER_291 0x3123
  513. #define WM8996_WRITE_SEQUENCER_292 0x3124
  514. #define WM8996_WRITE_SEQUENCER_293 0x3125
  515. #define WM8996_WRITE_SEQUENCER_294 0x3126
  516. #define WM8996_WRITE_SEQUENCER_295 0x3127
  517. #define WM8996_WRITE_SEQUENCER_296 0x3128
  518. #define WM8996_WRITE_SEQUENCER_297 0x3129
  519. #define WM8996_WRITE_SEQUENCER_298 0x312A
  520. #define WM8996_WRITE_SEQUENCER_299 0x312B
  521. #define WM8996_WRITE_SEQUENCER_300 0x312C
  522. #define WM8996_WRITE_SEQUENCER_301 0x312D
  523. #define WM8996_WRITE_SEQUENCER_302 0x312E
  524. #define WM8996_WRITE_SEQUENCER_303 0x312F
  525. #define WM8996_WRITE_SEQUENCER_304 0x3130
  526. #define WM8996_WRITE_SEQUENCER_305 0x3131
  527. #define WM8996_WRITE_SEQUENCER_306 0x3132
  528. #define WM8996_WRITE_SEQUENCER_307 0x3133
  529. #define WM8996_WRITE_SEQUENCER_308 0x3134
  530. #define WM8996_WRITE_SEQUENCER_309 0x3135
  531. #define WM8996_WRITE_SEQUENCER_310 0x3136
  532. #define WM8996_WRITE_SEQUENCER_311 0x3137
  533. #define WM8996_WRITE_SEQUENCER_312 0x3138
  534. #define WM8996_WRITE_SEQUENCER_313 0x3139
  535. #define WM8996_WRITE_SEQUENCER_314 0x313A
  536. #define WM8996_WRITE_SEQUENCER_315 0x313B
  537. #define WM8996_WRITE_SEQUENCER_316 0x313C
  538. #define WM8996_WRITE_SEQUENCER_317 0x313D
  539. #define WM8996_WRITE_SEQUENCER_318 0x313E
  540. #define WM8996_WRITE_SEQUENCER_319 0x313F
  541. #define WM8996_WRITE_SEQUENCER_320 0x3140
  542. #define WM8996_WRITE_SEQUENCER_321 0x3141
  543. #define WM8996_WRITE_SEQUENCER_322 0x3142
  544. #define WM8996_WRITE_SEQUENCER_323 0x3143
  545. #define WM8996_WRITE_SEQUENCER_324 0x3144
  546. #define WM8996_WRITE_SEQUENCER_325 0x3145
  547. #define WM8996_WRITE_SEQUENCER_326 0x3146
  548. #define WM8996_WRITE_SEQUENCER_327 0x3147
  549. #define WM8996_WRITE_SEQUENCER_328 0x3148
  550. #define WM8996_WRITE_SEQUENCER_329 0x3149
  551. #define WM8996_WRITE_SEQUENCER_330 0x314A
  552. #define WM8996_WRITE_SEQUENCER_331 0x314B
  553. #define WM8996_WRITE_SEQUENCER_332 0x314C
  554. #define WM8996_WRITE_SEQUENCER_333 0x314D
  555. #define WM8996_WRITE_SEQUENCER_334 0x314E
  556. #define WM8996_WRITE_SEQUENCER_335 0x314F
  557. #define WM8996_WRITE_SEQUENCER_336 0x3150
  558. #define WM8996_WRITE_SEQUENCER_337 0x3151
  559. #define WM8996_WRITE_SEQUENCER_338 0x3152
  560. #define WM8996_WRITE_SEQUENCER_339 0x3153
  561. #define WM8996_WRITE_SEQUENCER_340 0x3154
  562. #define WM8996_WRITE_SEQUENCER_341 0x3155
  563. #define WM8996_WRITE_SEQUENCER_342 0x3156
  564. #define WM8996_WRITE_SEQUENCER_343 0x3157
  565. #define WM8996_WRITE_SEQUENCER_344 0x3158
  566. #define WM8996_WRITE_SEQUENCER_345 0x3159
  567. #define WM8996_WRITE_SEQUENCER_346 0x315A
  568. #define WM8996_WRITE_SEQUENCER_347 0x315B
  569. #define WM8996_WRITE_SEQUENCER_348 0x315C
  570. #define WM8996_WRITE_SEQUENCER_349 0x315D
  571. #define WM8996_WRITE_SEQUENCER_350 0x315E
  572. #define WM8996_WRITE_SEQUENCER_351 0x315F
  573. #define WM8996_WRITE_SEQUENCER_352 0x3160
  574. #define WM8996_WRITE_SEQUENCER_353 0x3161
  575. #define WM8996_WRITE_SEQUENCER_354 0x3162
  576. #define WM8996_WRITE_SEQUENCER_355 0x3163
  577. #define WM8996_WRITE_SEQUENCER_356 0x3164
  578. #define WM8996_WRITE_SEQUENCER_357 0x3165
  579. #define WM8996_WRITE_SEQUENCER_358 0x3166
  580. #define WM8996_WRITE_SEQUENCER_359 0x3167
  581. #define WM8996_WRITE_SEQUENCER_360 0x3168
  582. #define WM8996_WRITE_SEQUENCER_361 0x3169
  583. #define WM8996_WRITE_SEQUENCER_362 0x316A
  584. #define WM8996_WRITE_SEQUENCER_363 0x316B
  585. #define WM8996_WRITE_SEQUENCER_364 0x316C
  586. #define WM8996_WRITE_SEQUENCER_365 0x316D
  587. #define WM8996_WRITE_SEQUENCER_366 0x316E
  588. #define WM8996_WRITE_SEQUENCER_367 0x316F
  589. #define WM8996_WRITE_SEQUENCER_368 0x3170
  590. #define WM8996_WRITE_SEQUENCER_369 0x3171
  591. #define WM8996_WRITE_SEQUENCER_370 0x3172
  592. #define WM8996_WRITE_SEQUENCER_371 0x3173
  593. #define WM8996_WRITE_SEQUENCER_372 0x3174
  594. #define WM8996_WRITE_SEQUENCER_373 0x3175
  595. #define WM8996_WRITE_SEQUENCER_374 0x3176
  596. #define WM8996_WRITE_SEQUENCER_375 0x3177
  597. #define WM8996_WRITE_SEQUENCER_376 0x3178
  598. #define WM8996_WRITE_SEQUENCER_377 0x3179
  599. #define WM8996_WRITE_SEQUENCER_378 0x317A
  600. #define WM8996_WRITE_SEQUENCER_379 0x317B
  601. #define WM8996_WRITE_SEQUENCER_380 0x317C
  602. #define WM8996_WRITE_SEQUENCER_381 0x317D
  603. #define WM8996_WRITE_SEQUENCER_382 0x317E
  604. #define WM8996_WRITE_SEQUENCER_383 0x317F
  605. #define WM8996_WRITE_SEQUENCER_384 0x3180
  606. #define WM8996_WRITE_SEQUENCER_385 0x3181
  607. #define WM8996_WRITE_SEQUENCER_386 0x3182
  608. #define WM8996_WRITE_SEQUENCER_387 0x3183
  609. #define WM8996_WRITE_SEQUENCER_388 0x3184
  610. #define WM8996_WRITE_SEQUENCER_389 0x3185
  611. #define WM8996_WRITE_SEQUENCER_390 0x3186
  612. #define WM8996_WRITE_SEQUENCER_391 0x3187
  613. #define WM8996_WRITE_SEQUENCER_392 0x3188
  614. #define WM8996_WRITE_SEQUENCER_393 0x3189
  615. #define WM8996_WRITE_SEQUENCER_394 0x318A
  616. #define WM8996_WRITE_SEQUENCER_395 0x318B
  617. #define WM8996_WRITE_SEQUENCER_396 0x318C
  618. #define WM8996_WRITE_SEQUENCER_397 0x318D
  619. #define WM8996_WRITE_SEQUENCER_398 0x318E
  620. #define WM8996_WRITE_SEQUENCER_399 0x318F
  621. #define WM8996_WRITE_SEQUENCER_400 0x3190
  622. #define WM8996_WRITE_SEQUENCER_401 0x3191
  623. #define WM8996_WRITE_SEQUENCER_402 0x3192
  624. #define WM8996_WRITE_SEQUENCER_403 0x3193
  625. #define WM8996_WRITE_SEQUENCER_404 0x3194
  626. #define WM8996_WRITE_SEQUENCER_405 0x3195
  627. #define WM8996_WRITE_SEQUENCER_406 0x3196
  628. #define WM8996_WRITE_SEQUENCER_407 0x3197
  629. #define WM8996_WRITE_SEQUENCER_408 0x3198
  630. #define WM8996_WRITE_SEQUENCER_409 0x3199
  631. #define WM8996_WRITE_SEQUENCER_410 0x319A
  632. #define WM8996_WRITE_SEQUENCER_411 0x319B
  633. #define WM8996_WRITE_SEQUENCER_412 0x319C
  634. #define WM8996_WRITE_SEQUENCER_413 0x319D
  635. #define WM8996_WRITE_SEQUENCER_414 0x319E
  636. #define WM8996_WRITE_SEQUENCER_415 0x319F
  637. #define WM8996_WRITE_SEQUENCER_416 0x31A0
  638. #define WM8996_WRITE_SEQUENCER_417 0x31A1
  639. #define WM8996_WRITE_SEQUENCER_418 0x31A2
  640. #define WM8996_WRITE_SEQUENCER_419 0x31A3
  641. #define WM8996_WRITE_SEQUENCER_420 0x31A4
  642. #define WM8996_WRITE_SEQUENCER_421 0x31A5
  643. #define WM8996_WRITE_SEQUENCER_422 0x31A6
  644. #define WM8996_WRITE_SEQUENCER_423 0x31A7
  645. #define WM8996_WRITE_SEQUENCER_424 0x31A8
  646. #define WM8996_WRITE_SEQUENCER_425 0x31A9
  647. #define WM8996_WRITE_SEQUENCER_426 0x31AA
  648. #define WM8996_WRITE_SEQUENCER_427 0x31AB
  649. #define WM8996_WRITE_SEQUENCER_428 0x31AC
  650. #define WM8996_WRITE_SEQUENCER_429 0x31AD
  651. #define WM8996_WRITE_SEQUENCER_430 0x31AE
  652. #define WM8996_WRITE_SEQUENCER_431 0x31AF
  653. #define WM8996_WRITE_SEQUENCER_432 0x31B0
  654. #define WM8996_WRITE_SEQUENCER_433 0x31B1
  655. #define WM8996_WRITE_SEQUENCER_434 0x31B2
  656. #define WM8996_WRITE_SEQUENCER_435 0x31B3
  657. #define WM8996_WRITE_SEQUENCER_436 0x31B4
  658. #define WM8996_WRITE_SEQUENCER_437 0x31B5
  659. #define WM8996_WRITE_SEQUENCER_438 0x31B6
  660. #define WM8996_WRITE_SEQUENCER_439 0x31B7
  661. #define WM8996_WRITE_SEQUENCER_440 0x31B8
  662. #define WM8996_WRITE_SEQUENCER_441 0x31B9
  663. #define WM8996_WRITE_SEQUENCER_442 0x31BA
  664. #define WM8996_WRITE_SEQUENCER_443 0x31BB
  665. #define WM8996_WRITE_SEQUENCER_444 0x31BC
  666. #define WM8996_WRITE_SEQUENCER_445 0x31BD
  667. #define WM8996_WRITE_SEQUENCER_446 0x31BE
  668. #define WM8996_WRITE_SEQUENCER_447 0x31BF
  669. #define WM8996_WRITE_SEQUENCER_448 0x31C0
  670. #define WM8996_WRITE_SEQUENCER_449 0x31C1
  671. #define WM8996_WRITE_SEQUENCER_450 0x31C2
  672. #define WM8996_WRITE_SEQUENCER_451 0x31C3
  673. #define WM8996_WRITE_SEQUENCER_452 0x31C4
  674. #define WM8996_WRITE_SEQUENCER_453 0x31C5
  675. #define WM8996_WRITE_SEQUENCER_454 0x31C6
  676. #define WM8996_WRITE_SEQUENCER_455 0x31C7
  677. #define WM8996_WRITE_SEQUENCER_456 0x31C8
  678. #define WM8996_WRITE_SEQUENCER_457 0x31C9
  679. #define WM8996_WRITE_SEQUENCER_458 0x31CA
  680. #define WM8996_WRITE_SEQUENCER_459 0x31CB
  681. #define WM8996_WRITE_SEQUENCER_460 0x31CC
  682. #define WM8996_WRITE_SEQUENCER_461 0x31CD
  683. #define WM8996_WRITE_SEQUENCER_462 0x31CE
  684. #define WM8996_WRITE_SEQUENCER_463 0x31CF
  685. #define WM8996_WRITE_SEQUENCER_464 0x31D0
  686. #define WM8996_WRITE_SEQUENCER_465 0x31D1
  687. #define WM8996_WRITE_SEQUENCER_466 0x31D2
  688. #define WM8996_WRITE_SEQUENCER_467 0x31D3
  689. #define WM8996_WRITE_SEQUENCER_468 0x31D4
  690. #define WM8996_WRITE_SEQUENCER_469 0x31D5
  691. #define WM8996_WRITE_SEQUENCER_470 0x31D6
  692. #define WM8996_WRITE_SEQUENCER_471 0x31D7
  693. #define WM8996_WRITE_SEQUENCER_472 0x31D8
  694. #define WM8996_WRITE_SEQUENCER_473 0x31D9
  695. #define WM8996_WRITE_SEQUENCER_474 0x31DA
  696. #define WM8996_WRITE_SEQUENCER_475 0x31DB
  697. #define WM8996_WRITE_SEQUENCER_476 0x31DC
  698. #define WM8996_WRITE_SEQUENCER_477 0x31DD
  699. #define WM8996_WRITE_SEQUENCER_478 0x31DE
  700. #define WM8996_WRITE_SEQUENCER_479 0x31DF
  701. #define WM8996_WRITE_SEQUENCER_480 0x31E0
  702. #define WM8996_WRITE_SEQUENCER_481 0x31E1
  703. #define WM8996_WRITE_SEQUENCER_482 0x31E2
  704. #define WM8996_WRITE_SEQUENCER_483 0x31E3
  705. #define WM8996_WRITE_SEQUENCER_484 0x31E4
  706. #define WM8996_WRITE_SEQUENCER_485 0x31E5
  707. #define WM8996_WRITE_SEQUENCER_486 0x31E6
  708. #define WM8996_WRITE_SEQUENCER_487 0x31E7
  709. #define WM8996_WRITE_SEQUENCER_488 0x31E8
  710. #define WM8996_WRITE_SEQUENCER_489 0x31E9
  711. #define WM8996_WRITE_SEQUENCER_490 0x31EA
  712. #define WM8996_WRITE_SEQUENCER_491 0x31EB
  713. #define WM8996_WRITE_SEQUENCER_492 0x31EC
  714. #define WM8996_WRITE_SEQUENCER_493 0x31ED
  715. #define WM8996_WRITE_SEQUENCER_494 0x31EE
  716. #define WM8996_WRITE_SEQUENCER_495 0x31EF
  717. #define WM8996_WRITE_SEQUENCER_496 0x31F0
  718. #define WM8996_WRITE_SEQUENCER_497 0x31F1
  719. #define WM8996_WRITE_SEQUENCER_498 0x31F2
  720. #define WM8996_WRITE_SEQUENCER_499 0x31F3
  721. #define WM8996_WRITE_SEQUENCER_500 0x31F4
  722. #define WM8996_WRITE_SEQUENCER_501 0x31F5
  723. #define WM8996_WRITE_SEQUENCER_502 0x31F6
  724. #define WM8996_WRITE_SEQUENCER_503 0x31F7
  725. #define WM8996_WRITE_SEQUENCER_504 0x31F8
  726. #define WM8996_WRITE_SEQUENCER_505 0x31F9
  727. #define WM8996_WRITE_SEQUENCER_506 0x31FA
  728. #define WM8996_WRITE_SEQUENCER_507 0x31FB
  729. #define WM8996_WRITE_SEQUENCER_508 0x31FC
  730. #define WM8996_WRITE_SEQUENCER_509 0x31FD
  731. #define WM8996_WRITE_SEQUENCER_510 0x31FE
  732. #define WM8996_WRITE_SEQUENCER_511 0x31FF
  733. #define WM8996_REGISTER_COUNT 706
  734. #define WM8996_MAX_REGISTER 0x31FF
  735. /*
  736. * Field Definitions.
  737. */
  738. /*
  739. * R0 (0x00) - Software Reset
  740. */
  741. #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
  742. #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
  743. #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
  744. /*
  745. * R1 (0x01) - Power Management (1)
  746. */
  747. #define WM8996_MICB2_ENA 0x0200 /* MICB2_ENA */
  748. #define WM8996_MICB2_ENA_MASK 0x0200 /* MICB2_ENA */
  749. #define WM8996_MICB2_ENA_SHIFT 9 /* MICB2_ENA */
  750. #define WM8996_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  751. #define WM8996_MICB1_ENA 0x0100 /* MICB1_ENA */
  752. #define WM8996_MICB1_ENA_MASK 0x0100 /* MICB1_ENA */
  753. #define WM8996_MICB1_ENA_SHIFT 8 /* MICB1_ENA */
  754. #define WM8996_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  755. #define WM8996_HPOUT2L_ENA 0x0080 /* HPOUT2L_ENA */
  756. #define WM8996_HPOUT2L_ENA_MASK 0x0080 /* HPOUT2L_ENA */
  757. #define WM8996_HPOUT2L_ENA_SHIFT 7 /* HPOUT2L_ENA */
  758. #define WM8996_HPOUT2L_ENA_WIDTH 1 /* HPOUT2L_ENA */
  759. #define WM8996_HPOUT2R_ENA 0x0040 /* HPOUT2R_ENA */
  760. #define WM8996_HPOUT2R_ENA_MASK 0x0040 /* HPOUT2R_ENA */
  761. #define WM8996_HPOUT2R_ENA_SHIFT 6 /* HPOUT2R_ENA */
  762. #define WM8996_HPOUT2R_ENA_WIDTH 1 /* HPOUT2R_ENA */
  763. #define WM8996_HPOUT1L_ENA 0x0020 /* HPOUT1L_ENA */
  764. #define WM8996_HPOUT1L_ENA_MASK 0x0020 /* HPOUT1L_ENA */
  765. #define WM8996_HPOUT1L_ENA_SHIFT 5 /* HPOUT1L_ENA */
  766. #define WM8996_HPOUT1L_ENA_WIDTH 1 /* HPOUT1L_ENA */
  767. #define WM8996_HPOUT1R_ENA 0x0010 /* HPOUT1R_ENA */
  768. #define WM8996_HPOUT1R_ENA_MASK 0x0010 /* HPOUT1R_ENA */
  769. #define WM8996_HPOUT1R_ENA_SHIFT 4 /* HPOUT1R_ENA */
  770. #define WM8996_HPOUT1R_ENA_WIDTH 1 /* HPOUT1R_ENA */
  771. #define WM8996_BG_ENA 0x0001 /* BG_ENA */
  772. #define WM8996_BG_ENA_MASK 0x0001 /* BG_ENA */
  773. #define WM8996_BG_ENA_SHIFT 0 /* BG_ENA */
  774. #define WM8996_BG_ENA_WIDTH 1 /* BG_ENA */
  775. /*
  776. * R2 (0x02) - Power Management (2)
  777. */
  778. #define WM8996_OPCLK_ENA 0x0800 /* OPCLK_ENA */
  779. #define WM8996_OPCLK_ENA_MASK 0x0800 /* OPCLK_ENA */
  780. #define WM8996_OPCLK_ENA_SHIFT 11 /* OPCLK_ENA */
  781. #define WM8996_OPCLK_ENA_WIDTH 1 /* OPCLK_ENA */
  782. #define WM8996_INL_ENA 0x0020 /* INL_ENA */
  783. #define WM8996_INL_ENA_MASK 0x0020 /* INL_ENA */
  784. #define WM8996_INL_ENA_SHIFT 5 /* INL_ENA */
  785. #define WM8996_INL_ENA_WIDTH 1 /* INL_ENA */
  786. #define WM8996_INR_ENA 0x0010 /* INR_ENA */
  787. #define WM8996_INR_ENA_MASK 0x0010 /* INR_ENA */
  788. #define WM8996_INR_ENA_SHIFT 4 /* INR_ENA */
  789. #define WM8996_INR_ENA_WIDTH 1 /* INR_ENA */
  790. #define WM8996_LDO2_ENA 0x0002 /* LDO2_ENA */
  791. #define WM8996_LDO2_ENA_MASK 0x0002 /* LDO2_ENA */
  792. #define WM8996_LDO2_ENA_SHIFT 1 /* LDO2_ENA */
  793. #define WM8996_LDO2_ENA_WIDTH 1 /* LDO2_ENA */
  794. /*
  795. * R3 (0x03) - Power Management (3)
  796. */
  797. #define WM8996_DSP2RXL_ENA 0x0800 /* DSP2RXL_ENA */
  798. #define WM8996_DSP2RXL_ENA_MASK 0x0800 /* DSP2RXL_ENA */
  799. #define WM8996_DSP2RXL_ENA_SHIFT 11 /* DSP2RXL_ENA */
  800. #define WM8996_DSP2RXL_ENA_WIDTH 1 /* DSP2RXL_ENA */
  801. #define WM8996_DSP2RXR_ENA 0x0400 /* DSP2RXR_ENA */
  802. #define WM8996_DSP2RXR_ENA_MASK 0x0400 /* DSP2RXR_ENA */
  803. #define WM8996_DSP2RXR_ENA_SHIFT 10 /* DSP2RXR_ENA */
  804. #define WM8996_DSP2RXR_ENA_WIDTH 1 /* DSP2RXR_ENA */
  805. #define WM8996_DSP1RXL_ENA 0x0200 /* DSP1RXL_ENA */
  806. #define WM8996_DSP1RXL_ENA_MASK 0x0200 /* DSP1RXL_ENA */
  807. #define WM8996_DSP1RXL_ENA_SHIFT 9 /* DSP1RXL_ENA */
  808. #define WM8996_DSP1RXL_ENA_WIDTH 1 /* DSP1RXL_ENA */
  809. #define WM8996_DSP1RXR_ENA 0x0100 /* DSP1RXR_ENA */
  810. #define WM8996_DSP1RXR_ENA_MASK 0x0100 /* DSP1RXR_ENA */
  811. #define WM8996_DSP1RXR_ENA_SHIFT 8 /* DSP1RXR_ENA */
  812. #define WM8996_DSP1RXR_ENA_WIDTH 1 /* DSP1RXR_ENA */
  813. #define WM8996_DMIC2L_ENA 0x0020 /* DMIC2L_ENA */
  814. #define WM8996_DMIC2L_ENA_MASK 0x0020 /* DMIC2L_ENA */
  815. #define WM8996_DMIC2L_ENA_SHIFT 5 /* DMIC2L_ENA */
  816. #define WM8996_DMIC2L_ENA_WIDTH 1 /* DMIC2L_ENA */
  817. #define WM8996_DMIC2R_ENA 0x0010 /* DMIC2R_ENA */
  818. #define WM8996_DMIC2R_ENA_MASK 0x0010 /* DMIC2R_ENA */
  819. #define WM8996_DMIC2R_ENA_SHIFT 4 /* DMIC2R_ENA */
  820. #define WM8996_DMIC2R_ENA_WIDTH 1 /* DMIC2R_ENA */
  821. #define WM8996_DMIC1L_ENA 0x0008 /* DMIC1L_ENA */
  822. #define WM8996_DMIC1L_ENA_MASK 0x0008 /* DMIC1L_ENA */
  823. #define WM8996_DMIC1L_ENA_SHIFT 3 /* DMIC1L_ENA */
  824. #define WM8996_DMIC1L_ENA_WIDTH 1 /* DMIC1L_ENA */
  825. #define WM8996_DMIC1R_ENA 0x0004 /* DMIC1R_ENA */
  826. #define WM8996_DMIC1R_ENA_MASK 0x0004 /* DMIC1R_ENA */
  827. #define WM8996_DMIC1R_ENA_SHIFT 2 /* DMIC1R_ENA */
  828. #define WM8996_DMIC1R_ENA_WIDTH 1 /* DMIC1R_ENA */
  829. #define WM8996_ADCL_ENA 0x0002 /* ADCL_ENA */
  830. #define WM8996_ADCL_ENA_MASK 0x0002 /* ADCL_ENA */
  831. #define WM8996_ADCL_ENA_SHIFT 1 /* ADCL_ENA */
  832. #define WM8996_ADCL_ENA_WIDTH 1 /* ADCL_ENA */
  833. #define WM8996_ADCR_ENA 0x0001 /* ADCR_ENA */
  834. #define WM8996_ADCR_ENA_MASK 0x0001 /* ADCR_ENA */
  835. #define WM8996_ADCR_ENA_SHIFT 0 /* ADCR_ENA */
  836. #define WM8996_ADCR_ENA_WIDTH 1 /* ADCR_ENA */
  837. /*
  838. * R4 (0x04) - Power Management (4)
  839. */
  840. #define WM8996_AIF2RX_CHAN1_ENA 0x0200 /* AIF2RX_CHAN1_ENA */
  841. #define WM8996_AIF2RX_CHAN1_ENA_MASK 0x0200 /* AIF2RX_CHAN1_ENA */
  842. #define WM8996_AIF2RX_CHAN1_ENA_SHIFT 9 /* AIF2RX_CHAN1_ENA */
  843. #define WM8996_AIF2RX_CHAN1_ENA_WIDTH 1 /* AIF2RX_CHAN1_ENA */
  844. #define WM8996_AIF2RX_CHAN0_ENA 0x0100 /* AIF2RX_CHAN0_ENA */
  845. #define WM8996_AIF2RX_CHAN0_ENA_MASK 0x0100 /* AIF2RX_CHAN0_ENA */
  846. #define WM8996_AIF2RX_CHAN0_ENA_SHIFT 8 /* AIF2RX_CHAN0_ENA */
  847. #define WM8996_AIF2RX_CHAN0_ENA_WIDTH 1 /* AIF2RX_CHAN0_ENA */
  848. #define WM8996_AIF1RX_CHAN5_ENA 0x0020 /* AIF1RX_CHAN5_ENA */
  849. #define WM8996_AIF1RX_CHAN5_ENA_MASK 0x0020 /* AIF1RX_CHAN5_ENA */
  850. #define WM8996_AIF1RX_CHAN5_ENA_SHIFT 5 /* AIF1RX_CHAN5_ENA */
  851. #define WM8996_AIF1RX_CHAN5_ENA_WIDTH 1 /* AIF1RX_CHAN5_ENA */
  852. #define WM8996_AIF1RX_CHAN4_ENA 0x0010 /* AIF1RX_CHAN4_ENA */
  853. #define WM8996_AIF1RX_CHAN4_ENA_MASK 0x0010 /* AIF1RX_CHAN4_ENA */
  854. #define WM8996_AIF1RX_CHAN4_ENA_SHIFT 4 /* AIF1RX_CHAN4_ENA */
  855. #define WM8996_AIF1RX_CHAN4_ENA_WIDTH 1 /* AIF1RX_CHAN4_ENA */
  856. #define WM8996_AIF1RX_CHAN3_ENA 0x0008 /* AIF1RX_CHAN3_ENA */
  857. #define WM8996_AIF1RX_CHAN3_ENA_MASK 0x0008 /* AIF1RX_CHAN3_ENA */
  858. #define WM8996_AIF1RX_CHAN3_ENA_SHIFT 3 /* AIF1RX_CHAN3_ENA */
  859. #define WM8996_AIF1RX_CHAN3_ENA_WIDTH 1 /* AIF1RX_CHAN3_ENA */
  860. #define WM8996_AIF1RX_CHAN2_ENA 0x0004 /* AIF1RX_CHAN2_ENA */
  861. #define WM8996_AIF1RX_CHAN2_ENA_MASK 0x0004 /* AIF1RX_CHAN2_ENA */
  862. #define WM8996_AIF1RX_CHAN2_ENA_SHIFT 2 /* AIF1RX_CHAN2_ENA */
  863. #define WM8996_AIF1RX_CHAN2_ENA_WIDTH 1 /* AIF1RX_CHAN2_ENA */
  864. #define WM8996_AIF1RX_CHAN1_ENA 0x0002 /* AIF1RX_CHAN1_ENA */
  865. #define WM8996_AIF1RX_CHAN1_ENA_MASK 0x0002 /* AIF1RX_CHAN1_ENA */
  866. #define WM8996_AIF1RX_CHAN1_ENA_SHIFT 1 /* AIF1RX_CHAN1_ENA */
  867. #define WM8996_AIF1RX_CHAN1_ENA_WIDTH 1 /* AIF1RX_CHAN1_ENA */
  868. #define WM8996_AIF1RX_CHAN0_ENA 0x0001 /* AIF1RX_CHAN0_ENA */
  869. #define WM8996_AIF1RX_CHAN0_ENA_MASK 0x0001 /* AIF1RX_CHAN0_ENA */
  870. #define WM8996_AIF1RX_CHAN0_ENA_SHIFT 0 /* AIF1RX_CHAN0_ENA */
  871. #define WM8996_AIF1RX_CHAN0_ENA_WIDTH 1 /* AIF1RX_CHAN0_ENA */
  872. /*
  873. * R5 (0x05) - Power Management (5)
  874. */
  875. #define WM8996_DSP2TXL_ENA 0x0800 /* DSP2TXL_ENA */
  876. #define WM8996_DSP2TXL_ENA_MASK 0x0800 /* DSP2TXL_ENA */
  877. #define WM8996_DSP2TXL_ENA_SHIFT 11 /* DSP2TXL_ENA */
  878. #define WM8996_DSP2TXL_ENA_WIDTH 1 /* DSP2TXL_ENA */
  879. #define WM8996_DSP2TXR_ENA 0x0400 /* DSP2TXR_ENA */
  880. #define WM8996_DSP2TXR_ENA_MASK 0x0400 /* DSP2TXR_ENA */
  881. #define WM8996_DSP2TXR_ENA_SHIFT 10 /* DSP2TXR_ENA */
  882. #define WM8996_DSP2TXR_ENA_WIDTH 1 /* DSP2TXR_ENA */
  883. #define WM8996_DSP1TXL_ENA 0x0200 /* DSP1TXL_ENA */
  884. #define WM8996_DSP1TXL_ENA_MASK 0x0200 /* DSP1TXL_ENA */
  885. #define WM8996_DSP1TXL_ENA_SHIFT 9 /* DSP1TXL_ENA */
  886. #define WM8996_DSP1TXL_ENA_WIDTH 1 /* DSP1TXL_ENA */
  887. #define WM8996_DSP1TXR_ENA 0x0100 /* DSP1TXR_ENA */
  888. #define WM8996_DSP1TXR_ENA_MASK 0x0100 /* DSP1TXR_ENA */
  889. #define WM8996_DSP1TXR_ENA_SHIFT 8 /* DSP1TXR_ENA */
  890. #define WM8996_DSP1TXR_ENA_WIDTH 1 /* DSP1TXR_ENA */
  891. #define WM8996_DAC2L_ENA 0x0008 /* DAC2L_ENA */
  892. #define WM8996_DAC2L_ENA_MASK 0x0008 /* DAC2L_ENA */
  893. #define WM8996_DAC2L_ENA_SHIFT 3 /* DAC2L_ENA */
  894. #define WM8996_DAC2L_ENA_WIDTH 1 /* DAC2L_ENA */
  895. #define WM8996_DAC2R_ENA 0x0004 /* DAC2R_ENA */
  896. #define WM8996_DAC2R_ENA_MASK 0x0004 /* DAC2R_ENA */
  897. #define WM8996_DAC2R_ENA_SHIFT 2 /* DAC2R_ENA */
  898. #define WM8996_DAC2R_ENA_WIDTH 1 /* DAC2R_ENA */
  899. #define WM8996_DAC1L_ENA 0x0002 /* DAC1L_ENA */
  900. #define WM8996_DAC1L_ENA_MASK 0x0002 /* DAC1L_ENA */
  901. #define WM8996_DAC1L_ENA_SHIFT 1 /* DAC1L_ENA */
  902. #define WM8996_DAC1L_ENA_WIDTH 1 /* DAC1L_ENA */
  903. #define WM8996_DAC1R_ENA 0x0001 /* DAC1R_ENA */
  904. #define WM8996_DAC1R_ENA_MASK 0x0001 /* DAC1R_ENA */
  905. #define WM8996_DAC1R_ENA_SHIFT 0 /* DAC1R_ENA */
  906. #define WM8996_DAC1R_ENA_WIDTH 1 /* DAC1R_ENA */
  907. /*
  908. * R6 (0x06) - Power Management (6)
  909. */
  910. #define WM8996_AIF2TX_CHAN1_ENA 0x0200 /* AIF2TX_CHAN1_ENA */
  911. #define WM8996_AIF2TX_CHAN1_ENA_MASK 0x0200 /* AIF2TX_CHAN1_ENA */
  912. #define WM8996_AIF2TX_CHAN1_ENA_SHIFT 9 /* AIF2TX_CHAN1_ENA */
  913. #define WM8996_AIF2TX_CHAN1_ENA_WIDTH 1 /* AIF2TX_CHAN1_ENA */
  914. #define WM8996_AIF2TX_CHAN0_ENA 0x0100 /* AIF2TX_CHAN0_ENA */
  915. #define WM8996_AIF2TX_CHAN0_ENA_MASK 0x0100 /* AIF2TX_CHAN0_ENA */
  916. #define WM8996_AIF2TX_CHAN0_ENA_SHIFT 8 /* AIF2TX_CHAN0_ENA */
  917. #define WM8996_AIF2TX_CHAN0_ENA_WIDTH 1 /* AIF2TX_CHAN0_ENA */
  918. #define WM8996_AIF1TX_CHAN5_ENA 0x0020 /* AIF1TX_CHAN5_ENA */
  919. #define WM8996_AIF1TX_CHAN5_ENA_MASK 0x0020 /* AIF1TX_CHAN5_ENA */
  920. #define WM8996_AIF1TX_CHAN5_ENA_SHIFT 5 /* AIF1TX_CHAN5_ENA */
  921. #define WM8996_AIF1TX_CHAN5_ENA_WIDTH 1 /* AIF1TX_CHAN5_ENA */
  922. #define WM8996_AIF1TX_CHAN4_ENA 0x0010 /* AIF1TX_CHAN4_ENA */
  923. #define WM8996_AIF1TX_CHAN4_ENA_MASK 0x0010 /* AIF1TX_CHAN4_ENA */
  924. #define WM8996_AIF1TX_CHAN4_ENA_SHIFT 4 /* AIF1TX_CHAN4_ENA */
  925. #define WM8996_AIF1TX_CHAN4_ENA_WIDTH 1 /* AIF1TX_CHAN4_ENA */
  926. #define WM8996_AIF1TX_CHAN3_ENA 0x0008 /* AIF1TX_CHAN3_ENA */
  927. #define WM8996_AIF1TX_CHAN3_ENA_MASK 0x0008 /* AIF1TX_CHAN3_ENA */
  928. #define WM8996_AIF1TX_CHAN3_ENA_SHIFT 3 /* AIF1TX_CHAN3_ENA */
  929. #define WM8996_AIF1TX_CHAN3_ENA_WIDTH 1 /* AIF1TX_CHAN3_ENA */
  930. #define WM8996_AIF1TX_CHAN2_ENA 0x0004 /* AIF1TX_CHAN2_ENA */
  931. #define WM8996_AIF1TX_CHAN2_ENA_MASK 0x0004 /* AIF1TX_CHAN2_ENA */
  932. #define WM8996_AIF1TX_CHAN2_ENA_SHIFT 2 /* AIF1TX_CHAN2_ENA */
  933. #define WM8996_AIF1TX_CHAN2_ENA_WIDTH 1 /* AIF1TX_CHAN2_ENA */
  934. #define WM8996_AIF1TX_CHAN1_ENA 0x0002 /* AIF1TX_CHAN1_ENA */
  935. #define WM8996_AIF1TX_CHAN1_ENA_MASK 0x0002 /* AIF1TX_CHAN1_ENA */
  936. #define WM8996_AIF1TX_CHAN1_ENA_SHIFT 1 /* AIF1TX_CHAN1_ENA */
  937. #define WM8996_AIF1TX_CHAN1_ENA_WIDTH 1 /* AIF1TX_CHAN1_ENA */
  938. #define WM8996_AIF1TX_CHAN0_ENA 0x0001 /* AIF1TX_CHAN0_ENA */
  939. #define WM8996_AIF1TX_CHAN0_ENA_MASK 0x0001 /* AIF1TX_CHAN0_ENA */
  940. #define WM8996_AIF1TX_CHAN0_ENA_SHIFT 0 /* AIF1TX_CHAN0_ENA */
  941. #define WM8996_AIF1TX_CHAN0_ENA_WIDTH 1 /* AIF1TX_CHAN0_ENA */
  942. /*
  943. * R7 (0x07) - Power Management (7)
  944. */
  945. #define WM8996_DMIC2_FN 0x0200 /* DMIC2_FN */
  946. #define WM8996_DMIC2_FN_MASK 0x0200 /* DMIC2_FN */
  947. #define WM8996_DMIC2_FN_SHIFT 9 /* DMIC2_FN */
  948. #define WM8996_DMIC2_FN_WIDTH 1 /* DMIC2_FN */
  949. #define WM8996_DMIC1_FN 0x0100 /* DMIC1_FN */
  950. #define WM8996_DMIC1_FN_MASK 0x0100 /* DMIC1_FN */
  951. #define WM8996_DMIC1_FN_SHIFT 8 /* DMIC1_FN */
  952. #define WM8996_DMIC1_FN_WIDTH 1 /* DMIC1_FN */
  953. #define WM8996_ADC_DMIC_DSP2R_ENA 0x0080 /* ADC_DMIC_DSP2R_ENA */
  954. #define WM8996_ADC_DMIC_DSP2R_ENA_MASK 0x0080 /* ADC_DMIC_DSP2R_ENA */
  955. #define WM8996_ADC_DMIC_DSP2R_ENA_SHIFT 7 /* ADC_DMIC_DSP2R_ENA */
  956. #define WM8996_ADC_DMIC_DSP2R_ENA_WIDTH 1 /* ADC_DMIC_DSP2R_ENA */
  957. #define WM8996_ADC_DMIC_DSP2L_ENA 0x0040 /* ADC_DMIC_DSP2L_ENA */
  958. #define WM8996_ADC_DMIC_DSP2L_ENA_MASK 0x0040 /* ADC_DMIC_DSP2L_ENA */
  959. #define WM8996_ADC_DMIC_DSP2L_ENA_SHIFT 6 /* ADC_DMIC_DSP2L_ENA */
  960. #define WM8996_ADC_DMIC_DSP2L_ENA_WIDTH 1 /* ADC_DMIC_DSP2L_ENA */
  961. #define WM8996_ADC_DMIC_SRC2_MASK 0x0030 /* ADC_DMIC_SRC2 - [5:4] */
  962. #define WM8996_ADC_DMIC_SRC2_SHIFT 4 /* ADC_DMIC_SRC2 - [5:4] */
  963. #define WM8996_ADC_DMIC_SRC2_WIDTH 2 /* ADC_DMIC_SRC2 - [5:4] */
  964. #define WM8996_ADC_DMIC_DSP1R_ENA 0x0008 /* ADC_DMIC_DSP1R_ENA */
  965. #define WM8996_ADC_DMIC_DSP1R_ENA_MASK 0x0008 /* ADC_DMIC_DSP1R_ENA */
  966. #define WM8996_ADC_DMIC_DSP1R_ENA_SHIFT 3 /* ADC_DMIC_DSP1R_ENA */
  967. #define WM8996_ADC_DMIC_DSP1R_ENA_WIDTH 1 /* ADC_DMIC_DSP1R_ENA */
  968. #define WM8996_ADC_DMIC_DSP1L_ENA 0x0004 /* ADC_DMIC_DSP1L_ENA */
  969. #define WM8996_ADC_DMIC_DSP1L_ENA_MASK 0x0004 /* ADC_DMIC_DSP1L_ENA */
  970. #define WM8996_ADC_DMIC_DSP1L_ENA_SHIFT 2 /* ADC_DMIC_DSP1L_ENA */
  971. #define WM8996_ADC_DMIC_DSP1L_ENA_WIDTH 1 /* ADC_DMIC_DSP1L_ENA */
  972. #define WM8996_ADC_DMIC_SRC1_MASK 0x0003 /* ADC_DMIC_SRC1 - [1:0] */
  973. #define WM8996_ADC_DMIC_SRC1_SHIFT 0 /* ADC_DMIC_SRC1 - [1:0] */
  974. #define WM8996_ADC_DMIC_SRC1_WIDTH 2 /* ADC_DMIC_SRC1 - [1:0] */
  975. /*
  976. * R8 (0x08) - Power Management (8)
  977. */
  978. #define WM8996_AIF2TX_SRC_MASK 0x00C0 /* AIF2TX_SRC - [7:6] */
  979. #define WM8996_AIF2TX_SRC_SHIFT 6 /* AIF2TX_SRC - [7:6] */
  980. #define WM8996_AIF2TX_SRC_WIDTH 2 /* AIF2TX_SRC - [7:6] */
  981. #define WM8996_DSP2RX_SRC 0x0010 /* DSP2RX_SRC */
  982. #define WM8996_DSP2RX_SRC_MASK 0x0010 /* DSP2RX_SRC */
  983. #define WM8996_DSP2RX_SRC_SHIFT 4 /* DSP2RX_SRC */
  984. #define WM8996_DSP2RX_SRC_WIDTH 1 /* DSP2RX_SRC */
  985. #define WM8996_DSP1RX_SRC 0x0001 /* DSP1RX_SRC */
  986. #define WM8996_DSP1RX_SRC_MASK 0x0001 /* DSP1RX_SRC */
  987. #define WM8996_DSP1RX_SRC_SHIFT 0 /* DSP1RX_SRC */
  988. #define WM8996_DSP1RX_SRC_WIDTH 1 /* DSP1RX_SRC */
  989. /*
  990. * R16 (0x10) - Left Line Input Volume
  991. */
  992. #define WM8996_IN1_VU 0x0080 /* IN1_VU */
  993. #define WM8996_IN1_VU_MASK 0x0080 /* IN1_VU */
  994. #define WM8996_IN1_VU_SHIFT 7 /* IN1_VU */
  995. #define WM8996_IN1_VU_WIDTH 1 /* IN1_VU */
  996. #define WM8996_IN1L_ZC 0x0020 /* IN1L_ZC */
  997. #define WM8996_IN1L_ZC_MASK 0x0020 /* IN1L_ZC */
  998. #define WM8996_IN1L_ZC_SHIFT 5 /* IN1L_ZC */
  999. #define WM8996_IN1L_ZC_WIDTH 1 /* IN1L_ZC */
  1000. #define WM8996_IN1L_VOL_MASK 0x001F /* IN1L_VOL - [4:0] */
  1001. #define WM8996_IN1L_VOL_SHIFT 0 /* IN1L_VOL - [4:0] */
  1002. #define WM8996_IN1L_VOL_WIDTH 5 /* IN1L_VOL - [4:0] */
  1003. /*
  1004. * R17 (0x11) - Right Line Input Volume
  1005. */
  1006. #define WM8996_IN1_VU 0x0080 /* IN1_VU */
  1007. #define WM8996_IN1_VU_MASK 0x0080 /* IN1_VU */
  1008. #define WM8996_IN1_VU_SHIFT 7 /* IN1_VU */
  1009. #define WM8996_IN1_VU_WIDTH 1 /* IN1_VU */
  1010. #define WM8996_IN1R_ZC 0x0020 /* IN1R_ZC */
  1011. #define WM8996_IN1R_ZC_MASK 0x0020 /* IN1R_ZC */
  1012. #define WM8996_IN1R_ZC_SHIFT 5 /* IN1R_ZC */
  1013. #define WM8996_IN1R_ZC_WIDTH 1 /* IN1R_ZC */
  1014. #define WM8996_IN1R_VOL_MASK 0x001F /* IN1R_VOL - [4:0] */
  1015. #define WM8996_IN1R_VOL_SHIFT 0 /* IN1R_VOL - [4:0] */
  1016. #define WM8996_IN1R_VOL_WIDTH 5 /* IN1R_VOL - [4:0] */
  1017. /*
  1018. * R18 (0x12) - Line Input Control
  1019. */
  1020. #define WM8996_INL_MODE_MASK 0x000C /* INL_MODE - [3:2] */
  1021. #define WM8996_INL_MODE_SHIFT 2 /* INL_MODE - [3:2] */
  1022. #define WM8996_INL_MODE_WIDTH 2 /* INL_MODE - [3:2] */
  1023. #define WM8996_INR_MODE_MASK 0x0003 /* INR_MODE - [1:0] */
  1024. #define WM8996_INR_MODE_SHIFT 0 /* INR_MODE - [1:0] */
  1025. #define WM8996_INR_MODE_WIDTH 2 /* INR_MODE - [1:0] */
  1026. /*
  1027. * R21 (0x15) - DAC1 HPOUT1 Volume
  1028. */
  1029. #define WM8996_DAC1R_HPOUT1R_VOL_MASK 0x00F0 /* DAC1R_HPOUT1R_VOL - [7:4] */
  1030. #define WM8996_DAC1R_HPOUT1R_VOL_SHIFT 4 /* DAC1R_HPOUT1R_VOL - [7:4] */
  1031. #define WM8996_DAC1R_HPOUT1R_VOL_WIDTH 4 /* DAC1R_HPOUT1R_VOL - [7:4] */
  1032. #define WM8996_DAC1L_HPOUT1L_VOL_MASK 0x000F /* DAC1L_HPOUT1L_VOL - [3:0] */
  1033. #define WM8996_DAC1L_HPOUT1L_VOL_SHIFT 0 /* DAC1L_HPOUT1L_VOL - [3:0] */
  1034. #define WM8996_DAC1L_HPOUT1L_VOL_WIDTH 4 /* DAC1L_HPOUT1L_VOL - [3:0] */
  1035. /*
  1036. * R22 (0x16) - DAC2 HPOUT2 Volume
  1037. */
  1038. #define WM8996_DAC2R_HPOUT2R_VOL_MASK 0x00F0 /* DAC2R_HPOUT2R_VOL - [7:4] */
  1039. #define WM8996_DAC2R_HPOUT2R_VOL_SHIFT 4 /* DAC2R_HPOUT2R_VOL - [7:4] */
  1040. #define WM8996_DAC2R_HPOUT2R_VOL_WIDTH 4 /* DAC2R_HPOUT2R_VOL - [7:4] */
  1041. #define WM8996_DAC2L_HPOUT2L_VOL_MASK 0x000F /* DAC2L_HPOUT2L_VOL - [3:0] */
  1042. #define WM8996_DAC2L_HPOUT2L_VOL_SHIFT 0 /* DAC2L_HPOUT2L_VOL - [3:0] */
  1043. #define WM8996_DAC2L_HPOUT2L_VOL_WIDTH 4 /* DAC2L_HPOUT2L_VOL - [3:0] */
  1044. /*
  1045. * R24 (0x18) - DAC1 Left Volume
  1046. */
  1047. #define WM8996_DAC1L_MUTE 0x0200 /* DAC1L_MUTE */
  1048. #define WM8996_DAC1L_MUTE_MASK 0x0200 /* DAC1L_MUTE */
  1049. #define WM8996_DAC1L_MUTE_SHIFT 9 /* DAC1L_MUTE */
  1050. #define WM8996_DAC1L_MUTE_WIDTH 1 /* DAC1L_MUTE */
  1051. #define WM8996_DAC1_VU 0x0100 /* DAC1_VU */
  1052. #define WM8996_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  1053. #define WM8996_DAC1_VU_SHIFT 8 /* DAC1_VU */
  1054. #define WM8996_DAC1_VU_WIDTH 1 /* DAC1_VU */
  1055. #define WM8996_DAC1L_VOL_MASK 0x00FF /* DAC1L_VOL - [7:0] */
  1056. #define WM8996_DAC1L_VOL_SHIFT 0 /* DAC1L_VOL - [7:0] */
  1057. #define WM8996_DAC1L_VOL_WIDTH 8 /* DAC1L_VOL - [7:0] */
  1058. /*
  1059. * R25 (0x19) - DAC1 Right Volume
  1060. */
  1061. #define WM8996_DAC1R_MUTE 0x0200 /* DAC1R_MUTE */
  1062. #define WM8996_DAC1R_MUTE_MASK 0x0200 /* DAC1R_MUTE */
  1063. #define WM8996_DAC1R_MUTE_SHIFT 9 /* DAC1R_MUTE */
  1064. #define WM8996_DAC1R_MUTE_WIDTH 1 /* DAC1R_MUTE */
  1065. #define WM8996_DAC1_VU 0x0100 /* DAC1_VU */
  1066. #define WM8996_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  1067. #define WM8996_DAC1_VU_SHIFT 8 /* DAC1_VU */
  1068. #define WM8996_DAC1_VU_WIDTH 1 /* DAC1_VU */
  1069. #define WM8996_DAC1R_VOL_MASK 0x00FF /* DAC1R_VOL - [7:0] */
  1070. #define WM8996_DAC1R_VOL_SHIFT 0 /* DAC1R_VOL - [7:0] */
  1071. #define WM8996_DAC1R_VOL_WIDTH 8 /* DAC1R_VOL - [7:0] */
  1072. /*
  1073. * R26 (0x1A) - DAC2 Left Volume
  1074. */
  1075. #define WM8996_DAC2L_MUTE 0x0200 /* DAC2L_MUTE */
  1076. #define WM8996_DAC2L_MUTE_MASK 0x0200 /* DAC2L_MUTE */
  1077. #define WM8996_DAC2L_MUTE_SHIFT 9 /* DAC2L_MUTE */
  1078. #define WM8996_DAC2L_MUTE_WIDTH 1 /* DAC2L_MUTE */
  1079. #define WM8996_DAC2_VU 0x0100 /* DAC2_VU */
  1080. #define WM8996_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1081. #define WM8996_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1082. #define WM8996_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1083. #define WM8996_DAC2L_VOL_MASK 0x00FF /* DAC2L_VOL - [7:0] */
  1084. #define WM8996_DAC2L_VOL_SHIFT 0 /* DAC2L_VOL - [7:0] */
  1085. #define WM8996_DAC2L_VOL_WIDTH 8 /* DAC2L_VOL - [7:0] */
  1086. /*
  1087. * R27 (0x1B) - DAC2 Right Volume
  1088. */
  1089. #define WM8996_DAC2R_MUTE 0x0200 /* DAC2R_MUTE */
  1090. #define WM8996_DAC2R_MUTE_MASK 0x0200 /* DAC2R_MUTE */
  1091. #define WM8996_DAC2R_MUTE_SHIFT 9 /* DAC2R_MUTE */
  1092. #define WM8996_DAC2R_MUTE_WIDTH 1 /* DAC2R_MUTE */
  1093. #define WM8996_DAC2_VU 0x0100 /* DAC2_VU */
  1094. #define WM8996_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1095. #define WM8996_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1096. #define WM8996_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1097. #define WM8996_DAC2R_VOL_MASK 0x00FF /* DAC2R_VOL - [7:0] */
  1098. #define WM8996_DAC2R_VOL_SHIFT 0 /* DAC2R_VOL - [7:0] */
  1099. #define WM8996_DAC2R_VOL_WIDTH 8 /* DAC2R_VOL - [7:0] */
  1100. /*
  1101. * R28 (0x1C) - Output1 Left Volume
  1102. */
  1103. #define WM8996_DAC1_VU 0x0100 /* DAC1_VU */
  1104. #define WM8996_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  1105. #define WM8996_DAC1_VU_SHIFT 8 /* DAC1_VU */
  1106. #define WM8996_DAC1_VU_WIDTH 1 /* DAC1_VU */
  1107. #define WM8996_HPOUT1L_ZC 0x0080 /* HPOUT1L_ZC */
  1108. #define WM8996_HPOUT1L_ZC_MASK 0x0080 /* HPOUT1L_ZC */
  1109. #define WM8996_HPOUT1L_ZC_SHIFT 7 /* HPOUT1L_ZC */
  1110. #define WM8996_HPOUT1L_ZC_WIDTH 1 /* HPOUT1L_ZC */
  1111. #define WM8996_HPOUT1L_VOL_MASK 0x000F /* HPOUT1L_VOL - [3:0] */
  1112. #define WM8996_HPOUT1L_VOL_SHIFT 0 /* HPOUT1L_VOL - [3:0] */
  1113. #define WM8996_HPOUT1L_VOL_WIDTH 4 /* HPOUT1L_VOL - [3:0] */
  1114. /*
  1115. * R29 (0x1D) - Output1 Right Volume
  1116. */
  1117. #define WM8996_DAC1_VU 0x0100 /* DAC1_VU */
  1118. #define WM8996_DAC1_VU_MASK 0x0100 /* DAC1_VU */
  1119. #define WM8996_DAC1_VU_SHIFT 8 /* DAC1_VU */
  1120. #define WM8996_DAC1_VU_WIDTH 1 /* DAC1_VU */
  1121. #define WM8996_HPOUT1R_ZC 0x0080 /* HPOUT1R_ZC */
  1122. #define WM8996_HPOUT1R_ZC_MASK 0x0080 /* HPOUT1R_ZC */
  1123. #define WM8996_HPOUT1R_ZC_SHIFT 7 /* HPOUT1R_ZC */
  1124. #define WM8996_HPOUT1R_ZC_WIDTH 1 /* HPOUT1R_ZC */
  1125. #define WM8996_HPOUT1R_VOL_MASK 0x000F /* HPOUT1R_VOL - [3:0] */
  1126. #define WM8996_HPOUT1R_VOL_SHIFT 0 /* HPOUT1R_VOL - [3:0] */
  1127. #define WM8996_HPOUT1R_VOL_WIDTH 4 /* HPOUT1R_VOL - [3:0] */
  1128. /*
  1129. * R30 (0x1E) - Output2 Left Volume
  1130. */
  1131. #define WM8996_DAC2_VU 0x0100 /* DAC2_VU */
  1132. #define WM8996_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1133. #define WM8996_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1134. #define WM8996_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1135. #define WM8996_HPOUT2L_ZC 0x0080 /* HPOUT2L_ZC */
  1136. #define WM8996_HPOUT2L_ZC_MASK 0x0080 /* HPOUT2L_ZC */
  1137. #define WM8996_HPOUT2L_ZC_SHIFT 7 /* HPOUT2L_ZC */
  1138. #define WM8996_HPOUT2L_ZC_WIDTH 1 /* HPOUT2L_ZC */
  1139. #define WM8996_HPOUT2L_VOL_MASK 0x000F /* HPOUT2L_VOL - [3:0] */
  1140. #define WM8996_HPOUT2L_VOL_SHIFT 0 /* HPOUT2L_VOL - [3:0] */
  1141. #define WM8996_HPOUT2L_VOL_WIDTH 4 /* HPOUT2L_VOL - [3:0] */
  1142. /*
  1143. * R31 (0x1F) - Output2 Right Volume
  1144. */
  1145. #define WM8996_DAC2_VU 0x0100 /* DAC2_VU */
  1146. #define WM8996_DAC2_VU_MASK 0x0100 /* DAC2_VU */
  1147. #define WM8996_DAC2_VU_SHIFT 8 /* DAC2_VU */
  1148. #define WM8996_DAC2_VU_WIDTH 1 /* DAC2_VU */
  1149. #define WM8996_HPOUT2R_ZC 0x0080 /* HPOUT2R_ZC */
  1150. #define WM8996_HPOUT2R_ZC_MASK 0x0080 /* HPOUT2R_ZC */
  1151. #define WM8996_HPOUT2R_ZC_SHIFT 7 /* HPOUT2R_ZC */
  1152. #define WM8996_HPOUT2R_ZC_WIDTH 1 /* HPOUT2R_ZC */
  1153. #define WM8996_HPOUT2R_VOL_MASK 0x000F /* HPOUT2R_VOL - [3:0] */
  1154. #define WM8996_HPOUT2R_VOL_SHIFT 0 /* HPOUT2R_VOL - [3:0] */
  1155. #define WM8996_HPOUT2R_VOL_WIDTH 4 /* HPOUT2R_VOL - [3:0] */
  1156. /*
  1157. * R32 (0x20) - MICBIAS (1)
  1158. */
  1159. #define WM8996_MICB1_RATE 0x0020 /* MICB1_RATE */
  1160. #define WM8996_MICB1_RATE_MASK 0x0020 /* MICB1_RATE */
  1161. #define WM8996_MICB1_RATE_SHIFT 5 /* MICB1_RATE */
  1162. #define WM8996_MICB1_RATE_WIDTH 1 /* MICB1_RATE */
  1163. #define WM8996_MICB1_MODE 0x0010 /* MICB1_MODE */
  1164. #define WM8996_MICB1_MODE_MASK 0x0010 /* MICB1_MODE */
  1165. #define WM8996_MICB1_MODE_SHIFT 4 /* MICB1_MODE */
  1166. #define WM8996_MICB1_MODE_WIDTH 1 /* MICB1_MODE */
  1167. #define WM8996_MICB1_LVL_MASK 0x000E /* MICB1_LVL - [3:1] */
  1168. #define WM8996_MICB1_LVL_SHIFT 1 /* MICB1_LVL - [3:1] */
  1169. #define WM8996_MICB1_LVL_WIDTH 3 /* MICB1_LVL - [3:1] */
  1170. #define WM8996_MICB1_DISCH 0x0001 /* MICB1_DISCH */
  1171. #define WM8996_MICB1_DISCH_MASK 0x0001 /* MICB1_DISCH */
  1172. #define WM8996_MICB1_DISCH_SHIFT 0 /* MICB1_DISCH */
  1173. #define WM8996_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  1174. /*
  1175. * R33 (0x21) - MICBIAS (2)
  1176. */
  1177. #define WM8996_MICB2_RATE 0x0020 /* MICB2_RATE */
  1178. #define WM8996_MICB2_RATE_MASK 0x0020 /* MICB2_RATE */
  1179. #define WM8996_MICB2_RATE_SHIFT 5 /* MICB2_RATE */
  1180. #define WM8996_MICB2_RATE_WIDTH 1 /* MICB2_RATE */
  1181. #define WM8996_MICB2_MODE 0x0010 /* MICB2_MODE */
  1182. #define WM8996_MICB2_MODE_MASK 0x0010 /* MICB2_MODE */
  1183. #define WM8996_MICB2_MODE_SHIFT 4 /* MICB2_MODE */
  1184. #define WM8996_MICB2_MODE_WIDTH 1 /* MICB2_MODE */
  1185. #define WM8996_MICB2_LVL_MASK 0x000E /* MICB2_LVL - [3:1] */
  1186. #define WM8996_MICB2_LVL_SHIFT 1 /* MICB2_LVL - [3:1] */
  1187. #define WM8996_MICB2_LVL_WIDTH 3 /* MICB2_LVL - [3:1] */
  1188. #define WM8996_MICB2_DISCH 0x0001 /* MICB2_DISCH */
  1189. #define WM8996_MICB2_DISCH_MASK 0x0001 /* MICB2_DISCH */
  1190. #define WM8996_MICB2_DISCH_SHIFT 0 /* MICB2_DISCH */
  1191. #define WM8996_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  1192. /*
  1193. * R40 (0x28) - LDO 1
  1194. */
  1195. #define WM8996_LDO1_MODE 0x0020 /* LDO1_MODE */
  1196. #define WM8996_LDO1_MODE_MASK 0x0020 /* LDO1_MODE */
  1197. #define WM8996_LDO1_MODE_SHIFT 5 /* LDO1_MODE */
  1198. #define WM8996_LDO1_MODE_WIDTH 1 /* LDO1_MODE */
  1199. #define WM8996_LDO1_VSEL_MASK 0x0006 /* LDO1_VSEL - [2:1] */
  1200. #define WM8996_LDO1_VSEL_SHIFT 1 /* LDO1_VSEL - [2:1] */
  1201. #define WM8996_LDO1_VSEL_WIDTH 2 /* LDO1_VSEL - [2:1] */
  1202. #define WM8996_LDO1_DISCH 0x0001 /* LDO1_DISCH */
  1203. #define WM8996_LDO1_DISCH_MASK 0x0001 /* LDO1_DISCH */
  1204. #define WM8996_LDO1_DISCH_SHIFT 0 /* LDO1_DISCH */
  1205. #define WM8996_LDO1_DISCH_WIDTH 1 /* LDO1_DISCH */
  1206. /*
  1207. * R41 (0x29) - LDO 2
  1208. */
  1209. #define WM8996_LDO2_MODE 0x0020 /* LDO2_MODE */
  1210. #define WM8996_LDO2_MODE_MASK 0x0020 /* LDO2_MODE */
  1211. #define WM8996_LDO2_MODE_SHIFT 5 /* LDO2_MODE */
  1212. #define WM8996_LDO2_MODE_WIDTH 1 /* LDO2_MODE */
  1213. #define WM8996_LDO2_VSEL_MASK 0x001E /* LDO2_VSEL - [4:1] */
  1214. #define WM8996_LDO2_VSEL_SHIFT 1 /* LDO2_VSEL - [4:1] */
  1215. #define WM8996_LDO2_VSEL_WIDTH 4 /* LDO2_VSEL - [4:1] */
  1216. #define WM8996_LDO2_DISCH 0x0001 /* LDO2_DISCH */
  1217. #define WM8996_LDO2_DISCH_MASK 0x0001 /* LDO2_DISCH */
  1218. #define WM8996_LDO2_DISCH_SHIFT 0 /* LDO2_DISCH */
  1219. #define WM8996_LDO2_DISCH_WIDTH 1 /* LDO2_DISCH */
  1220. /*
  1221. * R48 (0x30) - Accessory Detect Mode 1
  1222. */
  1223. #define WM8996_JD_MODE_MASK 0x0003 /* JD_MODE - [1:0] */
  1224. #define WM8996_JD_MODE_SHIFT 0 /* JD_MODE - [1:0] */
  1225. #define WM8996_JD_MODE_WIDTH 2 /* JD_MODE - [1:0] */
  1226. /*
  1227. * R49 (0x31) - Accessory Detect Mode 2
  1228. */
  1229. #define WM8996_HPOUT1FB_SRC 0x0004 /* HPOUT1FB_SRC */
  1230. #define WM8996_HPOUT1FB_SRC_MASK 0x0004 /* HPOUT1FB_SRC */
  1231. #define WM8996_HPOUT1FB_SRC_SHIFT 2 /* HPOUT1FB_SRC */
  1232. #define WM8996_HPOUT1FB_SRC_WIDTH 1 /* HPOUT1FB_SRC */
  1233. #define WM8996_MICD_SRC 0x0002 /* MICD_SRC */
  1234. #define WM8996_MICD_SRC_MASK 0x0002 /* MICD_SRC */
  1235. #define WM8996_MICD_SRC_SHIFT 1 /* MICD_SRC */
  1236. #define WM8996_MICD_SRC_WIDTH 1 /* MICD_SRC */
  1237. #define WM8996_MICD_BIAS_SRC 0x0001 /* MICD_BIAS_SRC */
  1238. #define WM8996_MICD_BIAS_SRC_MASK 0x0001 /* MICD_BIAS_SRC */
  1239. #define WM8996_MICD_BIAS_SRC_SHIFT 0 /* MICD_BIAS_SRC */
  1240. #define WM8996_MICD_BIAS_SRC_WIDTH 1 /* MICD_BIAS_SRC */
  1241. /*
  1242. * R52 (0x34) - Headphone Detect 1
  1243. */
  1244. #define WM8996_HP_HOLDTIME_MASK 0x00E0 /* HP_HOLDTIME - [7:5] */
  1245. #define WM8996_HP_HOLDTIME_SHIFT 5 /* HP_HOLDTIME - [7:5] */
  1246. #define WM8996_HP_HOLDTIME_WIDTH 3 /* HP_HOLDTIME - [7:5] */
  1247. #define WM8996_HP_CLK_DIV_MASK 0x0018 /* HP_CLK_DIV - [4:3] */
  1248. #define WM8996_HP_CLK_DIV_SHIFT 3 /* HP_CLK_DIV - [4:3] */
  1249. #define WM8996_HP_CLK_DIV_WIDTH 2 /* HP_CLK_DIV - [4:3] */
  1250. #define WM8996_HP_STEP_SIZE 0x0002 /* HP_STEP_SIZE */
  1251. #define WM8996_HP_STEP_SIZE_MASK 0x0002 /* HP_STEP_SIZE */
  1252. #define WM8996_HP_STEP_SIZE_SHIFT 1 /* HP_STEP_SIZE */
  1253. #define WM8996_HP_STEP_SIZE_WIDTH 1 /* HP_STEP_SIZE */
  1254. #define WM8996_HP_POLL 0x0001 /* HP_POLL */
  1255. #define WM8996_HP_POLL_MASK 0x0001 /* HP_POLL */
  1256. #define WM8996_HP_POLL_SHIFT 0 /* HP_POLL */
  1257. #define WM8996_HP_POLL_WIDTH 1 /* HP_POLL */
  1258. /*
  1259. * R53 (0x35) - Headphone Detect 2
  1260. */
  1261. #define WM8996_HP_DONE 0x0080 /* HP_DONE */
  1262. #define WM8996_HP_DONE_MASK 0x0080 /* HP_DONE */
  1263. #define WM8996_HP_DONE_SHIFT 7 /* HP_DONE */
  1264. #define WM8996_HP_DONE_WIDTH 1 /* HP_DONE */
  1265. #define WM8996_HP_LVL_MASK 0x007F /* HP_LVL - [6:0] */
  1266. #define WM8996_HP_LVL_SHIFT 0 /* HP_LVL - [6:0] */
  1267. #define WM8996_HP_LVL_WIDTH 7 /* HP_LVL - [6:0] */
  1268. /*
  1269. * R56 (0x38) - Mic Detect 1
  1270. */
  1271. #define WM8996_MICD_BIAS_STARTTIME_MASK 0xF000 /* MICD_BIAS_STARTTIME - [15:12] */
  1272. #define WM8996_MICD_BIAS_STARTTIME_SHIFT 12 /* MICD_BIAS_STARTTIME - [15:12] */
  1273. #define WM8996_MICD_BIAS_STARTTIME_WIDTH 4 /* MICD_BIAS_STARTTIME - [15:12] */
  1274. #define WM8996_MICD_RATE_MASK 0x0F00 /* MICD_RATE - [11:8] */
  1275. #define WM8996_MICD_RATE_SHIFT 8 /* MICD_RATE - [11:8] */
  1276. #define WM8996_MICD_RATE_WIDTH 4 /* MICD_RATE - [11:8] */
  1277. #define WM8996_MICD_DBTIME 0x0002 /* MICD_DBTIME */
  1278. #define WM8996_MICD_DBTIME_MASK 0x0002 /* MICD_DBTIME */
  1279. #define WM8996_MICD_DBTIME_SHIFT 1 /* MICD_DBTIME */
  1280. #define WM8996_MICD_DBTIME_WIDTH 1 /* MICD_DBTIME */
  1281. #define WM8996_MICD_ENA 0x0001 /* MICD_ENA */
  1282. #define WM8996_MICD_ENA_MASK 0x0001 /* MICD_ENA */
  1283. #define WM8996_MICD_ENA_SHIFT 0 /* MICD_ENA */
  1284. #define WM8996_MICD_ENA_WIDTH 1 /* MICD_ENA */
  1285. /*
  1286. * R57 (0x39) - Mic Detect 2
  1287. */
  1288. #define WM8996_MICD_LVL_SEL_MASK 0x00FF /* MICD_LVL_SEL - [7:0] */
  1289. #define WM8996_MICD_LVL_SEL_SHIFT 0 /* MICD_LVL_SEL - [7:0] */
  1290. #define WM8996_MICD_LVL_SEL_WIDTH 8 /* MICD_LVL_SEL - [7:0] */
  1291. /*
  1292. * R58 (0x3A) - Mic Detect 3
  1293. */
  1294. #define WM8996_MICD_LVL_MASK 0x07FC /* MICD_LVL - [10:2] */
  1295. #define WM8996_MICD_LVL_SHIFT 2 /* MICD_LVL - [10:2] */
  1296. #define WM8996_MICD_LVL_WIDTH 9 /* MICD_LVL - [10:2] */
  1297. #define WM8996_MICD_VALID 0x0002 /* MICD_VALID */
  1298. #define WM8996_MICD_VALID_MASK 0x0002 /* MICD_VALID */
  1299. #define WM8996_MICD_VALID_SHIFT 1 /* MICD_VALID */
  1300. #define WM8996_MICD_VALID_WIDTH 1 /* MICD_VALID */
  1301. #define WM8996_MICD_STS 0x0001 /* MICD_STS */
  1302. #define WM8996_MICD_STS_MASK 0x0001 /* MICD_STS */
  1303. #define WM8996_MICD_STS_SHIFT 0 /* MICD_STS */
  1304. #define WM8996_MICD_STS_WIDTH 1 /* MICD_STS */
  1305. /*
  1306. * R64 (0x40) - Charge Pump (1)
  1307. */
  1308. #define WM8996_CP_ENA 0x8000 /* CP_ENA */
  1309. #define WM8996_CP_ENA_MASK 0x8000 /* CP_ENA */
  1310. #define WM8996_CP_ENA_SHIFT 15 /* CP_ENA */
  1311. #define WM8996_CP_ENA_WIDTH 1 /* CP_ENA */
  1312. /*
  1313. * R65 (0x41) - Charge Pump (2)
  1314. */
  1315. #define WM8996_CP_DISCH 0x8000 /* CP_DISCH */
  1316. #define WM8996_CP_DISCH_MASK 0x8000 /* CP_DISCH */
  1317. #define WM8996_CP_DISCH_SHIFT 15 /* CP_DISCH */
  1318. #define WM8996_CP_DISCH_WIDTH 1 /* CP_DISCH */
  1319. /*
  1320. * R80 (0x50) - DC Servo (1)
  1321. */
  1322. #define WM8996_DCS_ENA_CHAN_3 0x0008 /* DCS_ENA_CHAN_3 */
  1323. #define WM8996_DCS_ENA_CHAN_3_MASK 0x0008 /* DCS_ENA_CHAN_3 */
  1324. #define WM8996_DCS_ENA_CHAN_3_SHIFT 3 /* DCS_ENA_CHAN_3 */
  1325. #define WM8996_DCS_ENA_CHAN_3_WIDTH 1 /* DCS_ENA_CHAN_3 */
  1326. #define WM8996_DCS_ENA_CHAN_2 0x0004 /* DCS_ENA_CHAN_2 */
  1327. #define WM8996_DCS_ENA_CHAN_2_MASK 0x0004 /* DCS_ENA_CHAN_2 */
  1328. #define WM8996_DCS_ENA_CHAN_2_SHIFT 2 /* DCS_ENA_CHAN_2 */
  1329. #define WM8996_DCS_ENA_CHAN_2_WIDTH 1 /* DCS_ENA_CHAN_2 */
  1330. #define WM8996_DCS_ENA_CHAN_1 0x0002 /* DCS_ENA_CHAN_1 */
  1331. #define WM8996_DCS_ENA_CHAN_1_MASK 0x0002 /* DCS_ENA_CHAN_1 */
  1332. #define WM8996_DCS_ENA_CHAN_1_SHIFT 1 /* DCS_ENA_CHAN_1 */
  1333. #define WM8996_DCS_ENA_CHAN_1_WIDTH 1 /* DCS_ENA_CHAN_1 */
  1334. #define WM8996_DCS_ENA_CHAN_0 0x0001 /* DCS_ENA_CHAN_0 */
  1335. #define WM8996_DCS_ENA_CHAN_0_MASK 0x0001 /* DCS_ENA_CHAN_0 */
  1336. #define WM8996_DCS_ENA_CHAN_0_SHIFT 0 /* DCS_ENA_CHAN_0 */
  1337. #define WM8996_DCS_ENA_CHAN_0_WIDTH 1 /* DCS_ENA_CHAN_0 */
  1338. /*
  1339. * R81 (0x51) - DC Servo (2)
  1340. */
  1341. #define WM8996_DCS_TRIG_SINGLE_3 0x8000 /* DCS_TRIG_SINGLE_3 */
  1342. #define WM8996_DCS_TRIG_SINGLE_3_MASK 0x8000 /* DCS_TRIG_SINGLE_3 */
  1343. #define WM8996_DCS_TRIG_SINGLE_3_SHIFT 15 /* DCS_TRIG_SINGLE_3 */
  1344. #define WM8996_DCS_TRIG_SINGLE_3_WIDTH 1 /* DCS_TRIG_SINGLE_3 */
  1345. #define WM8996_DCS_TRIG_SINGLE_2 0x4000 /* DCS_TRIG_SINGLE_2 */
  1346. #define WM8996_DCS_TRIG_SINGLE_2_MASK 0x4000 /* DCS_TRIG_SINGLE_2 */
  1347. #define WM8996_DCS_TRIG_SINGLE_2_SHIFT 14 /* DCS_TRIG_SINGLE_2 */
  1348. #define WM8996_DCS_TRIG_SINGLE_2_WIDTH 1 /* DCS_TRIG_SINGLE_2 */
  1349. #define WM8996_DCS_TRIG_SINGLE_1 0x2000 /* DCS_TRIG_SINGLE_1 */
  1350. #define WM8996_DCS_TRIG_SINGLE_1_MASK 0x2000 /* DCS_TRIG_SINGLE_1 */
  1351. #define WM8996_DCS_TRIG_SINGLE_1_SHIFT 13 /* DCS_TRIG_SINGLE_1 */
  1352. #define WM8996_DCS_TRIG_SINGLE_1_WIDTH 1 /* DCS_TRIG_SINGLE_1 */
  1353. #define WM8996_DCS_TRIG_SINGLE_0 0x1000 /* DCS_TRIG_SINGLE_0 */
  1354. #define WM8996_DCS_TRIG_SINGLE_0_MASK 0x1000 /* DCS_TRIG_SINGLE_0 */
  1355. #define WM8996_DCS_TRIG_SINGLE_0_SHIFT 12 /* DCS_TRIG_SINGLE_0 */
  1356. #define WM8996_DCS_TRIG_SINGLE_0_WIDTH 1 /* DCS_TRIG_SINGLE_0 */
  1357. #define WM8996_DCS_TRIG_SERIES_3 0x0800 /* DCS_TRIG_SERIES_3 */
  1358. #define WM8996_DCS_TRIG_SERIES_3_MASK 0x0800 /* DCS_TRIG_SERIES_3 */
  1359. #define WM8996_DCS_TRIG_SERIES_3_SHIFT 11 /* DCS_TRIG_SERIES_3 */
  1360. #define WM8996_DCS_TRIG_SERIES_3_WIDTH 1 /* DCS_TRIG_SERIES_3 */
  1361. #define WM8996_DCS_TRIG_SERIES_2 0x0400 /* DCS_TRIG_SERIES_2 */
  1362. #define WM8996_DCS_TRIG_SERIES_2_MASK 0x0400 /* DCS_TRIG_SERIES_2 */
  1363. #define WM8996_DCS_TRIG_SERIES_2_SHIFT 10 /* DCS_TRIG_SERIES_2 */
  1364. #define WM8996_DCS_TRIG_SERIES_2_WIDTH 1 /* DCS_TRIG_SERIES_2 */
  1365. #define WM8996_DCS_TRIG_SERIES_1 0x0200 /* DCS_TRIG_SERIES_1 */
  1366. #define WM8996_DCS_TRIG_SERIES_1_MASK 0x0200 /* DCS_TRIG_SERIES_1 */
  1367. #define WM8996_DCS_TRIG_SERIES_1_SHIFT 9 /* DCS_TRIG_SERIES_1 */
  1368. #define WM8996_DCS_TRIG_SERIES_1_WIDTH 1 /* DCS_TRIG_SERIES_1 */
  1369. #define WM8996_DCS_TRIG_SERIES_0 0x0100 /* DCS_TRIG_SERIES_0 */
  1370. #define WM8996_DCS_TRIG_SERIES_0_MASK 0x0100 /* DCS_TRIG_SERIES_0 */
  1371. #define WM8996_DCS_TRIG_SERIES_0_SHIFT 8 /* DCS_TRIG_SERIES_0 */
  1372. #define WM8996_DCS_TRIG_SERIES_0_WIDTH 1 /* DCS_TRIG_SERIES_0 */
  1373. #define WM8996_DCS_TRIG_STARTUP_3 0x0080 /* DCS_TRIG_STARTUP_3 */
  1374. #define WM8996_DCS_TRIG_STARTUP_3_MASK 0x0080 /* DCS_TRIG_STARTUP_3 */
  1375. #define WM8996_DCS_TRIG_STARTUP_3_SHIFT 7 /* DCS_TRIG_STARTUP_3 */
  1376. #define WM8996_DCS_TRIG_STARTUP_3_WIDTH 1 /* DCS_TRIG_STARTUP_3 */
  1377. #define WM8996_DCS_TRIG_STARTUP_2 0x0040 /* DCS_TRIG_STARTUP_2 */
  1378. #define WM8996_DCS_TRIG_STARTUP_2_MASK 0x0040 /* DCS_TRIG_STARTUP_2 */
  1379. #define WM8996_DCS_TRIG_STARTUP_2_SHIFT 6 /* DCS_TRIG_STARTUP_2 */
  1380. #define WM8996_DCS_TRIG_STARTUP_2_WIDTH 1 /* DCS_TRIG_STARTUP_2 */
  1381. #define WM8996_DCS_TRIG_STARTUP_1 0x0020 /* DCS_TRIG_STARTUP_1 */
  1382. #define WM8996_DCS_TRIG_STARTUP_1_MASK 0x0020 /* DCS_TRIG_STARTUP_1 */
  1383. #define WM8996_DCS_TRIG_STARTUP_1_SHIFT 5 /* DCS_TRIG_STARTUP_1 */
  1384. #define WM8996_DCS_TRIG_STARTUP_1_WIDTH 1 /* DCS_TRIG_STARTUP_1 */
  1385. #define WM8996_DCS_TRIG_STARTUP_0 0x0010 /* DCS_TRIG_STARTUP_0 */
  1386. #define WM8996_DCS_TRIG_STARTUP_0_MASK 0x0010 /* DCS_TRIG_STARTUP_0 */
  1387. #define WM8996_DCS_TRIG_STARTUP_0_SHIFT 4 /* DCS_TRIG_STARTUP_0 */
  1388. #define WM8996_DCS_TRIG_STARTUP_0_WIDTH 1 /* DCS_TRIG_STARTUP_0 */
  1389. #define WM8996_DCS_TRIG_DAC_WR_3 0x0008 /* DCS_TRIG_DAC_WR_3 */
  1390. #define WM8996_DCS_TRIG_DAC_WR_3_MASK 0x0008 /* DCS_TRIG_DAC_WR_3 */
  1391. #define WM8996_DCS_TRIG_DAC_WR_3_SHIFT 3 /* DCS_TRIG_DAC_WR_3 */
  1392. #define WM8996_DCS_TRIG_DAC_WR_3_WIDTH 1 /* DCS_TRIG_DAC_WR_3 */
  1393. #define WM8996_DCS_TRIG_DAC_WR_2 0x0004 /* DCS_TRIG_DAC_WR_2 */
  1394. #define WM8996_DCS_TRIG_DAC_WR_2_MASK 0x0004 /* DCS_TRIG_DAC_WR_2 */
  1395. #define WM8996_DCS_TRIG_DAC_WR_2_SHIFT 2 /* DCS_TRIG_DAC_WR_2 */
  1396. #define WM8996_DCS_TRIG_DAC_WR_2_WIDTH 1 /* DCS_TRIG_DAC_WR_2 */
  1397. #define WM8996_DCS_TRIG_DAC_WR_1 0x0002 /* DCS_TRIG_DAC_WR_1 */
  1398. #define WM8996_DCS_TRIG_DAC_WR_1_MASK 0x0002 /* DCS_TRIG_DAC_WR_1 */
  1399. #define WM8996_DCS_TRIG_DAC_WR_1_SHIFT 1 /* DCS_TRIG_DAC_WR_1 */
  1400. #define WM8996_DCS_TRIG_DAC_WR_1_WIDTH 1 /* DCS_TRIG_DAC_WR_1 */
  1401. #define WM8996_DCS_TRIG_DAC_WR_0 0x0001 /* DCS_TRIG_DAC_WR_0 */
  1402. #define WM8996_DCS_TRIG_DAC_WR_0_MASK 0x0001 /* DCS_TRIG_DAC_WR_0 */
  1403. #define WM8996_DCS_TRIG_DAC_WR_0_SHIFT 0 /* DCS_TRIG_DAC_WR_0 */
  1404. #define WM8996_DCS_TRIG_DAC_WR_0_WIDTH 1 /* DCS_TRIG_DAC_WR_0 */
  1405. /*
  1406. * R82 (0x52) - DC Servo (3)
  1407. */
  1408. #define WM8996_DCS_TIMER_PERIOD_23_MASK 0x0F00 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1409. #define WM8996_DCS_TIMER_PERIOD_23_SHIFT 8 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1410. #define WM8996_DCS_TIMER_PERIOD_23_WIDTH 4 /* DCS_TIMER_PERIOD_23 - [11:8] */
  1411. #define WM8996_DCS_TIMER_PERIOD_01_MASK 0x000F /* DCS_TIMER_PERIOD_01 - [3:0] */
  1412. #define WM8996_DCS_TIMER_PERIOD_01_SHIFT 0 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1413. #define WM8996_DCS_TIMER_PERIOD_01_WIDTH 4 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1414. /*
  1415. * R84 (0x54) - DC Servo (5)
  1416. */
  1417. #define WM8996_DCS_SERIES_NO_23_MASK 0x7F00 /* DCS_SERIES_NO_23 - [14:8] */
  1418. #define WM8996_DCS_SERIES_NO_23_SHIFT 8 /* DCS_SERIES_NO_23 - [14:8] */
  1419. #define WM8996_DCS_SERIES_NO_23_WIDTH 7 /* DCS_SERIES_NO_23 - [14:8] */
  1420. #define WM8996_DCS_SERIES_NO_01_MASK 0x007F /* DCS_SERIES_NO_01 - [6:0] */
  1421. #define WM8996_DCS_SERIES_NO_01_SHIFT 0 /* DCS_SERIES_NO_01 - [6:0] */
  1422. #define WM8996_DCS_SERIES_NO_01_WIDTH 7 /* DCS_SERIES_NO_01 - [6:0] */
  1423. /*
  1424. * R85 (0x55) - DC Servo (6)
  1425. */
  1426. #define WM8996_DCS_DAC_WR_VAL_3_MASK 0xFF00 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1427. #define WM8996_DCS_DAC_WR_VAL_3_SHIFT 8 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1428. #define WM8996_DCS_DAC_WR_VAL_3_WIDTH 8 /* DCS_DAC_WR_VAL_3 - [15:8] */
  1429. #define WM8996_DCS_DAC_WR_VAL_2_MASK 0x00FF /* DCS_DAC_WR_VAL_2 - [7:0] */
  1430. #define WM8996_DCS_DAC_WR_VAL_2_SHIFT 0 /* DCS_DAC_WR_VAL_2 - [7:0] */
  1431. #define WM8996_DCS_DAC_WR_VAL_2_WIDTH 8 /* DCS_DAC_WR_VAL_2 - [7:0] */
  1432. /*
  1433. * R86 (0x56) - DC Servo (7)
  1434. */
  1435. #define WM8996_DCS_DAC_WR_VAL_1_MASK 0xFF00 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1436. #define WM8996_DCS_DAC_WR_VAL_1_SHIFT 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1437. #define WM8996_DCS_DAC_WR_VAL_1_WIDTH 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1438. #define WM8996_DCS_DAC_WR_VAL_0_MASK 0x00FF /* DCS_DAC_WR_VAL_0 - [7:0] */
  1439. #define WM8996_DCS_DAC_WR_VAL_0_SHIFT 0 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1440. #define WM8996_DCS_DAC_WR_VAL_0_WIDTH 8 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1441. /*
  1442. * R87 (0x57) - DC Servo Readback 0
  1443. */
  1444. #define WM8996_DCS_CAL_COMPLETE_MASK 0x0F00 /* DCS_CAL_COMPLETE - [11:8] */
  1445. #define WM8996_DCS_CAL_COMPLETE_SHIFT 8 /* DCS_CAL_COMPLETE - [11:8] */
  1446. #define WM8996_DCS_CAL_COMPLETE_WIDTH 4 /* DCS_CAL_COMPLETE - [11:8] */
  1447. #define WM8996_DCS_DAC_WR_COMPLETE_MASK 0x00F0 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1448. #define WM8996_DCS_DAC_WR_COMPLETE_SHIFT 4 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1449. #define WM8996_DCS_DAC_WR_COMPLETE_WIDTH 4 /* DCS_DAC_WR_COMPLETE - [7:4] */
  1450. #define WM8996_DCS_STARTUP_COMPLETE_MASK 0x000F /* DCS_STARTUP_COMPLETE - [3:0] */
  1451. #define WM8996_DCS_STARTUP_COMPLETE_SHIFT 0 /* DCS_STARTUP_COMPLETE - [3:0] */
  1452. #define WM8996_DCS_STARTUP_COMPLETE_WIDTH 4 /* DCS_STARTUP_COMPLETE - [3:0] */
  1453. /*
  1454. * R96 (0x60) - Analogue HP (1)
  1455. */
  1456. #define WM8996_HPOUT1L_RMV_SHORT 0x0080 /* HPOUT1L_RMV_SHORT */
  1457. #define WM8996_HPOUT1L_RMV_SHORT_MASK 0x0080 /* HPOUT1L_RMV_SHORT */
  1458. #define WM8996_HPOUT1L_RMV_SHORT_SHIFT 7 /* HPOUT1L_RMV_SHORT */
  1459. #define WM8996_HPOUT1L_RMV_SHORT_WIDTH 1 /* HPOUT1L_RMV_SHORT */
  1460. #define WM8996_HPOUT1L_OUTP 0x0040 /* HPOUT1L_OUTP */
  1461. #define WM8996_HPOUT1L_OUTP_MASK 0x0040 /* HPOUT1L_OUTP */
  1462. #define WM8996_HPOUT1L_OUTP_SHIFT 6 /* HPOUT1L_OUTP */
  1463. #define WM8996_HPOUT1L_OUTP_WIDTH 1 /* HPOUT1L_OUTP */
  1464. #define WM8996_HPOUT1L_DLY 0x0020 /* HPOUT1L_DLY */
  1465. #define WM8996_HPOUT1L_DLY_MASK 0x0020 /* HPOUT1L_DLY */
  1466. #define WM8996_HPOUT1L_DLY_SHIFT 5 /* HPOUT1L_DLY */
  1467. #define WM8996_HPOUT1L_DLY_WIDTH 1 /* HPOUT1L_DLY */
  1468. #define WM8996_HPOUT1R_RMV_SHORT 0x0008 /* HPOUT1R_RMV_SHORT */
  1469. #define WM8996_HPOUT1R_RMV_SHORT_MASK 0x0008 /* HPOUT1R_RMV_SHORT */
  1470. #define WM8996_HPOUT1R_RMV_SHORT_SHIFT 3 /* HPOUT1R_RMV_SHORT */
  1471. #define WM8996_HPOUT1R_RMV_SHORT_WIDTH 1 /* HPOUT1R_RMV_SHORT */
  1472. #define WM8996_HPOUT1R_OUTP 0x0004 /* HPOUT1R_OUTP */
  1473. #define WM8996_HPOUT1R_OUTP_MASK 0x0004 /* HPOUT1R_OUTP */
  1474. #define WM8996_HPOUT1R_OUTP_SHIFT 2 /* HPOUT1R_OUTP */
  1475. #define WM8996_HPOUT1R_OUTP_WIDTH 1 /* HPOUT1R_OUTP */
  1476. #define WM8996_HPOUT1R_DLY 0x0002 /* HPOUT1R_DLY */
  1477. #define WM8996_HPOUT1R_DLY_MASK 0x0002 /* HPOUT1R_DLY */
  1478. #define WM8996_HPOUT1R_DLY_SHIFT 1 /* HPOUT1R_DLY */
  1479. #define WM8996_HPOUT1R_DLY_WIDTH 1 /* HPOUT1R_DLY */
  1480. /*
  1481. * R97 (0x61) - Analogue HP (2)
  1482. */
  1483. #define WM8996_HPOUT2L_RMV_SHORT 0x0080 /* HPOUT2L_RMV_SHORT */
  1484. #define WM8996_HPOUT2L_RMV_SHORT_MASK 0x0080 /* HPOUT2L_RMV_SHORT */
  1485. #define WM8996_HPOUT2L_RMV_SHORT_SHIFT 7 /* HPOUT2L_RMV_SHORT */
  1486. #define WM8996_HPOUT2L_RMV_SHORT_WIDTH 1 /* HPOUT2L_RMV_SHORT */
  1487. #define WM8996_HPOUT2L_OUTP 0x0040 /* HPOUT2L_OUTP */
  1488. #define WM8996_HPOUT2L_OUTP_MASK 0x0040 /* HPOUT2L_OUTP */
  1489. #define WM8996_HPOUT2L_OUTP_SHIFT 6 /* HPOUT2L_OUTP */
  1490. #define WM8996_HPOUT2L_OUTP_WIDTH 1 /* HPOUT2L_OUTP */
  1491. #define WM8996_HPOUT2L_DLY 0x0020 /* HPOUT2L_DLY */
  1492. #define WM8996_HPOUT2L_DLY_MASK 0x0020 /* HPOUT2L_DLY */
  1493. #define WM8996_HPOUT2L_DLY_SHIFT 5 /* HPOUT2L_DLY */
  1494. #define WM8996_HPOUT2L_DLY_WIDTH 1 /* HPOUT2L_DLY */
  1495. #define WM8996_HPOUT2R_RMV_SHORT 0x0008 /* HPOUT2R_RMV_SHORT */
  1496. #define WM8996_HPOUT2R_RMV_SHORT_MASK 0x0008 /* HPOUT2R_RMV_SHORT */
  1497. #define WM8996_HPOUT2R_RMV_SHORT_SHIFT 3 /* HPOUT2R_RMV_SHORT */
  1498. #define WM8996_HPOUT2R_RMV_SHORT_WIDTH 1 /* HPOUT2R_RMV_SHORT */
  1499. #define WM8996_HPOUT2R_OUTP 0x0004 /* HPOUT2R_OUTP */
  1500. #define WM8996_HPOUT2R_OUTP_MASK 0x0004 /* HPOUT2R_OUTP */
  1501. #define WM8996_HPOUT2R_OUTP_SHIFT 2 /* HPOUT2R_OUTP */
  1502. #define WM8996_HPOUT2R_OUTP_WIDTH 1 /* HPOUT2R_OUTP */
  1503. #define WM8996_HPOUT2R_DLY 0x0002 /* HPOUT2R_DLY */
  1504. #define WM8996_HPOUT2R_DLY_MASK 0x0002 /* HPOUT2R_DLY */
  1505. #define WM8996_HPOUT2R_DLY_SHIFT 1 /* HPOUT2R_DLY */
  1506. #define WM8996_HPOUT2R_DLY_WIDTH 1 /* HPOUT2R_DLY */
  1507. /*
  1508. * R256 (0x100) - Chip Revision
  1509. */
  1510. #define WM8996_CHIP_REV_MASK 0x000F /* CHIP_REV - [3:0] */
  1511. #define WM8996_CHIP_REV_SHIFT 0 /* CHIP_REV - [3:0] */
  1512. #define WM8996_CHIP_REV_WIDTH 4 /* CHIP_REV - [3:0] */
  1513. /*
  1514. * R257 (0x101) - Control Interface (1)
  1515. */
  1516. #define WM8996_REG_SYNC 0x8000 /* REG_SYNC */
  1517. #define WM8996_REG_SYNC_MASK 0x8000 /* REG_SYNC */
  1518. #define WM8996_REG_SYNC_SHIFT 15 /* REG_SYNC */
  1519. #define WM8996_REG_SYNC_WIDTH 1 /* REG_SYNC */
  1520. #define WM8996_AUTO_INC 0x0004 /* AUTO_INC */
  1521. #define WM8996_AUTO_INC_MASK 0x0004 /* AUTO_INC */
  1522. #define WM8996_AUTO_INC_SHIFT 2 /* AUTO_INC */
  1523. #define WM8996_AUTO_INC_WIDTH 1 /* AUTO_INC */
  1524. /*
  1525. * R272 (0x110) - Write Sequencer Ctrl (1)
  1526. */
  1527. #define WM8996_WSEQ_ENA 0x8000 /* WSEQ_ENA */
  1528. #define WM8996_WSEQ_ENA_MASK 0x8000 /* WSEQ_ENA */
  1529. #define WM8996_WSEQ_ENA_SHIFT 15 /* WSEQ_ENA */
  1530. #define WM8996_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */
  1531. #define WM8996_WSEQ_ABORT 0x0200 /* WSEQ_ABORT */
  1532. #define WM8996_WSEQ_ABORT_MASK 0x0200 /* WSEQ_ABORT */
  1533. #define WM8996_WSEQ_ABORT_SHIFT 9 /* WSEQ_ABORT */
  1534. #define WM8996_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */
  1535. #define WM8996_WSEQ_START 0x0100 /* WSEQ_START */
  1536. #define WM8996_WSEQ_START_MASK 0x0100 /* WSEQ_START */
  1537. #define WM8996_WSEQ_START_SHIFT 8 /* WSEQ_START */
  1538. #define WM8996_WSEQ_START_WIDTH 1 /* WSEQ_START */
  1539. #define WM8996_WSEQ_START_INDEX_MASK 0x007F /* WSEQ_START_INDEX - [6:0] */
  1540. #define WM8996_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [6:0] */
  1541. #define WM8996_WSEQ_START_INDEX_WIDTH 7 /* WSEQ_START_INDEX - [6:0] */
  1542. /*
  1543. * R273 (0x111) - Write Sequencer Ctrl (2)
  1544. */
  1545. #define WM8996_WSEQ_BUSY 0x0100 /* WSEQ_BUSY */
  1546. #define WM8996_WSEQ_BUSY_MASK 0x0100 /* WSEQ_BUSY */
  1547. #define WM8996_WSEQ_BUSY_SHIFT 8 /* WSEQ_BUSY */
  1548. #define WM8996_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */
  1549. #define WM8996_WSEQ_CURRENT_INDEX_MASK 0x007F /* WSEQ_CURRENT_INDEX - [6:0] */
  1550. #define WM8996_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [6:0] */
  1551. #define WM8996_WSEQ_CURRENT_INDEX_WIDTH 7 /* WSEQ_CURRENT_INDEX - [6:0] */
  1552. /*
  1553. * R512 (0x200) - AIF Clocking (1)
  1554. */
  1555. #define WM8996_SYSCLK_SRC_MASK 0x0018 /* SYSCLK_SRC - [4:3] */
  1556. #define WM8996_SYSCLK_SRC_SHIFT 3 /* SYSCLK_SRC - [4:3] */
  1557. #define WM8996_SYSCLK_SRC_WIDTH 2 /* SYSCLK_SRC - [4:3] */
  1558. #define WM8996_SYSCLK_INV 0x0004 /* SYSCLK_INV */
  1559. #define WM8996_SYSCLK_INV_MASK 0x0004 /* SYSCLK_INV */
  1560. #define WM8996_SYSCLK_INV_SHIFT 2 /* SYSCLK_INV */
  1561. #define WM8996_SYSCLK_INV_WIDTH 1 /* SYSCLK_INV */
  1562. #define WM8996_SYSCLK_DIV 0x0002 /* SYSCLK_DIV */
  1563. #define WM8996_SYSCLK_DIV_MASK 0x0002 /* SYSCLK_DIV */
  1564. #define WM8996_SYSCLK_DIV_SHIFT 1 /* SYSCLK_DIV */
  1565. #define WM8996_SYSCLK_DIV_WIDTH 1 /* SYSCLK_DIV */
  1566. #define WM8996_SYSCLK_ENA 0x0001 /* SYSCLK_ENA */
  1567. #define WM8996_SYSCLK_ENA_MASK 0x0001 /* SYSCLK_ENA */
  1568. #define WM8996_SYSCLK_ENA_SHIFT 0 /* SYSCLK_ENA */
  1569. #define WM8996_SYSCLK_ENA_WIDTH 1 /* SYSCLK_ENA */
  1570. /*
  1571. * R513 (0x201) - AIF Clocking (2)
  1572. */
  1573. #define WM8996_DSP2_DIV_MASK 0x0018 /* DSP2_DIV - [4:3] */
  1574. #define WM8996_DSP2_DIV_SHIFT 3 /* DSP2_DIV - [4:3] */
  1575. #define WM8996_DSP2_DIV_WIDTH 2 /* DSP2_DIV - [4:3] */
  1576. #define WM8996_DSP1_DIV_MASK 0x0003 /* DSP1_DIV - [1:0] */
  1577. #define WM8996_DSP1_DIV_SHIFT 0 /* DSP1_DIV - [1:0] */
  1578. #define WM8996_DSP1_DIV_WIDTH 2 /* DSP1_DIV - [1:0] */
  1579. /*
  1580. * R520 (0x208) - Clocking (1)
  1581. */
  1582. #define WM8996_LFCLK_ENA 0x0020 /* LFCLK_ENA */
  1583. #define WM8996_LFCLK_ENA_MASK 0x0020 /* LFCLK_ENA */
  1584. #define WM8996_LFCLK_ENA_SHIFT 5 /* LFCLK_ENA */
  1585. #define WM8996_LFCLK_ENA_WIDTH 1 /* LFCLK_ENA */
  1586. #define WM8996_TOCLK_ENA 0x0010 /* TOCLK_ENA */
  1587. #define WM8996_TOCLK_ENA_MASK 0x0010 /* TOCLK_ENA */
  1588. #define WM8996_TOCLK_ENA_SHIFT 4 /* TOCLK_ENA */
  1589. #define WM8996_TOCLK_ENA_WIDTH 1 /* TOCLK_ENA */
  1590. #define WM8996_AIFCLK_ENA 0x0004 /* AIFCLK_ENA */
  1591. #define WM8996_AIFCLK_ENA_MASK 0x0004 /* AIFCLK_ENA */
  1592. #define WM8996_AIFCLK_ENA_SHIFT 2 /* AIFCLK_ENA */
  1593. #define WM8996_AIFCLK_ENA_WIDTH 1 /* AIFCLK_ENA */
  1594. #define WM8996_SYSDSPCLK_ENA 0x0002 /* SYSDSPCLK_ENA */
  1595. #define WM8996_SYSDSPCLK_ENA_MASK 0x0002 /* SYSDSPCLK_ENA */
  1596. #define WM8996_SYSDSPCLK_ENA_SHIFT 1 /* SYSDSPCLK_ENA */
  1597. #define WM8996_SYSDSPCLK_ENA_WIDTH 1 /* SYSDSPCLK_ENA */
  1598. /*
  1599. * R521 (0x209) - Clocking (2)
  1600. */
  1601. #define WM8996_TOCLK_DIV_MASK 0x0700 /* TOCLK_DIV - [10:8] */
  1602. #define WM8996_TOCLK_DIV_SHIFT 8 /* TOCLK_DIV - [10:8] */
  1603. #define WM8996_TOCLK_DIV_WIDTH 3 /* TOCLK_DIV - [10:8] */
  1604. #define WM8996_DBCLK_DIV_MASK 0x00F0 /* DBCLK_DIV - [7:4] */
  1605. #define WM8996_DBCLK_DIV_SHIFT 4 /* DBCLK_DIV - [7:4] */
  1606. #define WM8996_DBCLK_DIV_WIDTH 4 /* DBCLK_DIV - [7:4] */
  1607. #define WM8996_OPCLK_DIV_MASK 0x0007 /* OPCLK_DIV - [2:0] */
  1608. #define WM8996_OPCLK_DIV_SHIFT 0 /* OPCLK_DIV - [2:0] */
  1609. #define WM8996_OPCLK_DIV_WIDTH 3 /* OPCLK_DIV - [2:0] */
  1610. /*
  1611. * R528 (0x210) - AIF Rate
  1612. */
  1613. #define WM8996_SYSCLK_RATE 0x0001 /* SYSCLK_RATE */
  1614. #define WM8996_SYSCLK_RATE_MASK 0x0001 /* SYSCLK_RATE */
  1615. #define WM8996_SYSCLK_RATE_SHIFT 0 /* SYSCLK_RATE */
  1616. #define WM8996_SYSCLK_RATE_WIDTH 1 /* SYSCLK_RATE */
  1617. /*
  1618. * R544 (0x220) - FLL Control (1)
  1619. */
  1620. #define WM8996_FLL_OSC_ENA 0x0002 /* FLL_OSC_ENA */
  1621. #define WM8996_FLL_OSC_ENA_MASK 0x0002 /* FLL_OSC_ENA */
  1622. #define WM8996_FLL_OSC_ENA_SHIFT 1 /* FLL_OSC_ENA */
  1623. #define WM8996_FLL_OSC_ENA_WIDTH 1 /* FLL_OSC_ENA */
  1624. #define WM8996_FLL_ENA 0x0001 /* FLL_ENA */
  1625. #define WM8996_FLL_ENA_MASK 0x0001 /* FLL_ENA */
  1626. #define WM8996_FLL_ENA_SHIFT 0 /* FLL_ENA */
  1627. #define WM8996_FLL_ENA_WIDTH 1 /* FLL_ENA */
  1628. /*
  1629. * R545 (0x221) - FLL Control (2)
  1630. */
  1631. #define WM8996_FLL_OUTDIV_MASK 0x3F00 /* FLL_OUTDIV - [13:8] */
  1632. #define WM8996_FLL_OUTDIV_SHIFT 8 /* FLL_OUTDIV - [13:8] */
  1633. #define WM8996_FLL_OUTDIV_WIDTH 6 /* FLL_OUTDIV - [13:8] */
  1634. #define WM8996_FLL_FRATIO_MASK 0x0007 /* FLL_FRATIO - [2:0] */
  1635. #define WM8996_FLL_FRATIO_SHIFT 0 /* FLL_FRATIO - [2:0] */
  1636. #define WM8996_FLL_FRATIO_WIDTH 3 /* FLL_FRATIO - [2:0] */
  1637. /*
  1638. * R546 (0x222) - FLL Control (3)
  1639. */
  1640. #define WM8996_FLL_THETA_MASK 0xFFFF /* FLL_THETA - [15:0] */
  1641. #define WM8996_FLL_THETA_SHIFT 0 /* FLL_THETA - [15:0] */
  1642. #define WM8996_FLL_THETA_WIDTH 16 /* FLL_THETA - [15:0] */
  1643. /*
  1644. * R547 (0x223) - FLL Control (4)
  1645. */
  1646. #define WM8996_FLL_N_MASK 0x7FE0 /* FLL_N - [14:5] */
  1647. #define WM8996_FLL_N_SHIFT 5 /* FLL_N - [14:5] */
  1648. #define WM8996_FLL_N_WIDTH 10 /* FLL_N - [14:5] */
  1649. #define WM8996_FLL_LOOP_GAIN_MASK 0x000F /* FLL_LOOP_GAIN - [3:0] */
  1650. #define WM8996_FLL_LOOP_GAIN_SHIFT 0 /* FLL_LOOP_GAIN - [3:0] */
  1651. #define WM8996_FLL_LOOP_GAIN_WIDTH 4 /* FLL_LOOP_GAIN - [3:0] */
  1652. /*
  1653. * R548 (0x224) - FLL Control (5)
  1654. */
  1655. #define WM8996_FLL_FRC_NCO_VAL_MASK 0x1F80 /* FLL_FRC_NCO_VAL - [12:7] */
  1656. #define WM8996_FLL_FRC_NCO_VAL_SHIFT 7 /* FLL_FRC_NCO_VAL - [12:7] */
  1657. #define WM8996_FLL_FRC_NCO_VAL_WIDTH 6 /* FLL_FRC_NCO_VAL - [12:7] */
  1658. #define WM8996_FLL_FRC_NCO 0x0040 /* FLL_FRC_NCO */
  1659. #define WM8996_FLL_FRC_NCO_MASK 0x0040 /* FLL_FRC_NCO */
  1660. #define WM8996_FLL_FRC_NCO_SHIFT 6 /* FLL_FRC_NCO */
  1661. #define WM8996_FLL_FRC_NCO_WIDTH 1 /* FLL_FRC_NCO */
  1662. #define WM8996_FLL_REFCLK_DIV_MASK 0x0018 /* FLL_REFCLK_DIV - [4:3] */
  1663. #define WM8996_FLL_REFCLK_DIV_SHIFT 3 /* FLL_REFCLK_DIV - [4:3] */
  1664. #define WM8996_FLL_REFCLK_DIV_WIDTH 2 /* FLL_REFCLK_DIV - [4:3] */
  1665. #define WM8996_FLL_REF_FREQ 0x0004 /* FLL_REF_FREQ */
  1666. #define WM8996_FLL_REF_FREQ_MASK 0x0004 /* FLL_REF_FREQ */
  1667. #define WM8996_FLL_REF_FREQ_SHIFT 2 /* FLL_REF_FREQ */
  1668. #define WM8996_FLL_REF_FREQ_WIDTH 1 /* FLL_REF_FREQ */
  1669. #define WM8996_FLL_REFCLK_SRC_MASK 0x0003 /* FLL_REFCLK_SRC - [1:0] */
  1670. #define WM8996_FLL_REFCLK_SRC_SHIFT 0 /* FLL_REFCLK_SRC - [1:0] */
  1671. #define WM8996_FLL_REFCLK_SRC_WIDTH 2 /* FLL_REFCLK_SRC - [1:0] */
  1672. /*
  1673. * R549 (0x225) - FLL Control (6)
  1674. */
  1675. #define WM8996_FLL_REFCLK_SRC_STS_MASK 0x000C /* FLL_REFCLK_SRC_STS - [3:2] */
  1676. #define WM8996_FLL_REFCLK_SRC_STS_SHIFT 2 /* FLL_REFCLK_SRC_STS - [3:2] */
  1677. #define WM8996_FLL_REFCLK_SRC_STS_WIDTH 2 /* FLL_REFCLK_SRC_STS - [3:2] */
  1678. #define WM8996_FLL_SWITCH_CLK 0x0001 /* FLL_SWITCH_CLK */
  1679. #define WM8996_FLL_SWITCH_CLK_MASK 0x0001 /* FLL_SWITCH_CLK */
  1680. #define WM8996_FLL_SWITCH_CLK_SHIFT 0 /* FLL_SWITCH_CLK */
  1681. #define WM8996_FLL_SWITCH_CLK_WIDTH 1 /* FLL_SWITCH_CLK */
  1682. /*
  1683. * R550 (0x226) - FLL EFS 1
  1684. */
  1685. #define WM8996_FLL_LAMBDA_MASK 0xFFFF /* FLL_LAMBDA - [15:0] */
  1686. #define WM8996_FLL_LAMBDA_SHIFT 0 /* FLL_LAMBDA - [15:0] */
  1687. #define WM8996_FLL_LAMBDA_WIDTH 16 /* FLL_LAMBDA - [15:0] */
  1688. /*
  1689. * R551 (0x227) - FLL EFS 2
  1690. */
  1691. #define WM8996_FLL_LFSR_SEL_MASK 0x0006 /* FLL_LFSR_SEL - [2:1] */
  1692. #define WM8996_FLL_LFSR_SEL_SHIFT 1 /* FLL_LFSR_SEL - [2:1] */
  1693. #define WM8996_FLL_LFSR_SEL_WIDTH 2 /* FLL_LFSR_SEL - [2:1] */
  1694. #define WM8996_FLL_EFS_ENA 0x0001 /* FLL_EFS_ENA */
  1695. #define WM8996_FLL_EFS_ENA_MASK 0x0001 /* FLL_EFS_ENA */
  1696. #define WM8996_FLL_EFS_ENA_SHIFT 0 /* FLL_EFS_ENA */
  1697. #define WM8996_FLL_EFS_ENA_WIDTH 1 /* FLL_EFS_ENA */
  1698. /*
  1699. * R768 (0x300) - AIF1 Control
  1700. */
  1701. #define WM8996_AIF1_TRI 0x0004 /* AIF1_TRI */
  1702. #define WM8996_AIF1_TRI_MASK 0x0004 /* AIF1_TRI */
  1703. #define WM8996_AIF1_TRI_SHIFT 2 /* AIF1_TRI */
  1704. #define WM8996_AIF1_TRI_WIDTH 1 /* AIF1_TRI */
  1705. #define WM8996_AIF1_FMT_MASK 0x0003 /* AIF1_FMT - [1:0] */
  1706. #define WM8996_AIF1_FMT_SHIFT 0 /* AIF1_FMT - [1:0] */
  1707. #define WM8996_AIF1_FMT_WIDTH 2 /* AIF1_FMT - [1:0] */
  1708. /*
  1709. * R769 (0x301) - AIF1 BCLK
  1710. */
  1711. #define WM8996_AIF1_BCLK_INV 0x0400 /* AIF1_BCLK_INV */
  1712. #define WM8996_AIF1_BCLK_INV_MASK 0x0400 /* AIF1_BCLK_INV */
  1713. #define WM8996_AIF1_BCLK_INV_SHIFT 10 /* AIF1_BCLK_INV */
  1714. #define WM8996_AIF1_BCLK_INV_WIDTH 1 /* AIF1_BCLK_INV */
  1715. #define WM8996_AIF1_BCLK_FRC 0x0200 /* AIF1_BCLK_FRC */
  1716. #define WM8996_AIF1_BCLK_FRC_MASK 0x0200 /* AIF1_BCLK_FRC */
  1717. #define WM8996_AIF1_BCLK_FRC_SHIFT 9 /* AIF1_BCLK_FRC */
  1718. #define WM8996_AIF1_BCLK_FRC_WIDTH 1 /* AIF1_BCLK_FRC */
  1719. #define WM8996_AIF1_BCLK_MSTR 0x0100 /* AIF1_BCLK_MSTR */
  1720. #define WM8996_AIF1_BCLK_MSTR_MASK 0x0100 /* AIF1_BCLK_MSTR */
  1721. #define WM8996_AIF1_BCLK_MSTR_SHIFT 8 /* AIF1_BCLK_MSTR */
  1722. #define WM8996_AIF1_BCLK_MSTR_WIDTH 1 /* AIF1_BCLK_MSTR */
  1723. #define WM8996_AIF1_BCLK_DIV_MASK 0x000F /* AIF1_BCLK_DIV - [3:0] */
  1724. #define WM8996_AIF1_BCLK_DIV_SHIFT 0 /* AIF1_BCLK_DIV - [3:0] */
  1725. #define WM8996_AIF1_BCLK_DIV_WIDTH 4 /* AIF1_BCLK_DIV - [3:0] */
  1726. /*
  1727. * R770 (0x302) - AIF1 TX LRCLK(1)
  1728. */
  1729. #define WM8996_AIF1TX_RATE_MASK 0x07FF /* AIF1TX_RATE - [10:0] */
  1730. #define WM8996_AIF1TX_RATE_SHIFT 0 /* AIF1TX_RATE - [10:0] */
  1731. #define WM8996_AIF1TX_RATE_WIDTH 11 /* AIF1TX_RATE - [10:0] */
  1732. /*
  1733. * R771 (0x303) - AIF1 TX LRCLK(2)
  1734. */
  1735. #define WM8996_AIF1TX_LRCLK_MODE 0x0008 /* AIF1TX_LRCLK_MODE */
  1736. #define WM8996_AIF1TX_LRCLK_MODE_MASK 0x0008 /* AIF1TX_LRCLK_MODE */
  1737. #define WM8996_AIF1TX_LRCLK_MODE_SHIFT 3 /* AIF1TX_LRCLK_MODE */
  1738. #define WM8996_AIF1TX_LRCLK_MODE_WIDTH 1 /* AIF1TX_LRCLK_MODE */
  1739. #define WM8996_AIF1TX_LRCLK_INV 0x0004 /* AIF1TX_LRCLK_INV */
  1740. #define WM8996_AIF1TX_LRCLK_INV_MASK 0x0004 /* AIF1TX_LRCLK_INV */
  1741. #define WM8996_AIF1TX_LRCLK_INV_SHIFT 2 /* AIF1TX_LRCLK_INV */
  1742. #define WM8996_AIF1TX_LRCLK_INV_WIDTH 1 /* AIF1TX_LRCLK_INV */
  1743. #define WM8996_AIF1TX_LRCLK_FRC 0x0002 /* AIF1TX_LRCLK_FRC */
  1744. #define WM8996_AIF1TX_LRCLK_FRC_MASK 0x0002 /* AIF1TX_LRCLK_FRC */
  1745. #define WM8996_AIF1TX_LRCLK_FRC_SHIFT 1 /* AIF1TX_LRCLK_FRC */
  1746. #define WM8996_AIF1TX_LRCLK_FRC_WIDTH 1 /* AIF1TX_LRCLK_FRC */
  1747. #define WM8996_AIF1TX_LRCLK_MSTR 0x0001 /* AIF1TX_LRCLK_MSTR */
  1748. #define WM8996_AIF1TX_LRCLK_MSTR_MASK 0x0001 /* AIF1TX_LRCLK_MSTR */
  1749. #define WM8996_AIF1TX_LRCLK_MSTR_SHIFT 0 /* AIF1TX_LRCLK_MSTR */
  1750. #define WM8996_AIF1TX_LRCLK_MSTR_WIDTH 1 /* AIF1TX_LRCLK_MSTR */
  1751. /*
  1752. * R772 (0x304) - AIF1 RX LRCLK(1)
  1753. */
  1754. #define WM8996_AIF1RX_RATE_MASK 0x07FF /* AIF1RX_RATE - [10:0] */
  1755. #define WM8996_AIF1RX_RATE_SHIFT 0 /* AIF1RX_RATE - [10:0] */
  1756. #define WM8996_AIF1RX_RATE_WIDTH 11 /* AIF1RX_RATE - [10:0] */
  1757. /*
  1758. * R773 (0x305) - AIF1 RX LRCLK(2)
  1759. */
  1760. #define WM8996_AIF1RX_LRCLK_INV 0x0004 /* AIF1RX_LRCLK_INV */
  1761. #define WM8996_AIF1RX_LRCLK_INV_MASK 0x0004 /* AIF1RX_LRCLK_INV */
  1762. #define WM8996_AIF1RX_LRCLK_INV_SHIFT 2 /* AIF1RX_LRCLK_INV */
  1763. #define WM8996_AIF1RX_LRCLK_INV_WIDTH 1 /* AIF1RX_LRCLK_INV */
  1764. #define WM8996_AIF1RX_LRCLK_FRC 0x0002 /* AIF1RX_LRCLK_FRC */
  1765. #define WM8996_AIF1RX_LRCLK_FRC_MASK 0x0002 /* AIF1RX_LRCLK_FRC */
  1766. #define WM8996_AIF1RX_LRCLK_FRC_SHIFT 1 /* AIF1RX_LRCLK_FRC */
  1767. #define WM8996_AIF1RX_LRCLK_FRC_WIDTH 1 /* AIF1RX_LRCLK_FRC */
  1768. #define WM8996_AIF1RX_LRCLK_MSTR 0x0001 /* AIF1RX_LRCLK_MSTR */
  1769. #define WM8996_AIF1RX_LRCLK_MSTR_MASK 0x0001 /* AIF1RX_LRCLK_MSTR */
  1770. #define WM8996_AIF1RX_LRCLK_MSTR_SHIFT 0 /* AIF1RX_LRCLK_MSTR */
  1771. #define WM8996_AIF1RX_LRCLK_MSTR_WIDTH 1 /* AIF1RX_LRCLK_MSTR */
  1772. /*
  1773. * R774 (0x306) - AIF1TX Data Configuration (1)
  1774. */
  1775. #define WM8996_AIF1TX_WL_MASK 0xFF00 /* AIF1TX_WL - [15:8] */
  1776. #define WM8996_AIF1TX_WL_SHIFT 8 /* AIF1TX_WL - [15:8] */
  1777. #define WM8996_AIF1TX_WL_WIDTH 8 /* AIF1TX_WL - [15:8] */
  1778. #define WM8996_AIF1TX_SLOT_LEN_MASK 0x00FF /* AIF1TX_SLOT_LEN - [7:0] */
  1779. #define WM8996_AIF1TX_SLOT_LEN_SHIFT 0 /* AIF1TX_SLOT_LEN - [7:0] */
  1780. #define WM8996_AIF1TX_SLOT_LEN_WIDTH 8 /* AIF1TX_SLOT_LEN - [7:0] */
  1781. /*
  1782. * R775 (0x307) - AIF1TX Data Configuration (2)
  1783. */
  1784. #define WM8996_AIF1TX_DAT_TRI 0x0001 /* AIF1TX_DAT_TRI */
  1785. #define WM8996_AIF1TX_DAT_TRI_MASK 0x0001 /* AIF1TX_DAT_TRI */
  1786. #define WM8996_AIF1TX_DAT_TRI_SHIFT 0 /* AIF1TX_DAT_TRI */
  1787. #define WM8996_AIF1TX_DAT_TRI_WIDTH 1 /* AIF1TX_DAT_TRI */
  1788. /*
  1789. * R776 (0x308) - AIF1RX Data Configuration
  1790. */
  1791. #define WM8996_AIF1RX_WL_MASK 0xFF00 /* AIF1RX_WL - [15:8] */
  1792. #define WM8996_AIF1RX_WL_SHIFT 8 /* AIF1RX_WL - [15:8] */
  1793. #define WM8996_AIF1RX_WL_WIDTH 8 /* AIF1RX_WL - [15:8] */
  1794. #define WM8996_AIF1RX_SLOT_LEN_MASK 0x00FF /* AIF1RX_SLOT_LEN - [7:0] */
  1795. #define WM8996_AIF1RX_SLOT_LEN_SHIFT 0 /* AIF1RX_SLOT_LEN - [7:0] */
  1796. #define WM8996_AIF1RX_SLOT_LEN_WIDTH 8 /* AIF1RX_SLOT_LEN - [7:0] */
  1797. /*
  1798. * R777 (0x309) - AIF1TX Channel 0 Configuration
  1799. */
  1800. #define WM8996_AIF1TX_CHAN0_DAT_INV 0x8000 /* AIF1TX_CHAN0_DAT_INV */
  1801. #define WM8996_AIF1TX_CHAN0_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN0_DAT_INV */
  1802. #define WM8996_AIF1TX_CHAN0_DAT_INV_SHIFT 15 /* AIF1TX_CHAN0_DAT_INV */
  1803. #define WM8996_AIF1TX_CHAN0_DAT_INV_WIDTH 1 /* AIF1TX_CHAN0_DAT_INV */
  1804. #define WM8996_AIF1TX_CHAN0_SPACING_MASK 0x7E00 /* AIF1TX_CHAN0_SPACING - [14:9] */
  1805. #define WM8996_AIF1TX_CHAN0_SPACING_SHIFT 9 /* AIF1TX_CHAN0_SPACING - [14:9] */
  1806. #define WM8996_AIF1TX_CHAN0_SPACING_WIDTH 6 /* AIF1TX_CHAN0_SPACING - [14:9] */
  1807. #define WM8996_AIF1TX_CHAN0_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN0_SLOTS - [8:6] */
  1808. #define WM8996_AIF1TX_CHAN0_SLOTS_SHIFT 6 /* AIF1TX_CHAN0_SLOTS - [8:6] */
  1809. #define WM8996_AIF1TX_CHAN0_SLOTS_WIDTH 3 /* AIF1TX_CHAN0_SLOTS - [8:6] */
  1810. #define WM8996_AIF1TX_CHAN0_START_SLOT_MASK 0x003F /* AIF1TX_CHAN0_START_SLOT - [5:0] */
  1811. #define WM8996_AIF1TX_CHAN0_START_SLOT_SHIFT 0 /* AIF1TX_CHAN0_START_SLOT - [5:0] */
  1812. #define WM8996_AIF1TX_CHAN0_START_SLOT_WIDTH 6 /* AIF1TX_CHAN0_START_SLOT - [5:0] */
  1813. /*
  1814. * R778 (0x30A) - AIF1TX Channel 1 Configuration
  1815. */
  1816. #define WM8996_AIF1TX_CHAN1_DAT_INV 0x8000 /* AIF1TX_CHAN1_DAT_INV */
  1817. #define WM8996_AIF1TX_CHAN1_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN1_DAT_INV */
  1818. #define WM8996_AIF1TX_CHAN1_DAT_INV_SHIFT 15 /* AIF1TX_CHAN1_DAT_INV */
  1819. #define WM8996_AIF1TX_CHAN1_DAT_INV_WIDTH 1 /* AIF1TX_CHAN1_DAT_INV */
  1820. #define WM8996_AIF1TX_CHAN1_SPACING_MASK 0x7E00 /* AIF1TX_CHAN1_SPACING - [14:9] */
  1821. #define WM8996_AIF1TX_CHAN1_SPACING_SHIFT 9 /* AIF1TX_CHAN1_SPACING - [14:9] */
  1822. #define WM8996_AIF1TX_CHAN1_SPACING_WIDTH 6 /* AIF1TX_CHAN1_SPACING - [14:9] */
  1823. #define WM8996_AIF1TX_CHAN1_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN1_SLOTS - [8:6] */
  1824. #define WM8996_AIF1TX_CHAN1_SLOTS_SHIFT 6 /* AIF1TX_CHAN1_SLOTS - [8:6] */
  1825. #define WM8996_AIF1TX_CHAN1_SLOTS_WIDTH 3 /* AIF1TX_CHAN1_SLOTS - [8:6] */
  1826. #define WM8996_AIF1TX_CHAN1_START_SLOT_MASK 0x003F /* AIF1TX_CHAN1_START_SLOT - [5:0] */
  1827. #define WM8996_AIF1TX_CHAN1_START_SLOT_SHIFT 0 /* AIF1TX_CHAN1_START_SLOT - [5:0] */
  1828. #define WM8996_AIF1TX_CHAN1_START_SLOT_WIDTH 6 /* AIF1TX_CHAN1_START_SLOT - [5:0] */
  1829. /*
  1830. * R779 (0x30B) - AIF1TX Channel 2 Configuration
  1831. */
  1832. #define WM8996_AIF1TX_CHAN2_DAT_INV 0x8000 /* AIF1TX_CHAN2_DAT_INV */
  1833. #define WM8996_AIF1TX_CHAN2_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN2_DAT_INV */
  1834. #define WM8996_AIF1TX_CHAN2_DAT_INV_SHIFT 15 /* AIF1TX_CHAN2_DAT_INV */
  1835. #define WM8996_AIF1TX_CHAN2_DAT_INV_WIDTH 1 /* AIF1TX_CHAN2_DAT_INV */
  1836. #define WM8996_AIF1TX_CHAN2_SPACING_MASK 0x7E00 /* AIF1TX_CHAN2_SPACING - [14:9] */
  1837. #define WM8996_AIF1TX_CHAN2_SPACING_SHIFT 9 /* AIF1TX_CHAN2_SPACING - [14:9] */
  1838. #define WM8996_AIF1TX_CHAN2_SPACING_WIDTH 6 /* AIF1TX_CHAN2_SPACING - [14:9] */
  1839. #define WM8996_AIF1TX_CHAN2_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN2_SLOTS - [8:6] */
  1840. #define WM8996_AIF1TX_CHAN2_SLOTS_SHIFT 6 /* AIF1TX_CHAN2_SLOTS - [8:6] */
  1841. #define WM8996_AIF1TX_CHAN2_SLOTS_WIDTH 3 /* AIF1TX_CHAN2_SLOTS - [8:6] */
  1842. #define WM8996_AIF1TX_CHAN2_START_SLOT_MASK 0x003F /* AIF1TX_CHAN2_START_SLOT - [5:0] */
  1843. #define WM8996_AIF1TX_CHAN2_START_SLOT_SHIFT 0 /* AIF1TX_CHAN2_START_SLOT - [5:0] */
  1844. #define WM8996_AIF1TX_CHAN2_START_SLOT_WIDTH 6 /* AIF1TX_CHAN2_START_SLOT - [5:0] */
  1845. /*
  1846. * R780 (0x30C) - AIF1TX Channel 3 Configuration
  1847. */
  1848. #define WM8996_AIF1TX_CHAN3_DAT_INV 0x8000 /* AIF1TX_CHAN3_DAT_INV */
  1849. #define WM8996_AIF1TX_CHAN3_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN3_DAT_INV */
  1850. #define WM8996_AIF1TX_CHAN3_DAT_INV_SHIFT 15 /* AIF1TX_CHAN3_DAT_INV */
  1851. #define WM8996_AIF1TX_CHAN3_DAT_INV_WIDTH 1 /* AIF1TX_CHAN3_DAT_INV */
  1852. #define WM8996_AIF1TX_CHAN3_SPACING_MASK 0x7E00 /* AIF1TX_CHAN3_SPACING - [14:9] */
  1853. #define WM8996_AIF1TX_CHAN3_SPACING_SHIFT 9 /* AIF1TX_CHAN3_SPACING - [14:9] */
  1854. #define WM8996_AIF1TX_CHAN3_SPACING_WIDTH 6 /* AIF1TX_CHAN3_SPACING - [14:9] */
  1855. #define WM8996_AIF1TX_CHAN3_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN3_SLOTS - [8:6] */
  1856. #define WM8996_AIF1TX_CHAN3_SLOTS_SHIFT 6 /* AIF1TX_CHAN3_SLOTS - [8:6] */
  1857. #define WM8996_AIF1TX_CHAN3_SLOTS_WIDTH 3 /* AIF1TX_CHAN3_SLOTS - [8:6] */
  1858. #define WM8996_AIF1TX_CHAN3_START_SLOT_MASK 0x003F /* AIF1TX_CHAN3_START_SLOT - [5:0] */
  1859. #define WM8996_AIF1TX_CHAN3_START_SLOT_SHIFT 0 /* AIF1TX_CHAN3_START_SLOT - [5:0] */
  1860. #define WM8996_AIF1TX_CHAN3_START_SLOT_WIDTH 6 /* AIF1TX_CHAN3_START_SLOT - [5:0] */
  1861. /*
  1862. * R781 (0x30D) - AIF1TX Channel 4 Configuration
  1863. */
  1864. #define WM8996_AIF1TX_CHAN4_DAT_INV 0x8000 /* AIF1TX_CHAN4_DAT_INV */
  1865. #define WM8996_AIF1TX_CHAN4_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN4_DAT_INV */
  1866. #define WM8996_AIF1TX_CHAN4_DAT_INV_SHIFT 15 /* AIF1TX_CHAN4_DAT_INV */
  1867. #define WM8996_AIF1TX_CHAN4_DAT_INV_WIDTH 1 /* AIF1TX_CHAN4_DAT_INV */
  1868. #define WM8996_AIF1TX_CHAN4_SPACING_MASK 0x7E00 /* AIF1TX_CHAN4_SPACING - [14:9] */
  1869. #define WM8996_AIF1TX_CHAN4_SPACING_SHIFT 9 /* AIF1TX_CHAN4_SPACING - [14:9] */
  1870. #define WM8996_AIF1TX_CHAN4_SPACING_WIDTH 6 /* AIF1TX_CHAN4_SPACING - [14:9] */
  1871. #define WM8996_AIF1TX_CHAN4_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN4_SLOTS - [8:6] */
  1872. #define WM8996_AIF1TX_CHAN4_SLOTS_SHIFT 6 /* AIF1TX_CHAN4_SLOTS - [8:6] */
  1873. #define WM8996_AIF1TX_CHAN4_SLOTS_WIDTH 3 /* AIF1TX_CHAN4_SLOTS - [8:6] */
  1874. #define WM8996_AIF1TX_CHAN4_START_SLOT_MASK 0x003F /* AIF1TX_CHAN4_START_SLOT - [5:0] */
  1875. #define WM8996_AIF1TX_CHAN4_START_SLOT_SHIFT 0 /* AIF1TX_CHAN4_START_SLOT - [5:0] */
  1876. #define WM8996_AIF1TX_CHAN4_START_SLOT_WIDTH 6 /* AIF1TX_CHAN4_START_SLOT - [5:0] */
  1877. /*
  1878. * R782 (0x30E) - AIF1TX Channel 5 Configuration
  1879. */
  1880. #define WM8996_AIF1TX_CHAN5_DAT_INV 0x8000 /* AIF1TX_CHAN5_DAT_INV */
  1881. #define WM8996_AIF1TX_CHAN5_DAT_INV_MASK 0x8000 /* AIF1TX_CHAN5_DAT_INV */
  1882. #define WM8996_AIF1TX_CHAN5_DAT_INV_SHIFT 15 /* AIF1TX_CHAN5_DAT_INV */
  1883. #define WM8996_AIF1TX_CHAN5_DAT_INV_WIDTH 1 /* AIF1TX_CHAN5_DAT_INV */
  1884. #define WM8996_AIF1TX_CHAN5_SPACING_MASK 0x7E00 /* AIF1TX_CHAN5_SPACING - [14:9] */
  1885. #define WM8996_AIF1TX_CHAN5_SPACING_SHIFT 9 /* AIF1TX_CHAN5_SPACING - [14:9] */
  1886. #define WM8996_AIF1TX_CHAN5_SPACING_WIDTH 6 /* AIF1TX_CHAN5_SPACING - [14:9] */
  1887. #define WM8996_AIF1TX_CHAN5_SLOTS_MASK 0x01C0 /* AIF1TX_CHAN5_SLOTS - [8:6] */
  1888. #define WM8996_AIF1TX_CHAN5_SLOTS_SHIFT 6 /* AIF1TX_CHAN5_SLOTS - [8:6] */
  1889. #define WM8996_AIF1TX_CHAN5_SLOTS_WIDTH 3 /* AIF1TX_CHAN5_SLOTS - [8:6] */
  1890. #define WM8996_AIF1TX_CHAN5_START_SLOT_MASK 0x003F /* AIF1TX_CHAN5_START_SLOT - [5:0] */
  1891. #define WM8996_AIF1TX_CHAN5_START_SLOT_SHIFT 0 /* AIF1TX_CHAN5_START_SLOT - [5:0] */
  1892. #define WM8996_AIF1TX_CHAN5_START_SLOT_WIDTH 6 /* AIF1TX_CHAN5_START_SLOT - [5:0] */
  1893. /*
  1894. * R783 (0x30F) - AIF1RX Channel 0 Configuration
  1895. */
  1896. #define WM8996_AIF1RX_CHAN0_DAT_INV 0x8000 /* AIF1RX_CHAN0_DAT_INV */
  1897. #define WM8996_AIF1RX_CHAN0_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN0_DAT_INV */
  1898. #define WM8996_AIF1RX_CHAN0_DAT_INV_SHIFT 15 /* AIF1RX_CHAN0_DAT_INV */
  1899. #define WM8996_AIF1RX_CHAN0_DAT_INV_WIDTH 1 /* AIF1RX_CHAN0_DAT_INV */
  1900. #define WM8996_AIF1RX_CHAN0_SPACING_MASK 0x7E00 /* AIF1RX_CHAN0_SPACING - [14:9] */
  1901. #define WM8996_AIF1RX_CHAN0_SPACING_SHIFT 9 /* AIF1RX_CHAN0_SPACING - [14:9] */
  1902. #define WM8996_AIF1RX_CHAN0_SPACING_WIDTH 6 /* AIF1RX_CHAN0_SPACING - [14:9] */
  1903. #define WM8996_AIF1RX_CHAN0_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN0_SLOTS - [8:6] */
  1904. #define WM8996_AIF1RX_CHAN0_SLOTS_SHIFT 6 /* AIF1RX_CHAN0_SLOTS - [8:6] */
  1905. #define WM8996_AIF1RX_CHAN0_SLOTS_WIDTH 3 /* AIF1RX_CHAN0_SLOTS - [8:6] */
  1906. #define WM8996_AIF1RX_CHAN0_START_SLOT_MASK 0x003F /* AIF1RX_CHAN0_START_SLOT - [5:0] */
  1907. #define WM8996_AIF1RX_CHAN0_START_SLOT_SHIFT 0 /* AIF1RX_CHAN0_START_SLOT - [5:0] */
  1908. #define WM8996_AIF1RX_CHAN0_START_SLOT_WIDTH 6 /* AIF1RX_CHAN0_START_SLOT - [5:0] */
  1909. /*
  1910. * R784 (0x310) - AIF1RX Channel 1 Configuration
  1911. */
  1912. #define WM8996_AIF1RX_CHAN1_DAT_INV 0x8000 /* AIF1RX_CHAN1_DAT_INV */
  1913. #define WM8996_AIF1RX_CHAN1_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN1_DAT_INV */
  1914. #define WM8996_AIF1RX_CHAN1_DAT_INV_SHIFT 15 /* AIF1RX_CHAN1_DAT_INV */
  1915. #define WM8996_AIF1RX_CHAN1_DAT_INV_WIDTH 1 /* AIF1RX_CHAN1_DAT_INV */
  1916. #define WM8996_AIF1RX_CHAN1_SPACING_MASK 0x7E00 /* AIF1RX_CHAN1_SPACING - [14:9] */
  1917. #define WM8996_AIF1RX_CHAN1_SPACING_SHIFT 9 /* AIF1RX_CHAN1_SPACING - [14:9] */
  1918. #define WM8996_AIF1RX_CHAN1_SPACING_WIDTH 6 /* AIF1RX_CHAN1_SPACING - [14:9] */
  1919. #define WM8996_AIF1RX_CHAN1_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN1_SLOTS - [8:6] */
  1920. #define WM8996_AIF1RX_CHAN1_SLOTS_SHIFT 6 /* AIF1RX_CHAN1_SLOTS - [8:6] */
  1921. #define WM8996_AIF1RX_CHAN1_SLOTS_WIDTH 3 /* AIF1RX_CHAN1_SLOTS - [8:6] */
  1922. #define WM8996_AIF1RX_CHAN1_START_SLOT_MASK 0x003F /* AIF1RX_CHAN1_START_SLOT - [5:0] */
  1923. #define WM8996_AIF1RX_CHAN1_START_SLOT_SHIFT 0 /* AIF1RX_CHAN1_START_SLOT - [5:0] */
  1924. #define WM8996_AIF1RX_CHAN1_START_SLOT_WIDTH 6 /* AIF1RX_CHAN1_START_SLOT - [5:0] */
  1925. /*
  1926. * R785 (0x311) - AIF1RX Channel 2 Configuration
  1927. */
  1928. #define WM8996_AIF1RX_CHAN2_DAT_INV 0x8000 /* AIF1RX_CHAN2_DAT_INV */
  1929. #define WM8996_AIF1RX_CHAN2_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN2_DAT_INV */
  1930. #define WM8996_AIF1RX_CHAN2_DAT_INV_SHIFT 15 /* AIF1RX_CHAN2_DAT_INV */
  1931. #define WM8996_AIF1RX_CHAN2_DAT_INV_WIDTH 1 /* AIF1RX_CHAN2_DAT_INV */
  1932. #define WM8996_AIF1RX_CHAN2_SPACING_MASK 0x7E00 /* AIF1RX_CHAN2_SPACING - [14:9] */
  1933. #define WM8996_AIF1RX_CHAN2_SPACING_SHIFT 9 /* AIF1RX_CHAN2_SPACING - [14:9] */
  1934. #define WM8996_AIF1RX_CHAN2_SPACING_WIDTH 6 /* AIF1RX_CHAN2_SPACING - [14:9] */
  1935. #define WM8996_AIF1RX_CHAN2_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN2_SLOTS - [8:6] */
  1936. #define WM8996_AIF1RX_CHAN2_SLOTS_SHIFT 6 /* AIF1RX_CHAN2_SLOTS - [8:6] */
  1937. #define WM8996_AIF1RX_CHAN2_SLOTS_WIDTH 3 /* AIF1RX_CHAN2_SLOTS - [8:6] */
  1938. #define WM8996_AIF1RX_CHAN2_START_SLOT_MASK 0x003F /* AIF1RX_CHAN2_START_SLOT - [5:0] */
  1939. #define WM8996_AIF1RX_CHAN2_START_SLOT_SHIFT 0 /* AIF1RX_CHAN2_START_SLOT - [5:0] */
  1940. #define WM8996_AIF1RX_CHAN2_START_SLOT_WIDTH 6 /* AIF1RX_CHAN2_START_SLOT - [5:0] */
  1941. /*
  1942. * R786 (0x312) - AIF1RX Channel 3 Configuration
  1943. */
  1944. #define WM8996_AIF1RX_CHAN3_DAT_INV 0x8000 /* AIF1RX_CHAN3_DAT_INV */
  1945. #define WM8996_AIF1RX_CHAN3_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN3_DAT_INV */
  1946. #define WM8996_AIF1RX_CHAN3_DAT_INV_SHIFT 15 /* AIF1RX_CHAN3_DAT_INV */
  1947. #define WM8996_AIF1RX_CHAN3_DAT_INV_WIDTH 1 /* AIF1RX_CHAN3_DAT_INV */
  1948. #define WM8996_AIF1RX_CHAN3_SPACING_MASK 0x7E00 /* AIF1RX_CHAN3_SPACING - [14:9] */
  1949. #define WM8996_AIF1RX_CHAN3_SPACING_SHIFT 9 /* AIF1RX_CHAN3_SPACING - [14:9] */
  1950. #define WM8996_AIF1RX_CHAN3_SPACING_WIDTH 6 /* AIF1RX_CHAN3_SPACING - [14:9] */
  1951. #define WM8996_AIF1RX_CHAN3_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN3_SLOTS - [8:6] */
  1952. #define WM8996_AIF1RX_CHAN3_SLOTS_SHIFT 6 /* AIF1RX_CHAN3_SLOTS - [8:6] */
  1953. #define WM8996_AIF1RX_CHAN3_SLOTS_WIDTH 3 /* AIF1RX_CHAN3_SLOTS - [8:6] */
  1954. #define WM8996_AIF1RX_CHAN3_START_SLOT_MASK 0x003F /* AIF1RX_CHAN3_START_SLOT - [5:0] */
  1955. #define WM8996_AIF1RX_CHAN3_START_SLOT_SHIFT 0 /* AIF1RX_CHAN3_START_SLOT - [5:0] */
  1956. #define WM8996_AIF1RX_CHAN3_START_SLOT_WIDTH 6 /* AIF1RX_CHAN3_START_SLOT - [5:0] */
  1957. /*
  1958. * R787 (0x313) - AIF1RX Channel 4 Configuration
  1959. */
  1960. #define WM8996_AIF1RX_CHAN4_DAT_INV 0x8000 /* AIF1RX_CHAN4_DAT_INV */
  1961. #define WM8996_AIF1RX_CHAN4_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN4_DAT_INV */
  1962. #define WM8996_AIF1RX_CHAN4_DAT_INV_SHIFT 15 /* AIF1RX_CHAN4_DAT_INV */
  1963. #define WM8996_AIF1RX_CHAN4_DAT_INV_WIDTH 1 /* AIF1RX_CHAN4_DAT_INV */
  1964. #define WM8996_AIF1RX_CHAN4_SPACING_MASK 0x7E00 /* AIF1RX_CHAN4_SPACING - [14:9] */
  1965. #define WM8996_AIF1RX_CHAN4_SPACING_SHIFT 9 /* AIF1RX_CHAN4_SPACING - [14:9] */
  1966. #define WM8996_AIF1RX_CHAN4_SPACING_WIDTH 6 /* AIF1RX_CHAN4_SPACING - [14:9] */
  1967. #define WM8996_AIF1RX_CHAN4_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN4_SLOTS - [8:6] */
  1968. #define WM8996_AIF1RX_CHAN4_SLOTS_SHIFT 6 /* AIF1RX_CHAN4_SLOTS - [8:6] */
  1969. #define WM8996_AIF1RX_CHAN4_SLOTS_WIDTH 3 /* AIF1RX_CHAN4_SLOTS - [8:6] */
  1970. #define WM8996_AIF1RX_CHAN4_START_SLOT_MASK 0x003F /* AIF1RX_CHAN4_START_SLOT - [5:0] */
  1971. #define WM8996_AIF1RX_CHAN4_START_SLOT_SHIFT 0 /* AIF1RX_CHAN4_START_SLOT - [5:0] */
  1972. #define WM8996_AIF1RX_CHAN4_START_SLOT_WIDTH 6 /* AIF1RX_CHAN4_START_SLOT - [5:0] */
  1973. /*
  1974. * R788 (0x314) - AIF1RX Channel 5 Configuration
  1975. */
  1976. #define WM8996_AIF1RX_CHAN5_DAT_INV 0x8000 /* AIF1RX_CHAN5_DAT_INV */
  1977. #define WM8996_AIF1RX_CHAN5_DAT_INV_MASK 0x8000 /* AIF1RX_CHAN5_DAT_INV */
  1978. #define WM8996_AIF1RX_CHAN5_DAT_INV_SHIFT 15 /* AIF1RX_CHAN5_DAT_INV */
  1979. #define WM8996_AIF1RX_CHAN5_DAT_INV_WIDTH 1 /* AIF1RX_CHAN5_DAT_INV */
  1980. #define WM8996_AIF1RX_CHAN5_SPACING_MASK 0x7E00 /* AIF1RX_CHAN5_SPACING - [14:9] */
  1981. #define WM8996_AIF1RX_CHAN5_SPACING_SHIFT 9 /* AIF1RX_CHAN5_SPACING - [14:9] */
  1982. #define WM8996_AIF1RX_CHAN5_SPACING_WIDTH 6 /* AIF1RX_CHAN5_SPACING - [14:9] */
  1983. #define WM8996_AIF1RX_CHAN5_SLOTS_MASK 0x01C0 /* AIF1RX_CHAN5_SLOTS - [8:6] */
  1984. #define WM8996_AIF1RX_CHAN5_SLOTS_SHIFT 6 /* AIF1RX_CHAN5_SLOTS - [8:6] */
  1985. #define WM8996_AIF1RX_CHAN5_SLOTS_WIDTH 3 /* AIF1RX_CHAN5_SLOTS - [8:6] */
  1986. #define WM8996_AIF1RX_CHAN5_START_SLOT_MASK 0x003F /* AIF1RX_CHAN5_START_SLOT - [5:0] */
  1987. #define WM8996_AIF1RX_CHAN5_START_SLOT_SHIFT 0 /* AIF1RX_CHAN5_START_SLOT - [5:0] */
  1988. #define WM8996_AIF1RX_CHAN5_START_SLOT_WIDTH 6 /* AIF1RX_CHAN5_START_SLOT - [5:0] */
  1989. /*
  1990. * R789 (0x315) - AIF1RX Mono Configuration
  1991. */
  1992. #define WM8996_AIF1RX_CHAN4_MONO_MODE 0x0004 /* AIF1RX_CHAN4_MONO_MODE */
  1993. #define WM8996_AIF1RX_CHAN4_MONO_MODE_MASK 0x0004 /* AIF1RX_CHAN4_MONO_MODE */
  1994. #define WM8996_AIF1RX_CHAN4_MONO_MODE_SHIFT 2 /* AIF1RX_CHAN4_MONO_MODE */
  1995. #define WM8996_AIF1RX_CHAN4_MONO_MODE_WIDTH 1 /* AIF1RX_CHAN4_MONO_MODE */
  1996. #define WM8996_AIF1RX_CHAN2_MONO_MODE 0x0002 /* AIF1RX_CHAN2_MONO_MODE */
  1997. #define WM8996_AIF1RX_CHAN2_MONO_MODE_MASK 0x0002 /* AIF1RX_CHAN2_MONO_MODE */
  1998. #define WM8996_AIF1RX_CHAN2_MONO_MODE_SHIFT 1 /* AIF1RX_CHAN2_MONO_MODE */
  1999. #define WM8996_AIF1RX_CHAN2_MONO_MODE_WIDTH 1 /* AIF1RX_CHAN2_MONO_MODE */
  2000. #define WM8996_AIF1RX_CHAN0_MONO_MODE 0x0001 /* AIF1RX_CHAN0_MONO_MODE */
  2001. #define WM8996_AIF1RX_CHAN0_MONO_MODE_MASK 0x0001 /* AIF1RX_CHAN0_MONO_MODE */
  2002. #define WM8996_AIF1RX_CHAN0_MONO_MODE_SHIFT 0 /* AIF1RX_CHAN0_MONO_MODE */
  2003. #define WM8996_AIF1RX_CHAN0_MONO_MODE_WIDTH 1 /* AIF1RX_CHAN0_MONO_MODE */
  2004. /*
  2005. * R794 (0x31A) - AIF1TX Test
  2006. */
  2007. #define WM8996_AIF1TX45_DITHER_ENA 0x0004 /* AIF1TX45_DITHER_ENA */
  2008. #define WM8996_AIF1TX45_DITHER_ENA_MASK 0x0004 /* AIF1TX45_DITHER_ENA */
  2009. #define WM8996_AIF1TX45_DITHER_ENA_SHIFT 2 /* AIF1TX45_DITHER_ENA */
  2010. #define WM8996_AIF1TX45_DITHER_ENA_WIDTH 1 /* AIF1TX45_DITHER_ENA */
  2011. #define WM8996_AIF1TX23_DITHER_ENA 0x0002 /* AIF1TX23_DITHER_ENA */
  2012. #define WM8996_AIF1TX23_DITHER_ENA_MASK 0x0002 /* AIF1TX23_DITHER_ENA */
  2013. #define WM8996_AIF1TX23_DITHER_ENA_SHIFT 1 /* AIF1TX23_DITHER_ENA */
  2014. #define WM8996_AIF1TX23_DITHER_ENA_WIDTH 1 /* AIF1TX23_DITHER_ENA */
  2015. #define WM8996_AIF1TX01_DITHER_ENA 0x0001 /* AIF1TX01_DITHER_ENA */
  2016. #define WM8996_AIF1TX01_DITHER_ENA_MASK 0x0001 /* AIF1TX01_DITHER_ENA */
  2017. #define WM8996_AIF1TX01_DITHER_ENA_SHIFT 0 /* AIF1TX01_DITHER_ENA */
  2018. #define WM8996_AIF1TX01_DITHER_ENA_WIDTH 1 /* AIF1TX01_DITHER_ENA */
  2019. /*
  2020. * R800 (0x320) - AIF2 Control
  2021. */
  2022. #define WM8996_AIF2_TRI 0x0004 /* AIF2_TRI */
  2023. #define WM8996_AIF2_TRI_MASK 0x0004 /* AIF2_TRI */
  2024. #define WM8996_AIF2_TRI_SHIFT 2 /* AIF2_TRI */
  2025. #define WM8996_AIF2_TRI_WIDTH 1 /* AIF2_TRI */
  2026. #define WM8996_AIF2_FMT_MASK 0x0003 /* AIF2_FMT - [1:0] */
  2027. #define WM8996_AIF2_FMT_SHIFT 0 /* AIF2_FMT - [1:0] */
  2028. #define WM8996_AIF2_FMT_WIDTH 2 /* AIF2_FMT - [1:0] */
  2029. /*
  2030. * R801 (0x321) - AIF2 BCLK
  2031. */
  2032. #define WM8996_AIF2_BCLK_INV 0x0400 /* AIF2_BCLK_INV */
  2033. #define WM8996_AIF2_BCLK_INV_MASK 0x0400 /* AIF2_BCLK_INV */
  2034. #define WM8996_AIF2_BCLK_INV_SHIFT 10 /* AIF2_BCLK_INV */
  2035. #define WM8996_AIF2_BCLK_INV_WIDTH 1 /* AIF2_BCLK_INV */
  2036. #define WM8996_AIF2_BCLK_FRC 0x0200 /* AIF2_BCLK_FRC */
  2037. #define WM8996_AIF2_BCLK_FRC_MASK 0x0200 /* AIF2_BCLK_FRC */
  2038. #define WM8996_AIF2_BCLK_FRC_SHIFT 9 /* AIF2_BCLK_FRC */
  2039. #define WM8996_AIF2_BCLK_FRC_WIDTH 1 /* AIF2_BCLK_FRC */
  2040. #define WM8996_AIF2_BCLK_MSTR 0x0100 /* AIF2_BCLK_MSTR */
  2041. #define WM8996_AIF2_BCLK_MSTR_MASK 0x0100 /* AIF2_BCLK_MSTR */
  2042. #define WM8996_AIF2_BCLK_MSTR_SHIFT 8 /* AIF2_BCLK_MSTR */
  2043. #define WM8996_AIF2_BCLK_MSTR_WIDTH 1 /* AIF2_BCLK_MSTR */
  2044. #define WM8996_AIF2_BCLK_DIV_MASK 0x000F /* AIF2_BCLK_DIV - [3:0] */
  2045. #define WM8996_AIF2_BCLK_DIV_SHIFT 0 /* AIF2_BCLK_DIV - [3:0] */
  2046. #define WM8996_AIF2_BCLK_DIV_WIDTH 4 /* AIF2_BCLK_DIV - [3:0] */
  2047. /*
  2048. * R802 (0x322) - AIF2 TX LRCLK(1)
  2049. */
  2050. #define WM8996_AIF2TX_RATE_MASK 0x07FF /* AIF2TX_RATE - [10:0] */
  2051. #define WM8996_AIF2TX_RATE_SHIFT 0 /* AIF2TX_RATE - [10:0] */
  2052. #define WM8996_AIF2TX_RATE_WIDTH 11 /* AIF2TX_RATE - [10:0] */
  2053. /*
  2054. * R803 (0x323) - AIF2 TX LRCLK(2)
  2055. */
  2056. #define WM8996_AIF2TX_LRCLK_MODE 0x0008 /* AIF2TX_LRCLK_MODE */
  2057. #define WM8996_AIF2TX_LRCLK_MODE_MASK 0x0008 /* AIF2TX_LRCLK_MODE */
  2058. #define WM8996_AIF2TX_LRCLK_MODE_SHIFT 3 /* AIF2TX_LRCLK_MODE */
  2059. #define WM8996_AIF2TX_LRCLK_MODE_WIDTH 1 /* AIF2TX_LRCLK_MODE */
  2060. #define WM8996_AIF2TX_LRCLK_INV 0x0004 /* AIF2TX_LRCLK_INV */
  2061. #define WM8996_AIF2TX_LRCLK_INV_MASK 0x0004 /* AIF2TX_LRCLK_INV */
  2062. #define WM8996_AIF2TX_LRCLK_INV_SHIFT 2 /* AIF2TX_LRCLK_INV */
  2063. #define WM8996_AIF2TX_LRCLK_INV_WIDTH 1 /* AIF2TX_LRCLK_INV */
  2064. #define WM8996_AIF2TX_LRCLK_FRC 0x0002 /* AIF2TX_LRCLK_FRC */
  2065. #define WM8996_AIF2TX_LRCLK_FRC_MASK 0x0002 /* AIF2TX_LRCLK_FRC */
  2066. #define WM8996_AIF2TX_LRCLK_FRC_SHIFT 1 /* AIF2TX_LRCLK_FRC */
  2067. #define WM8996_AIF2TX_LRCLK_FRC_WIDTH 1 /* AIF2TX_LRCLK_FRC */
  2068. #define WM8996_AIF2TX_LRCLK_MSTR 0x0001 /* AIF2TX_LRCLK_MSTR */
  2069. #define WM8996_AIF2TX_LRCLK_MSTR_MASK 0x0001 /* AIF2TX_LRCLK_MSTR */
  2070. #define WM8996_AIF2TX_LRCLK_MSTR_SHIFT 0 /* AIF2TX_LRCLK_MSTR */
  2071. #define WM8996_AIF2TX_LRCLK_MSTR_WIDTH 1 /* AIF2TX_LRCLK_MSTR */
  2072. /*
  2073. * R804 (0x324) - AIF2 RX LRCLK(1)
  2074. */
  2075. #define WM8996_AIF2RX_RATE_MASK 0x07FF /* AIF2RX_RATE - [10:0] */
  2076. #define WM8996_AIF2RX_RATE_SHIFT 0 /* AIF2RX_RATE - [10:0] */
  2077. #define WM8996_AIF2RX_RATE_WIDTH 11 /* AIF2RX_RATE - [10:0] */
  2078. /*
  2079. * R805 (0x325) - AIF2 RX LRCLK(2)
  2080. */
  2081. #define WM8996_AIF2RX_LRCLK_INV 0x0004 /* AIF2RX_LRCLK_INV */
  2082. #define WM8996_AIF2RX_LRCLK_INV_MASK 0x0004 /* AIF2RX_LRCLK_INV */
  2083. #define WM8996_AIF2RX_LRCLK_INV_SHIFT 2 /* AIF2RX_LRCLK_INV */
  2084. #define WM8996_AIF2RX_LRCLK_INV_WIDTH 1 /* AIF2RX_LRCLK_INV */
  2085. #define WM8996_AIF2RX_LRCLK_FRC 0x0002 /* AIF2RX_LRCLK_FRC */
  2086. #define WM8996_AIF2RX_LRCLK_FRC_MASK 0x0002 /* AIF2RX_LRCLK_FRC */
  2087. #define WM8996_AIF2RX_LRCLK_FRC_SHIFT 1 /* AIF2RX_LRCLK_FRC */
  2088. #define WM8996_AIF2RX_LRCLK_FRC_WIDTH 1 /* AIF2RX_LRCLK_FRC */
  2089. #define WM8996_AIF2RX_LRCLK_MSTR 0x0001 /* AIF2RX_LRCLK_MSTR */
  2090. #define WM8996_AIF2RX_LRCLK_MSTR_MASK 0x0001 /* AIF2RX_LRCLK_MSTR */
  2091. #define WM8996_AIF2RX_LRCLK_MSTR_SHIFT 0 /* AIF2RX_LRCLK_MSTR */
  2092. #define WM8996_AIF2RX_LRCLK_MSTR_WIDTH 1 /* AIF2RX_LRCLK_MSTR */
  2093. /*
  2094. * R806 (0x326) - AIF2TX Data Configuration (1)
  2095. */
  2096. #define WM8996_AIF2TX_WL_MASK 0xFF00 /* AIF2TX_WL - [15:8] */
  2097. #define WM8996_AIF2TX_WL_SHIFT 8 /* AIF2TX_WL - [15:8] */
  2098. #define WM8996_AIF2TX_WL_WIDTH 8 /* AIF2TX_WL - [15:8] */
  2099. #define WM8996_AIF2TX_SLOT_LEN_MASK 0x00FF /* AIF2TX_SLOT_LEN - [7:0] */
  2100. #define WM8996_AIF2TX_SLOT_LEN_SHIFT 0 /* AIF2TX_SLOT_LEN - [7:0] */
  2101. #define WM8996_AIF2TX_SLOT_LEN_WIDTH 8 /* AIF2TX_SLOT_LEN - [7:0] */
  2102. /*
  2103. * R807 (0x327) - AIF2TX Data Configuration (2)
  2104. */
  2105. #define WM8996_AIF2TX_DAT_TRI 0x0001 /* AIF2TX_DAT_TRI */
  2106. #define WM8996_AIF2TX_DAT_TRI_MASK 0x0001 /* AIF2TX_DAT_TRI */
  2107. #define WM8996_AIF2TX_DAT_TRI_SHIFT 0 /* AIF2TX_DAT_TRI */
  2108. #define WM8996_AIF2TX_DAT_TRI_WIDTH 1 /* AIF2TX_DAT_TRI */
  2109. /*
  2110. * R808 (0x328) - AIF2RX Data Configuration
  2111. */
  2112. #define WM8996_AIF2RX_WL_MASK 0xFF00 /* AIF2RX_WL - [15:8] */
  2113. #define WM8996_AIF2RX_WL_SHIFT 8 /* AIF2RX_WL - [15:8] */
  2114. #define WM8996_AIF2RX_WL_WIDTH 8 /* AIF2RX_WL - [15:8] */
  2115. #define WM8996_AIF2RX_SLOT_LEN_MASK 0x00FF /* AIF2RX_SLOT_LEN - [7:0] */
  2116. #define WM8996_AIF2RX_SLOT_LEN_SHIFT 0 /* AIF2RX_SLOT_LEN - [7:0] */
  2117. #define WM8996_AIF2RX_SLOT_LEN_WIDTH 8 /* AIF2RX_SLOT_LEN - [7:0] */
  2118. /*
  2119. * R809 (0x329) - AIF2TX Channel 0 Configuration
  2120. */
  2121. #define WM8996_AIF2TX_CHAN0_DAT_INV 0x8000 /* AIF2TX_CHAN0_DAT_INV */
  2122. #define WM8996_AIF2TX_CHAN0_DAT_INV_MASK 0x8000 /* AIF2TX_CHAN0_DAT_INV */
  2123. #define WM8996_AIF2TX_CHAN0_DAT_INV_SHIFT 15 /* AIF2TX_CHAN0_DAT_INV */
  2124. #define WM8996_AIF2TX_CHAN0_DAT_INV_WIDTH 1 /* AIF2TX_CHAN0_DAT_INV */
  2125. #define WM8996_AIF2TX_CHAN0_SPACING_MASK 0x7E00 /* AIF2TX_CHAN0_SPACING - [14:9] */
  2126. #define WM8996_AIF2TX_CHAN0_SPACING_SHIFT 9 /* AIF2TX_CHAN0_SPACING - [14:9] */
  2127. #define WM8996_AIF2TX_CHAN0_SPACING_WIDTH 6 /* AIF2TX_CHAN0_SPACING - [14:9] */
  2128. #define WM8996_AIF2TX_CHAN0_SLOTS_MASK 0x01C0 /* AIF2TX_CHAN0_SLOTS - [8:6] */
  2129. #define WM8996_AIF2TX_CHAN0_SLOTS_SHIFT 6 /* AIF2TX_CHAN0_SLOTS - [8:6] */
  2130. #define WM8996_AIF2TX_CHAN0_SLOTS_WIDTH 3 /* AIF2TX_CHAN0_SLOTS - [8:6] */
  2131. #define WM8996_AIF2TX_CHAN0_START_SLOT_MASK 0x003F /* AIF2TX_CHAN0_START_SLOT - [5:0] */
  2132. #define WM8996_AIF2TX_CHAN0_START_SLOT_SHIFT 0 /* AIF2TX_CHAN0_START_SLOT - [5:0] */
  2133. #define WM8996_AIF2TX_CHAN0_START_SLOT_WIDTH 6 /* AIF2TX_CHAN0_START_SLOT - [5:0] */
  2134. /*
  2135. * R810 (0x32A) - AIF2TX Channel 1 Configuration
  2136. */
  2137. #define WM8996_AIF2TX_CHAN1_DAT_INV 0x8000 /* AIF2TX_CHAN1_DAT_INV */
  2138. #define WM8996_AIF2TX_CHAN1_DAT_INV_MASK 0x8000 /* AIF2TX_CHAN1_DAT_INV */
  2139. #define WM8996_AIF2TX_CHAN1_DAT_INV_SHIFT 15 /* AIF2TX_CHAN1_DAT_INV */
  2140. #define WM8996_AIF2TX_CHAN1_DAT_INV_WIDTH 1 /* AIF2TX_CHAN1_DAT_INV */
  2141. #define WM8996_AIF2TX_CHAN1_SPACING_MASK 0x7E00 /* AIF2TX_CHAN1_SPACING - [14:9] */
  2142. #define WM8996_AIF2TX_CHAN1_SPACING_SHIFT 9 /* AIF2TX_CHAN1_SPACING - [14:9] */
  2143. #define WM8996_AIF2TX_CHAN1_SPACING_WIDTH 6 /* AIF2TX_CHAN1_SPACING - [14:9] */
  2144. #define WM8996_AIF2TX_CHAN1_SLOTS_MASK 0x01C0 /* AIF2TX_CHAN1_SLOTS - [8:6] */
  2145. #define WM8996_AIF2TX_CHAN1_SLOTS_SHIFT 6 /* AIF2TX_CHAN1_SLOTS - [8:6] */
  2146. #define WM8996_AIF2TX_CHAN1_SLOTS_WIDTH 3 /* AIF2TX_CHAN1_SLOTS - [8:6] */
  2147. #define WM8996_AIF2TX_CHAN1_START_SLOT_MASK 0x003F /* AIF2TX_CHAN1_START_SLOT - [5:0] */
  2148. #define WM8996_AIF2TX_CHAN1_START_SLOT_SHIFT 0 /* AIF2TX_CHAN1_START_SLOT - [5:0] */
  2149. #define WM8996_AIF2TX_CHAN1_START_SLOT_WIDTH 6 /* AIF2TX_CHAN1_START_SLOT - [5:0] */
  2150. /*
  2151. * R811 (0x32B) - AIF2RX Channel 0 Configuration
  2152. */
  2153. #define WM8996_AIF2RX_CHAN0_DAT_INV 0x8000 /* AIF2RX_CHAN0_DAT_INV */
  2154. #define WM8996_AIF2RX_CHAN0_DAT_INV_MASK 0x8000 /* AIF2RX_CHAN0_DAT_INV */
  2155. #define WM8996_AIF2RX_CHAN0_DAT_INV_SHIFT 15 /* AIF2RX_CHAN0_DAT_INV */
  2156. #define WM8996_AIF2RX_CHAN0_DAT_INV_WIDTH 1 /* AIF2RX_CHAN0_DAT_INV */
  2157. #define WM8996_AIF2RX_CHAN0_SPACING_MASK 0x7E00 /* AIF2RX_CHAN0_SPACING - [14:9] */
  2158. #define WM8996_AIF2RX_CHAN0_SPACING_SHIFT 9 /* AIF2RX_CHAN0_SPACING - [14:9] */
  2159. #define WM8996_AIF2RX_CHAN0_SPACING_WIDTH 6 /* AIF2RX_CHAN0_SPACING - [14:9] */
  2160. #define WM8996_AIF2RX_CHAN0_SLOTS_MASK 0x01C0 /* AIF2RX_CHAN0_SLOTS - [8:6] */
  2161. #define WM8996_AIF2RX_CHAN0_SLOTS_SHIFT 6 /* AIF2RX_CHAN0_SLOTS - [8:6] */
  2162. #define WM8996_AIF2RX_CHAN0_SLOTS_WIDTH 3 /* AIF2RX_CHAN0_SLOTS - [8:6] */
  2163. #define WM8996_AIF2RX_CHAN0_START_SLOT_MASK 0x003F /* AIF2RX_CHAN0_START_SLOT - [5:0] */
  2164. #define WM8996_AIF2RX_CHAN0_START_SLOT_SHIFT 0 /* AIF2RX_CHAN0_START_SLOT - [5:0] */
  2165. #define WM8996_AIF2RX_CHAN0_START_SLOT_WIDTH 6 /* AIF2RX_CHAN0_START_SLOT - [5:0] */
  2166. /*
  2167. * R812 (0x32C) - AIF2RX Channel 1 Configuration
  2168. */
  2169. #define WM8996_AIF2RX_CHAN1_DAT_INV 0x8000 /* AIF2RX_CHAN1_DAT_INV */
  2170. #define WM8996_AIF2RX_CHAN1_DAT_INV_MASK 0x8000 /* AIF2RX_CHAN1_DAT_INV */
  2171. #define WM8996_AIF2RX_CHAN1_DAT_INV_SHIFT 15 /* AIF2RX_CHAN1_DAT_INV */
  2172. #define WM8996_AIF2RX_CHAN1_DAT_INV_WIDTH 1 /* AIF2RX_CHAN1_DAT_INV */
  2173. #define WM8996_AIF2RX_CHAN1_SPACING_MASK 0x7E00 /* AIF2RX_CHAN1_SPACING - [14:9] */
  2174. #define WM8996_AIF2RX_CHAN1_SPACING_SHIFT 9 /* AIF2RX_CHAN1_SPACING - [14:9] */
  2175. #define WM8996_AIF2RX_CHAN1_SPACING_WIDTH 6 /* AIF2RX_CHAN1_SPACING - [14:9] */
  2176. #define WM8996_AIF2RX_CHAN1_SLOTS_MASK 0x01C0 /* AIF2RX_CHAN1_SLOTS - [8:6] */
  2177. #define WM8996_AIF2RX_CHAN1_SLOTS_SHIFT 6 /* AIF2RX_CHAN1_SLOTS - [8:6] */
  2178. #define WM8996_AIF2RX_CHAN1_SLOTS_WIDTH 3 /* AIF2RX_CHAN1_SLOTS - [8:6] */
  2179. #define WM8996_AIF2RX_CHAN1_START_SLOT_MASK 0x003F /* AIF2RX_CHAN1_START_SLOT - [5:0] */
  2180. #define WM8996_AIF2RX_CHAN1_START_SLOT_SHIFT 0 /* AIF2RX_CHAN1_START_SLOT - [5:0] */
  2181. #define WM8996_AIF2RX_CHAN1_START_SLOT_WIDTH 6 /* AIF2RX_CHAN1_START_SLOT - [5:0] */
  2182. /*
  2183. * R813 (0x32D) - AIF2RX Mono Configuration
  2184. */
  2185. #define WM8996_AIF2RX_CHAN0_MONO_MODE 0x0001 /* AIF2RX_CHAN0_MONO_MODE */
  2186. #define WM8996_AIF2RX_CHAN0_MONO_MODE_MASK 0x0001 /* AIF2RX_CHAN0_MONO_MODE */
  2187. #define WM8996_AIF2RX_CHAN0_MONO_MODE_SHIFT 0 /* AIF2RX_CHAN0_MONO_MODE */
  2188. #define WM8996_AIF2RX_CHAN0_MONO_MODE_WIDTH 1 /* AIF2RX_CHAN0_MONO_MODE */
  2189. /*
  2190. * R815 (0x32F) - AIF2TX Test
  2191. */
  2192. #define WM8996_AIF2TX_DITHER_ENA 0x0001 /* AIF2TX_DITHER_ENA */
  2193. #define WM8996_AIF2TX_DITHER_ENA_MASK 0x0001 /* AIF2TX_DITHER_ENA */
  2194. #define WM8996_AIF2TX_DITHER_ENA_SHIFT 0 /* AIF2TX_DITHER_ENA */
  2195. #define WM8996_AIF2TX_DITHER_ENA_WIDTH 1 /* AIF2TX_DITHER_ENA */
  2196. /*
  2197. * R1024 (0x400) - DSP1 TX Left Volume
  2198. */
  2199. #define WM8996_DSP1TX_VU 0x0100 /* DSP1TX_VU */
  2200. #define WM8996_DSP1TX_VU_MASK 0x0100 /* DSP1TX_VU */
  2201. #define WM8996_DSP1TX_VU_SHIFT 8 /* DSP1TX_VU */
  2202. #define WM8996_DSP1TX_VU_WIDTH 1 /* DSP1TX_VU */
  2203. #define WM8996_DSP1TXL_VOL_MASK 0x00FF /* DSP1TXL_VOL - [7:0] */
  2204. #define WM8996_DSP1TXL_VOL_SHIFT 0 /* DSP1TXL_VOL - [7:0] */
  2205. #define WM8996_DSP1TXL_VOL_WIDTH 8 /* DSP1TXL_VOL - [7:0] */
  2206. /*
  2207. * R1025 (0x401) - DSP1 TX Right Volume
  2208. */
  2209. #define WM8996_DSP1TX_VU 0x0100 /* DSP1TX_VU */
  2210. #define WM8996_DSP1TX_VU_MASK 0x0100 /* DSP1TX_VU */
  2211. #define WM8996_DSP1TX_VU_SHIFT 8 /* DSP1TX_VU */
  2212. #define WM8996_DSP1TX_VU_WIDTH 1 /* DSP1TX_VU */
  2213. #define WM8996_DSP1TXR_VOL_MASK 0x00FF /* DSP1TXR_VOL - [7:0] */
  2214. #define WM8996_DSP1TXR_VOL_SHIFT 0 /* DSP1TXR_VOL - [7:0] */
  2215. #define WM8996_DSP1TXR_VOL_WIDTH 8 /* DSP1TXR_VOL - [7:0] */
  2216. /*
  2217. * R1026 (0x402) - DSP1 RX Left Volume
  2218. */
  2219. #define WM8996_DSP1RX_VU 0x0100 /* DSP1RX_VU */
  2220. #define WM8996_DSP1RX_VU_MASK 0x0100 /* DSP1RX_VU */
  2221. #define WM8996_DSP1RX_VU_SHIFT 8 /* DSP1RX_VU */
  2222. #define WM8996_DSP1RX_VU_WIDTH 1 /* DSP1RX_VU */
  2223. #define WM8996_DSP1RXL_VOL_MASK 0x00FF /* DSP1RXL_VOL - [7:0] */
  2224. #define WM8996_DSP1RXL_VOL_SHIFT 0 /* DSP1RXL_VOL - [7:0] */
  2225. #define WM8996_DSP1RXL_VOL_WIDTH 8 /* DSP1RXL_VOL - [7:0] */
  2226. /*
  2227. * R1027 (0x403) - DSP1 RX Right Volume
  2228. */
  2229. #define WM8996_DSP1RX_VU 0x0100 /* DSP1RX_VU */
  2230. #define WM8996_DSP1RX_VU_MASK 0x0100 /* DSP1RX_VU */
  2231. #define WM8996_DSP1RX_VU_SHIFT 8 /* DSP1RX_VU */
  2232. #define WM8996_DSP1RX_VU_WIDTH 1 /* DSP1RX_VU */
  2233. #define WM8996_DSP1RXR_VOL_MASK 0x00FF /* DSP1RXR_VOL - [7:0] */
  2234. #define WM8996_DSP1RXR_VOL_SHIFT 0 /* DSP1RXR_VOL - [7:0] */
  2235. #define WM8996_DSP1RXR_VOL_WIDTH 8 /* DSP1RXR_VOL - [7:0] */
  2236. /*
  2237. * R1040 (0x410) - DSP1 TX Filters
  2238. */
  2239. #define WM8996_DSP1TX_NF 0x2000 /* DSP1TX_NF */
  2240. #define WM8996_DSP1TX_NF_MASK 0x2000 /* DSP1TX_NF */
  2241. #define WM8996_DSP1TX_NF_SHIFT 13 /* DSP1TX_NF */
  2242. #define WM8996_DSP1TX_NF_WIDTH 1 /* DSP1TX_NF */
  2243. #define WM8996_DSP1TXL_HPF 0x1000 /* DSP1TXL_HPF */
  2244. #define WM8996_DSP1TXL_HPF_MASK 0x1000 /* DSP1TXL_HPF */
  2245. #define WM8996_DSP1TXL_HPF_SHIFT 12 /* DSP1TXL_HPF */
  2246. #define WM8996_DSP1TXL_HPF_WIDTH 1 /* DSP1TXL_HPF */
  2247. #define WM8996_DSP1TXR_HPF 0x0800 /* DSP1TXR_HPF */
  2248. #define WM8996_DSP1TXR_HPF_MASK 0x0800 /* DSP1TXR_HPF */
  2249. #define WM8996_DSP1TXR_HPF_SHIFT 11 /* DSP1TXR_HPF */
  2250. #define WM8996_DSP1TXR_HPF_WIDTH 1 /* DSP1TXR_HPF */
  2251. #define WM8996_DSP1TX_HPF_MODE_MASK 0x0018 /* DSP1TX_HPF_MODE - [4:3] */
  2252. #define WM8996_DSP1TX_HPF_MODE_SHIFT 3 /* DSP1TX_HPF_MODE - [4:3] */
  2253. #define WM8996_DSP1TX_HPF_MODE_WIDTH 2 /* DSP1TX_HPF_MODE - [4:3] */
  2254. #define WM8996_DSP1TX_HPF_CUT_MASK 0x0007 /* DSP1TX_HPF_CUT - [2:0] */
  2255. #define WM8996_DSP1TX_HPF_CUT_SHIFT 0 /* DSP1TX_HPF_CUT - [2:0] */
  2256. #define WM8996_DSP1TX_HPF_CUT_WIDTH 3 /* DSP1TX_HPF_CUT - [2:0] */
  2257. /*
  2258. * R1056 (0x420) - DSP1 RX Filters (1)
  2259. */
  2260. #define WM8996_DSP1RX_MUTE 0x0200 /* DSP1RX_MUTE */
  2261. #define WM8996_DSP1RX_MUTE_MASK 0x0200 /* DSP1RX_MUTE */
  2262. #define WM8996_DSP1RX_MUTE_SHIFT 9 /* DSP1RX_MUTE */
  2263. #define WM8996_DSP1RX_MUTE_WIDTH 1 /* DSP1RX_MUTE */
  2264. #define WM8996_DSP1RX_MONO 0x0080 /* DSP1RX_MONO */
  2265. #define WM8996_DSP1RX_MONO_MASK 0x0080 /* DSP1RX_MONO */
  2266. #define WM8996_DSP1RX_MONO_SHIFT 7 /* DSP1RX_MONO */
  2267. #define WM8996_DSP1RX_MONO_WIDTH 1 /* DSP1RX_MONO */
  2268. #define WM8996_DSP1RX_MUTERATE 0x0020 /* DSP1RX_MUTERATE */
  2269. #define WM8996_DSP1RX_MUTERATE_MASK 0x0020 /* DSP1RX_MUTERATE */
  2270. #define WM8996_DSP1RX_MUTERATE_SHIFT 5 /* DSP1RX_MUTERATE */
  2271. #define WM8996_DSP1RX_MUTERATE_WIDTH 1 /* DSP1RX_MUTERATE */
  2272. #define WM8996_DSP1RX_UNMUTE_RAMP 0x0010 /* DSP1RX_UNMUTE_RAMP */
  2273. #define WM8996_DSP1RX_UNMUTE_RAMP_MASK 0x0010 /* DSP1RX_UNMUTE_RAMP */
  2274. #define WM8996_DSP1RX_UNMUTE_RAMP_SHIFT 4 /* DSP1RX_UNMUTE_RAMP */
  2275. #define WM8996_DSP1RX_UNMUTE_RAMP_WIDTH 1 /* DSP1RX_UNMUTE_RAMP */
  2276. /*
  2277. * R1057 (0x421) - DSP1 RX Filters (2)
  2278. */
  2279. #define WM8996_DSP1RX_3D_GAIN_MASK 0x3E00 /* DSP1RX_3D_GAIN - [13:9] */
  2280. #define WM8996_DSP1RX_3D_GAIN_SHIFT 9 /* DSP1RX_3D_GAIN - [13:9] */
  2281. #define WM8996_DSP1RX_3D_GAIN_WIDTH 5 /* DSP1RX_3D_GAIN - [13:9] */
  2282. #define WM8996_DSP1RX_3D_ENA 0x0100 /* DSP1RX_3D_ENA */
  2283. #define WM8996_DSP1RX_3D_ENA_MASK 0x0100 /* DSP1RX_3D_ENA */
  2284. #define WM8996_DSP1RX_3D_ENA_SHIFT 8 /* DSP1RX_3D_ENA */
  2285. #define WM8996_DSP1RX_3D_ENA_WIDTH 1 /* DSP1RX_3D_ENA */
  2286. /*
  2287. * R1088 (0x440) - DSP1 DRC (1)
  2288. */
  2289. #define WM8996_DSP1DRC_SIG_DET_RMS_MASK 0xF800 /* DSP1DRC_SIG_DET_RMS - [15:11] */
  2290. #define WM8996_DSP1DRC_SIG_DET_RMS_SHIFT 11 /* DSP1DRC_SIG_DET_RMS - [15:11] */
  2291. #define WM8996_DSP1DRC_SIG_DET_RMS_WIDTH 5 /* DSP1DRC_SIG_DET_RMS - [15:11] */
  2292. #define WM8996_DSP1DRC_SIG_DET_PK_MASK 0x0600 /* DSP1DRC_SIG_DET_PK - [10:9] */
  2293. #define WM8996_DSP1DRC_SIG_DET_PK_SHIFT 9 /* DSP1DRC_SIG_DET_PK - [10:9] */
  2294. #define WM8996_DSP1DRC_SIG_DET_PK_WIDTH 2 /* DSP1DRC_SIG_DET_PK - [10:9] */
  2295. #define WM8996_DSP1DRC_NG_ENA 0x0100 /* DSP1DRC_NG_ENA */
  2296. #define WM8996_DSP1DRC_NG_ENA_MASK 0x0100 /* DSP1DRC_NG_ENA */
  2297. #define WM8996_DSP1DRC_NG_ENA_SHIFT 8 /* DSP1DRC_NG_ENA */
  2298. #define WM8996_DSP1DRC_NG_ENA_WIDTH 1 /* DSP1DRC_NG_ENA */
  2299. #define WM8996_DSP1DRC_SIG_DET_MODE 0x0080 /* DSP1DRC_SIG_DET_MODE */
  2300. #define WM8996_DSP1DRC_SIG_DET_MODE_MASK 0x0080 /* DSP1DRC_SIG_DET_MODE */
  2301. #define WM8996_DSP1DRC_SIG_DET_MODE_SHIFT 7 /* DSP1DRC_SIG_DET_MODE */
  2302. #define WM8996_DSP1DRC_SIG_DET_MODE_WIDTH 1 /* DSP1DRC_SIG_DET_MODE */
  2303. #define WM8996_DSP1DRC_SIG_DET 0x0040 /* DSP1DRC_SIG_DET */
  2304. #define WM8996_DSP1DRC_SIG_DET_MASK 0x0040 /* DSP1DRC_SIG_DET */
  2305. #define WM8996_DSP1DRC_SIG_DET_SHIFT 6 /* DSP1DRC_SIG_DET */
  2306. #define WM8996_DSP1DRC_SIG_DET_WIDTH 1 /* DSP1DRC_SIG_DET */
  2307. #define WM8996_DSP1DRC_KNEE2_OP_ENA 0x0020 /* DSP1DRC_KNEE2_OP_ENA */
  2308. #define WM8996_DSP1DRC_KNEE2_OP_ENA_MASK 0x0020 /* DSP1DRC_KNEE2_OP_ENA */
  2309. #define WM8996_DSP1DRC_KNEE2_OP_ENA_SHIFT 5 /* DSP1DRC_KNEE2_OP_ENA */
  2310. #define WM8996_DSP1DRC_KNEE2_OP_ENA_WIDTH 1 /* DSP1DRC_KNEE2_OP_ENA */
  2311. #define WM8996_DSP1DRC_QR 0x0010 /* DSP1DRC_QR */
  2312. #define WM8996_DSP1DRC_QR_MASK 0x0010 /* DSP1DRC_QR */
  2313. #define WM8996_DSP1DRC_QR_SHIFT 4 /* DSP1DRC_QR */
  2314. #define WM8996_DSP1DRC_QR_WIDTH 1 /* DSP1DRC_QR */
  2315. #define WM8996_DSP1DRC_ANTICLIP 0x0008 /* DSP1DRC_ANTICLIP */
  2316. #define WM8996_DSP1DRC_ANTICLIP_MASK 0x0008 /* DSP1DRC_ANTICLIP */
  2317. #define WM8996_DSP1DRC_ANTICLIP_SHIFT 3 /* DSP1DRC_ANTICLIP */
  2318. #define WM8996_DSP1DRC_ANTICLIP_WIDTH 1 /* DSP1DRC_ANTICLIP */
  2319. #define WM8996_DSP1RX_DRC_ENA 0x0004 /* DSP1RX_DRC_ENA */
  2320. #define WM8996_DSP1RX_DRC_ENA_MASK 0x0004 /* DSP1RX_DRC_ENA */
  2321. #define WM8996_DSP1RX_DRC_ENA_SHIFT 2 /* DSP1RX_DRC_ENA */
  2322. #define WM8996_DSP1RX_DRC_ENA_WIDTH 1 /* DSP1RX_DRC_ENA */
  2323. #define WM8996_DSP1TXL_DRC_ENA 0x0002 /* DSP1TXL_DRC_ENA */
  2324. #define WM8996_DSP1TXL_DRC_ENA_MASK 0x0002 /* DSP1TXL_DRC_ENA */
  2325. #define WM8996_DSP1TXL_DRC_ENA_SHIFT 1 /* DSP1TXL_DRC_ENA */
  2326. #define WM8996_DSP1TXL_DRC_ENA_WIDTH 1 /* DSP1TXL_DRC_ENA */
  2327. #define WM8996_DSP1TXR_DRC_ENA 0x0001 /* DSP1TXR_DRC_ENA */
  2328. #define WM8996_DSP1TXR_DRC_ENA_MASK 0x0001 /* DSP1TXR_DRC_ENA */
  2329. #define WM8996_DSP1TXR_DRC_ENA_SHIFT 0 /* DSP1TXR_DRC_ENA */
  2330. #define WM8996_DSP1TXR_DRC_ENA_WIDTH 1 /* DSP1TXR_DRC_ENA */
  2331. /*
  2332. * R1089 (0x441) - DSP1 DRC (2)
  2333. */
  2334. #define WM8996_DSP1DRC_ATK_MASK 0x1E00 /* DSP1DRC_ATK - [12:9] */
  2335. #define WM8996_DSP1DRC_ATK_SHIFT 9 /* DSP1DRC_ATK - [12:9] */
  2336. #define WM8996_DSP1DRC_ATK_WIDTH 4 /* DSP1DRC_ATK - [12:9] */
  2337. #define WM8996_DSP1DRC_DCY_MASK 0x01E0 /* DSP1DRC_DCY - [8:5] */
  2338. #define WM8996_DSP1DRC_DCY_SHIFT 5 /* DSP1DRC_DCY - [8:5] */
  2339. #define WM8996_DSP1DRC_DCY_WIDTH 4 /* DSP1DRC_DCY - [8:5] */
  2340. #define WM8996_DSP1DRC_MINGAIN_MASK 0x001C /* DSP1DRC_MINGAIN - [4:2] */
  2341. #define WM8996_DSP1DRC_MINGAIN_SHIFT 2 /* DSP1DRC_MINGAIN - [4:2] */
  2342. #define WM8996_DSP1DRC_MINGAIN_WIDTH 3 /* DSP1DRC_MINGAIN - [4:2] */
  2343. #define WM8996_DSP1DRC_MAXGAIN_MASK 0x0003 /* DSP1DRC_MAXGAIN - [1:0] */
  2344. #define WM8996_DSP1DRC_MAXGAIN_SHIFT 0 /* DSP1DRC_MAXGAIN - [1:0] */
  2345. #define WM8996_DSP1DRC_MAXGAIN_WIDTH 2 /* DSP1DRC_MAXGAIN - [1:0] */
  2346. /*
  2347. * R1090 (0x442) - DSP1 DRC (3)
  2348. */
  2349. #define WM8996_DSP1DRC_NG_MINGAIN_MASK 0xF000 /* DSP1DRC_NG_MINGAIN - [15:12] */
  2350. #define WM8996_DSP1DRC_NG_MINGAIN_SHIFT 12 /* DSP1DRC_NG_MINGAIN - [15:12] */
  2351. #define WM8996_DSP1DRC_NG_MINGAIN_WIDTH 4 /* DSP1DRC_NG_MINGAIN - [15:12] */
  2352. #define WM8996_DSP1DRC_NG_EXP_MASK 0x0C00 /* DSP1DRC_NG_EXP - [11:10] */
  2353. #define WM8996_DSP1DRC_NG_EXP_SHIFT 10 /* DSP1DRC_NG_EXP - [11:10] */
  2354. #define WM8996_DSP1DRC_NG_EXP_WIDTH 2 /* DSP1DRC_NG_EXP - [11:10] */
  2355. #define WM8996_DSP1DRC_QR_THR_MASK 0x0300 /* DSP1DRC_QR_THR - [9:8] */
  2356. #define WM8996_DSP1DRC_QR_THR_SHIFT 8 /* DSP1DRC_QR_THR - [9:8] */
  2357. #define WM8996_DSP1DRC_QR_THR_WIDTH 2 /* DSP1DRC_QR_THR - [9:8] */
  2358. #define WM8996_DSP1DRC_QR_DCY_MASK 0x00C0 /* DSP1DRC_QR_DCY - [7:6] */
  2359. #define WM8996_DSP1DRC_QR_DCY_SHIFT 6 /* DSP1DRC_QR_DCY - [7:6] */
  2360. #define WM8996_DSP1DRC_QR_DCY_WIDTH 2 /* DSP1DRC_QR_DCY - [7:6] */
  2361. #define WM8996_DSP1DRC_HI_COMP_MASK 0x0038 /* DSP1DRC_HI_COMP - [5:3] */
  2362. #define WM8996_DSP1DRC_HI_COMP_SHIFT 3 /* DSP1DRC_HI_COMP - [5:3] */
  2363. #define WM8996_DSP1DRC_HI_COMP_WIDTH 3 /* DSP1DRC_HI_COMP - [5:3] */
  2364. #define WM8996_DSP1DRC_LO_COMP_MASK 0x0007 /* DSP1DRC_LO_COMP - [2:0] */
  2365. #define WM8996_DSP1DRC_LO_COMP_SHIFT 0 /* DSP1DRC_LO_COMP - [2:0] */
  2366. #define WM8996_DSP1DRC_LO_COMP_WIDTH 3 /* DSP1DRC_LO_COMP - [2:0] */
  2367. /*
  2368. * R1091 (0x443) - DSP1 DRC (4)
  2369. */
  2370. #define WM8996_DSP1DRC_KNEE_IP_MASK 0x07E0 /* DSP1DRC_KNEE_IP - [10:5] */
  2371. #define WM8996_DSP1DRC_KNEE_IP_SHIFT 5 /* DSP1DRC_KNEE_IP - [10:5] */
  2372. #define WM8996_DSP1DRC_KNEE_IP_WIDTH 6 /* DSP1DRC_KNEE_IP - [10:5] */
  2373. #define WM8996_DSP1DRC_KNEE_OP_MASK 0x001F /* DSP1DRC_KNEE_OP - [4:0] */
  2374. #define WM8996_DSP1DRC_KNEE_OP_SHIFT 0 /* DSP1DRC_KNEE_OP - [4:0] */
  2375. #define WM8996_DSP1DRC_KNEE_OP_WIDTH 5 /* DSP1DRC_KNEE_OP - [4:0] */
  2376. /*
  2377. * R1092 (0x444) - DSP1 DRC (5)
  2378. */
  2379. #define WM8996_DSP1DRC_KNEE2_IP_MASK 0x03E0 /* DSP1DRC_KNEE2_IP - [9:5] */
  2380. #define WM8996_DSP1DRC_KNEE2_IP_SHIFT 5 /* DSP1DRC_KNEE2_IP - [9:5] */
  2381. #define WM8996_DSP1DRC_KNEE2_IP_WIDTH 5 /* DSP1DRC_KNEE2_IP - [9:5] */
  2382. #define WM8996_DSP1DRC_KNEE2_OP_MASK 0x001F /* DSP1DRC_KNEE2_OP - [4:0] */
  2383. #define WM8996_DSP1DRC_KNEE2_OP_SHIFT 0 /* DSP1DRC_KNEE2_OP - [4:0] */
  2384. #define WM8996_DSP1DRC_KNEE2_OP_WIDTH 5 /* DSP1DRC_KNEE2_OP - [4:0] */
  2385. /*
  2386. * R1152 (0x480) - DSP1 RX EQ Gains (1)
  2387. */
  2388. #define WM8996_DSP1RX_EQ_B1_GAIN_MASK 0xF800 /* DSP1RX_EQ_B1_GAIN - [15:11] */
  2389. #define WM8996_DSP1RX_EQ_B1_GAIN_SHIFT 11 /* DSP1RX_EQ_B1_GAIN - [15:11] */
  2390. #define WM8996_DSP1RX_EQ_B1_GAIN_WIDTH 5 /* DSP1RX_EQ_B1_GAIN - [15:11] */
  2391. #define WM8996_DSP1RX_EQ_B2_GAIN_MASK 0x07C0 /* DSP1RX_EQ_B2_GAIN - [10:6] */
  2392. #define WM8996_DSP1RX_EQ_B2_GAIN_SHIFT 6 /* DSP1RX_EQ_B2_GAIN - [10:6] */
  2393. #define WM8996_DSP1RX_EQ_B2_GAIN_WIDTH 5 /* DSP1RX_EQ_B2_GAIN - [10:6] */
  2394. #define WM8996_DSP1RX_EQ_B3_GAIN_MASK 0x003E /* DSP1RX_EQ_B3_GAIN - [5:1] */
  2395. #define WM8996_DSP1RX_EQ_B3_GAIN_SHIFT 1 /* DSP1RX_EQ_B3_GAIN - [5:1] */
  2396. #define WM8996_DSP1RX_EQ_B3_GAIN_WIDTH 5 /* DSP1RX_EQ_B3_GAIN - [5:1] */
  2397. #define WM8996_DSP1RX_EQ_ENA 0x0001 /* DSP1RX_EQ_ENA */
  2398. #define WM8996_DSP1RX_EQ_ENA_MASK 0x0001 /* DSP1RX_EQ_ENA */
  2399. #define WM8996_DSP1RX_EQ_ENA_SHIFT 0 /* DSP1RX_EQ_ENA */
  2400. #define WM8996_DSP1RX_EQ_ENA_WIDTH 1 /* DSP1RX_EQ_ENA */
  2401. /*
  2402. * R1153 (0x481) - DSP1 RX EQ Gains (2)
  2403. */
  2404. #define WM8996_DSP1RX_EQ_B4_GAIN_MASK 0xF800 /* DSP1RX_EQ_B4_GAIN - [15:11] */
  2405. #define WM8996_DSP1RX_EQ_B4_GAIN_SHIFT 11 /* DSP1RX_EQ_B4_GAIN - [15:11] */
  2406. #define WM8996_DSP1RX_EQ_B4_GAIN_WIDTH 5 /* DSP1RX_EQ_B4_GAIN - [15:11] */
  2407. #define WM8996_DSP1RX_EQ_B5_GAIN_MASK 0x07C0 /* DSP1RX_EQ_B5_GAIN - [10:6] */
  2408. #define WM8996_DSP1RX_EQ_B5_GAIN_SHIFT 6 /* DSP1RX_EQ_B5_GAIN - [10:6] */
  2409. #define WM8996_DSP1RX_EQ_B5_GAIN_WIDTH 5 /* DSP1RX_EQ_B5_GAIN - [10:6] */
  2410. /*
  2411. * R1154 (0x482) - DSP1 RX EQ Band 1 A
  2412. */
  2413. #define WM8996_DSP1RX_EQ_B1_A_MASK 0xFFFF /* DSP1RX_EQ_B1_A - [15:0] */
  2414. #define WM8996_DSP1RX_EQ_B1_A_SHIFT 0 /* DSP1RX_EQ_B1_A - [15:0] */
  2415. #define WM8996_DSP1RX_EQ_B1_A_WIDTH 16 /* DSP1RX_EQ_B1_A - [15:0] */
  2416. /*
  2417. * R1155 (0x483) - DSP1 RX EQ Band 1 B
  2418. */
  2419. #define WM8996_DSP1RX_EQ_B1_B_MASK 0xFFFF /* DSP1RX_EQ_B1_B - [15:0] */
  2420. #define WM8996_DSP1RX_EQ_B1_B_SHIFT 0 /* DSP1RX_EQ_B1_B - [15:0] */
  2421. #define WM8996_DSP1RX_EQ_B1_B_WIDTH 16 /* DSP1RX_EQ_B1_B - [15:0] */
  2422. /*
  2423. * R1156 (0x484) - DSP1 RX EQ Band 1 PG
  2424. */
  2425. #define WM8996_DSP1RX_EQ_B1_PG_MASK 0xFFFF /* DSP1RX_EQ_B1_PG - [15:0] */
  2426. #define WM8996_DSP1RX_EQ_B1_PG_SHIFT 0 /* DSP1RX_EQ_B1_PG - [15:0] */
  2427. #define WM8996_DSP1RX_EQ_B1_PG_WIDTH 16 /* DSP1RX_EQ_B1_PG - [15:0] */
  2428. /*
  2429. * R1157 (0x485) - DSP1 RX EQ Band 2 A
  2430. */
  2431. #define WM8996_DSP1RX_EQ_B2_A_MASK 0xFFFF /* DSP1RX_EQ_B2_A - [15:0] */
  2432. #define WM8996_DSP1RX_EQ_B2_A_SHIFT 0 /* DSP1RX_EQ_B2_A - [15:0] */
  2433. #define WM8996_DSP1RX_EQ_B2_A_WIDTH 16 /* DSP1RX_EQ_B2_A - [15:0] */
  2434. /*
  2435. * R1158 (0x486) - DSP1 RX EQ Band 2 B
  2436. */
  2437. #define WM8996_DSP1RX_EQ_B2_B_MASK 0xFFFF /* DSP1RX_EQ_B2_B - [15:0] */
  2438. #define WM8996_DSP1RX_EQ_B2_B_SHIFT 0 /* DSP1RX_EQ_B2_B - [15:0] */
  2439. #define WM8996_DSP1RX_EQ_B2_B_WIDTH 16 /* DSP1RX_EQ_B2_B - [15:0] */
  2440. /*
  2441. * R1159 (0x487) - DSP1 RX EQ Band 2 C
  2442. */
  2443. #define WM8996_DSP1RX_EQ_B2_C_MASK 0xFFFF /* DSP1RX_EQ_B2_C - [15:0] */
  2444. #define WM8996_DSP1RX_EQ_B2_C_SHIFT 0 /* DSP1RX_EQ_B2_C - [15:0] */
  2445. #define WM8996_DSP1RX_EQ_B2_C_WIDTH 16 /* DSP1RX_EQ_B2_C - [15:0] */
  2446. /*
  2447. * R1160 (0x488) - DSP1 RX EQ Band 2 PG
  2448. */
  2449. #define WM8996_DSP1RX_EQ_B2_PG_MASK 0xFFFF /* DSP1RX_EQ_B2_PG - [15:0] */
  2450. #define WM8996_DSP1RX_EQ_B2_PG_SHIFT 0 /* DSP1RX_EQ_B2_PG - [15:0] */
  2451. #define WM8996_DSP1RX_EQ_B2_PG_WIDTH 16 /* DSP1RX_EQ_B2_PG - [15:0] */
  2452. /*
  2453. * R1161 (0x489) - DSP1 RX EQ Band 3 A
  2454. */
  2455. #define WM8996_DSP1RX_EQ_B3_A_MASK 0xFFFF /* DSP1RX_EQ_B3_A - [15:0] */
  2456. #define WM8996_DSP1RX_EQ_B3_A_SHIFT 0 /* DSP1RX_EQ_B3_A - [15:0] */
  2457. #define WM8996_DSP1RX_EQ_B3_A_WIDTH 16 /* DSP1RX_EQ_B3_A - [15:0] */
  2458. /*
  2459. * R1162 (0x48A) - DSP1 RX EQ Band 3 B
  2460. */
  2461. #define WM8996_DSP1RX_EQ_B3_B_MASK 0xFFFF /* DSP1RX_EQ_B3_B - [15:0] */
  2462. #define WM8996_DSP1RX_EQ_B3_B_SHIFT 0 /* DSP1RX_EQ_B3_B - [15:0] */
  2463. #define WM8996_DSP1RX_EQ_B3_B_WIDTH 16 /* DSP1RX_EQ_B3_B - [15:0] */
  2464. /*
  2465. * R1163 (0x48B) - DSP1 RX EQ Band 3 C
  2466. */
  2467. #define WM8996_DSP1RX_EQ_B3_C_MASK 0xFFFF /* DSP1RX_EQ_B3_C - [15:0] */
  2468. #define WM8996_DSP1RX_EQ_B3_C_SHIFT 0 /* DSP1RX_EQ_B3_C - [15:0] */
  2469. #define WM8996_DSP1RX_EQ_B3_C_WIDTH 16 /* DSP1RX_EQ_B3_C - [15:0] */
  2470. /*
  2471. * R1164 (0x48C) - DSP1 RX EQ Band 3 PG
  2472. */
  2473. #define WM8996_DSP1RX_EQ_B3_PG_MASK 0xFFFF /* DSP1RX_EQ_B3_PG - [15:0] */
  2474. #define WM8996_DSP1RX_EQ_B3_PG_SHIFT 0 /* DSP1RX_EQ_B3_PG - [15:0] */
  2475. #define WM8996_DSP1RX_EQ_B3_PG_WIDTH 16 /* DSP1RX_EQ_B3_PG - [15:0] */
  2476. /*
  2477. * R1165 (0x48D) - DSP1 RX EQ Band 4 A
  2478. */
  2479. #define WM8996_DSP1RX_EQ_B4_A_MASK 0xFFFF /* DSP1RX_EQ_B4_A - [15:0] */
  2480. #define WM8996_DSP1RX_EQ_B4_A_SHIFT 0 /* DSP1RX_EQ_B4_A - [15:0] */
  2481. #define WM8996_DSP1RX_EQ_B4_A_WIDTH 16 /* DSP1RX_EQ_B4_A - [15:0] */
  2482. /*
  2483. * R1166 (0x48E) - DSP1 RX EQ Band 4 B
  2484. */
  2485. #define WM8996_DSP1RX_EQ_B4_B_MASK 0xFFFF /* DSP1RX_EQ_B4_B - [15:0] */
  2486. #define WM8996_DSP1RX_EQ_B4_B_SHIFT 0 /* DSP1RX_EQ_B4_B - [15:0] */
  2487. #define WM8996_DSP1RX_EQ_B4_B_WIDTH 16 /* DSP1RX_EQ_B4_B - [15:0] */
  2488. /*
  2489. * R1167 (0x48F) - DSP1 RX EQ Band 4 C
  2490. */
  2491. #define WM8996_DSP1RX_EQ_B4_C_MASK 0xFFFF /* DSP1RX_EQ_B4_C - [15:0] */
  2492. #define WM8996_DSP1RX_EQ_B4_C_SHIFT 0 /* DSP1RX_EQ_B4_C - [15:0] */
  2493. #define WM8996_DSP1RX_EQ_B4_C_WIDTH 16 /* DSP1RX_EQ_B4_C - [15:0] */
  2494. /*
  2495. * R1168 (0x490) - DSP1 RX EQ Band 4 PG
  2496. */
  2497. #define WM8996_DSP1RX_EQ_B4_PG_MASK 0xFFFF /* DSP1RX_EQ_B4_PG - [15:0] */
  2498. #define WM8996_DSP1RX_EQ_B4_PG_SHIFT 0 /* DSP1RX_EQ_B4_PG - [15:0] */
  2499. #define WM8996_DSP1RX_EQ_B4_PG_WIDTH 16 /* DSP1RX_EQ_B4_PG - [15:0] */
  2500. /*
  2501. * R1169 (0x491) - DSP1 RX EQ Band 5 A
  2502. */
  2503. #define WM8996_DSP1RX_EQ_B5_A_MASK 0xFFFF /* DSP1RX_EQ_B5_A - [15:0] */
  2504. #define WM8996_DSP1RX_EQ_B5_A_SHIFT 0 /* DSP1RX_EQ_B5_A - [15:0] */
  2505. #define WM8996_DSP1RX_EQ_B5_A_WIDTH 16 /* DSP1RX_EQ_B5_A - [15:0] */
  2506. /*
  2507. * R1170 (0x492) - DSP1 RX EQ Band 5 B
  2508. */
  2509. #define WM8996_DSP1RX_EQ_B5_B_MASK 0xFFFF /* DSP1RX_EQ_B5_B - [15:0] */
  2510. #define WM8996_DSP1RX_EQ_B5_B_SHIFT 0 /* DSP1RX_EQ_B5_B - [15:0] */
  2511. #define WM8996_DSP1RX_EQ_B5_B_WIDTH 16 /* DSP1RX_EQ_B5_B - [15:0] */
  2512. /*
  2513. * R1171 (0x493) - DSP1 RX EQ Band 5 PG
  2514. */
  2515. #define WM8996_DSP1RX_EQ_B5_PG_MASK 0xFFFF /* DSP1RX_EQ_B5_PG - [15:0] */
  2516. #define WM8996_DSP1RX_EQ_B5_PG_SHIFT 0 /* DSP1RX_EQ_B5_PG - [15:0] */
  2517. #define WM8996_DSP1RX_EQ_B5_PG_WIDTH 16 /* DSP1RX_EQ_B5_PG - [15:0] */
  2518. /*
  2519. * R1280 (0x500) - DSP2 TX Left Volume
  2520. */
  2521. #define WM8996_DSP2TX_VU 0x0100 /* DSP2TX_VU */
  2522. #define WM8996_DSP2TX_VU_MASK 0x0100 /* DSP2TX_VU */
  2523. #define WM8996_DSP2TX_VU_SHIFT 8 /* DSP2TX_VU */
  2524. #define WM8996_DSP2TX_VU_WIDTH 1 /* DSP2TX_VU */
  2525. #define WM8996_DSP2TXL_VOL_MASK 0x00FF /* DSP2TXL_VOL - [7:0] */
  2526. #define WM8996_DSP2TXL_VOL_SHIFT 0 /* DSP2TXL_VOL - [7:0] */
  2527. #define WM8996_DSP2TXL_VOL_WIDTH 8 /* DSP2TXL_VOL - [7:0] */
  2528. /*
  2529. * R1281 (0x501) - DSP2 TX Right Volume
  2530. */
  2531. #define WM8996_DSP2TX_VU 0x0100 /* DSP2TX_VU */
  2532. #define WM8996_DSP2TX_VU_MASK 0x0100 /* DSP2TX_VU */
  2533. #define WM8996_DSP2TX_VU_SHIFT 8 /* DSP2TX_VU */
  2534. #define WM8996_DSP2TX_VU_WIDTH 1 /* DSP2TX_VU */
  2535. #define WM8996_DSP2TXR_VOL_MASK 0x00FF /* DSP2TXR_VOL - [7:0] */
  2536. #define WM8996_DSP2TXR_VOL_SHIFT 0 /* DSP2TXR_VOL - [7:0] */
  2537. #define WM8996_DSP2TXR_VOL_WIDTH 8 /* DSP2TXR_VOL - [7:0] */
  2538. /*
  2539. * R1282 (0x502) - DSP2 RX Left Volume
  2540. */
  2541. #define WM8996_DSP2RX_VU 0x0100 /* DSP2RX_VU */
  2542. #define WM8996_DSP2RX_VU_MASK 0x0100 /* DSP2RX_VU */
  2543. #define WM8996_DSP2RX_VU_SHIFT 8 /* DSP2RX_VU */
  2544. #define WM8996_DSP2RX_VU_WIDTH 1 /* DSP2RX_VU */
  2545. #define WM8996_DSP2RXL_VOL_MASK 0x00FF /* DSP2RXL_VOL - [7:0] */
  2546. #define WM8996_DSP2RXL_VOL_SHIFT 0 /* DSP2RXL_VOL - [7:0] */
  2547. #define WM8996_DSP2RXL_VOL_WIDTH 8 /* DSP2RXL_VOL - [7:0] */
  2548. /*
  2549. * R1283 (0x503) - DSP2 RX Right Volume
  2550. */
  2551. #define WM8996_DSP2RX_VU 0x0100 /* DSP2RX_VU */
  2552. #define WM8996_DSP2RX_VU_MASK 0x0100 /* DSP2RX_VU */
  2553. #define WM8996_DSP2RX_VU_SHIFT 8 /* DSP2RX_VU */
  2554. #define WM8996_DSP2RX_VU_WIDTH 1 /* DSP2RX_VU */
  2555. #define WM8996_DSP2RXR_VOL_MASK 0x00FF /* DSP2RXR_VOL - [7:0] */
  2556. #define WM8996_DSP2RXR_VOL_SHIFT 0 /* DSP2RXR_VOL - [7:0] */
  2557. #define WM8996_DSP2RXR_VOL_WIDTH 8 /* DSP2RXR_VOL - [7:0] */
  2558. /*
  2559. * R1296 (0x510) - DSP2 TX Filters
  2560. */
  2561. #define WM8996_DSP2TX_NF 0x2000 /* DSP2TX_NF */
  2562. #define WM8996_DSP2TX_NF_MASK 0x2000 /* DSP2TX_NF */
  2563. #define WM8996_DSP2TX_NF_SHIFT 13 /* DSP2TX_NF */
  2564. #define WM8996_DSP2TX_NF_WIDTH 1 /* DSP2TX_NF */
  2565. #define WM8996_DSP2TXL_HPF 0x1000 /* DSP2TXL_HPF */
  2566. #define WM8996_DSP2TXL_HPF_MASK 0x1000 /* DSP2TXL_HPF */
  2567. #define WM8996_DSP2TXL_HPF_SHIFT 12 /* DSP2TXL_HPF */
  2568. #define WM8996_DSP2TXL_HPF_WIDTH 1 /* DSP2TXL_HPF */
  2569. #define WM8996_DSP2TXR_HPF 0x0800 /* DSP2TXR_HPF */
  2570. #define WM8996_DSP2TXR_HPF_MASK 0x0800 /* DSP2TXR_HPF */
  2571. #define WM8996_DSP2TXR_HPF_SHIFT 11 /* DSP2TXR_HPF */
  2572. #define WM8996_DSP2TXR_HPF_WIDTH 1 /* DSP2TXR_HPF */
  2573. #define WM8996_DSP2TX_HPF_MODE_MASK 0x0018 /* DSP2TX_HPF_MODE - [4:3] */
  2574. #define WM8996_DSP2TX_HPF_MODE_SHIFT 3 /* DSP2TX_HPF_MODE - [4:3] */
  2575. #define WM8996_DSP2TX_HPF_MODE_WIDTH 2 /* DSP2TX_HPF_MODE - [4:3] */
  2576. #define WM8996_DSP2TX_HPF_CUT_MASK 0x0007 /* DSP2TX_HPF_CUT - [2:0] */
  2577. #define WM8996_DSP2TX_HPF_CUT_SHIFT 0 /* DSP2TX_HPF_CUT - [2:0] */
  2578. #define WM8996_DSP2TX_HPF_CUT_WIDTH 3 /* DSP2TX_HPF_CUT - [2:0] */
  2579. /*
  2580. * R1312 (0x520) - DSP2 RX Filters (1)
  2581. */
  2582. #define WM8996_DSP2RX_MUTE 0x0200 /* DSP2RX_MUTE */
  2583. #define WM8996_DSP2RX_MUTE_MASK 0x0200 /* DSP2RX_MUTE */
  2584. #define WM8996_DSP2RX_MUTE_SHIFT 9 /* DSP2RX_MUTE */
  2585. #define WM8996_DSP2RX_MUTE_WIDTH 1 /* DSP2RX_MUTE */
  2586. #define WM8996_DSP2RX_MONO 0x0080 /* DSP2RX_MONO */
  2587. #define WM8996_DSP2RX_MONO_MASK 0x0080 /* DSP2RX_MONO */
  2588. #define WM8996_DSP2RX_MONO_SHIFT 7 /* DSP2RX_MONO */
  2589. #define WM8996_DSP2RX_MONO_WIDTH 1 /* DSP2RX_MONO */
  2590. #define WM8996_DSP2RX_MUTERATE 0x0020 /* DSP2RX_MUTERATE */
  2591. #define WM8996_DSP2RX_MUTERATE_MASK 0x0020 /* DSP2RX_MUTERATE */
  2592. #define WM8996_DSP2RX_MUTERATE_SHIFT 5 /* DSP2RX_MUTERATE */
  2593. #define WM8996_DSP2RX_MUTERATE_WIDTH 1 /* DSP2RX_MUTERATE */
  2594. #define WM8996_DSP2RX_UNMUTE_RAMP 0x0010 /* DSP2RX_UNMUTE_RAMP */
  2595. #define WM8996_DSP2RX_UNMUTE_RAMP_MASK 0x0010 /* DSP2RX_UNMUTE_RAMP */
  2596. #define WM8996_DSP2RX_UNMUTE_RAMP_SHIFT 4 /* DSP2RX_UNMUTE_RAMP */
  2597. #define WM8996_DSP2RX_UNMUTE_RAMP_WIDTH 1 /* DSP2RX_UNMUTE_RAMP */
  2598. /*
  2599. * R1313 (0x521) - DSP2 RX Filters (2)
  2600. */
  2601. #define WM8996_DSP2RX_3D_GAIN_MASK 0x3E00 /* DSP2RX_3D_GAIN - [13:9] */
  2602. #define WM8996_DSP2RX_3D_GAIN_SHIFT 9 /* DSP2RX_3D_GAIN - [13:9] */
  2603. #define WM8996_DSP2RX_3D_GAIN_WIDTH 5 /* DSP2RX_3D_GAIN - [13:9] */
  2604. #define WM8996_DSP2RX_3D_ENA 0x0100 /* DSP2RX_3D_ENA */
  2605. #define WM8996_DSP2RX_3D_ENA_MASK 0x0100 /* DSP2RX_3D_ENA */
  2606. #define WM8996_DSP2RX_3D_ENA_SHIFT 8 /* DSP2RX_3D_ENA */
  2607. #define WM8996_DSP2RX_3D_ENA_WIDTH 1 /* DSP2RX_3D_ENA */
  2608. /*
  2609. * R1344 (0x540) - DSP2 DRC (1)
  2610. */
  2611. #define WM8996_DSP2DRC_SIG_DET_RMS_MASK 0xF800 /* DSP2DRC_SIG_DET_RMS - [15:11] */
  2612. #define WM8996_DSP2DRC_SIG_DET_RMS_SHIFT 11 /* DSP2DRC_SIG_DET_RMS - [15:11] */
  2613. #define WM8996_DSP2DRC_SIG_DET_RMS_WIDTH 5 /* DSP2DRC_SIG_DET_RMS - [15:11] */
  2614. #define WM8996_DSP2DRC_SIG_DET_PK_MASK 0x0600 /* DSP2DRC_SIG_DET_PK - [10:9] */
  2615. #define WM8996_DSP2DRC_SIG_DET_PK_SHIFT 9 /* DSP2DRC_SIG_DET_PK - [10:9] */
  2616. #define WM8996_DSP2DRC_SIG_DET_PK_WIDTH 2 /* DSP2DRC_SIG_DET_PK - [10:9] */
  2617. #define WM8996_DSP2DRC_NG_ENA 0x0100 /* DSP2DRC_NG_ENA */
  2618. #define WM8996_DSP2DRC_NG_ENA_MASK 0x0100 /* DSP2DRC_NG_ENA */
  2619. #define WM8996_DSP2DRC_NG_ENA_SHIFT 8 /* DSP2DRC_NG_ENA */
  2620. #define WM8996_DSP2DRC_NG_ENA_WIDTH 1 /* DSP2DRC_NG_ENA */
  2621. #define WM8996_DSP2DRC_SIG_DET_MODE 0x0080 /* DSP2DRC_SIG_DET_MODE */
  2622. #define WM8996_DSP2DRC_SIG_DET_MODE_MASK 0x0080 /* DSP2DRC_SIG_DET_MODE */
  2623. #define WM8996_DSP2DRC_SIG_DET_MODE_SHIFT 7 /* DSP2DRC_SIG_DET_MODE */
  2624. #define WM8996_DSP2DRC_SIG_DET_MODE_WIDTH 1 /* DSP2DRC_SIG_DET_MODE */
  2625. #define WM8996_DSP2DRC_SIG_DET 0x0040 /* DSP2DRC_SIG_DET */
  2626. #define WM8996_DSP2DRC_SIG_DET_MASK 0x0040 /* DSP2DRC_SIG_DET */
  2627. #define WM8996_DSP2DRC_SIG_DET_SHIFT 6 /* DSP2DRC_SIG_DET */
  2628. #define WM8996_DSP2DRC_SIG_DET_WIDTH 1 /* DSP2DRC_SIG_DET */
  2629. #define WM8996_DSP2DRC_KNEE2_OP_ENA 0x0020 /* DSP2DRC_KNEE2_OP_ENA */
  2630. #define WM8996_DSP2DRC_KNEE2_OP_ENA_MASK 0x0020 /* DSP2DRC_KNEE2_OP_ENA */
  2631. #define WM8996_DSP2DRC_KNEE2_OP_ENA_SHIFT 5 /* DSP2DRC_KNEE2_OP_ENA */
  2632. #define WM8996_DSP2DRC_KNEE2_OP_ENA_WIDTH 1 /* DSP2DRC_KNEE2_OP_ENA */
  2633. #define WM8996_DSP2DRC_QR 0x0010 /* DSP2DRC_QR */
  2634. #define WM8996_DSP2DRC_QR_MASK 0x0010 /* DSP2DRC_QR */
  2635. #define WM8996_DSP2DRC_QR_SHIFT 4 /* DSP2DRC_QR */
  2636. #define WM8996_DSP2DRC_QR_WIDTH 1 /* DSP2DRC_QR */
  2637. #define WM8996_DSP2DRC_ANTICLIP 0x0008 /* DSP2DRC_ANTICLIP */
  2638. #define WM8996_DSP2DRC_ANTICLIP_MASK 0x0008 /* DSP2DRC_ANTICLIP */
  2639. #define WM8996_DSP2DRC_ANTICLIP_SHIFT 3 /* DSP2DRC_ANTICLIP */
  2640. #define WM8996_DSP2DRC_ANTICLIP_WIDTH 1 /* DSP2DRC_ANTICLIP */
  2641. #define WM8996_DSP2RX_DRC_ENA 0x0004 /* DSP2RX_DRC_ENA */
  2642. #define WM8996_DSP2RX_DRC_ENA_MASK 0x0004 /* DSP2RX_DRC_ENA */
  2643. #define WM8996_DSP2RX_DRC_ENA_SHIFT 2 /* DSP2RX_DRC_ENA */
  2644. #define WM8996_DSP2RX_DRC_ENA_WIDTH 1 /* DSP2RX_DRC_ENA */
  2645. #define WM8996_DSP2TXL_DRC_ENA 0x0002 /* DSP2TXL_DRC_ENA */
  2646. #define WM8996_DSP2TXL_DRC_ENA_MASK 0x0002 /* DSP2TXL_DRC_ENA */
  2647. #define WM8996_DSP2TXL_DRC_ENA_SHIFT 1 /* DSP2TXL_DRC_ENA */
  2648. #define WM8996_DSP2TXL_DRC_ENA_WIDTH 1 /* DSP2TXL_DRC_ENA */
  2649. #define WM8996_DSP2TXR_DRC_ENA 0x0001 /* DSP2TXR_DRC_ENA */
  2650. #define WM8996_DSP2TXR_DRC_ENA_MASK 0x0001 /* DSP2TXR_DRC_ENA */
  2651. #define WM8996_DSP2TXR_DRC_ENA_SHIFT 0 /* DSP2TXR_DRC_ENA */
  2652. #define WM8996_DSP2TXR_DRC_ENA_WIDTH 1 /* DSP2TXR_DRC_ENA */
  2653. /*
  2654. * R1345 (0x541) - DSP2 DRC (2)
  2655. */
  2656. #define WM8996_DSP2DRC_ATK_MASK 0x1E00 /* DSP2DRC_ATK - [12:9] */
  2657. #define WM8996_DSP2DRC_ATK_SHIFT 9 /* DSP2DRC_ATK - [12:9] */
  2658. #define WM8996_DSP2DRC_ATK_WIDTH 4 /* DSP2DRC_ATK - [12:9] */
  2659. #define WM8996_DSP2DRC_DCY_MASK 0x01E0 /* DSP2DRC_DCY - [8:5] */
  2660. #define WM8996_DSP2DRC_DCY_SHIFT 5 /* DSP2DRC_DCY - [8:5] */
  2661. #define WM8996_DSP2DRC_DCY_WIDTH 4 /* DSP2DRC_DCY - [8:5] */
  2662. #define WM8996_DSP2DRC_MINGAIN_MASK 0x001C /* DSP2DRC_MINGAIN - [4:2] */
  2663. #define WM8996_DSP2DRC_MINGAIN_SHIFT 2 /* DSP2DRC_MINGAIN - [4:2] */
  2664. #define WM8996_DSP2DRC_MINGAIN_WIDTH 3 /* DSP2DRC_MINGAIN - [4:2] */
  2665. #define WM8996_DSP2DRC_MAXGAIN_MASK 0x0003 /* DSP2DRC_MAXGAIN - [1:0] */
  2666. #define WM8996_DSP2DRC_MAXGAIN_SHIFT 0 /* DSP2DRC_MAXGAIN - [1:0] */
  2667. #define WM8996_DSP2DRC_MAXGAIN_WIDTH 2 /* DSP2DRC_MAXGAIN - [1:0] */
  2668. /*
  2669. * R1346 (0x542) - DSP2 DRC (3)
  2670. */
  2671. #define WM8996_DSP2DRC_NG_MINGAIN_MASK 0xF000 /* DSP2DRC_NG_MINGAIN - [15:12] */
  2672. #define WM8996_DSP2DRC_NG_MINGAIN_SHIFT 12 /* DSP2DRC_NG_MINGAIN - [15:12] */
  2673. #define WM8996_DSP2DRC_NG_MINGAIN_WIDTH 4 /* DSP2DRC_NG_MINGAIN - [15:12] */
  2674. #define WM8996_DSP2DRC_NG_EXP_MASK 0x0C00 /* DSP2DRC_NG_EXP - [11:10] */
  2675. #define WM8996_DSP2DRC_NG_EXP_SHIFT 10 /* DSP2DRC_NG_EXP - [11:10] */
  2676. #define WM8996_DSP2DRC_NG_EXP_WIDTH 2 /* DSP2DRC_NG_EXP - [11:10] */
  2677. #define WM8996_DSP2DRC_QR_THR_MASK 0x0300 /* DSP2DRC_QR_THR - [9:8] */
  2678. #define WM8996_DSP2DRC_QR_THR_SHIFT 8 /* DSP2DRC_QR_THR - [9:8] */
  2679. #define WM8996_DSP2DRC_QR_THR_WIDTH 2 /* DSP2DRC_QR_THR - [9:8] */
  2680. #define WM8996_DSP2DRC_QR_DCY_MASK 0x00C0 /* DSP2DRC_QR_DCY - [7:6] */
  2681. #define WM8996_DSP2DRC_QR_DCY_SHIFT 6 /* DSP2DRC_QR_DCY - [7:6] */
  2682. #define WM8996_DSP2DRC_QR_DCY_WIDTH 2 /* DSP2DRC_QR_DCY - [7:6] */
  2683. #define WM8996_DSP2DRC_HI_COMP_MASK 0x0038 /* DSP2DRC_HI_COMP - [5:3] */
  2684. #define WM8996_DSP2DRC_HI_COMP_SHIFT 3 /* DSP2DRC_HI_COMP - [5:3] */
  2685. #define WM8996_DSP2DRC_HI_COMP_WIDTH 3 /* DSP2DRC_HI_COMP - [5:3] */
  2686. #define WM8996_DSP2DRC_LO_COMP_MASK 0x0007 /* DSP2DRC_LO_COMP - [2:0] */
  2687. #define WM8996_DSP2DRC_LO_COMP_SHIFT 0 /* DSP2DRC_LO_COMP - [2:0] */
  2688. #define WM8996_DSP2DRC_LO_COMP_WIDTH 3 /* DSP2DRC_LO_COMP - [2:0] */
  2689. /*
  2690. * R1347 (0x543) - DSP2 DRC (4)
  2691. */
  2692. #define WM8996_DSP2DRC_KNEE_IP_MASK 0x07E0 /* DSP2DRC_KNEE_IP - [10:5] */
  2693. #define WM8996_DSP2DRC_KNEE_IP_SHIFT 5 /* DSP2DRC_KNEE_IP - [10:5] */
  2694. #define WM8996_DSP2DRC_KNEE_IP_WIDTH 6 /* DSP2DRC_KNEE_IP - [10:5] */
  2695. #define WM8996_DSP2DRC_KNEE_OP_MASK 0x001F /* DSP2DRC_KNEE_OP - [4:0] */
  2696. #define WM8996_DSP2DRC_KNEE_OP_SHIFT 0 /* DSP2DRC_KNEE_OP - [4:0] */
  2697. #define WM8996_DSP2DRC_KNEE_OP_WIDTH 5 /* DSP2DRC_KNEE_OP - [4:0] */
  2698. /*
  2699. * R1348 (0x544) - DSP2 DRC (5)
  2700. */
  2701. #define WM8996_DSP2DRC_KNEE2_IP_MASK 0x03E0 /* DSP2DRC_KNEE2_IP - [9:5] */
  2702. #define WM8996_DSP2DRC_KNEE2_IP_SHIFT 5 /* DSP2DRC_KNEE2_IP - [9:5] */
  2703. #define WM8996_DSP2DRC_KNEE2_IP_WIDTH 5 /* DSP2DRC_KNEE2_IP - [9:5] */
  2704. #define WM8996_DSP2DRC_KNEE2_OP_MASK 0x001F /* DSP2DRC_KNEE2_OP - [4:0] */
  2705. #define WM8996_DSP2DRC_KNEE2_OP_SHIFT 0 /* DSP2DRC_KNEE2_OP - [4:0] */
  2706. #define WM8996_DSP2DRC_KNEE2_OP_WIDTH 5 /* DSP2DRC_KNEE2_OP - [4:0] */
  2707. /*
  2708. * R1408 (0x580) - DSP2 RX EQ Gains (1)
  2709. */
  2710. #define WM8996_DSP2RX_EQ_B1_GAIN_MASK 0xF800 /* DSP2RX_EQ_B1_GAIN - [15:11] */
  2711. #define WM8996_DSP2RX_EQ_B1_GAIN_SHIFT 11 /* DSP2RX_EQ_B1_GAIN - [15:11] */
  2712. #define WM8996_DSP2RX_EQ_B1_GAIN_WIDTH 5 /* DSP2RX_EQ_B1_GAIN - [15:11] */
  2713. #define WM8996_DSP2RX_EQ_B2_GAIN_MASK 0x07C0 /* DSP2RX_EQ_B2_GAIN - [10:6] */
  2714. #define WM8996_DSP2RX_EQ_B2_GAIN_SHIFT 6 /* DSP2RX_EQ_B2_GAIN - [10:6] */
  2715. #define WM8996_DSP2RX_EQ_B2_GAIN_WIDTH 5 /* DSP2RX_EQ_B2_GAIN - [10:6] */
  2716. #define WM8996_DSP2RX_EQ_B3_GAIN_MASK 0x003E /* DSP2RX_EQ_B3_GAIN - [5:1] */
  2717. #define WM8996_DSP2RX_EQ_B3_GAIN_SHIFT 1 /* DSP2RX_EQ_B3_GAIN - [5:1] */
  2718. #define WM8996_DSP2RX_EQ_B3_GAIN_WIDTH 5 /* DSP2RX_EQ_B3_GAIN - [5:1] */
  2719. #define WM8996_DSP2RX_EQ_ENA 0x0001 /* DSP2RX_EQ_ENA */
  2720. #define WM8996_DSP2RX_EQ_ENA_MASK 0x0001 /* DSP2RX_EQ_ENA */
  2721. #define WM8996_DSP2RX_EQ_ENA_SHIFT 0 /* DSP2RX_EQ_ENA */
  2722. #define WM8996_DSP2RX_EQ_ENA_WIDTH 1 /* DSP2RX_EQ_ENA */
  2723. /*
  2724. * R1409 (0x581) - DSP2 RX EQ Gains (2)
  2725. */
  2726. #define WM8996_DSP2RX_EQ_B4_GAIN_MASK 0xF800 /* DSP2RX_EQ_B4_GAIN - [15:11] */
  2727. #define WM8996_DSP2RX_EQ_B4_GAIN_SHIFT 11 /* DSP2RX_EQ_B4_GAIN - [15:11] */
  2728. #define WM8996_DSP2RX_EQ_B4_GAIN_WIDTH 5 /* DSP2RX_EQ_B4_GAIN - [15:11] */
  2729. #define WM8996_DSP2RX_EQ_B5_GAIN_MASK 0x07C0 /* DSP2RX_EQ_B5_GAIN - [10:6] */
  2730. #define WM8996_DSP2RX_EQ_B5_GAIN_SHIFT 6 /* DSP2RX_EQ_B5_GAIN - [10:6] */
  2731. #define WM8996_DSP2RX_EQ_B5_GAIN_WIDTH 5 /* DSP2RX_EQ_B5_GAIN - [10:6] */
  2732. /*
  2733. * R1410 (0x582) - DSP2 RX EQ Band 1 A
  2734. */
  2735. #define WM8996_DSP2RX_EQ_B1_A_MASK 0xFFFF /* DSP2RX_EQ_B1_A - [15:0] */
  2736. #define WM8996_DSP2RX_EQ_B1_A_SHIFT 0 /* DSP2RX_EQ_B1_A - [15:0] */
  2737. #define WM8996_DSP2RX_EQ_B1_A_WIDTH 16 /* DSP2RX_EQ_B1_A - [15:0] */
  2738. /*
  2739. * R1411 (0x583) - DSP2 RX EQ Band 1 B
  2740. */
  2741. #define WM8996_DSP2RX_EQ_B1_B_MASK 0xFFFF /* DSP2RX_EQ_B1_B - [15:0] */
  2742. #define WM8996_DSP2RX_EQ_B1_B_SHIFT 0 /* DSP2RX_EQ_B1_B - [15:0] */
  2743. #define WM8996_DSP2RX_EQ_B1_B_WIDTH 16 /* DSP2RX_EQ_B1_B - [15:0] */
  2744. /*
  2745. * R1412 (0x584) - DSP2 RX EQ Band 1 PG
  2746. */
  2747. #define WM8996_DSP2RX_EQ_B1_PG_MASK 0xFFFF /* DSP2RX_EQ_B1_PG - [15:0] */
  2748. #define WM8996_DSP2RX_EQ_B1_PG_SHIFT 0 /* DSP2RX_EQ_B1_PG - [15:0] */
  2749. #define WM8996_DSP2RX_EQ_B1_PG_WIDTH 16 /* DSP2RX_EQ_B1_PG - [15:0] */
  2750. /*
  2751. * R1413 (0x585) - DSP2 RX EQ Band 2 A
  2752. */
  2753. #define WM8996_DSP2RX_EQ_B2_A_MASK 0xFFFF /* DSP2RX_EQ_B2_A - [15:0] */
  2754. #define WM8996_DSP2RX_EQ_B2_A_SHIFT 0 /* DSP2RX_EQ_B2_A - [15:0] */
  2755. #define WM8996_DSP2RX_EQ_B2_A_WIDTH 16 /* DSP2RX_EQ_B2_A - [15:0] */
  2756. /*
  2757. * R1414 (0x586) - DSP2 RX EQ Band 2 B
  2758. */
  2759. #define WM8996_DSP2RX_EQ_B2_B_MASK 0xFFFF /* DSP2RX_EQ_B2_B - [15:0] */
  2760. #define WM8996_DSP2RX_EQ_B2_B_SHIFT 0 /* DSP2RX_EQ_B2_B - [15:0] */
  2761. #define WM8996_DSP2RX_EQ_B2_B_WIDTH 16 /* DSP2RX_EQ_B2_B - [15:0] */
  2762. /*
  2763. * R1415 (0x587) - DSP2 RX EQ Band 2 C
  2764. */
  2765. #define WM8996_DSP2RX_EQ_B2_C_MASK 0xFFFF /* DSP2RX_EQ_B2_C - [15:0] */
  2766. #define WM8996_DSP2RX_EQ_B2_C_SHIFT 0 /* DSP2RX_EQ_B2_C - [15:0] */
  2767. #define WM8996_DSP2RX_EQ_B2_C_WIDTH 16 /* DSP2RX_EQ_B2_C - [15:0] */
  2768. /*
  2769. * R1416 (0x588) - DSP2 RX EQ Band 2 PG
  2770. */
  2771. #define WM8996_DSP2RX_EQ_B2_PG_MASK 0xFFFF /* DSP2RX_EQ_B2_PG - [15:0] */
  2772. #define WM8996_DSP2RX_EQ_B2_PG_SHIFT 0 /* DSP2RX_EQ_B2_PG - [15:0] */
  2773. #define WM8996_DSP2RX_EQ_B2_PG_WIDTH 16 /* DSP2RX_EQ_B2_PG - [15:0] */
  2774. /*
  2775. * R1417 (0x589) - DSP2 RX EQ Band 3 A
  2776. */
  2777. #define WM8996_DSP2RX_EQ_B3_A_MASK 0xFFFF /* DSP2RX_EQ_B3_A - [15:0] */
  2778. #define WM8996_DSP2RX_EQ_B3_A_SHIFT 0 /* DSP2RX_EQ_B3_A - [15:0] */
  2779. #define WM8996_DSP2RX_EQ_B3_A_WIDTH 16 /* DSP2RX_EQ_B3_A - [15:0] */
  2780. /*
  2781. * R1418 (0x58A) - DSP2 RX EQ Band 3 B
  2782. */
  2783. #define WM8996_DSP2RX_EQ_B3_B_MASK 0xFFFF /* DSP2RX_EQ_B3_B - [15:0] */
  2784. #define WM8996_DSP2RX_EQ_B3_B_SHIFT 0 /* DSP2RX_EQ_B3_B - [15:0] */
  2785. #define WM8996_DSP2RX_EQ_B3_B_WIDTH 16 /* DSP2RX_EQ_B3_B - [15:0] */
  2786. /*
  2787. * R1419 (0x58B) - DSP2 RX EQ Band 3 C
  2788. */
  2789. #define WM8996_DSP2RX_EQ_B3_C_MASK 0xFFFF /* DSP2RX_EQ_B3_C - [15:0] */
  2790. #define WM8996_DSP2RX_EQ_B3_C_SHIFT 0 /* DSP2RX_EQ_B3_C - [15:0] */
  2791. #define WM8996_DSP2RX_EQ_B3_C_WIDTH 16 /* DSP2RX_EQ_B3_C - [15:0] */
  2792. /*
  2793. * R1420 (0x58C) - DSP2 RX EQ Band 3 PG
  2794. */
  2795. #define WM8996_DSP2RX_EQ_B3_PG_MASK 0xFFFF /* DSP2RX_EQ_B3_PG - [15:0] */
  2796. #define WM8996_DSP2RX_EQ_B3_PG_SHIFT 0 /* DSP2RX_EQ_B3_PG - [15:0] */
  2797. #define WM8996_DSP2RX_EQ_B3_PG_WIDTH 16 /* DSP2RX_EQ_B3_PG - [15:0] */
  2798. /*
  2799. * R1421 (0x58D) - DSP2 RX EQ Band 4 A
  2800. */
  2801. #define WM8996_DSP2RX_EQ_B4_A_MASK 0xFFFF /* DSP2RX_EQ_B4_A - [15:0] */
  2802. #define WM8996_DSP2RX_EQ_B4_A_SHIFT 0 /* DSP2RX_EQ_B4_A - [15:0] */
  2803. #define WM8996_DSP2RX_EQ_B4_A_WIDTH 16 /* DSP2RX_EQ_B4_A - [15:0] */
  2804. /*
  2805. * R1422 (0x58E) - DSP2 RX EQ Band 4 B
  2806. */
  2807. #define WM8996_DSP2RX_EQ_B4_B_MASK 0xFFFF /* DSP2RX_EQ_B4_B - [15:0] */
  2808. #define WM8996_DSP2RX_EQ_B4_B_SHIFT 0 /* DSP2RX_EQ_B4_B - [15:0] */
  2809. #define WM8996_DSP2RX_EQ_B4_B_WIDTH 16 /* DSP2RX_EQ_B4_B - [15:0] */
  2810. /*
  2811. * R1423 (0x58F) - DSP2 RX EQ Band 4 C
  2812. */
  2813. #define WM8996_DSP2RX_EQ_B4_C_MASK 0xFFFF /* DSP2RX_EQ_B4_C - [15:0] */
  2814. #define WM8996_DSP2RX_EQ_B4_C_SHIFT 0 /* DSP2RX_EQ_B4_C - [15:0] */
  2815. #define WM8996_DSP2RX_EQ_B4_C_WIDTH 16 /* DSP2RX_EQ_B4_C - [15:0] */
  2816. /*
  2817. * R1424 (0x590) - DSP2 RX EQ Band 4 PG
  2818. */
  2819. #define WM8996_DSP2RX_EQ_B4_PG_MASK 0xFFFF /* DSP2RX_EQ_B4_PG - [15:0] */
  2820. #define WM8996_DSP2RX_EQ_B4_PG_SHIFT 0 /* DSP2RX_EQ_B4_PG - [15:0] */
  2821. #define WM8996_DSP2RX_EQ_B4_PG_WIDTH 16 /* DSP2RX_EQ_B4_PG - [15:0] */
  2822. /*
  2823. * R1425 (0x591) - DSP2 RX EQ Band 5 A
  2824. */
  2825. #define WM8996_DSP2RX_EQ_B5_A_MASK 0xFFFF /* DSP2RX_EQ_B5_A - [15:0] */
  2826. #define WM8996_DSP2RX_EQ_B5_A_SHIFT 0 /* DSP2RX_EQ_B5_A - [15:0] */
  2827. #define WM8996_DSP2RX_EQ_B5_A_WIDTH 16 /* DSP2RX_EQ_B5_A - [15:0] */
  2828. /*
  2829. * R1426 (0x592) - DSP2 RX EQ Band 5 B
  2830. */
  2831. #define WM8996_DSP2RX_EQ_B5_B_MASK 0xFFFF /* DSP2RX_EQ_B5_B - [15:0] */
  2832. #define WM8996_DSP2RX_EQ_B5_B_SHIFT 0 /* DSP2RX_EQ_B5_B - [15:0] */
  2833. #define WM8996_DSP2RX_EQ_B5_B_WIDTH 16 /* DSP2RX_EQ_B5_B - [15:0] */
  2834. /*
  2835. * R1427 (0x593) - DSP2 RX EQ Band 5 PG
  2836. */
  2837. #define WM8996_DSP2RX_EQ_B5_PG_MASK 0xFFFF /* DSP2RX_EQ_B5_PG - [15:0] */
  2838. #define WM8996_DSP2RX_EQ_B5_PG_SHIFT 0 /* DSP2RX_EQ_B5_PG - [15:0] */
  2839. #define WM8996_DSP2RX_EQ_B5_PG_WIDTH 16 /* DSP2RX_EQ_B5_PG - [15:0] */
  2840. /*
  2841. * R1536 (0x600) - DAC1 Mixer Volumes
  2842. */
  2843. #define WM8996_ADCR_DAC1_VOL_MASK 0x03E0 /* ADCR_DAC1_VOL - [9:5] */
  2844. #define WM8996_ADCR_DAC1_VOL_SHIFT 5 /* ADCR_DAC1_VOL - [9:5] */
  2845. #define WM8996_ADCR_DAC1_VOL_WIDTH 5 /* ADCR_DAC1_VOL - [9:5] */
  2846. #define WM8996_ADCL_DAC1_VOL_MASK 0x001F /* ADCL_DAC1_VOL - [4:0] */
  2847. #define WM8996_ADCL_DAC1_VOL_SHIFT 0 /* ADCL_DAC1_VOL - [4:0] */
  2848. #define WM8996_ADCL_DAC1_VOL_WIDTH 5 /* ADCL_DAC1_VOL - [4:0] */
  2849. /*
  2850. * R1537 (0x601) - DAC1 Left Mixer Routing
  2851. */
  2852. #define WM8996_ADCR_TO_DAC1L 0x0020 /* ADCR_TO_DAC1L */
  2853. #define WM8996_ADCR_TO_DAC1L_MASK 0x0020 /* ADCR_TO_DAC1L */
  2854. #define WM8996_ADCR_TO_DAC1L_SHIFT 5 /* ADCR_TO_DAC1L */
  2855. #define WM8996_ADCR_TO_DAC1L_WIDTH 1 /* ADCR_TO_DAC1L */
  2856. #define WM8996_ADCL_TO_DAC1L 0x0010 /* ADCL_TO_DAC1L */
  2857. #define WM8996_ADCL_TO_DAC1L_MASK 0x0010 /* ADCL_TO_DAC1L */
  2858. #define WM8996_ADCL_TO_DAC1L_SHIFT 4 /* ADCL_TO_DAC1L */
  2859. #define WM8996_ADCL_TO_DAC1L_WIDTH 1 /* ADCL_TO_DAC1L */
  2860. #define WM8996_DSP2RXL_TO_DAC1L 0x0002 /* DSP2RXL_TO_DAC1L */
  2861. #define WM8996_DSP2RXL_TO_DAC1L_MASK 0x0002 /* DSP2RXL_TO_DAC1L */
  2862. #define WM8996_DSP2RXL_TO_DAC1L_SHIFT 1 /* DSP2RXL_TO_DAC1L */
  2863. #define WM8996_DSP2RXL_TO_DAC1L_WIDTH 1 /* DSP2RXL_TO_DAC1L */
  2864. #define WM8996_DSP1RXL_TO_DAC1L 0x0001 /* DSP1RXL_TO_DAC1L */
  2865. #define WM8996_DSP1RXL_TO_DAC1L_MASK 0x0001 /* DSP1RXL_TO_DAC1L */
  2866. #define WM8996_DSP1RXL_TO_DAC1L_SHIFT 0 /* DSP1RXL_TO_DAC1L */
  2867. #define WM8996_DSP1RXL_TO_DAC1L_WIDTH 1 /* DSP1RXL_TO_DAC1L */
  2868. /*
  2869. * R1538 (0x602) - DAC1 Right Mixer Routing
  2870. */
  2871. #define WM8996_ADCR_TO_DAC1R 0x0020 /* ADCR_TO_DAC1R */
  2872. #define WM8996_ADCR_TO_DAC1R_MASK 0x0020 /* ADCR_TO_DAC1R */
  2873. #define WM8996_ADCR_TO_DAC1R_SHIFT 5 /* ADCR_TO_DAC1R */
  2874. #define WM8996_ADCR_TO_DAC1R_WIDTH 1 /* ADCR_TO_DAC1R */
  2875. #define WM8996_ADCL_TO_DAC1R 0x0010 /* ADCL_TO_DAC1R */
  2876. #define WM8996_ADCL_TO_DAC1R_MASK 0x0010 /* ADCL_TO_DAC1R */
  2877. #define WM8996_ADCL_TO_DAC1R_SHIFT 4 /* ADCL_TO_DAC1R */
  2878. #define WM8996_ADCL_TO_DAC1R_WIDTH 1 /* ADCL_TO_DAC1R */
  2879. #define WM8996_DSP2RXR_TO_DAC1R 0x0002 /* DSP2RXR_TO_DAC1R */
  2880. #define WM8996_DSP2RXR_TO_DAC1R_MASK 0x0002 /* DSP2RXR_TO_DAC1R */
  2881. #define WM8996_DSP2RXR_TO_DAC1R_SHIFT 1 /* DSP2RXR_TO_DAC1R */
  2882. #define WM8996_DSP2RXR_TO_DAC1R_WIDTH 1 /* DSP2RXR_TO_DAC1R */
  2883. #define WM8996_DSP1RXR_TO_DAC1R 0x0001 /* DSP1RXR_TO_DAC1R */
  2884. #define WM8996_DSP1RXR_TO_DAC1R_MASK 0x0001 /* DSP1RXR_TO_DAC1R */
  2885. #define WM8996_DSP1RXR_TO_DAC1R_SHIFT 0 /* DSP1RXR_TO_DAC1R */
  2886. #define WM8996_DSP1RXR_TO_DAC1R_WIDTH 1 /* DSP1RXR_TO_DAC1R */
  2887. /*
  2888. * R1539 (0x603) - DAC2 Mixer Volumes
  2889. */
  2890. #define WM8996_ADCR_DAC2_VOL_MASK 0x03E0 /* ADCR_DAC2_VOL - [9:5] */
  2891. #define WM8996_ADCR_DAC2_VOL_SHIFT 5 /* ADCR_DAC2_VOL - [9:5] */
  2892. #define WM8996_ADCR_DAC2_VOL_WIDTH 5 /* ADCR_DAC2_VOL - [9:5] */
  2893. #define WM8996_ADCL_DAC2_VOL_MASK 0x001F /* ADCL_DAC2_VOL - [4:0] */
  2894. #define WM8996_ADCL_DAC2_VOL_SHIFT 0 /* ADCL_DAC2_VOL - [4:0] */
  2895. #define WM8996_ADCL_DAC2_VOL_WIDTH 5 /* ADCL_DAC2_VOL - [4:0] */
  2896. /*
  2897. * R1540 (0x604) - DAC2 Left Mixer Routing
  2898. */
  2899. #define WM8996_ADCR_TO_DAC2L 0x0020 /* ADCR_TO_DAC2L */
  2900. #define WM8996_ADCR_TO_DAC2L_MASK 0x0020 /* ADCR_TO_DAC2L */
  2901. #define WM8996_ADCR_TO_DAC2L_SHIFT 5 /* ADCR_TO_DAC2L */
  2902. #define WM8996_ADCR_TO_DAC2L_WIDTH 1 /* ADCR_TO_DAC2L */
  2903. #define WM8996_ADCL_TO_DAC2L 0x0010 /* ADCL_TO_DAC2L */
  2904. #define WM8996_ADCL_TO_DAC2L_MASK 0x0010 /* ADCL_TO_DAC2L */
  2905. #define WM8996_ADCL_TO_DAC2L_SHIFT 4 /* ADCL_TO_DAC2L */
  2906. #define WM8996_ADCL_TO_DAC2L_WIDTH 1 /* ADCL_TO_DAC2L */
  2907. #define WM8996_DSP2RXL_TO_DAC2L 0x0002 /* DSP2RXL_TO_DAC2L */
  2908. #define WM8996_DSP2RXL_TO_DAC2L_MASK 0x0002 /* DSP2RXL_TO_DAC2L */
  2909. #define WM8996_DSP2RXL_TO_DAC2L_SHIFT 1 /* DSP2RXL_TO_DAC2L */
  2910. #define WM8996_DSP2RXL_TO_DAC2L_WIDTH 1 /* DSP2RXL_TO_DAC2L */
  2911. #define WM8996_DSP1RXL_TO_DAC2L 0x0001 /* DSP1RXL_TO_DAC2L */
  2912. #define WM8996_DSP1RXL_TO_DAC2L_MASK 0x0001 /* DSP1RXL_TO_DAC2L */
  2913. #define WM8996_DSP1RXL_TO_DAC2L_SHIFT 0 /* DSP1RXL_TO_DAC2L */
  2914. #define WM8996_DSP1RXL_TO_DAC2L_WIDTH 1 /* DSP1RXL_TO_DAC2L */
  2915. /*
  2916. * R1541 (0x605) - DAC2 Right Mixer Routing
  2917. */
  2918. #define WM8996_ADCR_TO_DAC2R 0x0020 /* ADCR_TO_DAC2R */
  2919. #define WM8996_ADCR_TO_DAC2R_MASK 0x0020 /* ADCR_TO_DAC2R */
  2920. #define WM8996_ADCR_TO_DAC2R_SHIFT 5 /* ADCR_TO_DAC2R */
  2921. #define WM8996_ADCR_TO_DAC2R_WIDTH 1 /* ADCR_TO_DAC2R */
  2922. #define WM8996_ADCL_TO_DAC2R 0x0010 /* ADCL_TO_DAC2R */
  2923. #define WM8996_ADCL_TO_DAC2R_MASK 0x0010 /* ADCL_TO_DAC2R */
  2924. #define WM8996_ADCL_TO_DAC2R_SHIFT 4 /* ADCL_TO_DAC2R */
  2925. #define WM8996_ADCL_TO_DAC2R_WIDTH 1 /* ADCL_TO_DAC2R */
  2926. #define WM8996_DSP2RXR_TO_DAC2R 0x0002 /* DSP2RXR_TO_DAC2R */
  2927. #define WM8996_DSP2RXR_TO_DAC2R_MASK 0x0002 /* DSP2RXR_TO_DAC2R */
  2928. #define WM8996_DSP2RXR_TO_DAC2R_SHIFT 1 /* DSP2RXR_TO_DAC2R */
  2929. #define WM8996_DSP2RXR_TO_DAC2R_WIDTH 1 /* DSP2RXR_TO_DAC2R */
  2930. #define WM8996_DSP1RXR_TO_DAC2R 0x0001 /* DSP1RXR_TO_DAC2R */
  2931. #define WM8996_DSP1RXR_TO_DAC2R_MASK 0x0001 /* DSP1RXR_TO_DAC2R */
  2932. #define WM8996_DSP1RXR_TO_DAC2R_SHIFT 0 /* DSP1RXR_TO_DAC2R */
  2933. #define WM8996_DSP1RXR_TO_DAC2R_WIDTH 1 /* DSP1RXR_TO_DAC2R */
  2934. /*
  2935. * R1542 (0x606) - DSP1 TX Left Mixer Routing
  2936. */
  2937. #define WM8996_ADC1L_TO_DSP1TXL 0x0002 /* ADC1L_TO_DSP1TXL */
  2938. #define WM8996_ADC1L_TO_DSP1TXL_MASK 0x0002 /* ADC1L_TO_DSP1TXL */
  2939. #define WM8996_ADC1L_TO_DSP1TXL_SHIFT 1 /* ADC1L_TO_DSP1TXL */
  2940. #define WM8996_ADC1L_TO_DSP1TXL_WIDTH 1 /* ADC1L_TO_DSP1TXL */
  2941. #define WM8996_DACL_TO_DSP1TXL 0x0001 /* DACL_TO_DSP1TXL */
  2942. #define WM8996_DACL_TO_DSP1TXL_MASK 0x0001 /* DACL_TO_DSP1TXL */
  2943. #define WM8996_DACL_TO_DSP1TXL_SHIFT 0 /* DACL_TO_DSP1TXL */
  2944. #define WM8996_DACL_TO_DSP1TXL_WIDTH 1 /* DACL_TO_DSP1TXL */
  2945. /*
  2946. * R1543 (0x607) - DSP1 TX Right Mixer Routing
  2947. */
  2948. #define WM8996_ADC1R_TO_DSP1TXR 0x0002 /* ADC1R_TO_DSP1TXR */
  2949. #define WM8996_ADC1R_TO_DSP1TXR_MASK 0x0002 /* ADC1R_TO_DSP1TXR */
  2950. #define WM8996_ADC1R_TO_DSP1TXR_SHIFT 1 /* ADC1R_TO_DSP1TXR */
  2951. #define WM8996_ADC1R_TO_DSP1TXR_WIDTH 1 /* ADC1R_TO_DSP1TXR */
  2952. #define WM8996_DACR_TO_DSP1TXR 0x0001 /* DACR_TO_DSP1TXR */
  2953. #define WM8996_DACR_TO_DSP1TXR_MASK 0x0001 /* DACR_TO_DSP1TXR */
  2954. #define WM8996_DACR_TO_DSP1TXR_SHIFT 0 /* DACR_TO_DSP1TXR */
  2955. #define WM8996_DACR_TO_DSP1TXR_WIDTH 1 /* DACR_TO_DSP1TXR */
  2956. /*
  2957. * R1544 (0x608) - DSP2 TX Left Mixer Routing
  2958. */
  2959. #define WM8996_ADC2L_TO_DSP2TXL 0x0002 /* ADC2L_TO_DSP2TXL */
  2960. #define WM8996_ADC2L_TO_DSP2TXL_MASK 0x0002 /* ADC2L_TO_DSP2TXL */
  2961. #define WM8996_ADC2L_TO_DSP2TXL_SHIFT 1 /* ADC2L_TO_DSP2TXL */
  2962. #define WM8996_ADC2L_TO_DSP2TXL_WIDTH 1 /* ADC2L_TO_DSP2TXL */
  2963. #define WM8996_DACL_TO_DSP2TXL 0x0001 /* DACL_TO_DSP2TXL */
  2964. #define WM8996_DACL_TO_DSP2TXL_MASK 0x0001 /* DACL_TO_DSP2TXL */
  2965. #define WM8996_DACL_TO_DSP2TXL_SHIFT 0 /* DACL_TO_DSP2TXL */
  2966. #define WM8996_DACL_TO_DSP2TXL_WIDTH 1 /* DACL_TO_DSP2TXL */
  2967. /*
  2968. * R1545 (0x609) - DSP2 TX Right Mixer Routing
  2969. */
  2970. #define WM8996_ADC2R_TO_DSP2TXR 0x0002 /* ADC2R_TO_DSP2TXR */
  2971. #define WM8996_ADC2R_TO_DSP2TXR_MASK 0x0002 /* ADC2R_TO_DSP2TXR */
  2972. #define WM8996_ADC2R_TO_DSP2TXR_SHIFT 1 /* ADC2R_TO_DSP2TXR */
  2973. #define WM8996_ADC2R_TO_DSP2TXR_WIDTH 1 /* ADC2R_TO_DSP2TXR */
  2974. #define WM8996_DACR_TO_DSP2TXR 0x0001 /* DACR_TO_DSP2TXR */
  2975. #define WM8996_DACR_TO_DSP2TXR_MASK 0x0001 /* DACR_TO_DSP2TXR */
  2976. #define WM8996_DACR_TO_DSP2TXR_SHIFT 0 /* DACR_TO_DSP2TXR */
  2977. #define WM8996_DACR_TO_DSP2TXR_WIDTH 1 /* DACR_TO_DSP2TXR */
  2978. /*
  2979. * R1546 (0x60A) - DSP TX Mixer Select
  2980. */
  2981. #define WM8996_DAC_TO_DSPTX_SRC 0x0001 /* DAC_TO_DSPTX_SRC */
  2982. #define WM8996_DAC_TO_DSPTX_SRC_MASK 0x0001 /* DAC_TO_DSPTX_SRC */
  2983. #define WM8996_DAC_TO_DSPTX_SRC_SHIFT 0 /* DAC_TO_DSPTX_SRC */
  2984. #define WM8996_DAC_TO_DSPTX_SRC_WIDTH 1 /* DAC_TO_DSPTX_SRC */
  2985. /*
  2986. * R1552 (0x610) - DAC Softmute
  2987. */
  2988. #define WM8996_DAC_SOFTMUTEMODE 0x0002 /* DAC_SOFTMUTEMODE */
  2989. #define WM8996_DAC_SOFTMUTEMODE_MASK 0x0002 /* DAC_SOFTMUTEMODE */
  2990. #define WM8996_DAC_SOFTMUTEMODE_SHIFT 1 /* DAC_SOFTMUTEMODE */
  2991. #define WM8996_DAC_SOFTMUTEMODE_WIDTH 1 /* DAC_SOFTMUTEMODE */
  2992. #define WM8996_DAC_MUTERATE 0x0001 /* DAC_MUTERATE */
  2993. #define WM8996_DAC_MUTERATE_MASK 0x0001 /* DAC_MUTERATE */
  2994. #define WM8996_DAC_MUTERATE_SHIFT 0 /* DAC_MUTERATE */
  2995. #define WM8996_DAC_MUTERATE_WIDTH 1 /* DAC_MUTERATE */
  2996. /*
  2997. * R1568 (0x620) - Oversampling
  2998. */
  2999. #define WM8996_SPK_OSR128 0x0008 /* SPK_OSR128 */
  3000. #define WM8996_SPK_OSR128_MASK 0x0008 /* SPK_OSR128 */
  3001. #define WM8996_SPK_OSR128_SHIFT 3 /* SPK_OSR128 */
  3002. #define WM8996_SPK_OSR128_WIDTH 1 /* SPK_OSR128 */
  3003. #define WM8996_DMIC_OSR64 0x0004 /* DMIC_OSR64 */
  3004. #define WM8996_DMIC_OSR64_MASK 0x0004 /* DMIC_OSR64 */
  3005. #define WM8996_DMIC_OSR64_SHIFT 2 /* DMIC_OSR64 */
  3006. #define WM8996_DMIC_OSR64_WIDTH 1 /* DMIC_OSR64 */
  3007. #define WM8996_ADC_OSR128 0x0002 /* ADC_OSR128 */
  3008. #define WM8996_ADC_OSR128_MASK 0x0002 /* ADC_OSR128 */
  3009. #define WM8996_ADC_OSR128_SHIFT 1 /* ADC_OSR128 */
  3010. #define WM8996_ADC_OSR128_WIDTH 1 /* ADC_OSR128 */
  3011. #define WM8996_DAC_OSR128 0x0001 /* DAC_OSR128 */
  3012. #define WM8996_DAC_OSR128_MASK 0x0001 /* DAC_OSR128 */
  3013. #define WM8996_DAC_OSR128_SHIFT 0 /* DAC_OSR128 */
  3014. #define WM8996_DAC_OSR128_WIDTH 1 /* DAC_OSR128 */
  3015. /*
  3016. * R1569 (0x621) - Sidetone
  3017. */
  3018. #define WM8996_ST_LPF 0x1000 /* ST_LPF */
  3019. #define WM8996_ST_LPF_MASK 0x1000 /* ST_LPF */
  3020. #define WM8996_ST_LPF_SHIFT 12 /* ST_LPF */
  3021. #define WM8996_ST_LPF_WIDTH 1 /* ST_LPF */
  3022. #define WM8996_ST_HPF_CUT_MASK 0x0380 /* ST_HPF_CUT - [9:7] */
  3023. #define WM8996_ST_HPF_CUT_SHIFT 7 /* ST_HPF_CUT - [9:7] */
  3024. #define WM8996_ST_HPF_CUT_WIDTH 3 /* ST_HPF_CUT - [9:7] */
  3025. #define WM8996_ST_HPF 0x0040 /* ST_HPF */
  3026. #define WM8996_ST_HPF_MASK 0x0040 /* ST_HPF */
  3027. #define WM8996_ST_HPF_SHIFT 6 /* ST_HPF */
  3028. #define WM8996_ST_HPF_WIDTH 1 /* ST_HPF */
  3029. #define WM8996_STR_SEL 0x0002 /* STR_SEL */
  3030. #define WM8996_STR_SEL_MASK 0x0002 /* STR_SEL */
  3031. #define WM8996_STR_SEL_SHIFT 1 /* STR_SEL */
  3032. #define WM8996_STR_SEL_WIDTH 1 /* STR_SEL */
  3033. #define WM8996_STL_SEL 0x0001 /* STL_SEL */
  3034. #define WM8996_STL_SEL_MASK 0x0001 /* STL_SEL */
  3035. #define WM8996_STL_SEL_SHIFT 0 /* STL_SEL */
  3036. #define WM8996_STL_SEL_WIDTH 1 /* STL_SEL */
  3037. /*
  3038. * R1792 (0x700) - GPIO 1
  3039. */
  3040. #define WM8996_GP1_DIR 0x8000 /* GP1_DIR */
  3041. #define WM8996_GP1_DIR_MASK 0x8000 /* GP1_DIR */
  3042. #define WM8996_GP1_DIR_SHIFT 15 /* GP1_DIR */
  3043. #define WM8996_GP1_DIR_WIDTH 1 /* GP1_DIR */
  3044. #define WM8996_GP1_PU 0x4000 /* GP1_PU */
  3045. #define WM8996_GP1_PU_MASK 0x4000 /* GP1_PU */
  3046. #define WM8996_GP1_PU_SHIFT 14 /* GP1_PU */
  3047. #define WM8996_GP1_PU_WIDTH 1 /* GP1_PU */
  3048. #define WM8996_GP1_PD 0x2000 /* GP1_PD */
  3049. #define WM8996_GP1_PD_MASK 0x2000 /* GP1_PD */
  3050. #define WM8996_GP1_PD_SHIFT 13 /* GP1_PD */
  3051. #define WM8996_GP1_PD_WIDTH 1 /* GP1_PD */
  3052. #define WM8996_GP1_POL 0x0400 /* GP1_POL */
  3053. #define WM8996_GP1_POL_MASK 0x0400 /* GP1_POL */
  3054. #define WM8996_GP1_POL_SHIFT 10 /* GP1_POL */
  3055. #define WM8996_GP1_POL_WIDTH 1 /* GP1_POL */
  3056. #define WM8996_GP1_OP_CFG 0x0200 /* GP1_OP_CFG */
  3057. #define WM8996_GP1_OP_CFG_MASK 0x0200 /* GP1_OP_CFG */
  3058. #define WM8996_GP1_OP_CFG_SHIFT 9 /* GP1_OP_CFG */
  3059. #define WM8996_GP1_OP_CFG_WIDTH 1 /* GP1_OP_CFG */
  3060. #define WM8996_GP1_DB 0x0100 /* GP1_DB */
  3061. #define WM8996_GP1_DB_MASK 0x0100 /* GP1_DB */
  3062. #define WM8996_GP1_DB_SHIFT 8 /* GP1_DB */
  3063. #define WM8996_GP1_DB_WIDTH 1 /* GP1_DB */
  3064. #define WM8996_GP1_LVL 0x0040 /* GP1_LVL */
  3065. #define WM8996_GP1_LVL_MASK 0x0040 /* GP1_LVL */
  3066. #define WM8996_GP1_LVL_SHIFT 6 /* GP1_LVL */
  3067. #define WM8996_GP1_LVL_WIDTH 1 /* GP1_LVL */
  3068. #define WM8996_GP1_FN_MASK 0x000F /* GP1_FN - [3:0] */
  3069. #define WM8996_GP1_FN_SHIFT 0 /* GP1_FN - [3:0] */
  3070. #define WM8996_GP1_FN_WIDTH 4 /* GP1_FN - [3:0] */
  3071. /*
  3072. * R1793 (0x701) - GPIO 2
  3073. */
  3074. #define WM8996_GP2_DIR 0x8000 /* GP2_DIR */
  3075. #define WM8996_GP2_DIR_MASK 0x8000 /* GP2_DIR */
  3076. #define WM8996_GP2_DIR_SHIFT 15 /* GP2_DIR */
  3077. #define WM8996_GP2_DIR_WIDTH 1 /* GP2_DIR */
  3078. #define WM8996_GP2_PU 0x4000 /* GP2_PU */
  3079. #define WM8996_GP2_PU_MASK 0x4000 /* GP2_PU */
  3080. #define WM8996_GP2_PU_SHIFT 14 /* GP2_PU */
  3081. #define WM8996_GP2_PU_WIDTH 1 /* GP2_PU */
  3082. #define WM8996_GP2_PD 0x2000 /* GP2_PD */
  3083. #define WM8996_GP2_PD_MASK 0x2000 /* GP2_PD */
  3084. #define WM8996_GP2_PD_SHIFT 13 /* GP2_PD */
  3085. #define WM8996_GP2_PD_WIDTH 1 /* GP2_PD */
  3086. #define WM8996_GP2_POL 0x0400 /* GP2_POL */
  3087. #define WM8996_GP2_POL_MASK 0x0400 /* GP2_POL */
  3088. #define WM8996_GP2_POL_SHIFT 10 /* GP2_POL */
  3089. #define WM8996_GP2_POL_WIDTH 1 /* GP2_POL */
  3090. #define WM8996_GP2_OP_CFG 0x0200 /* GP2_OP_CFG */
  3091. #define WM8996_GP2_OP_CFG_MASK 0x0200 /* GP2_OP_CFG */
  3092. #define WM8996_GP2_OP_CFG_SHIFT 9 /* GP2_OP_CFG */
  3093. #define WM8996_GP2_OP_CFG_WIDTH 1 /* GP2_OP_CFG */
  3094. #define WM8996_GP2_DB 0x0100 /* GP2_DB */
  3095. #define WM8996_GP2_DB_MASK 0x0100 /* GP2_DB */
  3096. #define WM8996_GP2_DB_SHIFT 8 /* GP2_DB */
  3097. #define WM8996_GP2_DB_WIDTH 1 /* GP2_DB */
  3098. #define WM8996_GP2_LVL 0x0040 /* GP2_LVL */
  3099. #define WM8996_GP2_LVL_MASK 0x0040 /* GP2_LVL */
  3100. #define WM8996_GP2_LVL_SHIFT 6 /* GP2_LVL */
  3101. #define WM8996_GP2_LVL_WIDTH 1 /* GP2_LVL */
  3102. #define WM8996_GP2_FN_MASK 0x000F /* GP2_FN - [3:0] */
  3103. #define WM8996_GP2_FN_SHIFT 0 /* GP2_FN - [3:0] */
  3104. #define WM8996_GP2_FN_WIDTH 4 /* GP2_FN - [3:0] */
  3105. /*
  3106. * R1794 (0x702) - GPIO 3
  3107. */
  3108. #define WM8996_GP3_DIR 0x8000 /* GP3_DIR */
  3109. #define WM8996_GP3_DIR_MASK 0x8000 /* GP3_DIR */
  3110. #define WM8996_GP3_DIR_SHIFT 15 /* GP3_DIR */
  3111. #define WM8996_GP3_DIR_WIDTH 1 /* GP3_DIR */
  3112. #define WM8996_GP3_PU 0x4000 /* GP3_PU */
  3113. #define WM8996_GP3_PU_MASK 0x4000 /* GP3_PU */
  3114. #define WM8996_GP3_PU_SHIFT 14 /* GP3_PU */
  3115. #define WM8996_GP3_PU_WIDTH 1 /* GP3_PU */
  3116. #define WM8996_GP3_PD 0x2000 /* GP3_PD */
  3117. #define WM8996_GP3_PD_MASK 0x2000 /* GP3_PD */
  3118. #define WM8996_GP3_PD_SHIFT 13 /* GP3_PD */
  3119. #define WM8996_GP3_PD_WIDTH 1 /* GP3_PD */
  3120. #define WM8996_GP3_POL 0x0400 /* GP3_POL */
  3121. #define WM8996_GP3_POL_MASK 0x0400 /* GP3_POL */
  3122. #define WM8996_GP3_POL_SHIFT 10 /* GP3_POL */
  3123. #define WM8996_GP3_POL_WIDTH 1 /* GP3_POL */
  3124. #define WM8996_GP3_OP_CFG 0x0200 /* GP3_OP_CFG */
  3125. #define WM8996_GP3_OP_CFG_MASK 0x0200 /* GP3_OP_CFG */
  3126. #define WM8996_GP3_OP_CFG_SHIFT 9 /* GP3_OP_CFG */
  3127. #define WM8996_GP3_OP_CFG_WIDTH 1 /* GP3_OP_CFG */
  3128. #define WM8996_GP3_DB 0x0100 /* GP3_DB */
  3129. #define WM8996_GP3_DB_MASK 0x0100 /* GP3_DB */
  3130. #define WM8996_GP3_DB_SHIFT 8 /* GP3_DB */
  3131. #define WM8996_GP3_DB_WIDTH 1 /* GP3_DB */
  3132. #define WM8996_GP3_LVL 0x0040 /* GP3_LVL */
  3133. #define WM8996_GP3_LVL_MASK 0x0040 /* GP3_LVL */
  3134. #define WM8996_GP3_LVL_SHIFT 6 /* GP3_LVL */
  3135. #define WM8996_GP3_LVL_WIDTH 1 /* GP3_LVL */
  3136. #define WM8996_GP3_FN_MASK 0x000F /* GP3_FN - [3:0] */
  3137. #define WM8996_GP3_FN_SHIFT 0 /* GP3_FN - [3:0] */
  3138. #define WM8996_GP3_FN_WIDTH 4 /* GP3_FN - [3:0] */
  3139. /*
  3140. * R1795 (0x703) - GPIO 4
  3141. */
  3142. #define WM8996_GP4_DIR 0x8000 /* GP4_DIR */
  3143. #define WM8996_GP4_DIR_MASK 0x8000 /* GP4_DIR */
  3144. #define WM8996_GP4_DIR_SHIFT 15 /* GP4_DIR */
  3145. #define WM8996_GP4_DIR_WIDTH 1 /* GP4_DIR */
  3146. #define WM8996_GP4_PU 0x4000 /* GP4_PU */
  3147. #define WM8996_GP4_PU_MASK 0x4000 /* GP4_PU */
  3148. #define WM8996_GP4_PU_SHIFT 14 /* GP4_PU */
  3149. #define WM8996_GP4_PU_WIDTH 1 /* GP4_PU */
  3150. #define WM8996_GP4_PD 0x2000 /* GP4_PD */
  3151. #define WM8996_GP4_PD_MASK 0x2000 /* GP4_PD */
  3152. #define WM8996_GP4_PD_SHIFT 13 /* GP4_PD */
  3153. #define WM8996_GP4_PD_WIDTH 1 /* GP4_PD */
  3154. #define WM8996_GP4_POL 0x0400 /* GP4_POL */
  3155. #define WM8996_GP4_POL_MASK 0x0400 /* GP4_POL */
  3156. #define WM8996_GP4_POL_SHIFT 10 /* GP4_POL */
  3157. #define WM8996_GP4_POL_WIDTH 1 /* GP4_POL */
  3158. #define WM8996_GP4_OP_CFG 0x0200 /* GP4_OP_CFG */
  3159. #define WM8996_GP4_OP_CFG_MASK 0x0200 /* GP4_OP_CFG */
  3160. #define WM8996_GP4_OP_CFG_SHIFT 9 /* GP4_OP_CFG */
  3161. #define WM8996_GP4_OP_CFG_WIDTH 1 /* GP4_OP_CFG */
  3162. #define WM8996_GP4_DB 0x0100 /* GP4_DB */
  3163. #define WM8996_GP4_DB_MASK 0x0100 /* GP4_DB */
  3164. #define WM8996_GP4_DB_SHIFT 8 /* GP4_DB */
  3165. #define WM8996_GP4_DB_WIDTH 1 /* GP4_DB */
  3166. #define WM8996_GP4_LVL 0x0040 /* GP4_LVL */
  3167. #define WM8996_GP4_LVL_MASK 0x0040 /* GP4_LVL */
  3168. #define WM8996_GP4_LVL_SHIFT 6 /* GP4_LVL */
  3169. #define WM8996_GP4_LVL_WIDTH 1 /* GP4_LVL */
  3170. #define WM8996_GP4_FN_MASK 0x000F /* GP4_FN - [3:0] */
  3171. #define WM8996_GP4_FN_SHIFT 0 /* GP4_FN - [3:0] */
  3172. #define WM8996_GP4_FN_WIDTH 4 /* GP4_FN - [3:0] */
  3173. /*
  3174. * R1796 (0x704) - GPIO 5
  3175. */
  3176. #define WM8996_GP5_DIR 0x8000 /* GP5_DIR */
  3177. #define WM8996_GP5_DIR_MASK 0x8000 /* GP5_DIR */
  3178. #define WM8996_GP5_DIR_SHIFT 15 /* GP5_DIR */
  3179. #define WM8996_GP5_DIR_WIDTH 1 /* GP5_DIR */
  3180. #define WM8996_GP5_PU 0x4000 /* GP5_PU */
  3181. #define WM8996_GP5_PU_MASK 0x4000 /* GP5_PU */
  3182. #define WM8996_GP5_PU_SHIFT 14 /* GP5_PU */
  3183. #define WM8996_GP5_PU_WIDTH 1 /* GP5_PU */
  3184. #define WM8996_GP5_PD 0x2000 /* GP5_PD */
  3185. #define WM8996_GP5_PD_MASK 0x2000 /* GP5_PD */
  3186. #define WM8996_GP5_PD_SHIFT 13 /* GP5_PD */
  3187. #define WM8996_GP5_PD_WIDTH 1 /* GP5_PD */
  3188. #define WM8996_GP5_POL 0x0400 /* GP5_POL */
  3189. #define WM8996_GP5_POL_MASK 0x0400 /* GP5_POL */
  3190. #define WM8996_GP5_POL_SHIFT 10 /* GP5_POL */
  3191. #define WM8996_GP5_POL_WIDTH 1 /* GP5_POL */
  3192. #define WM8996_GP5_OP_CFG 0x0200 /* GP5_OP_CFG */
  3193. #define WM8996_GP5_OP_CFG_MASK 0x0200 /* GP5_OP_CFG */
  3194. #define WM8996_GP5_OP_CFG_SHIFT 9 /* GP5_OP_CFG */
  3195. #define WM8996_GP5_OP_CFG_WIDTH 1 /* GP5_OP_CFG */
  3196. #define WM8996_GP5_DB 0x0100 /* GP5_DB */
  3197. #define WM8996_GP5_DB_MASK 0x0100 /* GP5_DB */
  3198. #define WM8996_GP5_DB_SHIFT 8 /* GP5_DB */
  3199. #define WM8996_GP5_DB_WIDTH 1 /* GP5_DB */
  3200. #define WM8996_GP5_LVL 0x0040 /* GP5_LVL */
  3201. #define WM8996_GP5_LVL_MASK 0x0040 /* GP5_LVL */
  3202. #define WM8996_GP5_LVL_SHIFT 6 /* GP5_LVL */
  3203. #define WM8996_GP5_LVL_WIDTH 1 /* GP5_LVL */
  3204. #define WM8996_GP5_FN_MASK 0x000F /* GP5_FN - [3:0] */
  3205. #define WM8996_GP5_FN_SHIFT 0 /* GP5_FN - [3:0] */
  3206. #define WM8996_GP5_FN_WIDTH 4 /* GP5_FN - [3:0] */
  3207. /*
  3208. * R1824 (0x720) - Pull Control (1)
  3209. */
  3210. #define WM8996_DMICDAT2_PD 0x1000 /* DMICDAT2_PD */
  3211. #define WM8996_DMICDAT2_PD_MASK 0x1000 /* DMICDAT2_PD */
  3212. #define WM8996_DMICDAT2_PD_SHIFT 12 /* DMICDAT2_PD */
  3213. #define WM8996_DMICDAT2_PD_WIDTH 1 /* DMICDAT2_PD */
  3214. #define WM8996_DMICDAT1_PD 0x0400 /* DMICDAT1_PD */
  3215. #define WM8996_DMICDAT1_PD_MASK 0x0400 /* DMICDAT1_PD */
  3216. #define WM8996_DMICDAT1_PD_SHIFT 10 /* DMICDAT1_PD */
  3217. #define WM8996_DMICDAT1_PD_WIDTH 1 /* DMICDAT1_PD */
  3218. #define WM8996_MCLK2_PU 0x0200 /* MCLK2_PU */
  3219. #define WM8996_MCLK2_PU_MASK 0x0200 /* MCLK2_PU */
  3220. #define WM8996_MCLK2_PU_SHIFT 9 /* MCLK2_PU */
  3221. #define WM8996_MCLK2_PU_WIDTH 1 /* MCLK2_PU */
  3222. #define WM8996_MCLK2_PD 0x0100 /* MCLK2_PD */
  3223. #define WM8996_MCLK2_PD_MASK 0x0100 /* MCLK2_PD */
  3224. #define WM8996_MCLK2_PD_SHIFT 8 /* MCLK2_PD */
  3225. #define WM8996_MCLK2_PD_WIDTH 1 /* MCLK2_PD */
  3226. #define WM8996_MCLK1_PU 0x0080 /* MCLK1_PU */
  3227. #define WM8996_MCLK1_PU_MASK 0x0080 /* MCLK1_PU */
  3228. #define WM8996_MCLK1_PU_SHIFT 7 /* MCLK1_PU */
  3229. #define WM8996_MCLK1_PU_WIDTH 1 /* MCLK1_PU */
  3230. #define WM8996_MCLK1_PD 0x0040 /* MCLK1_PD */
  3231. #define WM8996_MCLK1_PD_MASK 0x0040 /* MCLK1_PD */
  3232. #define WM8996_MCLK1_PD_SHIFT 6 /* MCLK1_PD */
  3233. #define WM8996_MCLK1_PD_WIDTH 1 /* MCLK1_PD */
  3234. #define WM8996_DACDAT1_PU 0x0020 /* DACDAT1_PU */
  3235. #define WM8996_DACDAT1_PU_MASK 0x0020 /* DACDAT1_PU */
  3236. #define WM8996_DACDAT1_PU_SHIFT 5 /* DACDAT1_PU */
  3237. #define WM8996_DACDAT1_PU_WIDTH 1 /* DACDAT1_PU */
  3238. #define WM8996_DACDAT1_PD 0x0010 /* DACDAT1_PD */
  3239. #define WM8996_DACDAT1_PD_MASK 0x0010 /* DACDAT1_PD */
  3240. #define WM8996_DACDAT1_PD_SHIFT 4 /* DACDAT1_PD */
  3241. #define WM8996_DACDAT1_PD_WIDTH 1 /* DACDAT1_PD */
  3242. #define WM8996_DACLRCLK1_PU 0x0008 /* DACLRCLK1_PU */
  3243. #define WM8996_DACLRCLK1_PU_MASK 0x0008 /* DACLRCLK1_PU */
  3244. #define WM8996_DACLRCLK1_PU_SHIFT 3 /* DACLRCLK1_PU */
  3245. #define WM8996_DACLRCLK1_PU_WIDTH 1 /* DACLRCLK1_PU */
  3246. #define WM8996_DACLRCLK1_PD 0x0004 /* DACLRCLK1_PD */
  3247. #define WM8996_DACLRCLK1_PD_MASK 0x0004 /* DACLRCLK1_PD */
  3248. #define WM8996_DACLRCLK1_PD_SHIFT 2 /* DACLRCLK1_PD */
  3249. #define WM8996_DACLRCLK1_PD_WIDTH 1 /* DACLRCLK1_PD */
  3250. #define WM8996_BCLK1_PU 0x0002 /* BCLK1_PU */
  3251. #define WM8996_BCLK1_PU_MASK 0x0002 /* BCLK1_PU */
  3252. #define WM8996_BCLK1_PU_SHIFT 1 /* BCLK1_PU */
  3253. #define WM8996_BCLK1_PU_WIDTH 1 /* BCLK1_PU */
  3254. #define WM8996_BCLK1_PD 0x0001 /* BCLK1_PD */
  3255. #define WM8996_BCLK1_PD_MASK 0x0001 /* BCLK1_PD */
  3256. #define WM8996_BCLK1_PD_SHIFT 0 /* BCLK1_PD */
  3257. #define WM8996_BCLK1_PD_WIDTH 1 /* BCLK1_PD */
  3258. /*
  3259. * R1825 (0x721) - Pull Control (2)
  3260. */
  3261. #define WM8996_LDO1ENA_PD 0x0100 /* LDO1ENA_PD */
  3262. #define WM8996_LDO1ENA_PD_MASK 0x0100 /* LDO1ENA_PD */
  3263. #define WM8996_LDO1ENA_PD_SHIFT 8 /* LDO1ENA_PD */
  3264. #define WM8996_LDO1ENA_PD_WIDTH 1 /* LDO1ENA_PD */
  3265. #define WM8996_ADDR_PD 0x0040 /* ADDR_PD */
  3266. #define WM8996_ADDR_PD_MASK 0x0040 /* ADDR_PD */
  3267. #define WM8996_ADDR_PD_SHIFT 6 /* ADDR_PD */
  3268. #define WM8996_ADDR_PD_WIDTH 1 /* ADDR_PD */
  3269. #define WM8996_DACDAT2_PU 0x0020 /* DACDAT2_PU */
  3270. #define WM8996_DACDAT2_PU_MASK 0x0020 /* DACDAT2_PU */
  3271. #define WM8996_DACDAT2_PU_SHIFT 5 /* DACDAT2_PU */
  3272. #define WM8996_DACDAT2_PU_WIDTH 1 /* DACDAT2_PU */
  3273. #define WM8996_DACDAT2_PD 0x0010 /* DACDAT2_PD */
  3274. #define WM8996_DACDAT2_PD_MASK 0x0010 /* DACDAT2_PD */
  3275. #define WM8996_DACDAT2_PD_SHIFT 4 /* DACDAT2_PD */
  3276. #define WM8996_DACDAT2_PD_WIDTH 1 /* DACDAT2_PD */
  3277. #define WM8996_DACLRCLK2_PU 0x0008 /* DACLRCLK2_PU */
  3278. #define WM8996_DACLRCLK2_PU_MASK 0x0008 /* DACLRCLK2_PU */
  3279. #define WM8996_DACLRCLK2_PU_SHIFT 3 /* DACLRCLK2_PU */
  3280. #define WM8996_DACLRCLK2_PU_WIDTH 1 /* DACLRCLK2_PU */
  3281. #define WM8996_DACLRCLK2_PD 0x0004 /* DACLRCLK2_PD */
  3282. #define WM8996_DACLRCLK2_PD_MASK 0x0004 /* DACLRCLK2_PD */
  3283. #define WM8996_DACLRCLK2_PD_SHIFT 2 /* DACLRCLK2_PD */
  3284. #define WM8996_DACLRCLK2_PD_WIDTH 1 /* DACLRCLK2_PD */
  3285. #define WM8996_BCLK2_PU 0x0002 /* BCLK2_PU */
  3286. #define WM8996_BCLK2_PU_MASK 0x0002 /* BCLK2_PU */
  3287. #define WM8996_BCLK2_PU_SHIFT 1 /* BCLK2_PU */
  3288. #define WM8996_BCLK2_PU_WIDTH 1 /* BCLK2_PU */
  3289. #define WM8996_BCLK2_PD 0x0001 /* BCLK2_PD */
  3290. #define WM8996_BCLK2_PD_MASK 0x0001 /* BCLK2_PD */
  3291. #define WM8996_BCLK2_PD_SHIFT 0 /* BCLK2_PD */
  3292. #define WM8996_BCLK2_PD_WIDTH 1 /* BCLK2_PD */
  3293. /*
  3294. * R1840 (0x730) - Interrupt Status 1
  3295. */
  3296. #define WM8996_GP5_EINT 0x0010 /* GP5_EINT */
  3297. #define WM8996_GP5_EINT_MASK 0x0010 /* GP5_EINT */
  3298. #define WM8996_GP5_EINT_SHIFT 4 /* GP5_EINT */
  3299. #define WM8996_GP5_EINT_WIDTH 1 /* GP5_EINT */
  3300. #define WM8996_GP4_EINT 0x0008 /* GP4_EINT */
  3301. #define WM8996_GP4_EINT_MASK 0x0008 /* GP4_EINT */
  3302. #define WM8996_GP4_EINT_SHIFT 3 /* GP4_EINT */
  3303. #define WM8996_GP4_EINT_WIDTH 1 /* GP4_EINT */
  3304. #define WM8996_GP3_EINT 0x0004 /* GP3_EINT */
  3305. #define WM8996_GP3_EINT_MASK 0x0004 /* GP3_EINT */
  3306. #define WM8996_GP3_EINT_SHIFT 2 /* GP3_EINT */
  3307. #define WM8996_GP3_EINT_WIDTH 1 /* GP3_EINT */
  3308. #define WM8996_GP2_EINT 0x0002 /* GP2_EINT */
  3309. #define WM8996_GP2_EINT_MASK 0x0002 /* GP2_EINT */
  3310. #define WM8996_GP2_EINT_SHIFT 1 /* GP2_EINT */
  3311. #define WM8996_GP2_EINT_WIDTH 1 /* GP2_EINT */
  3312. #define WM8996_GP1_EINT 0x0001 /* GP1_EINT */
  3313. #define WM8996_GP1_EINT_MASK 0x0001 /* GP1_EINT */
  3314. #define WM8996_GP1_EINT_SHIFT 0 /* GP1_EINT */
  3315. #define WM8996_GP1_EINT_WIDTH 1 /* GP1_EINT */
  3316. /*
  3317. * R1841 (0x731) - Interrupt Status 2
  3318. */
  3319. #define WM8996_DCS_DONE_23_EINT 0x1000 /* DCS_DONE_23_EINT */
  3320. #define WM8996_DCS_DONE_23_EINT_MASK 0x1000 /* DCS_DONE_23_EINT */
  3321. #define WM8996_DCS_DONE_23_EINT_SHIFT 12 /* DCS_DONE_23_EINT */
  3322. #define WM8996_DCS_DONE_23_EINT_WIDTH 1 /* DCS_DONE_23_EINT */
  3323. #define WM8996_DCS_DONE_01_EINT 0x0800 /* DCS_DONE_01_EINT */
  3324. #define WM8996_DCS_DONE_01_EINT_MASK 0x0800 /* DCS_DONE_01_EINT */
  3325. #define WM8996_DCS_DONE_01_EINT_SHIFT 11 /* DCS_DONE_01_EINT */
  3326. #define WM8996_DCS_DONE_01_EINT_WIDTH 1 /* DCS_DONE_01_EINT */
  3327. #define WM8996_WSEQ_DONE_EINT 0x0400 /* WSEQ_DONE_EINT */
  3328. #define WM8996_WSEQ_DONE_EINT_MASK 0x0400 /* WSEQ_DONE_EINT */
  3329. #define WM8996_WSEQ_DONE_EINT_SHIFT 10 /* WSEQ_DONE_EINT */
  3330. #define WM8996_WSEQ_DONE_EINT_WIDTH 1 /* WSEQ_DONE_EINT */
  3331. #define WM8996_FIFOS_ERR_EINT 0x0200 /* FIFOS_ERR_EINT */
  3332. #define WM8996_FIFOS_ERR_EINT_MASK 0x0200 /* FIFOS_ERR_EINT */
  3333. #define WM8996_FIFOS_ERR_EINT_SHIFT 9 /* FIFOS_ERR_EINT */
  3334. #define WM8996_FIFOS_ERR_EINT_WIDTH 1 /* FIFOS_ERR_EINT */
  3335. #define WM8996_DSP2DRC_SIG_DET_EINT 0x0080 /* DSP2DRC_SIG_DET_EINT */
  3336. #define WM8996_DSP2DRC_SIG_DET_EINT_MASK 0x0080 /* DSP2DRC_SIG_DET_EINT */
  3337. #define WM8996_DSP2DRC_SIG_DET_EINT_SHIFT 7 /* DSP2DRC_SIG_DET_EINT */
  3338. #define WM8996_DSP2DRC_SIG_DET_EINT_WIDTH 1 /* DSP2DRC_SIG_DET_EINT */
  3339. #define WM8996_DSP1DRC_SIG_DET_EINT 0x0040 /* DSP1DRC_SIG_DET_EINT */
  3340. #define WM8996_DSP1DRC_SIG_DET_EINT_MASK 0x0040 /* DSP1DRC_SIG_DET_EINT */
  3341. #define WM8996_DSP1DRC_SIG_DET_EINT_SHIFT 6 /* DSP1DRC_SIG_DET_EINT */
  3342. #define WM8996_DSP1DRC_SIG_DET_EINT_WIDTH 1 /* DSP1DRC_SIG_DET_EINT */
  3343. #define WM8996_FLL_SW_CLK_DONE_EINT 0x0008 /* FLL_SW_CLK_DONE_EINT */
  3344. #define WM8996_FLL_SW_CLK_DONE_EINT_MASK 0x0008 /* FLL_SW_CLK_DONE_EINT */
  3345. #define WM8996_FLL_SW_CLK_DONE_EINT_SHIFT 3 /* FLL_SW_CLK_DONE_EINT */
  3346. #define WM8996_FLL_SW_CLK_DONE_EINT_WIDTH 1 /* FLL_SW_CLK_DONE_EINT */
  3347. #define WM8996_FLL_LOCK_EINT 0x0004 /* FLL_LOCK_EINT */
  3348. #define WM8996_FLL_LOCK_EINT_MASK 0x0004 /* FLL_LOCK_EINT */
  3349. #define WM8996_FLL_LOCK_EINT_SHIFT 2 /* FLL_LOCK_EINT */
  3350. #define WM8996_FLL_LOCK_EINT_WIDTH 1 /* FLL_LOCK_EINT */
  3351. #define WM8996_HP_DONE_EINT 0x0002 /* HP_DONE_EINT */
  3352. #define WM8996_HP_DONE_EINT_MASK 0x0002 /* HP_DONE_EINT */
  3353. #define WM8996_HP_DONE_EINT_SHIFT 1 /* HP_DONE_EINT */
  3354. #define WM8996_HP_DONE_EINT_WIDTH 1 /* HP_DONE_EINT */
  3355. #define WM8996_MICD_EINT 0x0001 /* MICD_EINT */
  3356. #define WM8996_MICD_EINT_MASK 0x0001 /* MICD_EINT */
  3357. #define WM8996_MICD_EINT_SHIFT 0 /* MICD_EINT */
  3358. #define WM8996_MICD_EINT_WIDTH 1 /* MICD_EINT */
  3359. /*
  3360. * R1842 (0x732) - Interrupt Raw Status 2
  3361. */
  3362. #define WM8996_DCS_DONE_23_STS 0x1000 /* DCS_DONE_23_STS */
  3363. #define WM8996_DCS_DONE_23_STS_MASK 0x1000 /* DCS_DONE_23_STS */
  3364. #define WM8996_DCS_DONE_23_STS_SHIFT 12 /* DCS_DONE_23_STS */
  3365. #define WM8996_DCS_DONE_23_STS_WIDTH 1 /* DCS_DONE_23_STS */
  3366. #define WM8996_DCS_DONE_01_STS 0x0800 /* DCS_DONE_01_STS */
  3367. #define WM8996_DCS_DONE_01_STS_MASK 0x0800 /* DCS_DONE_01_STS */
  3368. #define WM8996_DCS_DONE_01_STS_SHIFT 11 /* DCS_DONE_01_STS */
  3369. #define WM8996_DCS_DONE_01_STS_WIDTH 1 /* DCS_DONE_01_STS */
  3370. #define WM8996_WSEQ_DONE_STS 0x0400 /* WSEQ_DONE_STS */
  3371. #define WM8996_WSEQ_DONE_STS_MASK 0x0400 /* WSEQ_DONE_STS */
  3372. #define WM8996_WSEQ_DONE_STS_SHIFT 10 /* WSEQ_DONE_STS */
  3373. #define WM8996_WSEQ_DONE_STS_WIDTH 1 /* WSEQ_DONE_STS */
  3374. #define WM8996_FIFOS_ERR_STS 0x0200 /* FIFOS_ERR_STS */
  3375. #define WM8996_FIFOS_ERR_STS_MASK 0x0200 /* FIFOS_ERR_STS */
  3376. #define WM8996_FIFOS_ERR_STS_SHIFT 9 /* FIFOS_ERR_STS */
  3377. #define WM8996_FIFOS_ERR_STS_WIDTH 1 /* FIFOS_ERR_STS */
  3378. #define WM8996_DSP2DRC_SIG_DET_STS 0x0080 /* DSP2DRC_SIG_DET_STS */
  3379. #define WM8996_DSP2DRC_SIG_DET_STS_MASK 0x0080 /* DSP2DRC_SIG_DET_STS */
  3380. #define WM8996_DSP2DRC_SIG_DET_STS_SHIFT 7 /* DSP2DRC_SIG_DET_STS */
  3381. #define WM8996_DSP2DRC_SIG_DET_STS_WIDTH 1 /* DSP2DRC_SIG_DET_STS */
  3382. #define WM8996_DSP1DRC_SIG_DET_STS 0x0040 /* DSP1DRC_SIG_DET_STS */
  3383. #define WM8996_DSP1DRC_SIG_DET_STS_MASK 0x0040 /* DSP1DRC_SIG_DET_STS */
  3384. #define WM8996_DSP1DRC_SIG_DET_STS_SHIFT 6 /* DSP1DRC_SIG_DET_STS */
  3385. #define WM8996_DSP1DRC_SIG_DET_STS_WIDTH 1 /* DSP1DRC_SIG_DET_STS */
  3386. #define WM8996_FLL_LOCK_STS 0x0004 /* FLL_LOCK_STS */
  3387. #define WM8996_FLL_LOCK_STS_MASK 0x0004 /* FLL_LOCK_STS */
  3388. #define WM8996_FLL_LOCK_STS_SHIFT 2 /* FLL_LOCK_STS */
  3389. #define WM8996_FLL_LOCK_STS_WIDTH 1 /* FLL_LOCK_STS */
  3390. /*
  3391. * R1848 (0x738) - Interrupt Status 1 Mask
  3392. */
  3393. #define WM8996_IM_GP5_EINT 0x0010 /* IM_GP5_EINT */
  3394. #define WM8996_IM_GP5_EINT_MASK 0x0010 /* IM_GP5_EINT */
  3395. #define WM8996_IM_GP5_EINT_SHIFT 4 /* IM_GP5_EINT */
  3396. #define WM8996_IM_GP5_EINT_WIDTH 1 /* IM_GP5_EINT */
  3397. #define WM8996_IM_GP4_EINT 0x0008 /* IM_GP4_EINT */
  3398. #define WM8996_IM_GP4_EINT_MASK 0x0008 /* IM_GP4_EINT */
  3399. #define WM8996_IM_GP4_EINT_SHIFT 3 /* IM_GP4_EINT */
  3400. #define WM8996_IM_GP4_EINT_WIDTH 1 /* IM_GP4_EINT */
  3401. #define WM8996_IM_GP3_EINT 0x0004 /* IM_GP3_EINT */
  3402. #define WM8996_IM_GP3_EINT_MASK 0x0004 /* IM_GP3_EINT */
  3403. #define WM8996_IM_GP3_EINT_SHIFT 2 /* IM_GP3_EINT */
  3404. #define WM8996_IM_GP3_EINT_WIDTH 1 /* IM_GP3_EINT */
  3405. #define WM8996_IM_GP2_EINT 0x0002 /* IM_GP2_EINT */
  3406. #define WM8996_IM_GP2_EINT_MASK 0x0002 /* IM_GP2_EINT */
  3407. #define WM8996_IM_GP2_EINT_SHIFT 1 /* IM_GP2_EINT */
  3408. #define WM8996_IM_GP2_EINT_WIDTH 1 /* IM_GP2_EINT */
  3409. #define WM8996_IM_GP1_EINT 0x0001 /* IM_GP1_EINT */
  3410. #define WM8996_IM_GP1_EINT_MASK 0x0001 /* IM_GP1_EINT */
  3411. #define WM8996_IM_GP1_EINT_SHIFT 0 /* IM_GP1_EINT */
  3412. #define WM8996_IM_GP1_EINT_WIDTH 1 /* IM_GP1_EINT */
  3413. /*
  3414. * R1849 (0x739) - Interrupt Status 2 Mask
  3415. */
  3416. #define WM8996_IM_DCS_DONE_23_EINT 0x1000 /* IM_DCS_DONE_23_EINT */
  3417. #define WM8996_IM_DCS_DONE_23_EINT_MASK 0x1000 /* IM_DCS_DONE_23_EINT */
  3418. #define WM8996_IM_DCS_DONE_23_EINT_SHIFT 12 /* IM_DCS_DONE_23_EINT */
  3419. #define WM8996_IM_DCS_DONE_23_EINT_WIDTH 1 /* IM_DCS_DONE_23_EINT */
  3420. #define WM8996_IM_DCS_DONE_01_EINT 0x0800 /* IM_DCS_DONE_01_EINT */
  3421. #define WM8996_IM_DCS_DONE_01_EINT_MASK 0x0800 /* IM_DCS_DONE_01_EINT */
  3422. #define WM8996_IM_DCS_DONE_01_EINT_SHIFT 11 /* IM_DCS_DONE_01_EINT */
  3423. #define WM8996_IM_DCS_DONE_01_EINT_WIDTH 1 /* IM_DCS_DONE_01_EINT */
  3424. #define WM8996_IM_WSEQ_DONE_EINT 0x0400 /* IM_WSEQ_DONE_EINT */
  3425. #define WM8996_IM_WSEQ_DONE_EINT_MASK 0x0400 /* IM_WSEQ_DONE_EINT */
  3426. #define WM8996_IM_WSEQ_DONE_EINT_SHIFT 10 /* IM_WSEQ_DONE_EINT */
  3427. #define WM8996_IM_WSEQ_DONE_EINT_WIDTH 1 /* IM_WSEQ_DONE_EINT */
  3428. #define WM8996_IM_FIFOS_ERR_EINT 0x0200 /* IM_FIFOS_ERR_EINT */
  3429. #define WM8996_IM_FIFOS_ERR_EINT_MASK 0x0200 /* IM_FIFOS_ERR_EINT */
  3430. #define WM8996_IM_FIFOS_ERR_EINT_SHIFT 9 /* IM_FIFOS_ERR_EINT */
  3431. #define WM8996_IM_FIFOS_ERR_EINT_WIDTH 1 /* IM_FIFOS_ERR_EINT */
  3432. #define WM8996_IM_DSP2DRC_SIG_DET_EINT 0x0080 /* IM_DSP2DRC_SIG_DET_EINT */
  3433. #define WM8996_IM_DSP2DRC_SIG_DET_EINT_MASK 0x0080 /* IM_DSP2DRC_SIG_DET_EINT */
  3434. #define WM8996_IM_DSP2DRC_SIG_DET_EINT_SHIFT 7 /* IM_DSP2DRC_SIG_DET_EINT */
  3435. #define WM8996_IM_DSP2DRC_SIG_DET_EINT_WIDTH 1 /* IM_DSP2DRC_SIG_DET_EINT */
  3436. #define WM8996_IM_DSP1DRC_SIG_DET_EINT 0x0040 /* IM_DSP1DRC_SIG_DET_EINT */
  3437. #define WM8996_IM_DSP1DRC_SIG_DET_EINT_MASK 0x0040 /* IM_DSP1DRC_SIG_DET_EINT */
  3438. #define WM8996_IM_DSP1DRC_SIG_DET_EINT_SHIFT 6 /* IM_DSP1DRC_SIG_DET_EINT */
  3439. #define WM8996_IM_DSP1DRC_SIG_DET_EINT_WIDTH 1 /* IM_DSP1DRC_SIG_DET_EINT */
  3440. #define WM8996_IM_FLL_SW_CLK_DONE_EINT 0x0008 /* IM_FLL_SW_CLK_DONE_EINT */
  3441. #define WM8996_IM_FLL_SW_CLK_DONE_EINT_MASK 0x0008 /* IM_FLL_SW_CLK_DONE_EINT */
  3442. #define WM8996_IM_FLL_SW_CLK_DONE_EINT_SHIFT 3 /* IM_FLL_SW_CLK_DONE_EINT */
  3443. #define WM8996_IM_FLL_SW_CLK_DONE_EINT_WIDTH 1 /* IM_FLL_SW_CLK_DONE_EINT */
  3444. #define WM8996_IM_FLL_LOCK_EINT 0x0004 /* IM_FLL_LOCK_EINT */
  3445. #define WM8996_IM_FLL_LOCK_EINT_MASK 0x0004 /* IM_FLL_LOCK_EINT */
  3446. #define WM8996_IM_FLL_LOCK_EINT_SHIFT 2 /* IM_FLL_LOCK_EINT */
  3447. #define WM8996_IM_FLL_LOCK_EINT_WIDTH 1 /* IM_FLL_LOCK_EINT */
  3448. #define WM8996_IM_HP_DONE_EINT 0x0002 /* IM_HP_DONE_EINT */
  3449. #define WM8996_IM_HP_DONE_EINT_MASK 0x0002 /* IM_HP_DONE_EINT */
  3450. #define WM8996_IM_HP_DONE_EINT_SHIFT 1 /* IM_HP_DONE_EINT */
  3451. #define WM8996_IM_HP_DONE_EINT_WIDTH 1 /* IM_HP_DONE_EINT */
  3452. #define WM8996_IM_MICD_EINT 0x0001 /* IM_MICD_EINT */
  3453. #define WM8996_IM_MICD_EINT_MASK 0x0001 /* IM_MICD_EINT */
  3454. #define WM8996_IM_MICD_EINT_SHIFT 0 /* IM_MICD_EINT */
  3455. #define WM8996_IM_MICD_EINT_WIDTH 1 /* IM_MICD_EINT */
  3456. /*
  3457. * R1856 (0x740) - Interrupt Control
  3458. */
  3459. #define WM8996_IM_IRQ 0x0001 /* IM_IRQ */
  3460. #define WM8996_IM_IRQ_MASK 0x0001 /* IM_IRQ */
  3461. #define WM8996_IM_IRQ_SHIFT 0 /* IM_IRQ */
  3462. #define WM8996_IM_IRQ_WIDTH 1 /* IM_IRQ */
  3463. /*
  3464. * R2048 (0x800) - Left PDM Speaker
  3465. */
  3466. #define WM8996_SPKL_ENA 0x0010 /* SPKL_ENA */
  3467. #define WM8996_SPKL_ENA_MASK 0x0010 /* SPKL_ENA */
  3468. #define WM8996_SPKL_ENA_SHIFT 4 /* SPKL_ENA */
  3469. #define WM8996_SPKL_ENA_WIDTH 1 /* SPKL_ENA */
  3470. #define WM8996_SPKL_MUTE 0x0008 /* SPKL_MUTE */
  3471. #define WM8996_SPKL_MUTE_MASK 0x0008 /* SPKL_MUTE */
  3472. #define WM8996_SPKL_MUTE_SHIFT 3 /* SPKL_MUTE */
  3473. #define WM8996_SPKL_MUTE_WIDTH 1 /* SPKL_MUTE */
  3474. #define WM8996_SPKL_MUTE_ZC 0x0004 /* SPKL_MUTE_ZC */
  3475. #define WM8996_SPKL_MUTE_ZC_MASK 0x0004 /* SPKL_MUTE_ZC */
  3476. #define WM8996_SPKL_MUTE_ZC_SHIFT 2 /* SPKL_MUTE_ZC */
  3477. #define WM8996_SPKL_MUTE_ZC_WIDTH 1 /* SPKL_MUTE_ZC */
  3478. #define WM8996_SPKL_SRC_MASK 0x0003 /* SPKL_SRC - [1:0] */
  3479. #define WM8996_SPKL_SRC_SHIFT 0 /* SPKL_SRC - [1:0] */
  3480. #define WM8996_SPKL_SRC_WIDTH 2 /* SPKL_SRC - [1:0] */
  3481. /*
  3482. * R2049 (0x801) - Right PDM Speaker
  3483. */
  3484. #define WM8996_SPKR_ENA 0x0010 /* SPKR_ENA */
  3485. #define WM8996_SPKR_ENA_MASK 0x0010 /* SPKR_ENA */
  3486. #define WM8996_SPKR_ENA_SHIFT 4 /* SPKR_ENA */
  3487. #define WM8996_SPKR_ENA_WIDTH 1 /* SPKR_ENA */
  3488. #define WM8996_SPKR_MUTE 0x0008 /* SPKR_MUTE */
  3489. #define WM8996_SPKR_MUTE_MASK 0x0008 /* SPKR_MUTE */
  3490. #define WM8996_SPKR_MUTE_SHIFT 3 /* SPKR_MUTE */
  3491. #define WM8996_SPKR_MUTE_WIDTH 1 /* SPKR_MUTE */
  3492. #define WM8996_SPKR_MUTE_ZC 0x0004 /* SPKR_MUTE_ZC */
  3493. #define WM8996_SPKR_MUTE_ZC_MASK 0x0004 /* SPKR_MUTE_ZC */
  3494. #define WM8996_SPKR_MUTE_ZC_SHIFT 2 /* SPKR_MUTE_ZC */
  3495. #define WM8996_SPKR_MUTE_ZC_WIDTH 1 /* SPKR_MUTE_ZC */
  3496. #define WM8996_SPKR_SRC_MASK 0x0003 /* SPKR_SRC - [1:0] */
  3497. #define WM8996_SPKR_SRC_SHIFT 0 /* SPKR_SRC - [1:0] */
  3498. #define WM8996_SPKR_SRC_WIDTH 2 /* SPKR_SRC - [1:0] */
  3499. /*
  3500. * R2050 (0x802) - PDM Speaker Mute Sequence
  3501. */
  3502. #define WM8996_SPK_MUTE_ENDIAN 0x0100 /* SPK_MUTE_ENDIAN */
  3503. #define WM8996_SPK_MUTE_ENDIAN_MASK 0x0100 /* SPK_MUTE_ENDIAN */
  3504. #define WM8996_SPK_MUTE_ENDIAN_SHIFT 8 /* SPK_MUTE_ENDIAN */
  3505. #define WM8996_SPK_MUTE_ENDIAN_WIDTH 1 /* SPK_MUTE_ENDIAN */
  3506. #define WM8996_SPK_MUTE_SEQ1_MASK 0x00FF /* SPK_MUTE_SEQ1 - [7:0] */
  3507. #define WM8996_SPK_MUTE_SEQ1_SHIFT 0 /* SPK_MUTE_SEQ1 - [7:0] */
  3508. #define WM8996_SPK_MUTE_SEQ1_WIDTH 8 /* SPK_MUTE_SEQ1 - [7:0] */
  3509. /*
  3510. * R2051 (0x803) - PDM Speaker Volume
  3511. */
  3512. #define WM8996_SPKR_VOL_MASK 0x00F0 /* SPKR_VOL - [7:4] */
  3513. #define WM8996_SPKR_VOL_SHIFT 4 /* SPKR_VOL - [7:4] */
  3514. #define WM8996_SPKR_VOL_WIDTH 4 /* SPKR_VOL - [7:4] */
  3515. #define WM8996_SPKL_VOL_MASK 0x000F /* SPKL_VOL - [3:0] */
  3516. #define WM8996_SPKL_VOL_SHIFT 0 /* SPKL_VOL - [3:0] */
  3517. #define WM8996_SPKL_VOL_WIDTH 4 /* SPKL_VOL - [3:0] */
  3518. #endif