wm8993.h 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130
  1. #ifndef WM8993_H
  2. #define WM8993_H
  3. #define WM8993_SYSCLK_MCLK 1
  4. #define WM8993_SYSCLK_FLL 2
  5. #define WM8993_FLL_MCLK 1
  6. #define WM8993_FLL_BCLK 2
  7. #define WM8993_FLL_LRCLK 3
  8. /*
  9. * Register values.
  10. */
  11. #define WM8993_SOFTWARE_RESET 0x00
  12. #define WM8993_POWER_MANAGEMENT_1 0x01
  13. #define WM8993_POWER_MANAGEMENT_2 0x02
  14. #define WM8993_POWER_MANAGEMENT_3 0x03
  15. #define WM8993_AUDIO_INTERFACE_1 0x04
  16. #define WM8993_AUDIO_INTERFACE_2 0x05
  17. #define WM8993_CLOCKING_1 0x06
  18. #define WM8993_CLOCKING_2 0x07
  19. #define WM8993_AUDIO_INTERFACE_3 0x08
  20. #define WM8993_AUDIO_INTERFACE_4 0x09
  21. #define WM8993_DAC_CTRL 0x0A
  22. #define WM8993_LEFT_DAC_DIGITAL_VOLUME 0x0B
  23. #define WM8993_RIGHT_DAC_DIGITAL_VOLUME 0x0C
  24. #define WM8993_DIGITAL_SIDE_TONE 0x0D
  25. #define WM8993_ADC_CTRL 0x0E
  26. #define WM8993_LEFT_ADC_DIGITAL_VOLUME 0x0F
  27. #define WM8993_RIGHT_ADC_DIGITAL_VOLUME 0x10
  28. #define WM8993_GPIO_CTRL_1 0x12
  29. #define WM8993_GPIO1 0x13
  30. #define WM8993_IRQ_DEBOUNCE 0x14
  31. #define WM8993_GPIOCTRL_2 0x16
  32. #define WM8993_GPIO_POL 0x17
  33. #define WM8993_LEFT_LINE_INPUT_1_2_VOLUME 0x18
  34. #define WM8993_LEFT_LINE_INPUT_3_4_VOLUME 0x19
  35. #define WM8993_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
  36. #define WM8993_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
  37. #define WM8993_LEFT_OUTPUT_VOLUME 0x1C
  38. #define WM8993_RIGHT_OUTPUT_VOLUME 0x1D
  39. #define WM8993_LINE_OUTPUTS_VOLUME 0x1E
  40. #define WM8993_HPOUT2_VOLUME 0x1F
  41. #define WM8993_LEFT_OPGA_VOLUME 0x20
  42. #define WM8993_RIGHT_OPGA_VOLUME 0x21
  43. #define WM8993_SPKMIXL_ATTENUATION 0x22
  44. #define WM8993_SPKMIXR_ATTENUATION 0x23
  45. #define WM8993_SPKOUT_MIXERS 0x24
  46. #define WM8993_SPKOUT_BOOST 0x25
  47. #define WM8993_SPEAKER_VOLUME_LEFT 0x26
  48. #define WM8993_SPEAKER_VOLUME_RIGHT 0x27
  49. #define WM8993_INPUT_MIXER2 0x28
  50. #define WM8993_INPUT_MIXER3 0x29
  51. #define WM8993_INPUT_MIXER4 0x2A
  52. #define WM8993_INPUT_MIXER5 0x2B
  53. #define WM8993_INPUT_MIXER6 0x2C
  54. #define WM8993_OUTPUT_MIXER1 0x2D
  55. #define WM8993_OUTPUT_MIXER2 0x2E
  56. #define WM8993_OUTPUT_MIXER3 0x2F
  57. #define WM8993_OUTPUT_MIXER4 0x30
  58. #define WM8993_OUTPUT_MIXER5 0x31
  59. #define WM8993_OUTPUT_MIXER6 0x32
  60. #define WM8993_HPOUT2_MIXER 0x33
  61. #define WM8993_LINE_MIXER1 0x34
  62. #define WM8993_LINE_MIXER2 0x35
  63. #define WM8993_SPEAKER_MIXER 0x36
  64. #define WM8993_ADDITIONAL_CONTROL 0x37
  65. #define WM8993_ANTIPOP1 0x38
  66. #define WM8993_ANTIPOP2 0x39
  67. #define WM8993_MICBIAS 0x3A
  68. #define WM8993_FLL_CONTROL_1 0x3C
  69. #define WM8993_FLL_CONTROL_2 0x3D
  70. #define WM8993_FLL_CONTROL_3 0x3E
  71. #define WM8993_FLL_CONTROL_4 0x3F
  72. #define WM8993_FLL_CONTROL_5 0x40
  73. #define WM8993_CLOCKING_3 0x41
  74. #define WM8993_CLOCKING_4 0x42
  75. #define WM8993_MW_SLAVE_CONTROL 0x43
  76. #define WM8993_BUS_CONTROL_1 0x45
  77. #define WM8993_WRITE_SEQUENCER_0 0x46
  78. #define WM8993_WRITE_SEQUENCER_1 0x47
  79. #define WM8993_WRITE_SEQUENCER_2 0x48
  80. #define WM8993_WRITE_SEQUENCER_3 0x49
  81. #define WM8993_WRITE_SEQUENCER_4 0x4A
  82. #define WM8993_WRITE_SEQUENCER_5 0x4B
  83. #define WM8993_CHARGE_PUMP_1 0x4C
  84. #define WM8993_CLASS_W_0 0x51
  85. #define WM8993_DC_SERVO_0 0x54
  86. #define WM8993_DC_SERVO_1 0x55
  87. #define WM8993_DC_SERVO_3 0x57
  88. #define WM8993_DC_SERVO_READBACK_0 0x58
  89. #define WM8993_DC_SERVO_READBACK_1 0x59
  90. #define WM8993_DC_SERVO_READBACK_2 0x5A
  91. #define WM8993_ANALOGUE_HP_0 0x60
  92. #define WM8993_EQ1 0x62
  93. #define WM8993_EQ2 0x63
  94. #define WM8993_EQ3 0x64
  95. #define WM8993_EQ4 0x65
  96. #define WM8993_EQ5 0x66
  97. #define WM8993_EQ6 0x67
  98. #define WM8993_EQ7 0x68
  99. #define WM8993_EQ8 0x69
  100. #define WM8993_EQ9 0x6A
  101. #define WM8993_EQ10 0x6B
  102. #define WM8993_EQ11 0x6C
  103. #define WM8993_EQ12 0x6D
  104. #define WM8993_EQ13 0x6E
  105. #define WM8993_EQ14 0x6F
  106. #define WM8993_EQ15 0x70
  107. #define WM8993_EQ16 0x71
  108. #define WM8993_EQ17 0x72
  109. #define WM8993_EQ18 0x73
  110. #define WM8993_EQ19 0x74
  111. #define WM8993_EQ20 0x75
  112. #define WM8993_EQ21 0x76
  113. #define WM8993_EQ22 0x77
  114. #define WM8993_EQ23 0x78
  115. #define WM8993_EQ24 0x79
  116. #define WM8993_DIGITAL_PULLS 0x7A
  117. #define WM8993_DRC_CONTROL_1 0x7B
  118. #define WM8993_DRC_CONTROL_2 0x7C
  119. #define WM8993_DRC_CONTROL_3 0x7D
  120. #define WM8993_DRC_CONTROL_4 0x7E
  121. #define WM8993_REGISTER_COUNT 0x7F
  122. #define WM8993_MAX_REGISTER 0x7E
  123. /*
  124. * Field Definitions.
  125. */
  126. /*
  127. * R0 (0x00) - Software Reset
  128. */
  129. #define WM8993_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
  130. #define WM8993_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
  131. #define WM8993_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
  132. /*
  133. * R1 (0x01) - Power Management (1)
  134. */
  135. #define WM8993_SPKOUTR_ENA 0x2000 /* SPKOUTR_ENA */
  136. #define WM8993_SPKOUTR_ENA_MASK 0x2000 /* SPKOUTR_ENA */
  137. #define WM8993_SPKOUTR_ENA_SHIFT 13 /* SPKOUTR_ENA */
  138. #define WM8993_SPKOUTR_ENA_WIDTH 1 /* SPKOUTR_ENA */
  139. #define WM8993_SPKOUTL_ENA 0x1000 /* SPKOUTL_ENA */
  140. #define WM8993_SPKOUTL_ENA_MASK 0x1000 /* SPKOUTL_ENA */
  141. #define WM8993_SPKOUTL_ENA_SHIFT 12 /* SPKOUTL_ENA */
  142. #define WM8993_SPKOUTL_ENA_WIDTH 1 /* SPKOUTL_ENA */
  143. #define WM8993_HPOUT2_ENA 0x0800 /* HPOUT2_ENA */
  144. #define WM8993_HPOUT2_ENA_MASK 0x0800 /* HPOUT2_ENA */
  145. #define WM8993_HPOUT2_ENA_SHIFT 11 /* HPOUT2_ENA */
  146. #define WM8993_HPOUT2_ENA_WIDTH 1 /* HPOUT2_ENA */
  147. #define WM8993_HPOUT1L_ENA 0x0200 /* HPOUT1L_ENA */
  148. #define WM8993_HPOUT1L_ENA_MASK 0x0200 /* HPOUT1L_ENA */
  149. #define WM8993_HPOUT1L_ENA_SHIFT 9 /* HPOUT1L_ENA */
  150. #define WM8993_HPOUT1L_ENA_WIDTH 1 /* HPOUT1L_ENA */
  151. #define WM8993_HPOUT1R_ENA 0x0100 /* HPOUT1R_ENA */
  152. #define WM8993_HPOUT1R_ENA_MASK 0x0100 /* HPOUT1R_ENA */
  153. #define WM8993_HPOUT1R_ENA_SHIFT 8 /* HPOUT1R_ENA */
  154. #define WM8993_HPOUT1R_ENA_WIDTH 1 /* HPOUT1R_ENA */
  155. #define WM8993_MICB2_ENA 0x0020 /* MICB2_ENA */
  156. #define WM8993_MICB2_ENA_MASK 0x0020 /* MICB2_ENA */
  157. #define WM8993_MICB2_ENA_SHIFT 5 /* MICB2_ENA */
  158. #define WM8993_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  159. #define WM8993_MICB1_ENA 0x0010 /* MICB1_ENA */
  160. #define WM8993_MICB1_ENA_MASK 0x0010 /* MICB1_ENA */
  161. #define WM8993_MICB1_ENA_SHIFT 4 /* MICB1_ENA */
  162. #define WM8993_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  163. #define WM8993_VMID_SEL_MASK 0x0006 /* VMID_SEL - [2:1] */
  164. #define WM8993_VMID_SEL_SHIFT 1 /* VMID_SEL - [2:1] */
  165. #define WM8993_VMID_SEL_WIDTH 2 /* VMID_SEL - [2:1] */
  166. #define WM8993_BIAS_ENA 0x0001 /* BIAS_ENA */
  167. #define WM8993_BIAS_ENA_MASK 0x0001 /* BIAS_ENA */
  168. #define WM8993_BIAS_ENA_SHIFT 0 /* BIAS_ENA */
  169. #define WM8993_BIAS_ENA_WIDTH 1 /* BIAS_ENA */
  170. /*
  171. * R2 (0x02) - Power Management (2)
  172. */
  173. #define WM8993_TSHUT_ENA 0x4000 /* TSHUT_ENA */
  174. #define WM8993_TSHUT_ENA_MASK 0x4000 /* TSHUT_ENA */
  175. #define WM8993_TSHUT_ENA_SHIFT 14 /* TSHUT_ENA */
  176. #define WM8993_TSHUT_ENA_WIDTH 1 /* TSHUT_ENA */
  177. #define WM8993_TSHUT_OPDIS 0x2000 /* TSHUT_OPDIS */
  178. #define WM8993_TSHUT_OPDIS_MASK 0x2000 /* TSHUT_OPDIS */
  179. #define WM8993_TSHUT_OPDIS_SHIFT 13 /* TSHUT_OPDIS */
  180. #define WM8993_TSHUT_OPDIS_WIDTH 1 /* TSHUT_OPDIS */
  181. #define WM8993_OPCLK_ENA 0x0800 /* OPCLK_ENA */
  182. #define WM8993_OPCLK_ENA_MASK 0x0800 /* OPCLK_ENA */
  183. #define WM8993_OPCLK_ENA_SHIFT 11 /* OPCLK_ENA */
  184. #define WM8993_OPCLK_ENA_WIDTH 1 /* OPCLK_ENA */
  185. #define WM8993_MIXINL_ENA 0x0200 /* MIXINL_ENA */
  186. #define WM8993_MIXINL_ENA_MASK 0x0200 /* MIXINL_ENA */
  187. #define WM8993_MIXINL_ENA_SHIFT 9 /* MIXINL_ENA */
  188. #define WM8993_MIXINL_ENA_WIDTH 1 /* MIXINL_ENA */
  189. #define WM8993_MIXINR_ENA 0x0100 /* MIXINR_ENA */
  190. #define WM8993_MIXINR_ENA_MASK 0x0100 /* MIXINR_ENA */
  191. #define WM8993_MIXINR_ENA_SHIFT 8 /* MIXINR_ENA */
  192. #define WM8993_MIXINR_ENA_WIDTH 1 /* MIXINR_ENA */
  193. #define WM8993_IN2L_ENA 0x0080 /* IN2L_ENA */
  194. #define WM8993_IN2L_ENA_MASK 0x0080 /* IN2L_ENA */
  195. #define WM8993_IN2L_ENA_SHIFT 7 /* IN2L_ENA */
  196. #define WM8993_IN2L_ENA_WIDTH 1 /* IN2L_ENA */
  197. #define WM8993_IN1L_ENA 0x0040 /* IN1L_ENA */
  198. #define WM8993_IN1L_ENA_MASK 0x0040 /* IN1L_ENA */
  199. #define WM8993_IN1L_ENA_SHIFT 6 /* IN1L_ENA */
  200. #define WM8993_IN1L_ENA_WIDTH 1 /* IN1L_ENA */
  201. #define WM8993_IN2R_ENA 0x0020 /* IN2R_ENA */
  202. #define WM8993_IN2R_ENA_MASK 0x0020 /* IN2R_ENA */
  203. #define WM8993_IN2R_ENA_SHIFT 5 /* IN2R_ENA */
  204. #define WM8993_IN2R_ENA_WIDTH 1 /* IN2R_ENA */
  205. #define WM8993_IN1R_ENA 0x0010 /* IN1R_ENA */
  206. #define WM8993_IN1R_ENA_MASK 0x0010 /* IN1R_ENA */
  207. #define WM8993_IN1R_ENA_SHIFT 4 /* IN1R_ENA */
  208. #define WM8993_IN1R_ENA_WIDTH 1 /* IN1R_ENA */
  209. #define WM8993_ADCL_ENA 0x0002 /* ADCL_ENA */
  210. #define WM8993_ADCL_ENA_MASK 0x0002 /* ADCL_ENA */
  211. #define WM8993_ADCL_ENA_SHIFT 1 /* ADCL_ENA */
  212. #define WM8993_ADCL_ENA_WIDTH 1 /* ADCL_ENA */
  213. #define WM8993_ADCR_ENA 0x0001 /* ADCR_ENA */
  214. #define WM8993_ADCR_ENA_MASK 0x0001 /* ADCR_ENA */
  215. #define WM8993_ADCR_ENA_SHIFT 0 /* ADCR_ENA */
  216. #define WM8993_ADCR_ENA_WIDTH 1 /* ADCR_ENA */
  217. /*
  218. * R3 (0x03) - Power Management (3)
  219. */
  220. #define WM8993_LINEOUT1N_ENA 0x2000 /* LINEOUT1N_ENA */
  221. #define WM8993_LINEOUT1N_ENA_MASK 0x2000 /* LINEOUT1N_ENA */
  222. #define WM8993_LINEOUT1N_ENA_SHIFT 13 /* LINEOUT1N_ENA */
  223. #define WM8993_LINEOUT1N_ENA_WIDTH 1 /* LINEOUT1N_ENA */
  224. #define WM8993_LINEOUT1P_ENA 0x1000 /* LINEOUT1P_ENA */
  225. #define WM8993_LINEOUT1P_ENA_MASK 0x1000 /* LINEOUT1P_ENA */
  226. #define WM8993_LINEOUT1P_ENA_SHIFT 12 /* LINEOUT1P_ENA */
  227. #define WM8993_LINEOUT1P_ENA_WIDTH 1 /* LINEOUT1P_ENA */
  228. #define WM8993_LINEOUT2N_ENA 0x0800 /* LINEOUT2N_ENA */
  229. #define WM8993_LINEOUT2N_ENA_MASK 0x0800 /* LINEOUT2N_ENA */
  230. #define WM8993_LINEOUT2N_ENA_SHIFT 11 /* LINEOUT2N_ENA */
  231. #define WM8993_LINEOUT2N_ENA_WIDTH 1 /* LINEOUT2N_ENA */
  232. #define WM8993_LINEOUT2P_ENA 0x0400 /* LINEOUT2P_ENA */
  233. #define WM8993_LINEOUT2P_ENA_MASK 0x0400 /* LINEOUT2P_ENA */
  234. #define WM8993_LINEOUT2P_ENA_SHIFT 10 /* LINEOUT2P_ENA */
  235. #define WM8993_LINEOUT2P_ENA_WIDTH 1 /* LINEOUT2P_ENA */
  236. #define WM8993_SPKRVOL_ENA 0x0200 /* SPKRVOL_ENA */
  237. #define WM8993_SPKRVOL_ENA_MASK 0x0200 /* SPKRVOL_ENA */
  238. #define WM8993_SPKRVOL_ENA_SHIFT 9 /* SPKRVOL_ENA */
  239. #define WM8993_SPKRVOL_ENA_WIDTH 1 /* SPKRVOL_ENA */
  240. #define WM8993_SPKLVOL_ENA 0x0100 /* SPKLVOL_ENA */
  241. #define WM8993_SPKLVOL_ENA_MASK 0x0100 /* SPKLVOL_ENA */
  242. #define WM8993_SPKLVOL_ENA_SHIFT 8 /* SPKLVOL_ENA */
  243. #define WM8993_SPKLVOL_ENA_WIDTH 1 /* SPKLVOL_ENA */
  244. #define WM8993_MIXOUTLVOL_ENA 0x0080 /* MIXOUTLVOL_ENA */
  245. #define WM8993_MIXOUTLVOL_ENA_MASK 0x0080 /* MIXOUTLVOL_ENA */
  246. #define WM8993_MIXOUTLVOL_ENA_SHIFT 7 /* MIXOUTLVOL_ENA */
  247. #define WM8993_MIXOUTLVOL_ENA_WIDTH 1 /* MIXOUTLVOL_ENA */
  248. #define WM8993_MIXOUTRVOL_ENA 0x0040 /* MIXOUTRVOL_ENA */
  249. #define WM8993_MIXOUTRVOL_ENA_MASK 0x0040 /* MIXOUTRVOL_ENA */
  250. #define WM8993_MIXOUTRVOL_ENA_SHIFT 6 /* MIXOUTRVOL_ENA */
  251. #define WM8993_MIXOUTRVOL_ENA_WIDTH 1 /* MIXOUTRVOL_ENA */
  252. #define WM8993_MIXOUTL_ENA 0x0020 /* MIXOUTL_ENA */
  253. #define WM8993_MIXOUTL_ENA_MASK 0x0020 /* MIXOUTL_ENA */
  254. #define WM8993_MIXOUTL_ENA_SHIFT 5 /* MIXOUTL_ENA */
  255. #define WM8993_MIXOUTL_ENA_WIDTH 1 /* MIXOUTL_ENA */
  256. #define WM8993_MIXOUTR_ENA 0x0010 /* MIXOUTR_ENA */
  257. #define WM8993_MIXOUTR_ENA_MASK 0x0010 /* MIXOUTR_ENA */
  258. #define WM8993_MIXOUTR_ENA_SHIFT 4 /* MIXOUTR_ENA */
  259. #define WM8993_MIXOUTR_ENA_WIDTH 1 /* MIXOUTR_ENA */
  260. #define WM8993_DACL_ENA 0x0002 /* DACL_ENA */
  261. #define WM8993_DACL_ENA_MASK 0x0002 /* DACL_ENA */
  262. #define WM8993_DACL_ENA_SHIFT 1 /* DACL_ENA */
  263. #define WM8993_DACL_ENA_WIDTH 1 /* DACL_ENA */
  264. #define WM8993_DACR_ENA 0x0001 /* DACR_ENA */
  265. #define WM8993_DACR_ENA_MASK 0x0001 /* DACR_ENA */
  266. #define WM8993_DACR_ENA_SHIFT 0 /* DACR_ENA */
  267. #define WM8993_DACR_ENA_WIDTH 1 /* DACR_ENA */
  268. /*
  269. * R4 (0x04) - Audio Interface (1)
  270. */
  271. #define WM8993_AIFADCL_SRC 0x8000 /* AIFADCL_SRC */
  272. #define WM8993_AIFADCL_SRC_MASK 0x8000 /* AIFADCL_SRC */
  273. #define WM8993_AIFADCL_SRC_SHIFT 15 /* AIFADCL_SRC */
  274. #define WM8993_AIFADCL_SRC_WIDTH 1 /* AIFADCL_SRC */
  275. #define WM8993_AIFADCR_SRC 0x4000 /* AIFADCR_SRC */
  276. #define WM8993_AIFADCR_SRC_MASK 0x4000 /* AIFADCR_SRC */
  277. #define WM8993_AIFADCR_SRC_SHIFT 14 /* AIFADCR_SRC */
  278. #define WM8993_AIFADCR_SRC_WIDTH 1 /* AIFADCR_SRC */
  279. #define WM8993_AIFADC_TDM 0x2000 /* AIFADC_TDM */
  280. #define WM8993_AIFADC_TDM_MASK 0x2000 /* AIFADC_TDM */
  281. #define WM8993_AIFADC_TDM_SHIFT 13 /* AIFADC_TDM */
  282. #define WM8993_AIFADC_TDM_WIDTH 1 /* AIFADC_TDM */
  283. #define WM8993_AIFADC_TDM_CHAN 0x1000 /* AIFADC_TDM_CHAN */
  284. #define WM8993_AIFADC_TDM_CHAN_MASK 0x1000 /* AIFADC_TDM_CHAN */
  285. #define WM8993_AIFADC_TDM_CHAN_SHIFT 12 /* AIFADC_TDM_CHAN */
  286. #define WM8993_AIFADC_TDM_CHAN_WIDTH 1 /* AIFADC_TDM_CHAN */
  287. #define WM8993_BCLK_DIR 0x0200 /* BCLK_DIR */
  288. #define WM8993_BCLK_DIR_MASK 0x0200 /* BCLK_DIR */
  289. #define WM8993_BCLK_DIR_SHIFT 9 /* BCLK_DIR */
  290. #define WM8993_BCLK_DIR_WIDTH 1 /* BCLK_DIR */
  291. #define WM8993_AIF_BCLK_INV 0x0100 /* AIF_BCLK_INV */
  292. #define WM8993_AIF_BCLK_INV_MASK 0x0100 /* AIF_BCLK_INV */
  293. #define WM8993_AIF_BCLK_INV_SHIFT 8 /* AIF_BCLK_INV */
  294. #define WM8993_AIF_BCLK_INV_WIDTH 1 /* AIF_BCLK_INV */
  295. #define WM8993_AIF_LRCLK_INV 0x0080 /* AIF_LRCLK_INV */
  296. #define WM8993_AIF_LRCLK_INV_MASK 0x0080 /* AIF_LRCLK_INV */
  297. #define WM8993_AIF_LRCLK_INV_SHIFT 7 /* AIF_LRCLK_INV */
  298. #define WM8993_AIF_LRCLK_INV_WIDTH 1 /* AIF_LRCLK_INV */
  299. #define WM8993_AIF_WL_MASK 0x0060 /* AIF_WL - [6:5] */
  300. #define WM8993_AIF_WL_SHIFT 5 /* AIF_WL - [6:5] */
  301. #define WM8993_AIF_WL_WIDTH 2 /* AIF_WL - [6:5] */
  302. #define WM8993_AIF_FMT_MASK 0x0018 /* AIF_FMT - [4:3] */
  303. #define WM8993_AIF_FMT_SHIFT 3 /* AIF_FMT - [4:3] */
  304. #define WM8993_AIF_FMT_WIDTH 2 /* AIF_FMT - [4:3] */
  305. /*
  306. * R5 (0x05) - Audio Interface (2)
  307. */
  308. #define WM8993_AIFDACL_SRC 0x8000 /* AIFDACL_SRC */
  309. #define WM8993_AIFDACL_SRC_MASK 0x8000 /* AIFDACL_SRC */
  310. #define WM8993_AIFDACL_SRC_SHIFT 15 /* AIFDACL_SRC */
  311. #define WM8993_AIFDACL_SRC_WIDTH 1 /* AIFDACL_SRC */
  312. #define WM8993_AIFDACR_SRC 0x4000 /* AIFDACR_SRC */
  313. #define WM8993_AIFDACR_SRC_MASK 0x4000 /* AIFDACR_SRC */
  314. #define WM8993_AIFDACR_SRC_SHIFT 14 /* AIFDACR_SRC */
  315. #define WM8993_AIFDACR_SRC_WIDTH 1 /* AIFDACR_SRC */
  316. #define WM8993_AIFDAC_TDM 0x2000 /* AIFDAC_TDM */
  317. #define WM8993_AIFDAC_TDM_MASK 0x2000 /* AIFDAC_TDM */
  318. #define WM8993_AIFDAC_TDM_SHIFT 13 /* AIFDAC_TDM */
  319. #define WM8993_AIFDAC_TDM_WIDTH 1 /* AIFDAC_TDM */
  320. #define WM8993_AIFDAC_TDM_CHAN 0x1000 /* AIFDAC_TDM_CHAN */
  321. #define WM8993_AIFDAC_TDM_CHAN_MASK 0x1000 /* AIFDAC_TDM_CHAN */
  322. #define WM8993_AIFDAC_TDM_CHAN_SHIFT 12 /* AIFDAC_TDM_CHAN */
  323. #define WM8993_AIFDAC_TDM_CHAN_WIDTH 1 /* AIFDAC_TDM_CHAN */
  324. #define WM8993_DAC_BOOST_MASK 0x0C00 /* DAC_BOOST - [11:10] */
  325. #define WM8993_DAC_BOOST_SHIFT 10 /* DAC_BOOST - [11:10] */
  326. #define WM8993_DAC_BOOST_WIDTH 2 /* DAC_BOOST - [11:10] */
  327. #define WM8993_DAC_COMP 0x0010 /* DAC_COMP */
  328. #define WM8993_DAC_COMP_MASK 0x0010 /* DAC_COMP */
  329. #define WM8993_DAC_COMP_SHIFT 4 /* DAC_COMP */
  330. #define WM8993_DAC_COMP_WIDTH 1 /* DAC_COMP */
  331. #define WM8993_DAC_COMPMODE 0x0008 /* DAC_COMPMODE */
  332. #define WM8993_DAC_COMPMODE_MASK 0x0008 /* DAC_COMPMODE */
  333. #define WM8993_DAC_COMPMODE_SHIFT 3 /* DAC_COMPMODE */
  334. #define WM8993_DAC_COMPMODE_WIDTH 1 /* DAC_COMPMODE */
  335. #define WM8993_ADC_COMP 0x0004 /* ADC_COMP */
  336. #define WM8993_ADC_COMP_MASK 0x0004 /* ADC_COMP */
  337. #define WM8993_ADC_COMP_SHIFT 2 /* ADC_COMP */
  338. #define WM8993_ADC_COMP_WIDTH 1 /* ADC_COMP */
  339. #define WM8993_ADC_COMPMODE 0x0002 /* ADC_COMPMODE */
  340. #define WM8993_ADC_COMPMODE_MASK 0x0002 /* ADC_COMPMODE */
  341. #define WM8993_ADC_COMPMODE_SHIFT 1 /* ADC_COMPMODE */
  342. #define WM8993_ADC_COMPMODE_WIDTH 1 /* ADC_COMPMODE */
  343. #define WM8993_LOOPBACK 0x0001 /* LOOPBACK */
  344. #define WM8993_LOOPBACK_MASK 0x0001 /* LOOPBACK */
  345. #define WM8993_LOOPBACK_SHIFT 0 /* LOOPBACK */
  346. #define WM8993_LOOPBACK_WIDTH 1 /* LOOPBACK */
  347. /*
  348. * R6 (0x06) - Clocking 1
  349. */
  350. #define WM8993_TOCLK_RATE 0x8000 /* TOCLK_RATE */
  351. #define WM8993_TOCLK_RATE_MASK 0x8000 /* TOCLK_RATE */
  352. #define WM8993_TOCLK_RATE_SHIFT 15 /* TOCLK_RATE */
  353. #define WM8993_TOCLK_RATE_WIDTH 1 /* TOCLK_RATE */
  354. #define WM8993_TOCLK_ENA 0x4000 /* TOCLK_ENA */
  355. #define WM8993_TOCLK_ENA_MASK 0x4000 /* TOCLK_ENA */
  356. #define WM8993_TOCLK_ENA_SHIFT 14 /* TOCLK_ENA */
  357. #define WM8993_TOCLK_ENA_WIDTH 1 /* TOCLK_ENA */
  358. #define WM8993_OPCLK_DIV_MASK 0x1E00 /* OPCLK_DIV - [12:9] */
  359. #define WM8993_OPCLK_DIV_SHIFT 9 /* OPCLK_DIV - [12:9] */
  360. #define WM8993_OPCLK_DIV_WIDTH 4 /* OPCLK_DIV - [12:9] */
  361. #define WM8993_DCLK_DIV_MASK 0x01C0 /* DCLK_DIV - [8:6] */
  362. #define WM8993_DCLK_DIV_SHIFT 6 /* DCLK_DIV - [8:6] */
  363. #define WM8993_DCLK_DIV_WIDTH 3 /* DCLK_DIV - [8:6] */
  364. #define WM8993_BCLK_DIV_MASK 0x001E /* BCLK_DIV - [4:1] */
  365. #define WM8993_BCLK_DIV_SHIFT 1 /* BCLK_DIV - [4:1] */
  366. #define WM8993_BCLK_DIV_WIDTH 4 /* BCLK_DIV - [4:1] */
  367. /*
  368. * R7 (0x07) - Clocking 2
  369. */
  370. #define WM8993_MCLK_SRC 0x8000 /* MCLK_SRC */
  371. #define WM8993_MCLK_SRC_MASK 0x8000 /* MCLK_SRC */
  372. #define WM8993_MCLK_SRC_SHIFT 15 /* MCLK_SRC */
  373. #define WM8993_MCLK_SRC_WIDTH 1 /* MCLK_SRC */
  374. #define WM8993_SYSCLK_SRC 0x4000 /* SYSCLK_SRC */
  375. #define WM8993_SYSCLK_SRC_MASK 0x4000 /* SYSCLK_SRC */
  376. #define WM8993_SYSCLK_SRC_SHIFT 14 /* SYSCLK_SRC */
  377. #define WM8993_SYSCLK_SRC_WIDTH 1 /* SYSCLK_SRC */
  378. #define WM8993_MCLK_DIV 0x1000 /* MCLK_DIV */
  379. #define WM8993_MCLK_DIV_MASK 0x1000 /* MCLK_DIV */
  380. #define WM8993_MCLK_DIV_SHIFT 12 /* MCLK_DIV */
  381. #define WM8993_MCLK_DIV_WIDTH 1 /* MCLK_DIV */
  382. #define WM8993_MCLK_INV 0x0400 /* MCLK_INV */
  383. #define WM8993_MCLK_INV_MASK 0x0400 /* MCLK_INV */
  384. #define WM8993_MCLK_INV_SHIFT 10 /* MCLK_INV */
  385. #define WM8993_MCLK_INV_WIDTH 1 /* MCLK_INV */
  386. #define WM8993_ADC_DIV_MASK 0x00E0 /* ADC_DIV - [7:5] */
  387. #define WM8993_ADC_DIV_SHIFT 5 /* ADC_DIV - [7:5] */
  388. #define WM8993_ADC_DIV_WIDTH 3 /* ADC_DIV - [7:5] */
  389. #define WM8993_DAC_DIV_MASK 0x001C /* DAC_DIV - [4:2] */
  390. #define WM8993_DAC_DIV_SHIFT 2 /* DAC_DIV - [4:2] */
  391. #define WM8993_DAC_DIV_WIDTH 3 /* DAC_DIV - [4:2] */
  392. /*
  393. * R8 (0x08) - Audio Interface (3)
  394. */
  395. #define WM8993_AIF_MSTR1 0x8000 /* AIF_MSTR1 */
  396. #define WM8993_AIF_MSTR1_MASK 0x8000 /* AIF_MSTR1 */
  397. #define WM8993_AIF_MSTR1_SHIFT 15 /* AIF_MSTR1 */
  398. #define WM8993_AIF_MSTR1_WIDTH 1 /* AIF_MSTR1 */
  399. /*
  400. * R9 (0x09) - Audio Interface (4)
  401. */
  402. #define WM8993_AIF_TRIS 0x2000 /* AIF_TRIS */
  403. #define WM8993_AIF_TRIS_MASK 0x2000 /* AIF_TRIS */
  404. #define WM8993_AIF_TRIS_SHIFT 13 /* AIF_TRIS */
  405. #define WM8993_AIF_TRIS_WIDTH 1 /* AIF_TRIS */
  406. #define WM8993_LRCLK_DIR 0x0800 /* LRCLK_DIR */
  407. #define WM8993_LRCLK_DIR_MASK 0x0800 /* LRCLK_DIR */
  408. #define WM8993_LRCLK_DIR_SHIFT 11 /* LRCLK_DIR */
  409. #define WM8993_LRCLK_DIR_WIDTH 1 /* LRCLK_DIR */
  410. #define WM8993_LRCLK_RATE_MASK 0x07FF /* LRCLK_RATE - [10:0] */
  411. #define WM8993_LRCLK_RATE_SHIFT 0 /* LRCLK_RATE - [10:0] */
  412. #define WM8993_LRCLK_RATE_WIDTH 11 /* LRCLK_RATE - [10:0] */
  413. /*
  414. * R10 (0x0A) - DAC CTRL
  415. */
  416. #define WM8993_DAC_OSR128 0x2000 /* DAC_OSR128 */
  417. #define WM8993_DAC_OSR128_MASK 0x2000 /* DAC_OSR128 */
  418. #define WM8993_DAC_OSR128_SHIFT 13 /* DAC_OSR128 */
  419. #define WM8993_DAC_OSR128_WIDTH 1 /* DAC_OSR128 */
  420. #define WM8993_DAC_MONO 0x0200 /* DAC_MONO */
  421. #define WM8993_DAC_MONO_MASK 0x0200 /* DAC_MONO */
  422. #define WM8993_DAC_MONO_SHIFT 9 /* DAC_MONO */
  423. #define WM8993_DAC_MONO_WIDTH 1 /* DAC_MONO */
  424. #define WM8993_DAC_SB_FILT 0x0100 /* DAC_SB_FILT */
  425. #define WM8993_DAC_SB_FILT_MASK 0x0100 /* DAC_SB_FILT */
  426. #define WM8993_DAC_SB_FILT_SHIFT 8 /* DAC_SB_FILT */
  427. #define WM8993_DAC_SB_FILT_WIDTH 1 /* DAC_SB_FILT */
  428. #define WM8993_DAC_MUTERATE 0x0080 /* DAC_MUTERATE */
  429. #define WM8993_DAC_MUTERATE_MASK 0x0080 /* DAC_MUTERATE */
  430. #define WM8993_DAC_MUTERATE_SHIFT 7 /* DAC_MUTERATE */
  431. #define WM8993_DAC_MUTERATE_WIDTH 1 /* DAC_MUTERATE */
  432. #define WM8993_DAC_UNMUTE_RAMP 0x0040 /* DAC_UNMUTE_RAMP */
  433. #define WM8993_DAC_UNMUTE_RAMP_MASK 0x0040 /* DAC_UNMUTE_RAMP */
  434. #define WM8993_DAC_UNMUTE_RAMP_SHIFT 6 /* DAC_UNMUTE_RAMP */
  435. #define WM8993_DAC_UNMUTE_RAMP_WIDTH 1 /* DAC_UNMUTE_RAMP */
  436. #define WM8993_DEEMPH_MASK 0x0030 /* DEEMPH - [5:4] */
  437. #define WM8993_DEEMPH_SHIFT 4 /* DEEMPH - [5:4] */
  438. #define WM8993_DEEMPH_WIDTH 2 /* DEEMPH - [5:4] */
  439. #define WM8993_DAC_MUTE 0x0004 /* DAC_MUTE */
  440. #define WM8993_DAC_MUTE_MASK 0x0004 /* DAC_MUTE */
  441. #define WM8993_DAC_MUTE_SHIFT 2 /* DAC_MUTE */
  442. #define WM8993_DAC_MUTE_WIDTH 1 /* DAC_MUTE */
  443. #define WM8993_DACL_DATINV 0x0002 /* DACL_DATINV */
  444. #define WM8993_DACL_DATINV_MASK 0x0002 /* DACL_DATINV */
  445. #define WM8993_DACL_DATINV_SHIFT 1 /* DACL_DATINV */
  446. #define WM8993_DACL_DATINV_WIDTH 1 /* DACL_DATINV */
  447. #define WM8993_DACR_DATINV 0x0001 /* DACR_DATINV */
  448. #define WM8993_DACR_DATINV_MASK 0x0001 /* DACR_DATINV */
  449. #define WM8993_DACR_DATINV_SHIFT 0 /* DACR_DATINV */
  450. #define WM8993_DACR_DATINV_WIDTH 1 /* DACR_DATINV */
  451. /*
  452. * R11 (0x0B) - Left DAC Digital Volume
  453. */
  454. #define WM8993_DAC_VU 0x0100 /* DAC_VU */
  455. #define WM8993_DAC_VU_MASK 0x0100 /* DAC_VU */
  456. #define WM8993_DAC_VU_SHIFT 8 /* DAC_VU */
  457. #define WM8993_DAC_VU_WIDTH 1 /* DAC_VU */
  458. #define WM8993_DACL_VOL_MASK 0x00FF /* DACL_VOL - [7:0] */
  459. #define WM8993_DACL_VOL_SHIFT 0 /* DACL_VOL - [7:0] */
  460. #define WM8993_DACL_VOL_WIDTH 8 /* DACL_VOL - [7:0] */
  461. /*
  462. * R12 (0x0C) - Right DAC Digital Volume
  463. */
  464. #define WM8993_DAC_VU 0x0100 /* DAC_VU */
  465. #define WM8993_DAC_VU_MASK 0x0100 /* DAC_VU */
  466. #define WM8993_DAC_VU_SHIFT 8 /* DAC_VU */
  467. #define WM8993_DAC_VU_WIDTH 1 /* DAC_VU */
  468. #define WM8993_DACR_VOL_MASK 0x00FF /* DACR_VOL - [7:0] */
  469. #define WM8993_DACR_VOL_SHIFT 0 /* DACR_VOL - [7:0] */
  470. #define WM8993_DACR_VOL_WIDTH 8 /* DACR_VOL - [7:0] */
  471. /*
  472. * R13 (0x0D) - Digital Side Tone
  473. */
  474. #define WM8993_ADCL_DAC_SVOL_MASK 0x1E00 /* ADCL_DAC_SVOL - [12:9] */
  475. #define WM8993_ADCL_DAC_SVOL_SHIFT 9 /* ADCL_DAC_SVOL - [12:9] */
  476. #define WM8993_ADCL_DAC_SVOL_WIDTH 4 /* ADCL_DAC_SVOL - [12:9] */
  477. #define WM8993_ADCR_DAC_SVOL_MASK 0x01E0 /* ADCR_DAC_SVOL - [8:5] */
  478. #define WM8993_ADCR_DAC_SVOL_SHIFT 5 /* ADCR_DAC_SVOL - [8:5] */
  479. #define WM8993_ADCR_DAC_SVOL_WIDTH 4 /* ADCR_DAC_SVOL - [8:5] */
  480. #define WM8993_ADC_TO_DACL_MASK 0x000C /* ADC_TO_DACL - [3:2] */
  481. #define WM8993_ADC_TO_DACL_SHIFT 2 /* ADC_TO_DACL - [3:2] */
  482. #define WM8993_ADC_TO_DACL_WIDTH 2 /* ADC_TO_DACL - [3:2] */
  483. #define WM8993_ADC_TO_DACR_MASK 0x0003 /* ADC_TO_DACR - [1:0] */
  484. #define WM8993_ADC_TO_DACR_SHIFT 0 /* ADC_TO_DACR - [1:0] */
  485. #define WM8993_ADC_TO_DACR_WIDTH 2 /* ADC_TO_DACR - [1:0] */
  486. /*
  487. * R14 (0x0E) - ADC CTRL
  488. */
  489. #define WM8993_ADC_OSR128 0x0200 /* ADC_OSR128 */
  490. #define WM8993_ADC_OSR128_MASK 0x0200 /* ADC_OSR128 */
  491. #define WM8993_ADC_OSR128_SHIFT 9 /* ADC_OSR128 */
  492. #define WM8993_ADC_OSR128_WIDTH 1 /* ADC_OSR128 */
  493. #define WM8993_ADC_HPF 0x0100 /* ADC_HPF */
  494. #define WM8993_ADC_HPF_MASK 0x0100 /* ADC_HPF */
  495. #define WM8993_ADC_HPF_SHIFT 8 /* ADC_HPF */
  496. #define WM8993_ADC_HPF_WIDTH 1 /* ADC_HPF */
  497. #define WM8993_ADC_HPF_CUT_MASK 0x0060 /* ADC_HPF_CUT - [6:5] */
  498. #define WM8993_ADC_HPF_CUT_SHIFT 5 /* ADC_HPF_CUT - [6:5] */
  499. #define WM8993_ADC_HPF_CUT_WIDTH 2 /* ADC_HPF_CUT - [6:5] */
  500. #define WM8993_ADCL_DATINV 0x0002 /* ADCL_DATINV */
  501. #define WM8993_ADCL_DATINV_MASK 0x0002 /* ADCL_DATINV */
  502. #define WM8993_ADCL_DATINV_SHIFT 1 /* ADCL_DATINV */
  503. #define WM8993_ADCL_DATINV_WIDTH 1 /* ADCL_DATINV */
  504. #define WM8993_ADCR_DATINV 0x0001 /* ADCR_DATINV */
  505. #define WM8993_ADCR_DATINV_MASK 0x0001 /* ADCR_DATINV */
  506. #define WM8993_ADCR_DATINV_SHIFT 0 /* ADCR_DATINV */
  507. #define WM8993_ADCR_DATINV_WIDTH 1 /* ADCR_DATINV */
  508. /*
  509. * R15 (0x0F) - Left ADC Digital Volume
  510. */
  511. #define WM8993_ADC_VU 0x0100 /* ADC_VU */
  512. #define WM8993_ADC_VU_MASK 0x0100 /* ADC_VU */
  513. #define WM8993_ADC_VU_SHIFT 8 /* ADC_VU */
  514. #define WM8993_ADC_VU_WIDTH 1 /* ADC_VU */
  515. #define WM8993_ADCL_VOL_MASK 0x00FF /* ADCL_VOL - [7:0] */
  516. #define WM8993_ADCL_VOL_SHIFT 0 /* ADCL_VOL - [7:0] */
  517. #define WM8993_ADCL_VOL_WIDTH 8 /* ADCL_VOL - [7:0] */
  518. /*
  519. * R16 (0x10) - Right ADC Digital Volume
  520. */
  521. #define WM8993_ADC_VU 0x0100 /* ADC_VU */
  522. #define WM8993_ADC_VU_MASK 0x0100 /* ADC_VU */
  523. #define WM8993_ADC_VU_SHIFT 8 /* ADC_VU */
  524. #define WM8993_ADC_VU_WIDTH 1 /* ADC_VU */
  525. #define WM8993_ADCR_VOL_MASK 0x00FF /* ADCR_VOL - [7:0] */
  526. #define WM8993_ADCR_VOL_SHIFT 0 /* ADCR_VOL - [7:0] */
  527. #define WM8993_ADCR_VOL_WIDTH 8 /* ADCR_VOL - [7:0] */
  528. /*
  529. * R18 (0x12) - GPIO CTRL 1
  530. */
  531. #define WM8993_JD2_SC_EINT 0x8000 /* JD2_SC_EINT */
  532. #define WM8993_JD2_SC_EINT_MASK 0x8000 /* JD2_SC_EINT */
  533. #define WM8993_JD2_SC_EINT_SHIFT 15 /* JD2_SC_EINT */
  534. #define WM8993_JD2_SC_EINT_WIDTH 1 /* JD2_SC_EINT */
  535. #define WM8993_JD2_EINT 0x4000 /* JD2_EINT */
  536. #define WM8993_JD2_EINT_MASK 0x4000 /* JD2_EINT */
  537. #define WM8993_JD2_EINT_SHIFT 14 /* JD2_EINT */
  538. #define WM8993_JD2_EINT_WIDTH 1 /* JD2_EINT */
  539. #define WM8993_WSEQ_EINT 0x2000 /* WSEQ_EINT */
  540. #define WM8993_WSEQ_EINT_MASK 0x2000 /* WSEQ_EINT */
  541. #define WM8993_WSEQ_EINT_SHIFT 13 /* WSEQ_EINT */
  542. #define WM8993_WSEQ_EINT_WIDTH 1 /* WSEQ_EINT */
  543. #define WM8993_IRQ 0x1000 /* IRQ */
  544. #define WM8993_IRQ_MASK 0x1000 /* IRQ */
  545. #define WM8993_IRQ_SHIFT 12 /* IRQ */
  546. #define WM8993_IRQ_WIDTH 1 /* IRQ */
  547. #define WM8993_TEMPOK_EINT 0x0800 /* TEMPOK_EINT */
  548. #define WM8993_TEMPOK_EINT_MASK 0x0800 /* TEMPOK_EINT */
  549. #define WM8993_TEMPOK_EINT_SHIFT 11 /* TEMPOK_EINT */
  550. #define WM8993_TEMPOK_EINT_WIDTH 1 /* TEMPOK_EINT */
  551. #define WM8993_JD1_SC_EINT 0x0400 /* JD1_SC_EINT */
  552. #define WM8993_JD1_SC_EINT_MASK 0x0400 /* JD1_SC_EINT */
  553. #define WM8993_JD1_SC_EINT_SHIFT 10 /* JD1_SC_EINT */
  554. #define WM8993_JD1_SC_EINT_WIDTH 1 /* JD1_SC_EINT */
  555. #define WM8993_JD1_EINT 0x0200 /* JD1_EINT */
  556. #define WM8993_JD1_EINT_MASK 0x0200 /* JD1_EINT */
  557. #define WM8993_JD1_EINT_SHIFT 9 /* JD1_EINT */
  558. #define WM8993_JD1_EINT_WIDTH 1 /* JD1_EINT */
  559. #define WM8993_FLL_LOCK_EINT 0x0100 /* FLL_LOCK_EINT */
  560. #define WM8993_FLL_LOCK_EINT_MASK 0x0100 /* FLL_LOCK_EINT */
  561. #define WM8993_FLL_LOCK_EINT_SHIFT 8 /* FLL_LOCK_EINT */
  562. #define WM8993_FLL_LOCK_EINT_WIDTH 1 /* FLL_LOCK_EINT */
  563. #define WM8993_GPI8_EINT 0x0080 /* GPI8_EINT */
  564. #define WM8993_GPI8_EINT_MASK 0x0080 /* GPI8_EINT */
  565. #define WM8993_GPI8_EINT_SHIFT 7 /* GPI8_EINT */
  566. #define WM8993_GPI8_EINT_WIDTH 1 /* GPI8_EINT */
  567. #define WM8993_GPI7_EINT 0x0040 /* GPI7_EINT */
  568. #define WM8993_GPI7_EINT_MASK 0x0040 /* GPI7_EINT */
  569. #define WM8993_GPI7_EINT_SHIFT 6 /* GPI7_EINT */
  570. #define WM8993_GPI7_EINT_WIDTH 1 /* GPI7_EINT */
  571. #define WM8993_GPIO1_EINT 0x0001 /* GPIO1_EINT */
  572. #define WM8993_GPIO1_EINT_MASK 0x0001 /* GPIO1_EINT */
  573. #define WM8993_GPIO1_EINT_SHIFT 0 /* GPIO1_EINT */
  574. #define WM8993_GPIO1_EINT_WIDTH 1 /* GPIO1_EINT */
  575. /*
  576. * R19 (0x13) - GPIO1
  577. */
  578. #define WM8993_GPIO1_PU 0x0020 /* GPIO1_PU */
  579. #define WM8993_GPIO1_PU_MASK 0x0020 /* GPIO1_PU */
  580. #define WM8993_GPIO1_PU_SHIFT 5 /* GPIO1_PU */
  581. #define WM8993_GPIO1_PU_WIDTH 1 /* GPIO1_PU */
  582. #define WM8993_GPIO1_PD 0x0010 /* GPIO1_PD */
  583. #define WM8993_GPIO1_PD_MASK 0x0010 /* GPIO1_PD */
  584. #define WM8993_GPIO1_PD_SHIFT 4 /* GPIO1_PD */
  585. #define WM8993_GPIO1_PD_WIDTH 1 /* GPIO1_PD */
  586. #define WM8993_GPIO1_SEL_MASK 0x000F /* GPIO1_SEL - [3:0] */
  587. #define WM8993_GPIO1_SEL_SHIFT 0 /* GPIO1_SEL - [3:0] */
  588. #define WM8993_GPIO1_SEL_WIDTH 4 /* GPIO1_SEL - [3:0] */
  589. /*
  590. * R20 (0x14) - IRQ_DEBOUNCE
  591. */
  592. #define WM8993_JD2_SC_DB 0x8000 /* JD2_SC_DB */
  593. #define WM8993_JD2_SC_DB_MASK 0x8000 /* JD2_SC_DB */
  594. #define WM8993_JD2_SC_DB_SHIFT 15 /* JD2_SC_DB */
  595. #define WM8993_JD2_SC_DB_WIDTH 1 /* JD2_SC_DB */
  596. #define WM8993_JD2_DB 0x4000 /* JD2_DB */
  597. #define WM8993_JD2_DB_MASK 0x4000 /* JD2_DB */
  598. #define WM8993_JD2_DB_SHIFT 14 /* JD2_DB */
  599. #define WM8993_JD2_DB_WIDTH 1 /* JD2_DB */
  600. #define WM8993_WSEQ_DB 0x2000 /* WSEQ_DB */
  601. #define WM8993_WSEQ_DB_MASK 0x2000 /* WSEQ_DB */
  602. #define WM8993_WSEQ_DB_SHIFT 13 /* WSEQ_DB */
  603. #define WM8993_WSEQ_DB_WIDTH 1 /* WSEQ_DB */
  604. #define WM8993_TEMPOK_DB 0x0800 /* TEMPOK_DB */
  605. #define WM8993_TEMPOK_DB_MASK 0x0800 /* TEMPOK_DB */
  606. #define WM8993_TEMPOK_DB_SHIFT 11 /* TEMPOK_DB */
  607. #define WM8993_TEMPOK_DB_WIDTH 1 /* TEMPOK_DB */
  608. #define WM8993_JD1_SC_DB 0x0400 /* JD1_SC_DB */
  609. #define WM8993_JD1_SC_DB_MASK 0x0400 /* JD1_SC_DB */
  610. #define WM8993_JD1_SC_DB_SHIFT 10 /* JD1_SC_DB */
  611. #define WM8993_JD1_SC_DB_WIDTH 1 /* JD1_SC_DB */
  612. #define WM8993_JD1_DB 0x0200 /* JD1_DB */
  613. #define WM8993_JD1_DB_MASK 0x0200 /* JD1_DB */
  614. #define WM8993_JD1_DB_SHIFT 9 /* JD1_DB */
  615. #define WM8993_JD1_DB_WIDTH 1 /* JD1_DB */
  616. #define WM8993_FLL_LOCK_DB 0x0100 /* FLL_LOCK_DB */
  617. #define WM8993_FLL_LOCK_DB_MASK 0x0100 /* FLL_LOCK_DB */
  618. #define WM8993_FLL_LOCK_DB_SHIFT 8 /* FLL_LOCK_DB */
  619. #define WM8993_FLL_LOCK_DB_WIDTH 1 /* FLL_LOCK_DB */
  620. #define WM8993_GPI8_DB 0x0080 /* GPI8_DB */
  621. #define WM8993_GPI8_DB_MASK 0x0080 /* GPI8_DB */
  622. #define WM8993_GPI8_DB_SHIFT 7 /* GPI8_DB */
  623. #define WM8993_GPI8_DB_WIDTH 1 /* GPI8_DB */
  624. #define WM8993_GPI7_DB 0x0008 /* GPI7_DB */
  625. #define WM8993_GPI7_DB_MASK 0x0008 /* GPI7_DB */
  626. #define WM8993_GPI7_DB_SHIFT 3 /* GPI7_DB */
  627. #define WM8993_GPI7_DB_WIDTH 1 /* GPI7_DB */
  628. #define WM8993_GPIO1_DB 0x0001 /* GPIO1_DB */
  629. #define WM8993_GPIO1_DB_MASK 0x0001 /* GPIO1_DB */
  630. #define WM8993_GPIO1_DB_SHIFT 0 /* GPIO1_DB */
  631. #define WM8993_GPIO1_DB_WIDTH 1 /* GPIO1_DB */
  632. /*
  633. * R22 (0x16) - GPIOCTRL 2
  634. */
  635. #define WM8993_IM_JD2_EINT 0x2000 /* IM_JD2_EINT */
  636. #define WM8993_IM_JD2_EINT_MASK 0x2000 /* IM_JD2_EINT */
  637. #define WM8993_IM_JD2_EINT_SHIFT 13 /* IM_JD2_EINT */
  638. #define WM8993_IM_JD2_EINT_WIDTH 1 /* IM_JD2_EINT */
  639. #define WM8993_IM_JD2_SC_EINT 0x1000 /* IM_JD2_SC_EINT */
  640. #define WM8993_IM_JD2_SC_EINT_MASK 0x1000 /* IM_JD2_SC_EINT */
  641. #define WM8993_IM_JD2_SC_EINT_SHIFT 12 /* IM_JD2_SC_EINT */
  642. #define WM8993_IM_JD2_SC_EINT_WIDTH 1 /* IM_JD2_SC_EINT */
  643. #define WM8993_IM_TEMPOK_EINT 0x0800 /* IM_TEMPOK_EINT */
  644. #define WM8993_IM_TEMPOK_EINT_MASK 0x0800 /* IM_TEMPOK_EINT */
  645. #define WM8993_IM_TEMPOK_EINT_SHIFT 11 /* IM_TEMPOK_EINT */
  646. #define WM8993_IM_TEMPOK_EINT_WIDTH 1 /* IM_TEMPOK_EINT */
  647. #define WM8993_IM_JD1_SC_EINT 0x0400 /* IM_JD1_SC_EINT */
  648. #define WM8993_IM_JD1_SC_EINT_MASK 0x0400 /* IM_JD1_SC_EINT */
  649. #define WM8993_IM_JD1_SC_EINT_SHIFT 10 /* IM_JD1_SC_EINT */
  650. #define WM8993_IM_JD1_SC_EINT_WIDTH 1 /* IM_JD1_SC_EINT */
  651. #define WM8993_IM_JD1_EINT 0x0200 /* IM_JD1_EINT */
  652. #define WM8993_IM_JD1_EINT_MASK 0x0200 /* IM_JD1_EINT */
  653. #define WM8993_IM_JD1_EINT_SHIFT 9 /* IM_JD1_EINT */
  654. #define WM8993_IM_JD1_EINT_WIDTH 1 /* IM_JD1_EINT */
  655. #define WM8993_IM_FLL_LOCK_EINT 0x0100 /* IM_FLL_LOCK_EINT */
  656. #define WM8993_IM_FLL_LOCK_EINT_MASK 0x0100 /* IM_FLL_LOCK_EINT */
  657. #define WM8993_IM_FLL_LOCK_EINT_SHIFT 8 /* IM_FLL_LOCK_EINT */
  658. #define WM8993_IM_FLL_LOCK_EINT_WIDTH 1 /* IM_FLL_LOCK_EINT */
  659. #define WM8993_IM_GPI8_EINT 0x0040 /* IM_GPI8_EINT */
  660. #define WM8993_IM_GPI8_EINT_MASK 0x0040 /* IM_GPI8_EINT */
  661. #define WM8993_IM_GPI8_EINT_SHIFT 6 /* IM_GPI8_EINT */
  662. #define WM8993_IM_GPI8_EINT_WIDTH 1 /* IM_GPI8_EINT */
  663. #define WM8993_IM_GPIO1_EINT 0x0020 /* IM_GPIO1_EINT */
  664. #define WM8993_IM_GPIO1_EINT_MASK 0x0020 /* IM_GPIO1_EINT */
  665. #define WM8993_IM_GPIO1_EINT_SHIFT 5 /* IM_GPIO1_EINT */
  666. #define WM8993_IM_GPIO1_EINT_WIDTH 1 /* IM_GPIO1_EINT */
  667. #define WM8993_GPI8_ENA 0x0010 /* GPI8_ENA */
  668. #define WM8993_GPI8_ENA_MASK 0x0010 /* GPI8_ENA */
  669. #define WM8993_GPI8_ENA_SHIFT 4 /* GPI8_ENA */
  670. #define WM8993_GPI8_ENA_WIDTH 1 /* GPI8_ENA */
  671. #define WM8993_IM_GPI7_EINT 0x0004 /* IM_GPI7_EINT */
  672. #define WM8993_IM_GPI7_EINT_MASK 0x0004 /* IM_GPI7_EINT */
  673. #define WM8993_IM_GPI7_EINT_SHIFT 2 /* IM_GPI7_EINT */
  674. #define WM8993_IM_GPI7_EINT_WIDTH 1 /* IM_GPI7_EINT */
  675. #define WM8993_IM_WSEQ_EINT 0x0002 /* IM_WSEQ_EINT */
  676. #define WM8993_IM_WSEQ_EINT_MASK 0x0002 /* IM_WSEQ_EINT */
  677. #define WM8993_IM_WSEQ_EINT_SHIFT 1 /* IM_WSEQ_EINT */
  678. #define WM8993_IM_WSEQ_EINT_WIDTH 1 /* IM_WSEQ_EINT */
  679. #define WM8993_GPI7_ENA 0x0001 /* GPI7_ENA */
  680. #define WM8993_GPI7_ENA_MASK 0x0001 /* GPI7_ENA */
  681. #define WM8993_GPI7_ENA_SHIFT 0 /* GPI7_ENA */
  682. #define WM8993_GPI7_ENA_WIDTH 1 /* GPI7_ENA */
  683. /*
  684. * R23 (0x17) - GPIO_POL
  685. */
  686. #define WM8993_JD2_SC_POL 0x8000 /* JD2_SC_POL */
  687. #define WM8993_JD2_SC_POL_MASK 0x8000 /* JD2_SC_POL */
  688. #define WM8993_JD2_SC_POL_SHIFT 15 /* JD2_SC_POL */
  689. #define WM8993_JD2_SC_POL_WIDTH 1 /* JD2_SC_POL */
  690. #define WM8993_JD2_POL 0x4000 /* JD2_POL */
  691. #define WM8993_JD2_POL_MASK 0x4000 /* JD2_POL */
  692. #define WM8993_JD2_POL_SHIFT 14 /* JD2_POL */
  693. #define WM8993_JD2_POL_WIDTH 1 /* JD2_POL */
  694. #define WM8993_WSEQ_POL 0x2000 /* WSEQ_POL */
  695. #define WM8993_WSEQ_POL_MASK 0x2000 /* WSEQ_POL */
  696. #define WM8993_WSEQ_POL_SHIFT 13 /* WSEQ_POL */
  697. #define WM8993_WSEQ_POL_WIDTH 1 /* WSEQ_POL */
  698. #define WM8993_IRQ_POL 0x1000 /* IRQ_POL */
  699. #define WM8993_IRQ_POL_MASK 0x1000 /* IRQ_POL */
  700. #define WM8993_IRQ_POL_SHIFT 12 /* IRQ_POL */
  701. #define WM8993_IRQ_POL_WIDTH 1 /* IRQ_POL */
  702. #define WM8993_TEMPOK_POL 0x0800 /* TEMPOK_POL */
  703. #define WM8993_TEMPOK_POL_MASK 0x0800 /* TEMPOK_POL */
  704. #define WM8993_TEMPOK_POL_SHIFT 11 /* TEMPOK_POL */
  705. #define WM8993_TEMPOK_POL_WIDTH 1 /* TEMPOK_POL */
  706. #define WM8993_JD1_SC_POL 0x0400 /* JD1_SC_POL */
  707. #define WM8993_JD1_SC_POL_MASK 0x0400 /* JD1_SC_POL */
  708. #define WM8993_JD1_SC_POL_SHIFT 10 /* JD1_SC_POL */
  709. #define WM8993_JD1_SC_POL_WIDTH 1 /* JD1_SC_POL */
  710. #define WM8993_JD1_POL 0x0200 /* JD1_POL */
  711. #define WM8993_JD1_POL_MASK 0x0200 /* JD1_POL */
  712. #define WM8993_JD1_POL_SHIFT 9 /* JD1_POL */
  713. #define WM8993_JD1_POL_WIDTH 1 /* JD1_POL */
  714. #define WM8993_FLL_LOCK_POL 0x0100 /* FLL_LOCK_POL */
  715. #define WM8993_FLL_LOCK_POL_MASK 0x0100 /* FLL_LOCK_POL */
  716. #define WM8993_FLL_LOCK_POL_SHIFT 8 /* FLL_LOCK_POL */
  717. #define WM8993_FLL_LOCK_POL_WIDTH 1 /* FLL_LOCK_POL */
  718. #define WM8993_GPI8_POL 0x0080 /* GPI8_POL */
  719. #define WM8993_GPI8_POL_MASK 0x0080 /* GPI8_POL */
  720. #define WM8993_GPI8_POL_SHIFT 7 /* GPI8_POL */
  721. #define WM8993_GPI8_POL_WIDTH 1 /* GPI8_POL */
  722. #define WM8993_GPI7_POL 0x0040 /* GPI7_POL */
  723. #define WM8993_GPI7_POL_MASK 0x0040 /* GPI7_POL */
  724. #define WM8993_GPI7_POL_SHIFT 6 /* GPI7_POL */
  725. #define WM8993_GPI7_POL_WIDTH 1 /* GPI7_POL */
  726. #define WM8993_GPIO1_POL 0x0001 /* GPIO1_POL */
  727. #define WM8993_GPIO1_POL_MASK 0x0001 /* GPIO1_POL */
  728. #define WM8993_GPIO1_POL_SHIFT 0 /* GPIO1_POL */
  729. #define WM8993_GPIO1_POL_WIDTH 1 /* GPIO1_POL */
  730. /*
  731. * R24 (0x18) - Left Line Input 1&2 Volume
  732. */
  733. #define WM8993_IN1_VU 0x0100 /* IN1_VU */
  734. #define WM8993_IN1_VU_MASK 0x0100 /* IN1_VU */
  735. #define WM8993_IN1_VU_SHIFT 8 /* IN1_VU */
  736. #define WM8993_IN1_VU_WIDTH 1 /* IN1_VU */
  737. #define WM8993_IN1L_MUTE 0x0080 /* IN1L_MUTE */
  738. #define WM8993_IN1L_MUTE_MASK 0x0080 /* IN1L_MUTE */
  739. #define WM8993_IN1L_MUTE_SHIFT 7 /* IN1L_MUTE */
  740. #define WM8993_IN1L_MUTE_WIDTH 1 /* IN1L_MUTE */
  741. #define WM8993_IN1L_ZC 0x0040 /* IN1L_ZC */
  742. #define WM8993_IN1L_ZC_MASK 0x0040 /* IN1L_ZC */
  743. #define WM8993_IN1L_ZC_SHIFT 6 /* IN1L_ZC */
  744. #define WM8993_IN1L_ZC_WIDTH 1 /* IN1L_ZC */
  745. #define WM8993_IN1L_VOL_MASK 0x001F /* IN1L_VOL - [4:0] */
  746. #define WM8993_IN1L_VOL_SHIFT 0 /* IN1L_VOL - [4:0] */
  747. #define WM8993_IN1L_VOL_WIDTH 5 /* IN1L_VOL - [4:0] */
  748. /*
  749. * R25 (0x19) - Left Line Input 3&4 Volume
  750. */
  751. #define WM8993_IN2_VU 0x0100 /* IN2_VU */
  752. #define WM8993_IN2_VU_MASK 0x0100 /* IN2_VU */
  753. #define WM8993_IN2_VU_SHIFT 8 /* IN2_VU */
  754. #define WM8993_IN2_VU_WIDTH 1 /* IN2_VU */
  755. #define WM8993_IN2L_MUTE 0x0080 /* IN2L_MUTE */
  756. #define WM8993_IN2L_MUTE_MASK 0x0080 /* IN2L_MUTE */
  757. #define WM8993_IN2L_MUTE_SHIFT 7 /* IN2L_MUTE */
  758. #define WM8993_IN2L_MUTE_WIDTH 1 /* IN2L_MUTE */
  759. #define WM8993_IN2L_ZC 0x0040 /* IN2L_ZC */
  760. #define WM8993_IN2L_ZC_MASK 0x0040 /* IN2L_ZC */
  761. #define WM8993_IN2L_ZC_SHIFT 6 /* IN2L_ZC */
  762. #define WM8993_IN2L_ZC_WIDTH 1 /* IN2L_ZC */
  763. #define WM8993_IN2L_VOL_MASK 0x001F /* IN2L_VOL - [4:0] */
  764. #define WM8993_IN2L_VOL_SHIFT 0 /* IN2L_VOL - [4:0] */
  765. #define WM8993_IN2L_VOL_WIDTH 5 /* IN2L_VOL - [4:0] */
  766. /*
  767. * R26 (0x1A) - Right Line Input 1&2 Volume
  768. */
  769. #define WM8993_IN1_VU 0x0100 /* IN1_VU */
  770. #define WM8993_IN1_VU_MASK 0x0100 /* IN1_VU */
  771. #define WM8993_IN1_VU_SHIFT 8 /* IN1_VU */
  772. #define WM8993_IN1_VU_WIDTH 1 /* IN1_VU */
  773. #define WM8993_IN1R_MUTE 0x0080 /* IN1R_MUTE */
  774. #define WM8993_IN1R_MUTE_MASK 0x0080 /* IN1R_MUTE */
  775. #define WM8993_IN1R_MUTE_SHIFT 7 /* IN1R_MUTE */
  776. #define WM8993_IN1R_MUTE_WIDTH 1 /* IN1R_MUTE */
  777. #define WM8993_IN1R_ZC 0x0040 /* IN1R_ZC */
  778. #define WM8993_IN1R_ZC_MASK 0x0040 /* IN1R_ZC */
  779. #define WM8993_IN1R_ZC_SHIFT 6 /* IN1R_ZC */
  780. #define WM8993_IN1R_ZC_WIDTH 1 /* IN1R_ZC */
  781. #define WM8993_IN1R_VOL_MASK 0x001F /* IN1R_VOL - [4:0] */
  782. #define WM8993_IN1R_VOL_SHIFT 0 /* IN1R_VOL - [4:0] */
  783. #define WM8993_IN1R_VOL_WIDTH 5 /* IN1R_VOL - [4:0] */
  784. /*
  785. * R27 (0x1B) - Right Line Input 3&4 Volume
  786. */
  787. #define WM8993_IN2_VU 0x0100 /* IN2_VU */
  788. #define WM8993_IN2_VU_MASK 0x0100 /* IN2_VU */
  789. #define WM8993_IN2_VU_SHIFT 8 /* IN2_VU */
  790. #define WM8993_IN2_VU_WIDTH 1 /* IN2_VU */
  791. #define WM8993_IN2R_MUTE 0x0080 /* IN2R_MUTE */
  792. #define WM8993_IN2R_MUTE_MASK 0x0080 /* IN2R_MUTE */
  793. #define WM8993_IN2R_MUTE_SHIFT 7 /* IN2R_MUTE */
  794. #define WM8993_IN2R_MUTE_WIDTH 1 /* IN2R_MUTE */
  795. #define WM8993_IN2R_ZC 0x0040 /* IN2R_ZC */
  796. #define WM8993_IN2R_ZC_MASK 0x0040 /* IN2R_ZC */
  797. #define WM8993_IN2R_ZC_SHIFT 6 /* IN2R_ZC */
  798. #define WM8993_IN2R_ZC_WIDTH 1 /* IN2R_ZC */
  799. #define WM8993_IN2R_VOL_MASK 0x001F /* IN2R_VOL - [4:0] */
  800. #define WM8993_IN2R_VOL_SHIFT 0 /* IN2R_VOL - [4:0] */
  801. #define WM8993_IN2R_VOL_WIDTH 5 /* IN2R_VOL - [4:0] */
  802. /*
  803. * R28 (0x1C) - Left Output Volume
  804. */
  805. #define WM8993_HPOUT1_VU 0x0100 /* HPOUT1_VU */
  806. #define WM8993_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */
  807. #define WM8993_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */
  808. #define WM8993_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */
  809. #define WM8993_HPOUT1L_ZC 0x0080 /* HPOUT1L_ZC */
  810. #define WM8993_HPOUT1L_ZC_MASK 0x0080 /* HPOUT1L_ZC */
  811. #define WM8993_HPOUT1L_ZC_SHIFT 7 /* HPOUT1L_ZC */
  812. #define WM8993_HPOUT1L_ZC_WIDTH 1 /* HPOUT1L_ZC */
  813. #define WM8993_HPOUT1L_MUTE_N 0x0040 /* HPOUT1L_MUTE_N */
  814. #define WM8993_HPOUT1L_MUTE_N_MASK 0x0040 /* HPOUT1L_MUTE_N */
  815. #define WM8993_HPOUT1L_MUTE_N_SHIFT 6 /* HPOUT1L_MUTE_N */
  816. #define WM8993_HPOUT1L_MUTE_N_WIDTH 1 /* HPOUT1L_MUTE_N */
  817. #define WM8993_HPOUT1L_VOL_MASK 0x003F /* HPOUT1L_VOL - [5:0] */
  818. #define WM8993_HPOUT1L_VOL_SHIFT 0 /* HPOUT1L_VOL - [5:0] */
  819. #define WM8993_HPOUT1L_VOL_WIDTH 6 /* HPOUT1L_VOL - [5:0] */
  820. /*
  821. * R29 (0x1D) - Right Output Volume
  822. */
  823. #define WM8993_HPOUT1_VU 0x0100 /* HPOUT1_VU */
  824. #define WM8993_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */
  825. #define WM8993_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */
  826. #define WM8993_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */
  827. #define WM8993_HPOUT1R_ZC 0x0080 /* HPOUT1R_ZC */
  828. #define WM8993_HPOUT1R_ZC_MASK 0x0080 /* HPOUT1R_ZC */
  829. #define WM8993_HPOUT1R_ZC_SHIFT 7 /* HPOUT1R_ZC */
  830. #define WM8993_HPOUT1R_ZC_WIDTH 1 /* HPOUT1R_ZC */
  831. #define WM8993_HPOUT1R_MUTE_N 0x0040 /* HPOUT1R_MUTE_N */
  832. #define WM8993_HPOUT1R_MUTE_N_MASK 0x0040 /* HPOUT1R_MUTE_N */
  833. #define WM8993_HPOUT1R_MUTE_N_SHIFT 6 /* HPOUT1R_MUTE_N */
  834. #define WM8993_HPOUT1R_MUTE_N_WIDTH 1 /* HPOUT1R_MUTE_N */
  835. #define WM8993_HPOUT1R_VOL_MASK 0x003F /* HPOUT1R_VOL - [5:0] */
  836. #define WM8993_HPOUT1R_VOL_SHIFT 0 /* HPOUT1R_VOL - [5:0] */
  837. #define WM8993_HPOUT1R_VOL_WIDTH 6 /* HPOUT1R_VOL - [5:0] */
  838. /*
  839. * R30 (0x1E) - Line Outputs Volume
  840. */
  841. #define WM8993_LINEOUT1N_MUTE 0x0040 /* LINEOUT1N_MUTE */
  842. #define WM8993_LINEOUT1N_MUTE_MASK 0x0040 /* LINEOUT1N_MUTE */
  843. #define WM8993_LINEOUT1N_MUTE_SHIFT 6 /* LINEOUT1N_MUTE */
  844. #define WM8993_LINEOUT1N_MUTE_WIDTH 1 /* LINEOUT1N_MUTE */
  845. #define WM8993_LINEOUT1P_MUTE 0x0020 /* LINEOUT1P_MUTE */
  846. #define WM8993_LINEOUT1P_MUTE_MASK 0x0020 /* LINEOUT1P_MUTE */
  847. #define WM8993_LINEOUT1P_MUTE_SHIFT 5 /* LINEOUT1P_MUTE */
  848. #define WM8993_LINEOUT1P_MUTE_WIDTH 1 /* LINEOUT1P_MUTE */
  849. #define WM8993_LINEOUT1_VOL 0x0010 /* LINEOUT1_VOL */
  850. #define WM8993_LINEOUT1_VOL_MASK 0x0010 /* LINEOUT1_VOL */
  851. #define WM8993_LINEOUT1_VOL_SHIFT 4 /* LINEOUT1_VOL */
  852. #define WM8993_LINEOUT1_VOL_WIDTH 1 /* LINEOUT1_VOL */
  853. #define WM8993_LINEOUT2N_MUTE 0x0004 /* LINEOUT2N_MUTE */
  854. #define WM8993_LINEOUT2N_MUTE_MASK 0x0004 /* LINEOUT2N_MUTE */
  855. #define WM8993_LINEOUT2N_MUTE_SHIFT 2 /* LINEOUT2N_MUTE */
  856. #define WM8993_LINEOUT2N_MUTE_WIDTH 1 /* LINEOUT2N_MUTE */
  857. #define WM8993_LINEOUT2P_MUTE 0x0002 /* LINEOUT2P_MUTE */
  858. #define WM8993_LINEOUT2P_MUTE_MASK 0x0002 /* LINEOUT2P_MUTE */
  859. #define WM8993_LINEOUT2P_MUTE_SHIFT 1 /* LINEOUT2P_MUTE */
  860. #define WM8993_LINEOUT2P_MUTE_WIDTH 1 /* LINEOUT2P_MUTE */
  861. #define WM8993_LINEOUT2_VOL 0x0001 /* LINEOUT2_VOL */
  862. #define WM8993_LINEOUT2_VOL_MASK 0x0001 /* LINEOUT2_VOL */
  863. #define WM8993_LINEOUT2_VOL_SHIFT 0 /* LINEOUT2_VOL */
  864. #define WM8993_LINEOUT2_VOL_WIDTH 1 /* LINEOUT2_VOL */
  865. /*
  866. * R31 (0x1F) - HPOUT2 Volume
  867. */
  868. #define WM8993_HPOUT2_MUTE 0x0020 /* HPOUT2_MUTE */
  869. #define WM8993_HPOUT2_MUTE_MASK 0x0020 /* HPOUT2_MUTE */
  870. #define WM8993_HPOUT2_MUTE_SHIFT 5 /* HPOUT2_MUTE */
  871. #define WM8993_HPOUT2_MUTE_WIDTH 1 /* HPOUT2_MUTE */
  872. #define WM8993_HPOUT2_VOL 0x0010 /* HPOUT2_VOL */
  873. #define WM8993_HPOUT2_VOL_MASK 0x0010 /* HPOUT2_VOL */
  874. #define WM8993_HPOUT2_VOL_SHIFT 4 /* HPOUT2_VOL */
  875. #define WM8993_HPOUT2_VOL_WIDTH 1 /* HPOUT2_VOL */
  876. /*
  877. * R32 (0x20) - Left OPGA Volume
  878. */
  879. #define WM8993_MIXOUT_VU 0x0100 /* MIXOUT_VU */
  880. #define WM8993_MIXOUT_VU_MASK 0x0100 /* MIXOUT_VU */
  881. #define WM8993_MIXOUT_VU_SHIFT 8 /* MIXOUT_VU */
  882. #define WM8993_MIXOUT_VU_WIDTH 1 /* MIXOUT_VU */
  883. #define WM8993_MIXOUTL_ZC 0x0080 /* MIXOUTL_ZC */
  884. #define WM8993_MIXOUTL_ZC_MASK 0x0080 /* MIXOUTL_ZC */
  885. #define WM8993_MIXOUTL_ZC_SHIFT 7 /* MIXOUTL_ZC */
  886. #define WM8993_MIXOUTL_ZC_WIDTH 1 /* MIXOUTL_ZC */
  887. #define WM8993_MIXOUTL_MUTE_N 0x0040 /* MIXOUTL_MUTE_N */
  888. #define WM8993_MIXOUTL_MUTE_N_MASK 0x0040 /* MIXOUTL_MUTE_N */
  889. #define WM8993_MIXOUTL_MUTE_N_SHIFT 6 /* MIXOUTL_MUTE_N */
  890. #define WM8993_MIXOUTL_MUTE_N_WIDTH 1 /* MIXOUTL_MUTE_N */
  891. #define WM8993_MIXOUTL_VOL_MASK 0x003F /* MIXOUTL_VOL - [5:0] */
  892. #define WM8993_MIXOUTL_VOL_SHIFT 0 /* MIXOUTL_VOL - [5:0] */
  893. #define WM8993_MIXOUTL_VOL_WIDTH 6 /* MIXOUTL_VOL - [5:0] */
  894. /*
  895. * R33 (0x21) - Right OPGA Volume
  896. */
  897. #define WM8993_MIXOUT_VU 0x0100 /* MIXOUT_VU */
  898. #define WM8993_MIXOUT_VU_MASK 0x0100 /* MIXOUT_VU */
  899. #define WM8993_MIXOUT_VU_SHIFT 8 /* MIXOUT_VU */
  900. #define WM8993_MIXOUT_VU_WIDTH 1 /* MIXOUT_VU */
  901. #define WM8993_MIXOUTR_ZC 0x0080 /* MIXOUTR_ZC */
  902. #define WM8993_MIXOUTR_ZC_MASK 0x0080 /* MIXOUTR_ZC */
  903. #define WM8993_MIXOUTR_ZC_SHIFT 7 /* MIXOUTR_ZC */
  904. #define WM8993_MIXOUTR_ZC_WIDTH 1 /* MIXOUTR_ZC */
  905. #define WM8993_MIXOUTR_MUTE_N 0x0040 /* MIXOUTR_MUTE_N */
  906. #define WM8993_MIXOUTR_MUTE_N_MASK 0x0040 /* MIXOUTR_MUTE_N */
  907. #define WM8993_MIXOUTR_MUTE_N_SHIFT 6 /* MIXOUTR_MUTE_N */
  908. #define WM8993_MIXOUTR_MUTE_N_WIDTH 1 /* MIXOUTR_MUTE_N */
  909. #define WM8993_MIXOUTR_VOL_MASK 0x003F /* MIXOUTR_VOL - [5:0] */
  910. #define WM8993_MIXOUTR_VOL_SHIFT 0 /* MIXOUTR_VOL - [5:0] */
  911. #define WM8993_MIXOUTR_VOL_WIDTH 6 /* MIXOUTR_VOL - [5:0] */
  912. /*
  913. * R34 (0x22) - SPKMIXL Attenuation
  914. */
  915. #define WM8993_MIXINL_SPKMIXL_VOL 0x0020 /* MIXINL_SPKMIXL_VOL */
  916. #define WM8993_MIXINL_SPKMIXL_VOL_MASK 0x0020 /* MIXINL_SPKMIXL_VOL */
  917. #define WM8993_MIXINL_SPKMIXL_VOL_SHIFT 5 /* MIXINL_SPKMIXL_VOL */
  918. #define WM8993_MIXINL_SPKMIXL_VOL_WIDTH 1 /* MIXINL_SPKMIXL_VOL */
  919. #define WM8993_IN1LP_SPKMIXL_VOL 0x0010 /* IN1LP_SPKMIXL_VOL */
  920. #define WM8993_IN1LP_SPKMIXL_VOL_MASK 0x0010 /* IN1LP_SPKMIXL_VOL */
  921. #define WM8993_IN1LP_SPKMIXL_VOL_SHIFT 4 /* IN1LP_SPKMIXL_VOL */
  922. #define WM8993_IN1LP_SPKMIXL_VOL_WIDTH 1 /* IN1LP_SPKMIXL_VOL */
  923. #define WM8993_MIXOUTL_SPKMIXL_VOL 0x0008 /* MIXOUTL_SPKMIXL_VOL */
  924. #define WM8993_MIXOUTL_SPKMIXL_VOL_MASK 0x0008 /* MIXOUTL_SPKMIXL_VOL */
  925. #define WM8993_MIXOUTL_SPKMIXL_VOL_SHIFT 3 /* MIXOUTL_SPKMIXL_VOL */
  926. #define WM8993_MIXOUTL_SPKMIXL_VOL_WIDTH 1 /* MIXOUTL_SPKMIXL_VOL */
  927. #define WM8993_DACL_SPKMIXL_VOL 0x0004 /* DACL_SPKMIXL_VOL */
  928. #define WM8993_DACL_SPKMIXL_VOL_MASK 0x0004 /* DACL_SPKMIXL_VOL */
  929. #define WM8993_DACL_SPKMIXL_VOL_SHIFT 2 /* DACL_SPKMIXL_VOL */
  930. #define WM8993_DACL_SPKMIXL_VOL_WIDTH 1 /* DACL_SPKMIXL_VOL */
  931. #define WM8993_SPKMIXL_VOL_MASK 0x0003 /* SPKMIXL_VOL - [1:0] */
  932. #define WM8993_SPKMIXL_VOL_SHIFT 0 /* SPKMIXL_VOL - [1:0] */
  933. #define WM8993_SPKMIXL_VOL_WIDTH 2 /* SPKMIXL_VOL - [1:0] */
  934. /*
  935. * R35 (0x23) - SPKMIXR Attenuation
  936. */
  937. #define WM8993_SPKOUT_CLASSAB_MODE 0x0100 /* SPKOUT_CLASSAB_MODE */
  938. #define WM8993_SPKOUT_CLASSAB_MODE_MASK 0x0100 /* SPKOUT_CLASSAB_MODE */
  939. #define WM8993_SPKOUT_CLASSAB_MODE_SHIFT 8 /* SPKOUT_CLASSAB_MODE */
  940. #define WM8993_SPKOUT_CLASSAB_MODE_WIDTH 1 /* SPKOUT_CLASSAB_MODE */
  941. #define WM8993_MIXINR_SPKMIXR_VOL 0x0020 /* MIXINR_SPKMIXR_VOL */
  942. #define WM8993_MIXINR_SPKMIXR_VOL_MASK 0x0020 /* MIXINR_SPKMIXR_VOL */
  943. #define WM8993_MIXINR_SPKMIXR_VOL_SHIFT 5 /* MIXINR_SPKMIXR_VOL */
  944. #define WM8993_MIXINR_SPKMIXR_VOL_WIDTH 1 /* MIXINR_SPKMIXR_VOL */
  945. #define WM8993_IN1RP_SPKMIXR_VOL 0x0010 /* IN1RP_SPKMIXR_VOL */
  946. #define WM8993_IN1RP_SPKMIXR_VOL_MASK 0x0010 /* IN1RP_SPKMIXR_VOL */
  947. #define WM8993_IN1RP_SPKMIXR_VOL_SHIFT 4 /* IN1RP_SPKMIXR_VOL */
  948. #define WM8993_IN1RP_SPKMIXR_VOL_WIDTH 1 /* IN1RP_SPKMIXR_VOL */
  949. #define WM8993_MIXOUTR_SPKMIXR_VOL 0x0008 /* MIXOUTR_SPKMIXR_VOL */
  950. #define WM8993_MIXOUTR_SPKMIXR_VOL_MASK 0x0008 /* MIXOUTR_SPKMIXR_VOL */
  951. #define WM8993_MIXOUTR_SPKMIXR_VOL_SHIFT 3 /* MIXOUTR_SPKMIXR_VOL */
  952. #define WM8993_MIXOUTR_SPKMIXR_VOL_WIDTH 1 /* MIXOUTR_SPKMIXR_VOL */
  953. #define WM8993_DACR_SPKMIXR_VOL 0x0004 /* DACR_SPKMIXR_VOL */
  954. #define WM8993_DACR_SPKMIXR_VOL_MASK 0x0004 /* DACR_SPKMIXR_VOL */
  955. #define WM8993_DACR_SPKMIXR_VOL_SHIFT 2 /* DACR_SPKMIXR_VOL */
  956. #define WM8993_DACR_SPKMIXR_VOL_WIDTH 1 /* DACR_SPKMIXR_VOL */
  957. #define WM8993_SPKMIXR_VOL_MASK 0x0003 /* SPKMIXR_VOL - [1:0] */
  958. #define WM8993_SPKMIXR_VOL_SHIFT 0 /* SPKMIXR_VOL - [1:0] */
  959. #define WM8993_SPKMIXR_VOL_WIDTH 2 /* SPKMIXR_VOL - [1:0] */
  960. /*
  961. * R36 (0x24) - SPKOUT Mixers
  962. */
  963. #define WM8993_VRX_TO_SPKOUTL 0x0020 /* VRX_TO_SPKOUTL */
  964. #define WM8993_VRX_TO_SPKOUTL_MASK 0x0020 /* VRX_TO_SPKOUTL */
  965. #define WM8993_VRX_TO_SPKOUTL_SHIFT 5 /* VRX_TO_SPKOUTL */
  966. #define WM8993_VRX_TO_SPKOUTL_WIDTH 1 /* VRX_TO_SPKOUTL */
  967. #define WM8993_SPKMIXL_TO_SPKOUTL 0x0010 /* SPKMIXL_TO_SPKOUTL */
  968. #define WM8993_SPKMIXL_TO_SPKOUTL_MASK 0x0010 /* SPKMIXL_TO_SPKOUTL */
  969. #define WM8993_SPKMIXL_TO_SPKOUTL_SHIFT 4 /* SPKMIXL_TO_SPKOUTL */
  970. #define WM8993_SPKMIXL_TO_SPKOUTL_WIDTH 1 /* SPKMIXL_TO_SPKOUTL */
  971. #define WM8993_SPKMIXR_TO_SPKOUTL 0x0008 /* SPKMIXR_TO_SPKOUTL */
  972. #define WM8993_SPKMIXR_TO_SPKOUTL_MASK 0x0008 /* SPKMIXR_TO_SPKOUTL */
  973. #define WM8993_SPKMIXR_TO_SPKOUTL_SHIFT 3 /* SPKMIXR_TO_SPKOUTL */
  974. #define WM8993_SPKMIXR_TO_SPKOUTL_WIDTH 1 /* SPKMIXR_TO_SPKOUTL */
  975. #define WM8993_VRX_TO_SPKOUTR 0x0004 /* VRX_TO_SPKOUTR */
  976. #define WM8993_VRX_TO_SPKOUTR_MASK 0x0004 /* VRX_TO_SPKOUTR */
  977. #define WM8993_VRX_TO_SPKOUTR_SHIFT 2 /* VRX_TO_SPKOUTR */
  978. #define WM8993_VRX_TO_SPKOUTR_WIDTH 1 /* VRX_TO_SPKOUTR */
  979. #define WM8993_SPKMIXL_TO_SPKOUTR 0x0002 /* SPKMIXL_TO_SPKOUTR */
  980. #define WM8993_SPKMIXL_TO_SPKOUTR_MASK 0x0002 /* SPKMIXL_TO_SPKOUTR */
  981. #define WM8993_SPKMIXL_TO_SPKOUTR_SHIFT 1 /* SPKMIXL_TO_SPKOUTR */
  982. #define WM8993_SPKMIXL_TO_SPKOUTR_WIDTH 1 /* SPKMIXL_TO_SPKOUTR */
  983. #define WM8993_SPKMIXR_TO_SPKOUTR 0x0001 /* SPKMIXR_TO_SPKOUTR */
  984. #define WM8993_SPKMIXR_TO_SPKOUTR_MASK 0x0001 /* SPKMIXR_TO_SPKOUTR */
  985. #define WM8993_SPKMIXR_TO_SPKOUTR_SHIFT 0 /* SPKMIXR_TO_SPKOUTR */
  986. #define WM8993_SPKMIXR_TO_SPKOUTR_WIDTH 1 /* SPKMIXR_TO_SPKOUTR */
  987. /*
  988. * R37 (0x25) - SPKOUT Boost
  989. */
  990. #define WM8993_SPKOUTL_BOOST_MASK 0x0038 /* SPKOUTL_BOOST - [5:3] */
  991. #define WM8993_SPKOUTL_BOOST_SHIFT 3 /* SPKOUTL_BOOST - [5:3] */
  992. #define WM8993_SPKOUTL_BOOST_WIDTH 3 /* SPKOUTL_BOOST - [5:3] */
  993. #define WM8993_SPKOUTR_BOOST_MASK 0x0007 /* SPKOUTR_BOOST - [2:0] */
  994. #define WM8993_SPKOUTR_BOOST_SHIFT 0 /* SPKOUTR_BOOST - [2:0] */
  995. #define WM8993_SPKOUTR_BOOST_WIDTH 3 /* SPKOUTR_BOOST - [2:0] */
  996. /*
  997. * R38 (0x26) - Speaker Volume Left
  998. */
  999. #define WM8993_SPKOUT_VU 0x0100 /* SPKOUT_VU */
  1000. #define WM8993_SPKOUT_VU_MASK 0x0100 /* SPKOUT_VU */
  1001. #define WM8993_SPKOUT_VU_SHIFT 8 /* SPKOUT_VU */
  1002. #define WM8993_SPKOUT_VU_WIDTH 1 /* SPKOUT_VU */
  1003. #define WM8993_SPKOUTL_ZC 0x0080 /* SPKOUTL_ZC */
  1004. #define WM8993_SPKOUTL_ZC_MASK 0x0080 /* SPKOUTL_ZC */
  1005. #define WM8993_SPKOUTL_ZC_SHIFT 7 /* SPKOUTL_ZC */
  1006. #define WM8993_SPKOUTL_ZC_WIDTH 1 /* SPKOUTL_ZC */
  1007. #define WM8993_SPKOUTL_MUTE_N 0x0040 /* SPKOUTL_MUTE_N */
  1008. #define WM8993_SPKOUTL_MUTE_N_MASK 0x0040 /* SPKOUTL_MUTE_N */
  1009. #define WM8993_SPKOUTL_MUTE_N_SHIFT 6 /* SPKOUTL_MUTE_N */
  1010. #define WM8993_SPKOUTL_MUTE_N_WIDTH 1 /* SPKOUTL_MUTE_N */
  1011. #define WM8993_SPKOUTL_VOL_MASK 0x003F /* SPKOUTL_VOL - [5:0] */
  1012. #define WM8993_SPKOUTL_VOL_SHIFT 0 /* SPKOUTL_VOL - [5:0] */
  1013. #define WM8993_SPKOUTL_VOL_WIDTH 6 /* SPKOUTL_VOL - [5:0] */
  1014. /*
  1015. * R39 (0x27) - Speaker Volume Right
  1016. */
  1017. #define WM8993_SPKOUT_VU 0x0100 /* SPKOUT_VU */
  1018. #define WM8993_SPKOUT_VU_MASK 0x0100 /* SPKOUT_VU */
  1019. #define WM8993_SPKOUT_VU_SHIFT 8 /* SPKOUT_VU */
  1020. #define WM8993_SPKOUT_VU_WIDTH 1 /* SPKOUT_VU */
  1021. #define WM8993_SPKOUTR_ZC 0x0080 /* SPKOUTR_ZC */
  1022. #define WM8993_SPKOUTR_ZC_MASK 0x0080 /* SPKOUTR_ZC */
  1023. #define WM8993_SPKOUTR_ZC_SHIFT 7 /* SPKOUTR_ZC */
  1024. #define WM8993_SPKOUTR_ZC_WIDTH 1 /* SPKOUTR_ZC */
  1025. #define WM8993_SPKOUTR_MUTE_N 0x0040 /* SPKOUTR_MUTE_N */
  1026. #define WM8993_SPKOUTR_MUTE_N_MASK 0x0040 /* SPKOUTR_MUTE_N */
  1027. #define WM8993_SPKOUTR_MUTE_N_SHIFT 6 /* SPKOUTR_MUTE_N */
  1028. #define WM8993_SPKOUTR_MUTE_N_WIDTH 1 /* SPKOUTR_MUTE_N */
  1029. #define WM8993_SPKOUTR_VOL_MASK 0x003F /* SPKOUTR_VOL - [5:0] */
  1030. #define WM8993_SPKOUTR_VOL_SHIFT 0 /* SPKOUTR_VOL - [5:0] */
  1031. #define WM8993_SPKOUTR_VOL_WIDTH 6 /* SPKOUTR_VOL - [5:0] */
  1032. /*
  1033. * R40 (0x28) - Input Mixer2
  1034. */
  1035. #define WM8993_IN2LP_TO_IN2L 0x0080 /* IN2LP_TO_IN2L */
  1036. #define WM8993_IN2LP_TO_IN2L_MASK 0x0080 /* IN2LP_TO_IN2L */
  1037. #define WM8993_IN2LP_TO_IN2L_SHIFT 7 /* IN2LP_TO_IN2L */
  1038. #define WM8993_IN2LP_TO_IN2L_WIDTH 1 /* IN2LP_TO_IN2L */
  1039. #define WM8993_IN2LN_TO_IN2L 0x0040 /* IN2LN_TO_IN2L */
  1040. #define WM8993_IN2LN_TO_IN2L_MASK 0x0040 /* IN2LN_TO_IN2L */
  1041. #define WM8993_IN2LN_TO_IN2L_SHIFT 6 /* IN2LN_TO_IN2L */
  1042. #define WM8993_IN2LN_TO_IN2L_WIDTH 1 /* IN2LN_TO_IN2L */
  1043. #define WM8993_IN1LP_TO_IN1L 0x0020 /* IN1LP_TO_IN1L */
  1044. #define WM8993_IN1LP_TO_IN1L_MASK 0x0020 /* IN1LP_TO_IN1L */
  1045. #define WM8993_IN1LP_TO_IN1L_SHIFT 5 /* IN1LP_TO_IN1L */
  1046. #define WM8993_IN1LP_TO_IN1L_WIDTH 1 /* IN1LP_TO_IN1L */
  1047. #define WM8993_IN1LN_TO_IN1L 0x0010 /* IN1LN_TO_IN1L */
  1048. #define WM8993_IN1LN_TO_IN1L_MASK 0x0010 /* IN1LN_TO_IN1L */
  1049. #define WM8993_IN1LN_TO_IN1L_SHIFT 4 /* IN1LN_TO_IN1L */
  1050. #define WM8993_IN1LN_TO_IN1L_WIDTH 1 /* IN1LN_TO_IN1L */
  1051. #define WM8993_IN2RP_TO_IN2R 0x0008 /* IN2RP_TO_IN2R */
  1052. #define WM8993_IN2RP_TO_IN2R_MASK 0x0008 /* IN2RP_TO_IN2R */
  1053. #define WM8993_IN2RP_TO_IN2R_SHIFT 3 /* IN2RP_TO_IN2R */
  1054. #define WM8993_IN2RP_TO_IN2R_WIDTH 1 /* IN2RP_TO_IN2R */
  1055. #define WM8993_IN2RN_TO_IN2R 0x0004 /* IN2RN_TO_IN2R */
  1056. #define WM8993_IN2RN_TO_IN2R_MASK 0x0004 /* IN2RN_TO_IN2R */
  1057. #define WM8993_IN2RN_TO_IN2R_SHIFT 2 /* IN2RN_TO_IN2R */
  1058. #define WM8993_IN2RN_TO_IN2R_WIDTH 1 /* IN2RN_TO_IN2R */
  1059. #define WM8993_IN1RP_TO_IN1R 0x0002 /* IN1RP_TO_IN1R */
  1060. #define WM8993_IN1RP_TO_IN1R_MASK 0x0002 /* IN1RP_TO_IN1R */
  1061. #define WM8993_IN1RP_TO_IN1R_SHIFT 1 /* IN1RP_TO_IN1R */
  1062. #define WM8993_IN1RP_TO_IN1R_WIDTH 1 /* IN1RP_TO_IN1R */
  1063. #define WM8993_IN1RN_TO_IN1R 0x0001 /* IN1RN_TO_IN1R */
  1064. #define WM8993_IN1RN_TO_IN1R_MASK 0x0001 /* IN1RN_TO_IN1R */
  1065. #define WM8993_IN1RN_TO_IN1R_SHIFT 0 /* IN1RN_TO_IN1R */
  1066. #define WM8993_IN1RN_TO_IN1R_WIDTH 1 /* IN1RN_TO_IN1R */
  1067. /*
  1068. * R41 (0x29) - Input Mixer3
  1069. */
  1070. #define WM8993_IN2L_TO_MIXINL 0x0100 /* IN2L_TO_MIXINL */
  1071. #define WM8993_IN2L_TO_MIXINL_MASK 0x0100 /* IN2L_TO_MIXINL */
  1072. #define WM8993_IN2L_TO_MIXINL_SHIFT 8 /* IN2L_TO_MIXINL */
  1073. #define WM8993_IN2L_TO_MIXINL_WIDTH 1 /* IN2L_TO_MIXINL */
  1074. #define WM8993_IN2L_MIXINL_VOL 0x0080 /* IN2L_MIXINL_VOL */
  1075. #define WM8993_IN2L_MIXINL_VOL_MASK 0x0080 /* IN2L_MIXINL_VOL */
  1076. #define WM8993_IN2L_MIXINL_VOL_SHIFT 7 /* IN2L_MIXINL_VOL */
  1077. #define WM8993_IN2L_MIXINL_VOL_WIDTH 1 /* IN2L_MIXINL_VOL */
  1078. #define WM8993_IN1L_TO_MIXINL 0x0020 /* IN1L_TO_MIXINL */
  1079. #define WM8993_IN1L_TO_MIXINL_MASK 0x0020 /* IN1L_TO_MIXINL */
  1080. #define WM8993_IN1L_TO_MIXINL_SHIFT 5 /* IN1L_TO_MIXINL */
  1081. #define WM8993_IN1L_TO_MIXINL_WIDTH 1 /* IN1L_TO_MIXINL */
  1082. #define WM8993_IN1L_MIXINL_VOL 0x0010 /* IN1L_MIXINL_VOL */
  1083. #define WM8993_IN1L_MIXINL_VOL_MASK 0x0010 /* IN1L_MIXINL_VOL */
  1084. #define WM8993_IN1L_MIXINL_VOL_SHIFT 4 /* IN1L_MIXINL_VOL */
  1085. #define WM8993_IN1L_MIXINL_VOL_WIDTH 1 /* IN1L_MIXINL_VOL */
  1086. #define WM8993_MIXOUTL_MIXINL_VOL_MASK 0x0007 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1087. #define WM8993_MIXOUTL_MIXINL_VOL_SHIFT 0 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1088. #define WM8993_MIXOUTL_MIXINL_VOL_WIDTH 3 /* MIXOUTL_MIXINL_VOL - [2:0] */
  1089. /*
  1090. * R42 (0x2A) - Input Mixer4
  1091. */
  1092. #define WM8993_IN2R_TO_MIXINR 0x0100 /* IN2R_TO_MIXINR */
  1093. #define WM8993_IN2R_TO_MIXINR_MASK 0x0100 /* IN2R_TO_MIXINR */
  1094. #define WM8993_IN2R_TO_MIXINR_SHIFT 8 /* IN2R_TO_MIXINR */
  1095. #define WM8993_IN2R_TO_MIXINR_WIDTH 1 /* IN2R_TO_MIXINR */
  1096. #define WM8993_IN2R_MIXINR_VOL 0x0080 /* IN2R_MIXINR_VOL */
  1097. #define WM8993_IN2R_MIXINR_VOL_MASK 0x0080 /* IN2R_MIXINR_VOL */
  1098. #define WM8993_IN2R_MIXINR_VOL_SHIFT 7 /* IN2R_MIXINR_VOL */
  1099. #define WM8993_IN2R_MIXINR_VOL_WIDTH 1 /* IN2R_MIXINR_VOL */
  1100. #define WM8993_IN1R_TO_MIXINR 0x0020 /* IN1R_TO_MIXINR */
  1101. #define WM8993_IN1R_TO_MIXINR_MASK 0x0020 /* IN1R_TO_MIXINR */
  1102. #define WM8993_IN1R_TO_MIXINR_SHIFT 5 /* IN1R_TO_MIXINR */
  1103. #define WM8993_IN1R_TO_MIXINR_WIDTH 1 /* IN1R_TO_MIXINR */
  1104. #define WM8993_IN1R_MIXINR_VOL 0x0010 /* IN1R_MIXINR_VOL */
  1105. #define WM8993_IN1R_MIXINR_VOL_MASK 0x0010 /* IN1R_MIXINR_VOL */
  1106. #define WM8993_IN1R_MIXINR_VOL_SHIFT 4 /* IN1R_MIXINR_VOL */
  1107. #define WM8993_IN1R_MIXINR_VOL_WIDTH 1 /* IN1R_MIXINR_VOL */
  1108. #define WM8993_MIXOUTR_MIXINR_VOL_MASK 0x0007 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1109. #define WM8993_MIXOUTR_MIXINR_VOL_SHIFT 0 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1110. #define WM8993_MIXOUTR_MIXINR_VOL_WIDTH 3 /* MIXOUTR_MIXINR_VOL - [2:0] */
  1111. /*
  1112. * R43 (0x2B) - Input Mixer5
  1113. */
  1114. #define WM8993_IN1LP_MIXINL_VOL_MASK 0x01C0 /* IN1LP_MIXINL_VOL - [8:6] */
  1115. #define WM8993_IN1LP_MIXINL_VOL_SHIFT 6 /* IN1LP_MIXINL_VOL - [8:6] */
  1116. #define WM8993_IN1LP_MIXINL_VOL_WIDTH 3 /* IN1LP_MIXINL_VOL - [8:6] */
  1117. #define WM8993_VRX_MIXINL_VOL_MASK 0x0007 /* VRX_MIXINL_VOL - [2:0] */
  1118. #define WM8993_VRX_MIXINL_VOL_SHIFT 0 /* VRX_MIXINL_VOL - [2:0] */
  1119. #define WM8993_VRX_MIXINL_VOL_WIDTH 3 /* VRX_MIXINL_VOL - [2:0] */
  1120. /*
  1121. * R44 (0x2C) - Input Mixer6
  1122. */
  1123. #define WM8993_IN1RP_MIXINR_VOL_MASK 0x01C0 /* IN1RP_MIXINR_VOL - [8:6] */
  1124. #define WM8993_IN1RP_MIXINR_VOL_SHIFT 6 /* IN1RP_MIXINR_VOL - [8:6] */
  1125. #define WM8993_IN1RP_MIXINR_VOL_WIDTH 3 /* IN1RP_MIXINR_VOL - [8:6] */
  1126. #define WM8993_VRX_MIXINR_VOL_MASK 0x0007 /* VRX_MIXINR_VOL - [2:0] */
  1127. #define WM8993_VRX_MIXINR_VOL_SHIFT 0 /* VRX_MIXINR_VOL - [2:0] */
  1128. #define WM8993_VRX_MIXINR_VOL_WIDTH 3 /* VRX_MIXINR_VOL - [2:0] */
  1129. /*
  1130. * R45 (0x2D) - Output Mixer1
  1131. */
  1132. #define WM8993_DACL_TO_HPOUT1L 0x0100 /* DACL_TO_HPOUT1L */
  1133. #define WM8993_DACL_TO_HPOUT1L_MASK 0x0100 /* DACL_TO_HPOUT1L */
  1134. #define WM8993_DACL_TO_HPOUT1L_SHIFT 8 /* DACL_TO_HPOUT1L */
  1135. #define WM8993_DACL_TO_HPOUT1L_WIDTH 1 /* DACL_TO_HPOUT1L */
  1136. #define WM8993_MIXINR_TO_MIXOUTL 0x0080 /* MIXINR_TO_MIXOUTL */
  1137. #define WM8993_MIXINR_TO_MIXOUTL_MASK 0x0080 /* MIXINR_TO_MIXOUTL */
  1138. #define WM8993_MIXINR_TO_MIXOUTL_SHIFT 7 /* MIXINR_TO_MIXOUTL */
  1139. #define WM8993_MIXINR_TO_MIXOUTL_WIDTH 1 /* MIXINR_TO_MIXOUTL */
  1140. #define WM8993_MIXINL_TO_MIXOUTL 0x0040 /* MIXINL_TO_MIXOUTL */
  1141. #define WM8993_MIXINL_TO_MIXOUTL_MASK 0x0040 /* MIXINL_TO_MIXOUTL */
  1142. #define WM8993_MIXINL_TO_MIXOUTL_SHIFT 6 /* MIXINL_TO_MIXOUTL */
  1143. #define WM8993_MIXINL_TO_MIXOUTL_WIDTH 1 /* MIXINL_TO_MIXOUTL */
  1144. #define WM8993_IN2RN_TO_MIXOUTL 0x0020 /* IN2RN_TO_MIXOUTL */
  1145. #define WM8993_IN2RN_TO_MIXOUTL_MASK 0x0020 /* IN2RN_TO_MIXOUTL */
  1146. #define WM8993_IN2RN_TO_MIXOUTL_SHIFT 5 /* IN2RN_TO_MIXOUTL */
  1147. #define WM8993_IN2RN_TO_MIXOUTL_WIDTH 1 /* IN2RN_TO_MIXOUTL */
  1148. #define WM8993_IN2LN_TO_MIXOUTL 0x0010 /* IN2LN_TO_MIXOUTL */
  1149. #define WM8993_IN2LN_TO_MIXOUTL_MASK 0x0010 /* IN2LN_TO_MIXOUTL */
  1150. #define WM8993_IN2LN_TO_MIXOUTL_SHIFT 4 /* IN2LN_TO_MIXOUTL */
  1151. #define WM8993_IN2LN_TO_MIXOUTL_WIDTH 1 /* IN2LN_TO_MIXOUTL */
  1152. #define WM8993_IN1R_TO_MIXOUTL 0x0008 /* IN1R_TO_MIXOUTL */
  1153. #define WM8993_IN1R_TO_MIXOUTL_MASK 0x0008 /* IN1R_TO_MIXOUTL */
  1154. #define WM8993_IN1R_TO_MIXOUTL_SHIFT 3 /* IN1R_TO_MIXOUTL */
  1155. #define WM8993_IN1R_TO_MIXOUTL_WIDTH 1 /* IN1R_TO_MIXOUTL */
  1156. #define WM8993_IN1L_TO_MIXOUTL 0x0004 /* IN1L_TO_MIXOUTL */
  1157. #define WM8993_IN1L_TO_MIXOUTL_MASK 0x0004 /* IN1L_TO_MIXOUTL */
  1158. #define WM8993_IN1L_TO_MIXOUTL_SHIFT 2 /* IN1L_TO_MIXOUTL */
  1159. #define WM8993_IN1L_TO_MIXOUTL_WIDTH 1 /* IN1L_TO_MIXOUTL */
  1160. #define WM8993_IN2LP_TO_MIXOUTL 0x0002 /* IN2LP_TO_MIXOUTL */
  1161. #define WM8993_IN2LP_TO_MIXOUTL_MASK 0x0002 /* IN2LP_TO_MIXOUTL */
  1162. #define WM8993_IN2LP_TO_MIXOUTL_SHIFT 1 /* IN2LP_TO_MIXOUTL */
  1163. #define WM8993_IN2LP_TO_MIXOUTL_WIDTH 1 /* IN2LP_TO_MIXOUTL */
  1164. #define WM8993_DACL_TO_MIXOUTL 0x0001 /* DACL_TO_MIXOUTL */
  1165. #define WM8993_DACL_TO_MIXOUTL_MASK 0x0001 /* DACL_TO_MIXOUTL */
  1166. #define WM8993_DACL_TO_MIXOUTL_SHIFT 0 /* DACL_TO_MIXOUTL */
  1167. #define WM8993_DACL_TO_MIXOUTL_WIDTH 1 /* DACL_TO_MIXOUTL */
  1168. /*
  1169. * R46 (0x2E) - Output Mixer2
  1170. */
  1171. #define WM8993_DACR_TO_HPOUT1R 0x0100 /* DACR_TO_HPOUT1R */
  1172. #define WM8993_DACR_TO_HPOUT1R_MASK 0x0100 /* DACR_TO_HPOUT1R */
  1173. #define WM8993_DACR_TO_HPOUT1R_SHIFT 8 /* DACR_TO_HPOUT1R */
  1174. #define WM8993_DACR_TO_HPOUT1R_WIDTH 1 /* DACR_TO_HPOUT1R */
  1175. #define WM8993_MIXINL_TO_MIXOUTR 0x0080 /* MIXINL_TO_MIXOUTR */
  1176. #define WM8993_MIXINL_TO_MIXOUTR_MASK 0x0080 /* MIXINL_TO_MIXOUTR */
  1177. #define WM8993_MIXINL_TO_MIXOUTR_SHIFT 7 /* MIXINL_TO_MIXOUTR */
  1178. #define WM8993_MIXINL_TO_MIXOUTR_WIDTH 1 /* MIXINL_TO_MIXOUTR */
  1179. #define WM8993_MIXINR_TO_MIXOUTR 0x0040 /* MIXINR_TO_MIXOUTR */
  1180. #define WM8993_MIXINR_TO_MIXOUTR_MASK 0x0040 /* MIXINR_TO_MIXOUTR */
  1181. #define WM8993_MIXINR_TO_MIXOUTR_SHIFT 6 /* MIXINR_TO_MIXOUTR */
  1182. #define WM8993_MIXINR_TO_MIXOUTR_WIDTH 1 /* MIXINR_TO_MIXOUTR */
  1183. #define WM8993_IN2LN_TO_MIXOUTR 0x0020 /* IN2LN_TO_MIXOUTR */
  1184. #define WM8993_IN2LN_TO_MIXOUTR_MASK 0x0020 /* IN2LN_TO_MIXOUTR */
  1185. #define WM8993_IN2LN_TO_MIXOUTR_SHIFT 5 /* IN2LN_TO_MIXOUTR */
  1186. #define WM8993_IN2LN_TO_MIXOUTR_WIDTH 1 /* IN2LN_TO_MIXOUTR */
  1187. #define WM8993_IN2RN_TO_MIXOUTR 0x0010 /* IN2RN_TO_MIXOUTR */
  1188. #define WM8993_IN2RN_TO_MIXOUTR_MASK 0x0010 /* IN2RN_TO_MIXOUTR */
  1189. #define WM8993_IN2RN_TO_MIXOUTR_SHIFT 4 /* IN2RN_TO_MIXOUTR */
  1190. #define WM8993_IN2RN_TO_MIXOUTR_WIDTH 1 /* IN2RN_TO_MIXOUTR */
  1191. #define WM8993_IN1L_TO_MIXOUTR 0x0008 /* IN1L_TO_MIXOUTR */
  1192. #define WM8993_IN1L_TO_MIXOUTR_MASK 0x0008 /* IN1L_TO_MIXOUTR */
  1193. #define WM8993_IN1L_TO_MIXOUTR_SHIFT 3 /* IN1L_TO_MIXOUTR */
  1194. #define WM8993_IN1L_TO_MIXOUTR_WIDTH 1 /* IN1L_TO_MIXOUTR */
  1195. #define WM8993_IN1R_TO_MIXOUTR 0x0004 /* IN1R_TO_MIXOUTR */
  1196. #define WM8993_IN1R_TO_MIXOUTR_MASK 0x0004 /* IN1R_TO_MIXOUTR */
  1197. #define WM8993_IN1R_TO_MIXOUTR_SHIFT 2 /* IN1R_TO_MIXOUTR */
  1198. #define WM8993_IN1R_TO_MIXOUTR_WIDTH 1 /* IN1R_TO_MIXOUTR */
  1199. #define WM8993_IN2RP_TO_MIXOUTR 0x0002 /* IN2RP_TO_MIXOUTR */
  1200. #define WM8993_IN2RP_TO_MIXOUTR_MASK 0x0002 /* IN2RP_TO_MIXOUTR */
  1201. #define WM8993_IN2RP_TO_MIXOUTR_SHIFT 1 /* IN2RP_TO_MIXOUTR */
  1202. #define WM8993_IN2RP_TO_MIXOUTR_WIDTH 1 /* IN2RP_TO_MIXOUTR */
  1203. #define WM8993_DACR_TO_MIXOUTR 0x0001 /* DACR_TO_MIXOUTR */
  1204. #define WM8993_DACR_TO_MIXOUTR_MASK 0x0001 /* DACR_TO_MIXOUTR */
  1205. #define WM8993_DACR_TO_MIXOUTR_SHIFT 0 /* DACR_TO_MIXOUTR */
  1206. #define WM8993_DACR_TO_MIXOUTR_WIDTH 1 /* DACR_TO_MIXOUTR */
  1207. /*
  1208. * R47 (0x2F) - Output Mixer3
  1209. */
  1210. #define WM8993_IN2LP_MIXOUTL_VOL_MASK 0x0E00 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1211. #define WM8993_IN2LP_MIXOUTL_VOL_SHIFT 9 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1212. #define WM8993_IN2LP_MIXOUTL_VOL_WIDTH 3 /* IN2LP_MIXOUTL_VOL - [11:9] */
  1213. #define WM8993_IN2LN_MIXOUTL_VOL_MASK 0x01C0 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1214. #define WM8993_IN2LN_MIXOUTL_VOL_SHIFT 6 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1215. #define WM8993_IN2LN_MIXOUTL_VOL_WIDTH 3 /* IN2LN_MIXOUTL_VOL - [8:6] */
  1216. #define WM8993_IN1R_MIXOUTL_VOL_MASK 0x0038 /* IN1R_MIXOUTL_VOL - [5:3] */
  1217. #define WM8993_IN1R_MIXOUTL_VOL_SHIFT 3 /* IN1R_MIXOUTL_VOL - [5:3] */
  1218. #define WM8993_IN1R_MIXOUTL_VOL_WIDTH 3 /* IN1R_MIXOUTL_VOL - [5:3] */
  1219. #define WM8993_IN1L_MIXOUTL_VOL_MASK 0x0007 /* IN1L_MIXOUTL_VOL - [2:0] */
  1220. #define WM8993_IN1L_MIXOUTL_VOL_SHIFT 0 /* IN1L_MIXOUTL_VOL - [2:0] */
  1221. #define WM8993_IN1L_MIXOUTL_VOL_WIDTH 3 /* IN1L_MIXOUTL_VOL - [2:0] */
  1222. /*
  1223. * R48 (0x30) - Output Mixer4
  1224. */
  1225. #define WM8993_IN2RP_MIXOUTR_VOL_MASK 0x0E00 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1226. #define WM8993_IN2RP_MIXOUTR_VOL_SHIFT 9 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1227. #define WM8993_IN2RP_MIXOUTR_VOL_WIDTH 3 /* IN2RP_MIXOUTR_VOL - [11:9] */
  1228. #define WM8993_IN2RN_MIXOUTR_VOL_MASK 0x01C0 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1229. #define WM8993_IN2RN_MIXOUTR_VOL_SHIFT 6 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1230. #define WM8993_IN2RN_MIXOUTR_VOL_WIDTH 3 /* IN2RN_MIXOUTR_VOL - [8:6] */
  1231. #define WM8993_IN1L_MIXOUTR_VOL_MASK 0x0038 /* IN1L_MIXOUTR_VOL - [5:3] */
  1232. #define WM8993_IN1L_MIXOUTR_VOL_SHIFT 3 /* IN1L_MIXOUTR_VOL - [5:3] */
  1233. #define WM8993_IN1L_MIXOUTR_VOL_WIDTH 3 /* IN1L_MIXOUTR_VOL - [5:3] */
  1234. #define WM8993_IN1R_MIXOUTR_VOL_MASK 0x0007 /* IN1R_MIXOUTR_VOL - [2:0] */
  1235. #define WM8993_IN1R_MIXOUTR_VOL_SHIFT 0 /* IN1R_MIXOUTR_VOL - [2:0] */
  1236. #define WM8993_IN1R_MIXOUTR_VOL_WIDTH 3 /* IN1R_MIXOUTR_VOL - [2:0] */
  1237. /*
  1238. * R49 (0x31) - Output Mixer5
  1239. */
  1240. #define WM8993_DACL_MIXOUTL_VOL_MASK 0x0E00 /* DACL_MIXOUTL_VOL - [11:9] */
  1241. #define WM8993_DACL_MIXOUTL_VOL_SHIFT 9 /* DACL_MIXOUTL_VOL - [11:9] */
  1242. #define WM8993_DACL_MIXOUTL_VOL_WIDTH 3 /* DACL_MIXOUTL_VOL - [11:9] */
  1243. #define WM8993_IN2RN_MIXOUTL_VOL_MASK 0x01C0 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1244. #define WM8993_IN2RN_MIXOUTL_VOL_SHIFT 6 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1245. #define WM8993_IN2RN_MIXOUTL_VOL_WIDTH 3 /* IN2RN_MIXOUTL_VOL - [8:6] */
  1246. #define WM8993_MIXINR_MIXOUTL_VOL_MASK 0x0038 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1247. #define WM8993_MIXINR_MIXOUTL_VOL_SHIFT 3 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1248. #define WM8993_MIXINR_MIXOUTL_VOL_WIDTH 3 /* MIXINR_MIXOUTL_VOL - [5:3] */
  1249. #define WM8993_MIXINL_MIXOUTL_VOL_MASK 0x0007 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1250. #define WM8993_MIXINL_MIXOUTL_VOL_SHIFT 0 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1251. #define WM8993_MIXINL_MIXOUTL_VOL_WIDTH 3 /* MIXINL_MIXOUTL_VOL - [2:0] */
  1252. /*
  1253. * R50 (0x32) - Output Mixer6
  1254. */
  1255. #define WM8993_DACR_MIXOUTR_VOL_MASK 0x0E00 /* DACR_MIXOUTR_VOL - [11:9] */
  1256. #define WM8993_DACR_MIXOUTR_VOL_SHIFT 9 /* DACR_MIXOUTR_VOL - [11:9] */
  1257. #define WM8993_DACR_MIXOUTR_VOL_WIDTH 3 /* DACR_MIXOUTR_VOL - [11:9] */
  1258. #define WM8993_IN2LN_MIXOUTR_VOL_MASK 0x01C0 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1259. #define WM8993_IN2LN_MIXOUTR_VOL_SHIFT 6 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1260. #define WM8993_IN2LN_MIXOUTR_VOL_WIDTH 3 /* IN2LN_MIXOUTR_VOL - [8:6] */
  1261. #define WM8993_MIXINL_MIXOUTR_VOL_MASK 0x0038 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1262. #define WM8993_MIXINL_MIXOUTR_VOL_SHIFT 3 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1263. #define WM8993_MIXINL_MIXOUTR_VOL_WIDTH 3 /* MIXINL_MIXOUTR_VOL - [5:3] */
  1264. #define WM8993_MIXINR_MIXOUTR_VOL_MASK 0x0007 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1265. #define WM8993_MIXINR_MIXOUTR_VOL_SHIFT 0 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1266. #define WM8993_MIXINR_MIXOUTR_VOL_WIDTH 3 /* MIXINR_MIXOUTR_VOL - [2:0] */
  1267. /*
  1268. * R51 (0x33) - HPOUT2 Mixer
  1269. */
  1270. #define WM8993_VRX_TO_HPOUT2 0x0020 /* VRX_TO_HPOUT2 */
  1271. #define WM8993_VRX_TO_HPOUT2_MASK 0x0020 /* VRX_TO_HPOUT2 */
  1272. #define WM8993_VRX_TO_HPOUT2_SHIFT 5 /* VRX_TO_HPOUT2 */
  1273. #define WM8993_VRX_TO_HPOUT2_WIDTH 1 /* VRX_TO_HPOUT2 */
  1274. #define WM8993_MIXOUTLVOL_TO_HPOUT2 0x0010 /* MIXOUTLVOL_TO_HPOUT2 */
  1275. #define WM8993_MIXOUTLVOL_TO_HPOUT2_MASK 0x0010 /* MIXOUTLVOL_TO_HPOUT2 */
  1276. #define WM8993_MIXOUTLVOL_TO_HPOUT2_SHIFT 4 /* MIXOUTLVOL_TO_HPOUT2 */
  1277. #define WM8993_MIXOUTLVOL_TO_HPOUT2_WIDTH 1 /* MIXOUTLVOL_TO_HPOUT2 */
  1278. #define WM8993_MIXOUTRVOL_TO_HPOUT2 0x0008 /* MIXOUTRVOL_TO_HPOUT2 */
  1279. #define WM8993_MIXOUTRVOL_TO_HPOUT2_MASK 0x0008 /* MIXOUTRVOL_TO_HPOUT2 */
  1280. #define WM8993_MIXOUTRVOL_TO_HPOUT2_SHIFT 3 /* MIXOUTRVOL_TO_HPOUT2 */
  1281. #define WM8993_MIXOUTRVOL_TO_HPOUT2_WIDTH 1 /* MIXOUTRVOL_TO_HPOUT2 */
  1282. /*
  1283. * R52 (0x34) - Line Mixer1
  1284. */
  1285. #define WM8993_MIXOUTL_TO_LINEOUT1N 0x0040 /* MIXOUTL_TO_LINEOUT1N */
  1286. #define WM8993_MIXOUTL_TO_LINEOUT1N_MASK 0x0040 /* MIXOUTL_TO_LINEOUT1N */
  1287. #define WM8993_MIXOUTL_TO_LINEOUT1N_SHIFT 6 /* MIXOUTL_TO_LINEOUT1N */
  1288. #define WM8993_MIXOUTL_TO_LINEOUT1N_WIDTH 1 /* MIXOUTL_TO_LINEOUT1N */
  1289. #define WM8993_MIXOUTR_TO_LINEOUT1N 0x0020 /* MIXOUTR_TO_LINEOUT1N */
  1290. #define WM8993_MIXOUTR_TO_LINEOUT1N_MASK 0x0020 /* MIXOUTR_TO_LINEOUT1N */
  1291. #define WM8993_MIXOUTR_TO_LINEOUT1N_SHIFT 5 /* MIXOUTR_TO_LINEOUT1N */
  1292. #define WM8993_MIXOUTR_TO_LINEOUT1N_WIDTH 1 /* MIXOUTR_TO_LINEOUT1N */
  1293. #define WM8993_LINEOUT1_MODE 0x0010 /* LINEOUT1_MODE */
  1294. #define WM8993_LINEOUT1_MODE_MASK 0x0010 /* LINEOUT1_MODE */
  1295. #define WM8993_LINEOUT1_MODE_SHIFT 4 /* LINEOUT1_MODE */
  1296. #define WM8993_LINEOUT1_MODE_WIDTH 1 /* LINEOUT1_MODE */
  1297. #define WM8993_IN1R_TO_LINEOUT1P 0x0004 /* IN1R_TO_LINEOUT1P */
  1298. #define WM8993_IN1R_TO_LINEOUT1P_MASK 0x0004 /* IN1R_TO_LINEOUT1P */
  1299. #define WM8993_IN1R_TO_LINEOUT1P_SHIFT 2 /* IN1R_TO_LINEOUT1P */
  1300. #define WM8993_IN1R_TO_LINEOUT1P_WIDTH 1 /* IN1R_TO_LINEOUT1P */
  1301. #define WM8993_IN1L_TO_LINEOUT1P 0x0002 /* IN1L_TO_LINEOUT1P */
  1302. #define WM8993_IN1L_TO_LINEOUT1P_MASK 0x0002 /* IN1L_TO_LINEOUT1P */
  1303. #define WM8993_IN1L_TO_LINEOUT1P_SHIFT 1 /* IN1L_TO_LINEOUT1P */
  1304. #define WM8993_IN1L_TO_LINEOUT1P_WIDTH 1 /* IN1L_TO_LINEOUT1P */
  1305. #define WM8993_MIXOUTL_TO_LINEOUT1P 0x0001 /* MIXOUTL_TO_LINEOUT1P */
  1306. #define WM8993_MIXOUTL_TO_LINEOUT1P_MASK 0x0001 /* MIXOUTL_TO_LINEOUT1P */
  1307. #define WM8993_MIXOUTL_TO_LINEOUT1P_SHIFT 0 /* MIXOUTL_TO_LINEOUT1P */
  1308. #define WM8993_MIXOUTL_TO_LINEOUT1P_WIDTH 1 /* MIXOUTL_TO_LINEOUT1P */
  1309. /*
  1310. * R53 (0x35) - Line Mixer2
  1311. */
  1312. #define WM8993_MIXOUTR_TO_LINEOUT2N 0x0040 /* MIXOUTR_TO_LINEOUT2N */
  1313. #define WM8993_MIXOUTR_TO_LINEOUT2N_MASK 0x0040 /* MIXOUTR_TO_LINEOUT2N */
  1314. #define WM8993_MIXOUTR_TO_LINEOUT2N_SHIFT 6 /* MIXOUTR_TO_LINEOUT2N */
  1315. #define WM8993_MIXOUTR_TO_LINEOUT2N_WIDTH 1 /* MIXOUTR_TO_LINEOUT2N */
  1316. #define WM8993_MIXOUTL_TO_LINEOUT2N 0x0020 /* MIXOUTL_TO_LINEOUT2N */
  1317. #define WM8993_MIXOUTL_TO_LINEOUT2N_MASK 0x0020 /* MIXOUTL_TO_LINEOUT2N */
  1318. #define WM8993_MIXOUTL_TO_LINEOUT2N_SHIFT 5 /* MIXOUTL_TO_LINEOUT2N */
  1319. #define WM8993_MIXOUTL_TO_LINEOUT2N_WIDTH 1 /* MIXOUTL_TO_LINEOUT2N */
  1320. #define WM8993_LINEOUT2_MODE 0x0010 /* LINEOUT2_MODE */
  1321. #define WM8993_LINEOUT2_MODE_MASK 0x0010 /* LINEOUT2_MODE */
  1322. #define WM8993_LINEOUT2_MODE_SHIFT 4 /* LINEOUT2_MODE */
  1323. #define WM8993_LINEOUT2_MODE_WIDTH 1 /* LINEOUT2_MODE */
  1324. #define WM8993_IN1L_TO_LINEOUT2P 0x0004 /* IN1L_TO_LINEOUT2P */
  1325. #define WM8993_IN1L_TO_LINEOUT2P_MASK 0x0004 /* IN1L_TO_LINEOUT2P */
  1326. #define WM8993_IN1L_TO_LINEOUT2P_SHIFT 2 /* IN1L_TO_LINEOUT2P */
  1327. #define WM8993_IN1L_TO_LINEOUT2P_WIDTH 1 /* IN1L_TO_LINEOUT2P */
  1328. #define WM8993_IN1R_TO_LINEOUT2P 0x0002 /* IN1R_TO_LINEOUT2P */
  1329. #define WM8993_IN1R_TO_LINEOUT2P_MASK 0x0002 /* IN1R_TO_LINEOUT2P */
  1330. #define WM8993_IN1R_TO_LINEOUT2P_SHIFT 1 /* IN1R_TO_LINEOUT2P */
  1331. #define WM8993_IN1R_TO_LINEOUT2P_WIDTH 1 /* IN1R_TO_LINEOUT2P */
  1332. #define WM8993_MIXOUTR_TO_LINEOUT2P 0x0001 /* MIXOUTR_TO_LINEOUT2P */
  1333. #define WM8993_MIXOUTR_TO_LINEOUT2P_MASK 0x0001 /* MIXOUTR_TO_LINEOUT2P */
  1334. #define WM8993_MIXOUTR_TO_LINEOUT2P_SHIFT 0 /* MIXOUTR_TO_LINEOUT2P */
  1335. #define WM8993_MIXOUTR_TO_LINEOUT2P_WIDTH 1 /* MIXOUTR_TO_LINEOUT2P */
  1336. /*
  1337. * R54 (0x36) - Speaker Mixer
  1338. */
  1339. #define WM8993_SPKAB_REF_SEL 0x0100 /* SPKAB_REF_SEL */
  1340. #define WM8993_SPKAB_REF_SEL_MASK 0x0100 /* SPKAB_REF_SEL */
  1341. #define WM8993_SPKAB_REF_SEL_SHIFT 8 /* SPKAB_REF_SEL */
  1342. #define WM8993_SPKAB_REF_SEL_WIDTH 1 /* SPKAB_REF_SEL */
  1343. #define WM8993_MIXINL_TO_SPKMIXL 0x0080 /* MIXINL_TO_SPKMIXL */
  1344. #define WM8993_MIXINL_TO_SPKMIXL_MASK 0x0080 /* MIXINL_TO_SPKMIXL */
  1345. #define WM8993_MIXINL_TO_SPKMIXL_SHIFT 7 /* MIXINL_TO_SPKMIXL */
  1346. #define WM8993_MIXINL_TO_SPKMIXL_WIDTH 1 /* MIXINL_TO_SPKMIXL */
  1347. #define WM8993_MIXINR_TO_SPKMIXR 0x0040 /* MIXINR_TO_SPKMIXR */
  1348. #define WM8993_MIXINR_TO_SPKMIXR_MASK 0x0040 /* MIXINR_TO_SPKMIXR */
  1349. #define WM8993_MIXINR_TO_SPKMIXR_SHIFT 6 /* MIXINR_TO_SPKMIXR */
  1350. #define WM8993_MIXINR_TO_SPKMIXR_WIDTH 1 /* MIXINR_TO_SPKMIXR */
  1351. #define WM8993_IN1LP_TO_SPKMIXL 0x0020 /* IN1LP_TO_SPKMIXL */
  1352. #define WM8993_IN1LP_TO_SPKMIXL_MASK 0x0020 /* IN1LP_TO_SPKMIXL */
  1353. #define WM8993_IN1LP_TO_SPKMIXL_SHIFT 5 /* IN1LP_TO_SPKMIXL */
  1354. #define WM8993_IN1LP_TO_SPKMIXL_WIDTH 1 /* IN1LP_TO_SPKMIXL */
  1355. #define WM8993_IN1RP_TO_SPKMIXR 0x0010 /* IN1RP_TO_SPKMIXR */
  1356. #define WM8993_IN1RP_TO_SPKMIXR_MASK 0x0010 /* IN1RP_TO_SPKMIXR */
  1357. #define WM8993_IN1RP_TO_SPKMIXR_SHIFT 4 /* IN1RP_TO_SPKMIXR */
  1358. #define WM8993_IN1RP_TO_SPKMIXR_WIDTH 1 /* IN1RP_TO_SPKMIXR */
  1359. #define WM8993_MIXOUTL_TO_SPKMIXL 0x0008 /* MIXOUTL_TO_SPKMIXL */
  1360. #define WM8993_MIXOUTL_TO_SPKMIXL_MASK 0x0008 /* MIXOUTL_TO_SPKMIXL */
  1361. #define WM8993_MIXOUTL_TO_SPKMIXL_SHIFT 3 /* MIXOUTL_TO_SPKMIXL */
  1362. #define WM8993_MIXOUTL_TO_SPKMIXL_WIDTH 1 /* MIXOUTL_TO_SPKMIXL */
  1363. #define WM8993_MIXOUTR_TO_SPKMIXR 0x0004 /* MIXOUTR_TO_SPKMIXR */
  1364. #define WM8993_MIXOUTR_TO_SPKMIXR_MASK 0x0004 /* MIXOUTR_TO_SPKMIXR */
  1365. #define WM8993_MIXOUTR_TO_SPKMIXR_SHIFT 2 /* MIXOUTR_TO_SPKMIXR */
  1366. #define WM8993_MIXOUTR_TO_SPKMIXR_WIDTH 1 /* MIXOUTR_TO_SPKMIXR */
  1367. #define WM8993_DACL_TO_SPKMIXL 0x0002 /* DACL_TO_SPKMIXL */
  1368. #define WM8993_DACL_TO_SPKMIXL_MASK 0x0002 /* DACL_TO_SPKMIXL */
  1369. #define WM8993_DACL_TO_SPKMIXL_SHIFT 1 /* DACL_TO_SPKMIXL */
  1370. #define WM8993_DACL_TO_SPKMIXL_WIDTH 1 /* DACL_TO_SPKMIXL */
  1371. #define WM8993_DACR_TO_SPKMIXR 0x0001 /* DACR_TO_SPKMIXR */
  1372. #define WM8993_DACR_TO_SPKMIXR_MASK 0x0001 /* DACR_TO_SPKMIXR */
  1373. #define WM8993_DACR_TO_SPKMIXR_SHIFT 0 /* DACR_TO_SPKMIXR */
  1374. #define WM8993_DACR_TO_SPKMIXR_WIDTH 1 /* DACR_TO_SPKMIXR */
  1375. /*
  1376. * R55 (0x37) - Additional Control
  1377. */
  1378. #define WM8993_LINEOUT1_FB 0x0080 /* LINEOUT1_FB */
  1379. #define WM8993_LINEOUT1_FB_MASK 0x0080 /* LINEOUT1_FB */
  1380. #define WM8993_LINEOUT1_FB_SHIFT 7 /* LINEOUT1_FB */
  1381. #define WM8993_LINEOUT1_FB_WIDTH 1 /* LINEOUT1_FB */
  1382. #define WM8993_LINEOUT2_FB 0x0040 /* LINEOUT2_FB */
  1383. #define WM8993_LINEOUT2_FB_MASK 0x0040 /* LINEOUT2_FB */
  1384. #define WM8993_LINEOUT2_FB_SHIFT 6 /* LINEOUT2_FB */
  1385. #define WM8993_LINEOUT2_FB_WIDTH 1 /* LINEOUT2_FB */
  1386. #define WM8993_VROI 0x0001 /* VROI */
  1387. #define WM8993_VROI_MASK 0x0001 /* VROI */
  1388. #define WM8993_VROI_SHIFT 0 /* VROI */
  1389. #define WM8993_VROI_WIDTH 1 /* VROI */
  1390. /*
  1391. * R56 (0x38) - AntiPOP1
  1392. */
  1393. #define WM8993_LINEOUT_VMID_BUF_ENA 0x0080 /* LINEOUT_VMID_BUF_ENA */
  1394. #define WM8993_LINEOUT_VMID_BUF_ENA_MASK 0x0080 /* LINEOUT_VMID_BUF_ENA */
  1395. #define WM8993_LINEOUT_VMID_BUF_ENA_SHIFT 7 /* LINEOUT_VMID_BUF_ENA */
  1396. #define WM8993_LINEOUT_VMID_BUF_ENA_WIDTH 1 /* LINEOUT_VMID_BUF_ENA */
  1397. #define WM8993_HPOUT2_IN_ENA 0x0040 /* HPOUT2_IN_ENA */
  1398. #define WM8993_HPOUT2_IN_ENA_MASK 0x0040 /* HPOUT2_IN_ENA */
  1399. #define WM8993_HPOUT2_IN_ENA_SHIFT 6 /* HPOUT2_IN_ENA */
  1400. #define WM8993_HPOUT2_IN_ENA_WIDTH 1 /* HPOUT2_IN_ENA */
  1401. #define WM8993_LINEOUT1_DISCH 0x0020 /* LINEOUT1_DISCH */
  1402. #define WM8993_LINEOUT1_DISCH_MASK 0x0020 /* LINEOUT1_DISCH */
  1403. #define WM8993_LINEOUT1_DISCH_SHIFT 5 /* LINEOUT1_DISCH */
  1404. #define WM8993_LINEOUT1_DISCH_WIDTH 1 /* LINEOUT1_DISCH */
  1405. #define WM8993_LINEOUT2_DISCH 0x0010 /* LINEOUT2_DISCH */
  1406. #define WM8993_LINEOUT2_DISCH_MASK 0x0010 /* LINEOUT2_DISCH */
  1407. #define WM8993_LINEOUT2_DISCH_SHIFT 4 /* LINEOUT2_DISCH */
  1408. #define WM8993_LINEOUT2_DISCH_WIDTH 1 /* LINEOUT2_DISCH */
  1409. /*
  1410. * R57 (0x39) - AntiPOP2
  1411. */
  1412. #define WM8993_VMID_RAMP_MASK 0x0060 /* VMID_RAMP - [6:5] */
  1413. #define WM8993_VMID_RAMP_SHIFT 5 /* VMID_RAMP - [6:5] */
  1414. #define WM8993_VMID_RAMP_WIDTH 2 /* VMID_RAMP - [6:5] */
  1415. #define WM8993_VMID_BUF_ENA 0x0008 /* VMID_BUF_ENA */
  1416. #define WM8993_VMID_BUF_ENA_MASK 0x0008 /* VMID_BUF_ENA */
  1417. #define WM8993_VMID_BUF_ENA_SHIFT 3 /* VMID_BUF_ENA */
  1418. #define WM8993_VMID_BUF_ENA_WIDTH 1 /* VMID_BUF_ENA */
  1419. #define WM8993_STARTUP_BIAS_ENA 0x0004 /* STARTUP_BIAS_ENA */
  1420. #define WM8993_STARTUP_BIAS_ENA_MASK 0x0004 /* STARTUP_BIAS_ENA */
  1421. #define WM8993_STARTUP_BIAS_ENA_SHIFT 2 /* STARTUP_BIAS_ENA */
  1422. #define WM8993_STARTUP_BIAS_ENA_WIDTH 1 /* STARTUP_BIAS_ENA */
  1423. #define WM8993_BIAS_SRC 0x0002 /* BIAS_SRC */
  1424. #define WM8993_BIAS_SRC_MASK 0x0002 /* BIAS_SRC */
  1425. #define WM8993_BIAS_SRC_SHIFT 1 /* BIAS_SRC */
  1426. #define WM8993_BIAS_SRC_WIDTH 1 /* BIAS_SRC */
  1427. #define WM8993_VMID_DISCH 0x0001 /* VMID_DISCH */
  1428. #define WM8993_VMID_DISCH_MASK 0x0001 /* VMID_DISCH */
  1429. #define WM8993_VMID_DISCH_SHIFT 0 /* VMID_DISCH */
  1430. #define WM8993_VMID_DISCH_WIDTH 1 /* VMID_DISCH */
  1431. /*
  1432. * R58 (0x3A) - MICBIAS
  1433. */
  1434. #define WM8993_JD_SCTHR_MASK 0x00C0 /* JD_SCTHR - [7:6] */
  1435. #define WM8993_JD_SCTHR_SHIFT 6 /* JD_SCTHR - [7:6] */
  1436. #define WM8993_JD_SCTHR_WIDTH 2 /* JD_SCTHR - [7:6] */
  1437. #define WM8993_JD_THR_MASK 0x0030 /* JD_THR - [5:4] */
  1438. #define WM8993_JD_THR_SHIFT 4 /* JD_THR - [5:4] */
  1439. #define WM8993_JD_THR_WIDTH 2 /* JD_THR - [5:4] */
  1440. #define WM8993_JD_ENA 0x0004 /* JD_ENA */
  1441. #define WM8993_JD_ENA_MASK 0x0004 /* JD_ENA */
  1442. #define WM8993_JD_ENA_SHIFT 2 /* JD_ENA */
  1443. #define WM8993_JD_ENA_WIDTH 1 /* JD_ENA */
  1444. #define WM8993_MICB2_LVL 0x0002 /* MICB2_LVL */
  1445. #define WM8993_MICB2_LVL_MASK 0x0002 /* MICB2_LVL */
  1446. #define WM8993_MICB2_LVL_SHIFT 1 /* MICB2_LVL */
  1447. #define WM8993_MICB2_LVL_WIDTH 1 /* MICB2_LVL */
  1448. #define WM8993_MICB1_LVL 0x0001 /* MICB1_LVL */
  1449. #define WM8993_MICB1_LVL_MASK 0x0001 /* MICB1_LVL */
  1450. #define WM8993_MICB1_LVL_SHIFT 0 /* MICB1_LVL */
  1451. #define WM8993_MICB1_LVL_WIDTH 1 /* MICB1_LVL */
  1452. /*
  1453. * R60 (0x3C) - FLL Control 1
  1454. */
  1455. #define WM8993_FLL_FRAC 0x0004 /* FLL_FRAC */
  1456. #define WM8993_FLL_FRAC_MASK 0x0004 /* FLL_FRAC */
  1457. #define WM8993_FLL_FRAC_SHIFT 2 /* FLL_FRAC */
  1458. #define WM8993_FLL_FRAC_WIDTH 1 /* FLL_FRAC */
  1459. #define WM8993_FLL_OSC_ENA 0x0002 /* FLL_OSC_ENA */
  1460. #define WM8993_FLL_OSC_ENA_MASK 0x0002 /* FLL_OSC_ENA */
  1461. #define WM8993_FLL_OSC_ENA_SHIFT 1 /* FLL_OSC_ENA */
  1462. #define WM8993_FLL_OSC_ENA_WIDTH 1 /* FLL_OSC_ENA */
  1463. #define WM8993_FLL_ENA 0x0001 /* FLL_ENA */
  1464. #define WM8993_FLL_ENA_MASK 0x0001 /* FLL_ENA */
  1465. #define WM8993_FLL_ENA_SHIFT 0 /* FLL_ENA */
  1466. #define WM8993_FLL_ENA_WIDTH 1 /* FLL_ENA */
  1467. /*
  1468. * R61 (0x3D) - FLL Control 2
  1469. */
  1470. #define WM8993_FLL_OUTDIV_MASK 0x0700 /* FLL_OUTDIV - [10:8] */
  1471. #define WM8993_FLL_OUTDIV_SHIFT 8 /* FLL_OUTDIV - [10:8] */
  1472. #define WM8993_FLL_OUTDIV_WIDTH 3 /* FLL_OUTDIV - [10:8] */
  1473. #define WM8993_FLL_CTRL_RATE_MASK 0x0070 /* FLL_CTRL_RATE - [6:4] */
  1474. #define WM8993_FLL_CTRL_RATE_SHIFT 4 /* FLL_CTRL_RATE - [6:4] */
  1475. #define WM8993_FLL_CTRL_RATE_WIDTH 3 /* FLL_CTRL_RATE - [6:4] */
  1476. #define WM8993_FLL_FRATIO_MASK 0x0007 /* FLL_FRATIO - [2:0] */
  1477. #define WM8993_FLL_FRATIO_SHIFT 0 /* FLL_FRATIO - [2:0] */
  1478. #define WM8993_FLL_FRATIO_WIDTH 3 /* FLL_FRATIO - [2:0] */
  1479. /*
  1480. * R62 (0x3E) - FLL Control 3
  1481. */
  1482. #define WM8993_FLL_K_MASK 0xFFFF /* FLL_K - [15:0] */
  1483. #define WM8993_FLL_K_SHIFT 0 /* FLL_K - [15:0] */
  1484. #define WM8993_FLL_K_WIDTH 16 /* FLL_K - [15:0] */
  1485. /*
  1486. * R63 (0x3F) - FLL Control 4
  1487. */
  1488. #define WM8993_FLL_N_MASK 0x7FE0 /* FLL_N - [14:5] */
  1489. #define WM8993_FLL_N_SHIFT 5 /* FLL_N - [14:5] */
  1490. #define WM8993_FLL_N_WIDTH 10 /* FLL_N - [14:5] */
  1491. #define WM8993_FLL_GAIN_MASK 0x000F /* FLL_GAIN - [3:0] */
  1492. #define WM8993_FLL_GAIN_SHIFT 0 /* FLL_GAIN - [3:0] */
  1493. #define WM8993_FLL_GAIN_WIDTH 4 /* FLL_GAIN - [3:0] */
  1494. /*
  1495. * R64 (0x40) - FLL Control 5
  1496. */
  1497. #define WM8993_FLL_FRC_NCO_VAL_MASK 0x1F80 /* FLL_FRC_NCO_VAL - [12:7] */
  1498. #define WM8993_FLL_FRC_NCO_VAL_SHIFT 7 /* FLL_FRC_NCO_VAL - [12:7] */
  1499. #define WM8993_FLL_FRC_NCO_VAL_WIDTH 6 /* FLL_FRC_NCO_VAL - [12:7] */
  1500. #define WM8993_FLL_FRC_NCO 0x0040 /* FLL_FRC_NCO */
  1501. #define WM8993_FLL_FRC_NCO_MASK 0x0040 /* FLL_FRC_NCO */
  1502. #define WM8993_FLL_FRC_NCO_SHIFT 6 /* FLL_FRC_NCO */
  1503. #define WM8993_FLL_FRC_NCO_WIDTH 1 /* FLL_FRC_NCO */
  1504. #define WM8993_FLL_CLK_REF_DIV_MASK 0x0018 /* FLL_CLK_REF_DIV - [4:3] */
  1505. #define WM8993_FLL_CLK_REF_DIV_SHIFT 3 /* FLL_CLK_REF_DIV - [4:3] */
  1506. #define WM8993_FLL_CLK_REF_DIV_WIDTH 2 /* FLL_CLK_REF_DIV - [4:3] */
  1507. #define WM8993_FLL_CLK_SRC_MASK 0x0003 /* FLL_CLK_SRC - [1:0] */
  1508. #define WM8993_FLL_CLK_SRC_SHIFT 0 /* FLL_CLK_SRC - [1:0] */
  1509. #define WM8993_FLL_CLK_SRC_WIDTH 2 /* FLL_CLK_SRC - [1:0] */
  1510. /*
  1511. * R65 (0x41) - Clocking 3
  1512. */
  1513. #define WM8993_CLK_DCS_DIV_MASK 0x3C00 /* CLK_DCS_DIV - [13:10] */
  1514. #define WM8993_CLK_DCS_DIV_SHIFT 10 /* CLK_DCS_DIV - [13:10] */
  1515. #define WM8993_CLK_DCS_DIV_WIDTH 4 /* CLK_DCS_DIV - [13:10] */
  1516. #define WM8993_SAMPLE_RATE_MASK 0x0380 /* SAMPLE_RATE - [9:7] */
  1517. #define WM8993_SAMPLE_RATE_SHIFT 7 /* SAMPLE_RATE - [9:7] */
  1518. #define WM8993_SAMPLE_RATE_WIDTH 3 /* SAMPLE_RATE - [9:7] */
  1519. #define WM8993_CLK_SYS_RATE_MASK 0x001E /* CLK_SYS_RATE - [4:1] */
  1520. #define WM8993_CLK_SYS_RATE_SHIFT 1 /* CLK_SYS_RATE - [4:1] */
  1521. #define WM8993_CLK_SYS_RATE_WIDTH 4 /* CLK_SYS_RATE - [4:1] */
  1522. #define WM8993_CLK_DSP_ENA 0x0001 /* CLK_DSP_ENA */
  1523. #define WM8993_CLK_DSP_ENA_MASK 0x0001 /* CLK_DSP_ENA */
  1524. #define WM8993_CLK_DSP_ENA_SHIFT 0 /* CLK_DSP_ENA */
  1525. #define WM8993_CLK_DSP_ENA_WIDTH 1 /* CLK_DSP_ENA */
  1526. /*
  1527. * R66 (0x42) - Clocking 4
  1528. */
  1529. #define WM8993_DAC_DIV4 0x0200 /* DAC_DIV4 */
  1530. #define WM8993_DAC_DIV4_MASK 0x0200 /* DAC_DIV4 */
  1531. #define WM8993_DAC_DIV4_SHIFT 9 /* DAC_DIV4 */
  1532. #define WM8993_DAC_DIV4_WIDTH 1 /* DAC_DIV4 */
  1533. #define WM8993_CLK_256K_DIV_MASK 0x007E /* CLK_256K_DIV - [6:1] */
  1534. #define WM8993_CLK_256K_DIV_SHIFT 1 /* CLK_256K_DIV - [6:1] */
  1535. #define WM8993_CLK_256K_DIV_WIDTH 6 /* CLK_256K_DIV - [6:1] */
  1536. #define WM8993_SR_MODE 0x0001 /* SR_MODE */
  1537. #define WM8993_SR_MODE_MASK 0x0001 /* SR_MODE */
  1538. #define WM8993_SR_MODE_SHIFT 0 /* SR_MODE */
  1539. #define WM8993_SR_MODE_WIDTH 1 /* SR_MODE */
  1540. /*
  1541. * R67 (0x43) - MW Slave Control
  1542. */
  1543. #define WM8993_MASK_WRITE_ENA 0x0001 /* MASK_WRITE_ENA */
  1544. #define WM8993_MASK_WRITE_ENA_MASK 0x0001 /* MASK_WRITE_ENA */
  1545. #define WM8993_MASK_WRITE_ENA_SHIFT 0 /* MASK_WRITE_ENA */
  1546. #define WM8993_MASK_WRITE_ENA_WIDTH 1 /* MASK_WRITE_ENA */
  1547. /*
  1548. * R69 (0x45) - Bus Control 1
  1549. */
  1550. #define WM8993_CLK_SYS_ENA 0x0002 /* CLK_SYS_ENA */
  1551. #define WM8993_CLK_SYS_ENA_MASK 0x0002 /* CLK_SYS_ENA */
  1552. #define WM8993_CLK_SYS_ENA_SHIFT 1 /* CLK_SYS_ENA */
  1553. #define WM8993_CLK_SYS_ENA_WIDTH 1 /* CLK_SYS_ENA */
  1554. /*
  1555. * R70 (0x46) - Write Sequencer 0
  1556. */
  1557. #define WM8993_WSEQ_ENA 0x0100 /* WSEQ_ENA */
  1558. #define WM8993_WSEQ_ENA_MASK 0x0100 /* WSEQ_ENA */
  1559. #define WM8993_WSEQ_ENA_SHIFT 8 /* WSEQ_ENA */
  1560. #define WM8993_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */
  1561. #define WM8993_WSEQ_WRITE_INDEX_MASK 0x001F /* WSEQ_WRITE_INDEX - [4:0] */
  1562. #define WM8993_WSEQ_WRITE_INDEX_SHIFT 0 /* WSEQ_WRITE_INDEX - [4:0] */
  1563. #define WM8993_WSEQ_WRITE_INDEX_WIDTH 5 /* WSEQ_WRITE_INDEX - [4:0] */
  1564. /*
  1565. * R71 (0x47) - Write Sequencer 1
  1566. */
  1567. #define WM8993_WSEQ_DATA_WIDTH_MASK 0x7000 /* WSEQ_DATA_WIDTH - [14:12] */
  1568. #define WM8993_WSEQ_DATA_WIDTH_SHIFT 12 /* WSEQ_DATA_WIDTH - [14:12] */
  1569. #define WM8993_WSEQ_DATA_WIDTH_WIDTH 3 /* WSEQ_DATA_WIDTH - [14:12] */
  1570. #define WM8993_WSEQ_DATA_START_MASK 0x0F00 /* WSEQ_DATA_START - [11:8] */
  1571. #define WM8993_WSEQ_DATA_START_SHIFT 8 /* WSEQ_DATA_START - [11:8] */
  1572. #define WM8993_WSEQ_DATA_START_WIDTH 4 /* WSEQ_DATA_START - [11:8] */
  1573. #define WM8993_WSEQ_ADDR_MASK 0x00FF /* WSEQ_ADDR - [7:0] */
  1574. #define WM8993_WSEQ_ADDR_SHIFT 0 /* WSEQ_ADDR - [7:0] */
  1575. #define WM8993_WSEQ_ADDR_WIDTH 8 /* WSEQ_ADDR - [7:0] */
  1576. /*
  1577. * R72 (0x48) - Write Sequencer 2
  1578. */
  1579. #define WM8993_WSEQ_EOS 0x4000 /* WSEQ_EOS */
  1580. #define WM8993_WSEQ_EOS_MASK 0x4000 /* WSEQ_EOS */
  1581. #define WM8993_WSEQ_EOS_SHIFT 14 /* WSEQ_EOS */
  1582. #define WM8993_WSEQ_EOS_WIDTH 1 /* WSEQ_EOS */
  1583. #define WM8993_WSEQ_DELAY_MASK 0x0F00 /* WSEQ_DELAY - [11:8] */
  1584. #define WM8993_WSEQ_DELAY_SHIFT 8 /* WSEQ_DELAY - [11:8] */
  1585. #define WM8993_WSEQ_DELAY_WIDTH 4 /* WSEQ_DELAY - [11:8] */
  1586. #define WM8993_WSEQ_DATA_MASK 0x00FF /* WSEQ_DATA - [7:0] */
  1587. #define WM8993_WSEQ_DATA_SHIFT 0 /* WSEQ_DATA - [7:0] */
  1588. #define WM8993_WSEQ_DATA_WIDTH 8 /* WSEQ_DATA - [7:0] */
  1589. /*
  1590. * R73 (0x49) - Write Sequencer 3
  1591. */
  1592. #define WM8993_WSEQ_ABORT 0x0200 /* WSEQ_ABORT */
  1593. #define WM8993_WSEQ_ABORT_MASK 0x0200 /* WSEQ_ABORT */
  1594. #define WM8993_WSEQ_ABORT_SHIFT 9 /* WSEQ_ABORT */
  1595. #define WM8993_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */
  1596. #define WM8993_WSEQ_START 0x0100 /* WSEQ_START */
  1597. #define WM8993_WSEQ_START_MASK 0x0100 /* WSEQ_START */
  1598. #define WM8993_WSEQ_START_SHIFT 8 /* WSEQ_START */
  1599. #define WM8993_WSEQ_START_WIDTH 1 /* WSEQ_START */
  1600. #define WM8993_WSEQ_START_INDEX_MASK 0x003F /* WSEQ_START_INDEX - [5:0] */
  1601. #define WM8993_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [5:0] */
  1602. #define WM8993_WSEQ_START_INDEX_WIDTH 6 /* WSEQ_START_INDEX - [5:0] */
  1603. /*
  1604. * R74 (0x4A) - Write Sequencer 4
  1605. */
  1606. #define WM8993_WSEQ_BUSY 0x0001 /* WSEQ_BUSY */
  1607. #define WM8993_WSEQ_BUSY_MASK 0x0001 /* WSEQ_BUSY */
  1608. #define WM8993_WSEQ_BUSY_SHIFT 0 /* WSEQ_BUSY */
  1609. #define WM8993_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */
  1610. /*
  1611. * R75 (0x4B) - Write Sequencer 5
  1612. */
  1613. #define WM8993_WSEQ_CURRENT_INDEX_MASK 0x003F /* WSEQ_CURRENT_INDEX - [5:0] */
  1614. #define WM8993_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [5:0] */
  1615. #define WM8993_WSEQ_CURRENT_INDEX_WIDTH 6 /* WSEQ_CURRENT_INDEX - [5:0] */
  1616. /*
  1617. * R76 (0x4C) - Charge Pump 1
  1618. */
  1619. #define WM8993_CP_ENA 0x8000 /* CP_ENA */
  1620. #define WM8993_CP_ENA_MASK 0x8000 /* CP_ENA */
  1621. #define WM8993_CP_ENA_SHIFT 15 /* CP_ENA */
  1622. #define WM8993_CP_ENA_WIDTH 1 /* CP_ENA */
  1623. /*
  1624. * R81 (0x51) - Class W 0
  1625. */
  1626. #define WM8993_CP_DYN_FREQ 0x0002 /* CP_DYN_FREQ */
  1627. #define WM8993_CP_DYN_FREQ_MASK 0x0002 /* CP_DYN_FREQ */
  1628. #define WM8993_CP_DYN_FREQ_SHIFT 1 /* CP_DYN_FREQ */
  1629. #define WM8993_CP_DYN_FREQ_WIDTH 1 /* CP_DYN_FREQ */
  1630. #define WM8993_CP_DYN_V 0x0001 /* CP_DYN_V */
  1631. #define WM8993_CP_DYN_V_MASK 0x0001 /* CP_DYN_V */
  1632. #define WM8993_CP_DYN_V_SHIFT 0 /* CP_DYN_V */
  1633. #define WM8993_CP_DYN_V_WIDTH 1 /* CP_DYN_V */
  1634. /*
  1635. * R84 (0x54) - DC Servo 0
  1636. */
  1637. #define WM8993_DCS_TRIG_SINGLE_1 0x2000 /* DCS_TRIG_SINGLE_1 */
  1638. #define WM8993_DCS_TRIG_SINGLE_1_MASK 0x2000 /* DCS_TRIG_SINGLE_1 */
  1639. #define WM8993_DCS_TRIG_SINGLE_1_SHIFT 13 /* DCS_TRIG_SINGLE_1 */
  1640. #define WM8993_DCS_TRIG_SINGLE_1_WIDTH 1 /* DCS_TRIG_SINGLE_1 */
  1641. #define WM8993_DCS_TRIG_SINGLE_0 0x1000 /* DCS_TRIG_SINGLE_0 */
  1642. #define WM8993_DCS_TRIG_SINGLE_0_MASK 0x1000 /* DCS_TRIG_SINGLE_0 */
  1643. #define WM8993_DCS_TRIG_SINGLE_0_SHIFT 12 /* DCS_TRIG_SINGLE_0 */
  1644. #define WM8993_DCS_TRIG_SINGLE_0_WIDTH 1 /* DCS_TRIG_SINGLE_0 */
  1645. #define WM8993_DCS_TRIG_SERIES_1 0x0200 /* DCS_TRIG_SERIES_1 */
  1646. #define WM8993_DCS_TRIG_SERIES_1_MASK 0x0200 /* DCS_TRIG_SERIES_1 */
  1647. #define WM8993_DCS_TRIG_SERIES_1_SHIFT 9 /* DCS_TRIG_SERIES_1 */
  1648. #define WM8993_DCS_TRIG_SERIES_1_WIDTH 1 /* DCS_TRIG_SERIES_1 */
  1649. #define WM8993_DCS_TRIG_SERIES_0 0x0100 /* DCS_TRIG_SERIES_0 */
  1650. #define WM8993_DCS_TRIG_SERIES_0_MASK 0x0100 /* DCS_TRIG_SERIES_0 */
  1651. #define WM8993_DCS_TRIG_SERIES_0_SHIFT 8 /* DCS_TRIG_SERIES_0 */
  1652. #define WM8993_DCS_TRIG_SERIES_0_WIDTH 1 /* DCS_TRIG_SERIES_0 */
  1653. #define WM8993_DCS_TRIG_STARTUP_1 0x0020 /* DCS_TRIG_STARTUP_1 */
  1654. #define WM8993_DCS_TRIG_STARTUP_1_MASK 0x0020 /* DCS_TRIG_STARTUP_1 */
  1655. #define WM8993_DCS_TRIG_STARTUP_1_SHIFT 5 /* DCS_TRIG_STARTUP_1 */
  1656. #define WM8993_DCS_TRIG_STARTUP_1_WIDTH 1 /* DCS_TRIG_STARTUP_1 */
  1657. #define WM8993_DCS_TRIG_STARTUP_0 0x0010 /* DCS_TRIG_STARTUP_0 */
  1658. #define WM8993_DCS_TRIG_STARTUP_0_MASK 0x0010 /* DCS_TRIG_STARTUP_0 */
  1659. #define WM8993_DCS_TRIG_STARTUP_0_SHIFT 4 /* DCS_TRIG_STARTUP_0 */
  1660. #define WM8993_DCS_TRIG_STARTUP_0_WIDTH 1 /* DCS_TRIG_STARTUP_0 */
  1661. #define WM8993_DCS_TRIG_DAC_WR_1 0x0008 /* DCS_TRIG_DAC_WR_1 */
  1662. #define WM8993_DCS_TRIG_DAC_WR_1_MASK 0x0008 /* DCS_TRIG_DAC_WR_1 */
  1663. #define WM8993_DCS_TRIG_DAC_WR_1_SHIFT 3 /* DCS_TRIG_DAC_WR_1 */
  1664. #define WM8993_DCS_TRIG_DAC_WR_1_WIDTH 1 /* DCS_TRIG_DAC_WR_1 */
  1665. #define WM8993_DCS_TRIG_DAC_WR_0 0x0004 /* DCS_TRIG_DAC_WR_0 */
  1666. #define WM8993_DCS_TRIG_DAC_WR_0_MASK 0x0004 /* DCS_TRIG_DAC_WR_0 */
  1667. #define WM8993_DCS_TRIG_DAC_WR_0_SHIFT 2 /* DCS_TRIG_DAC_WR_0 */
  1668. #define WM8993_DCS_TRIG_DAC_WR_0_WIDTH 1 /* DCS_TRIG_DAC_WR_0 */
  1669. #define WM8993_DCS_ENA_CHAN_1 0x0002 /* DCS_ENA_CHAN_1 */
  1670. #define WM8993_DCS_ENA_CHAN_1_MASK 0x0002 /* DCS_ENA_CHAN_1 */
  1671. #define WM8993_DCS_ENA_CHAN_1_SHIFT 1 /* DCS_ENA_CHAN_1 */
  1672. #define WM8993_DCS_ENA_CHAN_1_WIDTH 1 /* DCS_ENA_CHAN_1 */
  1673. #define WM8993_DCS_ENA_CHAN_0 0x0001 /* DCS_ENA_CHAN_0 */
  1674. #define WM8993_DCS_ENA_CHAN_0_MASK 0x0001 /* DCS_ENA_CHAN_0 */
  1675. #define WM8993_DCS_ENA_CHAN_0_SHIFT 0 /* DCS_ENA_CHAN_0 */
  1676. #define WM8993_DCS_ENA_CHAN_0_WIDTH 1 /* DCS_ENA_CHAN_0 */
  1677. /*
  1678. * R85 (0x55) - DC Servo 1
  1679. */
  1680. #define WM8993_DCS_SERIES_NO_01_MASK 0x0FE0 /* DCS_SERIES_NO_01 - [11:5] */
  1681. #define WM8993_DCS_SERIES_NO_01_SHIFT 5 /* DCS_SERIES_NO_01 - [11:5] */
  1682. #define WM8993_DCS_SERIES_NO_01_WIDTH 7 /* DCS_SERIES_NO_01 - [11:5] */
  1683. #define WM8993_DCS_TIMER_PERIOD_01_MASK 0x000F /* DCS_TIMER_PERIOD_01 - [3:0] */
  1684. #define WM8993_DCS_TIMER_PERIOD_01_SHIFT 0 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1685. #define WM8993_DCS_TIMER_PERIOD_01_WIDTH 4 /* DCS_TIMER_PERIOD_01 - [3:0] */
  1686. /*
  1687. * R87 (0x57) - DC Servo 3
  1688. */
  1689. #define WM8993_DCS_DAC_WR_VAL_1_MASK 0xFF00 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1690. #define WM8993_DCS_DAC_WR_VAL_1_SHIFT 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1691. #define WM8993_DCS_DAC_WR_VAL_1_WIDTH 8 /* DCS_DAC_WR_VAL_1 - [15:8] */
  1692. #define WM8993_DCS_DAC_WR_VAL_0_MASK 0x00FF /* DCS_DAC_WR_VAL_0 - [7:0] */
  1693. #define WM8993_DCS_DAC_WR_VAL_0_SHIFT 0 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1694. #define WM8993_DCS_DAC_WR_VAL_0_WIDTH 8 /* DCS_DAC_WR_VAL_0 - [7:0] */
  1695. /*
  1696. * R88 (0x58) - DC Servo Readback 0
  1697. */
  1698. #define WM8993_DCS_DATAPATH_BUSY 0x4000 /* DCS_DATAPATH_BUSY */
  1699. #define WM8993_DCS_DATAPATH_BUSY_MASK 0x4000 /* DCS_DATAPATH_BUSY */
  1700. #define WM8993_DCS_DATAPATH_BUSY_SHIFT 14 /* DCS_DATAPATH_BUSY */
  1701. #define WM8993_DCS_DATAPATH_BUSY_WIDTH 1 /* DCS_DATAPATH_BUSY */
  1702. #define WM8993_DCS_CHANNEL_MASK 0x3000 /* DCS_CHANNEL - [13:12] */
  1703. #define WM8993_DCS_CHANNEL_SHIFT 12 /* DCS_CHANNEL - [13:12] */
  1704. #define WM8993_DCS_CHANNEL_WIDTH 2 /* DCS_CHANNEL - [13:12] */
  1705. #define WM8993_DCS_CAL_COMPLETE_MASK 0x0300 /* DCS_CAL_COMPLETE - [9:8] */
  1706. #define WM8993_DCS_CAL_COMPLETE_SHIFT 8 /* DCS_CAL_COMPLETE - [9:8] */
  1707. #define WM8993_DCS_CAL_COMPLETE_WIDTH 2 /* DCS_CAL_COMPLETE - [9:8] */
  1708. #define WM8993_DCS_DAC_WR_COMPLETE_MASK 0x0030 /* DCS_DAC_WR_COMPLETE - [5:4] */
  1709. #define WM8993_DCS_DAC_WR_COMPLETE_SHIFT 4 /* DCS_DAC_WR_COMPLETE - [5:4] */
  1710. #define WM8993_DCS_DAC_WR_COMPLETE_WIDTH 2 /* DCS_DAC_WR_COMPLETE - [5:4] */
  1711. #define WM8993_DCS_STARTUP_COMPLETE_MASK 0x0003 /* DCS_STARTUP_COMPLETE - [1:0] */
  1712. #define WM8993_DCS_STARTUP_COMPLETE_SHIFT 0 /* DCS_STARTUP_COMPLETE - [1:0] */
  1713. #define WM8993_DCS_STARTUP_COMPLETE_WIDTH 2 /* DCS_STARTUP_COMPLETE - [1:0] */
  1714. /*
  1715. * R89 (0x59) - DC Servo Readback 1
  1716. */
  1717. #define WM8993_DCS_INTEG_CHAN_1_MASK 0x00FF /* DCS_INTEG_CHAN_1 - [7:0] */
  1718. #define WM8993_DCS_INTEG_CHAN_1_SHIFT 0 /* DCS_INTEG_CHAN_1 - [7:0] */
  1719. #define WM8993_DCS_INTEG_CHAN_1_WIDTH 8 /* DCS_INTEG_CHAN_1 - [7:0] */
  1720. /*
  1721. * R90 (0x5A) - DC Servo Readback 2
  1722. */
  1723. #define WM8993_DCS_INTEG_CHAN_0_MASK 0x00FF /* DCS_INTEG_CHAN_0 - [7:0] */
  1724. #define WM8993_DCS_INTEG_CHAN_0_SHIFT 0 /* DCS_INTEG_CHAN_0 - [7:0] */
  1725. #define WM8993_DCS_INTEG_CHAN_0_WIDTH 8 /* DCS_INTEG_CHAN_0 - [7:0] */
  1726. /*
  1727. * R96 (0x60) - Analogue HP 0
  1728. */
  1729. #define WM8993_HPOUT1_AUTO_PU 0x0100 /* HPOUT1_AUTO_PU */
  1730. #define WM8993_HPOUT1_AUTO_PU_MASK 0x0100 /* HPOUT1_AUTO_PU */
  1731. #define WM8993_HPOUT1_AUTO_PU_SHIFT 8 /* HPOUT1_AUTO_PU */
  1732. #define WM8993_HPOUT1_AUTO_PU_WIDTH 1 /* HPOUT1_AUTO_PU */
  1733. #define WM8993_HPOUT1L_RMV_SHORT 0x0080 /* HPOUT1L_RMV_SHORT */
  1734. #define WM8993_HPOUT1L_RMV_SHORT_MASK 0x0080 /* HPOUT1L_RMV_SHORT */
  1735. #define WM8993_HPOUT1L_RMV_SHORT_SHIFT 7 /* HPOUT1L_RMV_SHORT */
  1736. #define WM8993_HPOUT1L_RMV_SHORT_WIDTH 1 /* HPOUT1L_RMV_SHORT */
  1737. #define WM8993_HPOUT1L_OUTP 0x0040 /* HPOUT1L_OUTP */
  1738. #define WM8993_HPOUT1L_OUTP_MASK 0x0040 /* HPOUT1L_OUTP */
  1739. #define WM8993_HPOUT1L_OUTP_SHIFT 6 /* HPOUT1L_OUTP */
  1740. #define WM8993_HPOUT1L_OUTP_WIDTH 1 /* HPOUT1L_OUTP */
  1741. #define WM8993_HPOUT1L_DLY 0x0020 /* HPOUT1L_DLY */
  1742. #define WM8993_HPOUT1L_DLY_MASK 0x0020 /* HPOUT1L_DLY */
  1743. #define WM8993_HPOUT1L_DLY_SHIFT 5 /* HPOUT1L_DLY */
  1744. #define WM8993_HPOUT1L_DLY_WIDTH 1 /* HPOUT1L_DLY */
  1745. #define WM8993_HPOUT1R_RMV_SHORT 0x0008 /* HPOUT1R_RMV_SHORT */
  1746. #define WM8993_HPOUT1R_RMV_SHORT_MASK 0x0008 /* HPOUT1R_RMV_SHORT */
  1747. #define WM8993_HPOUT1R_RMV_SHORT_SHIFT 3 /* HPOUT1R_RMV_SHORT */
  1748. #define WM8993_HPOUT1R_RMV_SHORT_WIDTH 1 /* HPOUT1R_RMV_SHORT */
  1749. #define WM8993_HPOUT1R_OUTP 0x0004 /* HPOUT1R_OUTP */
  1750. #define WM8993_HPOUT1R_OUTP_MASK 0x0004 /* HPOUT1R_OUTP */
  1751. #define WM8993_HPOUT1R_OUTP_SHIFT 2 /* HPOUT1R_OUTP */
  1752. #define WM8993_HPOUT1R_OUTP_WIDTH 1 /* HPOUT1R_OUTP */
  1753. #define WM8993_HPOUT1R_DLY 0x0002 /* HPOUT1R_DLY */
  1754. #define WM8993_HPOUT1R_DLY_MASK 0x0002 /* HPOUT1R_DLY */
  1755. #define WM8993_HPOUT1R_DLY_SHIFT 1 /* HPOUT1R_DLY */
  1756. #define WM8993_HPOUT1R_DLY_WIDTH 1 /* HPOUT1R_DLY */
  1757. /*
  1758. * R98 (0x62) - EQ1
  1759. */
  1760. #define WM8993_EQ_ENA 0x0001 /* EQ_ENA */
  1761. #define WM8993_EQ_ENA_MASK 0x0001 /* EQ_ENA */
  1762. #define WM8993_EQ_ENA_SHIFT 0 /* EQ_ENA */
  1763. #define WM8993_EQ_ENA_WIDTH 1 /* EQ_ENA */
  1764. /*
  1765. * R99 (0x63) - EQ2
  1766. */
  1767. #define WM8993_EQ_B1_GAIN_MASK 0x001F /* EQ_B1_GAIN - [4:0] */
  1768. #define WM8993_EQ_B1_GAIN_SHIFT 0 /* EQ_B1_GAIN - [4:0] */
  1769. #define WM8993_EQ_B1_GAIN_WIDTH 5 /* EQ_B1_GAIN - [4:0] */
  1770. /*
  1771. * R100 (0x64) - EQ3
  1772. */
  1773. #define WM8993_EQ_B2_GAIN_MASK 0x001F /* EQ_B2_GAIN - [4:0] */
  1774. #define WM8993_EQ_B2_GAIN_SHIFT 0 /* EQ_B2_GAIN - [4:0] */
  1775. #define WM8993_EQ_B2_GAIN_WIDTH 5 /* EQ_B2_GAIN - [4:0] */
  1776. /*
  1777. * R101 (0x65) - EQ4
  1778. */
  1779. #define WM8993_EQ_B3_GAIN_MASK 0x001F /* EQ_B3_GAIN - [4:0] */
  1780. #define WM8993_EQ_B3_GAIN_SHIFT 0 /* EQ_B3_GAIN - [4:0] */
  1781. #define WM8993_EQ_B3_GAIN_WIDTH 5 /* EQ_B3_GAIN - [4:0] */
  1782. /*
  1783. * R102 (0x66) - EQ5
  1784. */
  1785. #define WM8993_EQ_B4_GAIN_MASK 0x001F /* EQ_B4_GAIN - [4:0] */
  1786. #define WM8993_EQ_B4_GAIN_SHIFT 0 /* EQ_B4_GAIN - [4:0] */
  1787. #define WM8993_EQ_B4_GAIN_WIDTH 5 /* EQ_B4_GAIN - [4:0] */
  1788. /*
  1789. * R103 (0x67) - EQ6
  1790. */
  1791. #define WM8993_EQ_B5_GAIN_MASK 0x001F /* EQ_B5_GAIN - [4:0] */
  1792. #define WM8993_EQ_B5_GAIN_SHIFT 0 /* EQ_B5_GAIN - [4:0] */
  1793. #define WM8993_EQ_B5_GAIN_WIDTH 5 /* EQ_B5_GAIN - [4:0] */
  1794. /*
  1795. * R104 (0x68) - EQ7
  1796. */
  1797. #define WM8993_EQ_B1_A_MASK 0xFFFF /* EQ_B1_A - [15:0] */
  1798. #define WM8993_EQ_B1_A_SHIFT 0 /* EQ_B1_A - [15:0] */
  1799. #define WM8993_EQ_B1_A_WIDTH 16 /* EQ_B1_A - [15:0] */
  1800. /*
  1801. * R105 (0x69) - EQ8
  1802. */
  1803. #define WM8993_EQ_B1_B_MASK 0xFFFF /* EQ_B1_B - [15:0] */
  1804. #define WM8993_EQ_B1_B_SHIFT 0 /* EQ_B1_B - [15:0] */
  1805. #define WM8993_EQ_B1_B_WIDTH 16 /* EQ_B1_B - [15:0] */
  1806. /*
  1807. * R106 (0x6A) - EQ9
  1808. */
  1809. #define WM8993_EQ_B1_PG_MASK 0xFFFF /* EQ_B1_PG - [15:0] */
  1810. #define WM8993_EQ_B1_PG_SHIFT 0 /* EQ_B1_PG - [15:0] */
  1811. #define WM8993_EQ_B1_PG_WIDTH 16 /* EQ_B1_PG - [15:0] */
  1812. /*
  1813. * R107 (0x6B) - EQ10
  1814. */
  1815. #define WM8993_EQ_B2_A_MASK 0xFFFF /* EQ_B2_A - [15:0] */
  1816. #define WM8993_EQ_B2_A_SHIFT 0 /* EQ_B2_A - [15:0] */
  1817. #define WM8993_EQ_B2_A_WIDTH 16 /* EQ_B2_A - [15:0] */
  1818. /*
  1819. * R108 (0x6C) - EQ11
  1820. */
  1821. #define WM8993_EQ_B2_B_MASK 0xFFFF /* EQ_B2_B - [15:0] */
  1822. #define WM8993_EQ_B2_B_SHIFT 0 /* EQ_B2_B - [15:0] */
  1823. #define WM8993_EQ_B2_B_WIDTH 16 /* EQ_B2_B - [15:0] */
  1824. /*
  1825. * R109 (0x6D) - EQ12
  1826. */
  1827. #define WM8993_EQ_B2_C_MASK 0xFFFF /* EQ_B2_C - [15:0] */
  1828. #define WM8993_EQ_B2_C_SHIFT 0 /* EQ_B2_C - [15:0] */
  1829. #define WM8993_EQ_B2_C_WIDTH 16 /* EQ_B2_C - [15:0] */
  1830. /*
  1831. * R110 (0x6E) - EQ13
  1832. */
  1833. #define WM8993_EQ_B2_PG_MASK 0xFFFF /* EQ_B2_PG - [15:0] */
  1834. #define WM8993_EQ_B2_PG_SHIFT 0 /* EQ_B2_PG - [15:0] */
  1835. #define WM8993_EQ_B2_PG_WIDTH 16 /* EQ_B2_PG - [15:0] */
  1836. /*
  1837. * R111 (0x6F) - EQ14
  1838. */
  1839. #define WM8993_EQ_B3_A_MASK 0xFFFF /* EQ_B3_A - [15:0] */
  1840. #define WM8993_EQ_B3_A_SHIFT 0 /* EQ_B3_A - [15:0] */
  1841. #define WM8993_EQ_B3_A_WIDTH 16 /* EQ_B3_A - [15:0] */
  1842. /*
  1843. * R112 (0x70) - EQ15
  1844. */
  1845. #define WM8993_EQ_B3_B_MASK 0xFFFF /* EQ_B3_B - [15:0] */
  1846. #define WM8993_EQ_B3_B_SHIFT 0 /* EQ_B3_B - [15:0] */
  1847. #define WM8993_EQ_B3_B_WIDTH 16 /* EQ_B3_B - [15:0] */
  1848. /*
  1849. * R113 (0x71) - EQ16
  1850. */
  1851. #define WM8993_EQ_B3_C_MASK 0xFFFF /* EQ_B3_C - [15:0] */
  1852. #define WM8993_EQ_B3_C_SHIFT 0 /* EQ_B3_C - [15:0] */
  1853. #define WM8993_EQ_B3_C_WIDTH 16 /* EQ_B3_C - [15:0] */
  1854. /*
  1855. * R114 (0x72) - EQ17
  1856. */
  1857. #define WM8993_EQ_B3_PG_MASK 0xFFFF /* EQ_B3_PG - [15:0] */
  1858. #define WM8993_EQ_B3_PG_SHIFT 0 /* EQ_B3_PG - [15:0] */
  1859. #define WM8993_EQ_B3_PG_WIDTH 16 /* EQ_B3_PG - [15:0] */
  1860. /*
  1861. * R115 (0x73) - EQ18
  1862. */
  1863. #define WM8993_EQ_B4_A_MASK 0xFFFF /* EQ_B4_A - [15:0] */
  1864. #define WM8993_EQ_B4_A_SHIFT 0 /* EQ_B4_A - [15:0] */
  1865. #define WM8993_EQ_B4_A_WIDTH 16 /* EQ_B4_A - [15:0] */
  1866. /*
  1867. * R116 (0x74) - EQ19
  1868. */
  1869. #define WM8993_EQ_B4_B_MASK 0xFFFF /* EQ_B4_B - [15:0] */
  1870. #define WM8993_EQ_B4_B_SHIFT 0 /* EQ_B4_B - [15:0] */
  1871. #define WM8993_EQ_B4_B_WIDTH 16 /* EQ_B4_B - [15:0] */
  1872. /*
  1873. * R117 (0x75) - EQ20
  1874. */
  1875. #define WM8993_EQ_B4_C_MASK 0xFFFF /* EQ_B4_C - [15:0] */
  1876. #define WM8993_EQ_B4_C_SHIFT 0 /* EQ_B4_C - [15:0] */
  1877. #define WM8993_EQ_B4_C_WIDTH 16 /* EQ_B4_C - [15:0] */
  1878. /*
  1879. * R118 (0x76) - EQ21
  1880. */
  1881. #define WM8993_EQ_B4_PG_MASK 0xFFFF /* EQ_B4_PG - [15:0] */
  1882. #define WM8993_EQ_B4_PG_SHIFT 0 /* EQ_B4_PG - [15:0] */
  1883. #define WM8993_EQ_B4_PG_WIDTH 16 /* EQ_B4_PG - [15:0] */
  1884. /*
  1885. * R119 (0x77) - EQ22
  1886. */
  1887. #define WM8993_EQ_B5_A_MASK 0xFFFF /* EQ_B5_A - [15:0] */
  1888. #define WM8993_EQ_B5_A_SHIFT 0 /* EQ_B5_A - [15:0] */
  1889. #define WM8993_EQ_B5_A_WIDTH 16 /* EQ_B5_A - [15:0] */
  1890. /*
  1891. * R120 (0x78) - EQ23
  1892. */
  1893. #define WM8993_EQ_B5_B_MASK 0xFFFF /* EQ_B5_B - [15:0] */
  1894. #define WM8993_EQ_B5_B_SHIFT 0 /* EQ_B5_B - [15:0] */
  1895. #define WM8993_EQ_B5_B_WIDTH 16 /* EQ_B5_B - [15:0] */
  1896. /*
  1897. * R121 (0x79) - EQ24
  1898. */
  1899. #define WM8993_EQ_B5_PG_MASK 0xFFFF /* EQ_B5_PG - [15:0] */
  1900. #define WM8993_EQ_B5_PG_SHIFT 0 /* EQ_B5_PG - [15:0] */
  1901. #define WM8993_EQ_B5_PG_WIDTH 16 /* EQ_B5_PG - [15:0] */
  1902. /*
  1903. * R122 (0x7A) - Digital Pulls
  1904. */
  1905. #define WM8993_MCLK_PU 0x0080 /* MCLK_PU */
  1906. #define WM8993_MCLK_PU_MASK 0x0080 /* MCLK_PU */
  1907. #define WM8993_MCLK_PU_SHIFT 7 /* MCLK_PU */
  1908. #define WM8993_MCLK_PU_WIDTH 1 /* MCLK_PU */
  1909. #define WM8993_MCLK_PD 0x0040 /* MCLK_PD */
  1910. #define WM8993_MCLK_PD_MASK 0x0040 /* MCLK_PD */
  1911. #define WM8993_MCLK_PD_SHIFT 6 /* MCLK_PD */
  1912. #define WM8993_MCLK_PD_WIDTH 1 /* MCLK_PD */
  1913. #define WM8993_DACDAT_PU 0x0020 /* DACDAT_PU */
  1914. #define WM8993_DACDAT_PU_MASK 0x0020 /* DACDAT_PU */
  1915. #define WM8993_DACDAT_PU_SHIFT 5 /* DACDAT_PU */
  1916. #define WM8993_DACDAT_PU_WIDTH 1 /* DACDAT_PU */
  1917. #define WM8993_DACDAT_PD 0x0010 /* DACDAT_PD */
  1918. #define WM8993_DACDAT_PD_MASK 0x0010 /* DACDAT_PD */
  1919. #define WM8993_DACDAT_PD_SHIFT 4 /* DACDAT_PD */
  1920. #define WM8993_DACDAT_PD_WIDTH 1 /* DACDAT_PD */
  1921. #define WM8993_LRCLK_PU 0x0008 /* LRCLK_PU */
  1922. #define WM8993_LRCLK_PU_MASK 0x0008 /* LRCLK_PU */
  1923. #define WM8993_LRCLK_PU_SHIFT 3 /* LRCLK_PU */
  1924. #define WM8993_LRCLK_PU_WIDTH 1 /* LRCLK_PU */
  1925. #define WM8993_LRCLK_PD 0x0004 /* LRCLK_PD */
  1926. #define WM8993_LRCLK_PD_MASK 0x0004 /* LRCLK_PD */
  1927. #define WM8993_LRCLK_PD_SHIFT 2 /* LRCLK_PD */
  1928. #define WM8993_LRCLK_PD_WIDTH 1 /* LRCLK_PD */
  1929. #define WM8993_BCLK_PU 0x0002 /* BCLK_PU */
  1930. #define WM8993_BCLK_PU_MASK 0x0002 /* BCLK_PU */
  1931. #define WM8993_BCLK_PU_SHIFT 1 /* BCLK_PU */
  1932. #define WM8993_BCLK_PU_WIDTH 1 /* BCLK_PU */
  1933. #define WM8993_BCLK_PD 0x0001 /* BCLK_PD */
  1934. #define WM8993_BCLK_PD_MASK 0x0001 /* BCLK_PD */
  1935. #define WM8993_BCLK_PD_SHIFT 0 /* BCLK_PD */
  1936. #define WM8993_BCLK_PD_WIDTH 1 /* BCLK_PD */
  1937. /*
  1938. * R123 (0x7B) - DRC Control 1
  1939. */
  1940. #define WM8993_DRC_ENA 0x8000 /* DRC_ENA */
  1941. #define WM8993_DRC_ENA_MASK 0x8000 /* DRC_ENA */
  1942. #define WM8993_DRC_ENA_SHIFT 15 /* DRC_ENA */
  1943. #define WM8993_DRC_ENA_WIDTH 1 /* DRC_ENA */
  1944. #define WM8993_DRC_DAC_PATH 0x4000 /* DRC_DAC_PATH */
  1945. #define WM8993_DRC_DAC_PATH_MASK 0x4000 /* DRC_DAC_PATH */
  1946. #define WM8993_DRC_DAC_PATH_SHIFT 14 /* DRC_DAC_PATH */
  1947. #define WM8993_DRC_DAC_PATH_WIDTH 1 /* DRC_DAC_PATH */
  1948. #define WM8993_DRC_SMOOTH_ENA 0x0800 /* DRC_SMOOTH_ENA */
  1949. #define WM8993_DRC_SMOOTH_ENA_MASK 0x0800 /* DRC_SMOOTH_ENA */
  1950. #define WM8993_DRC_SMOOTH_ENA_SHIFT 11 /* DRC_SMOOTH_ENA */
  1951. #define WM8993_DRC_SMOOTH_ENA_WIDTH 1 /* DRC_SMOOTH_ENA */
  1952. #define WM8993_DRC_QR_ENA 0x0400 /* DRC_QR_ENA */
  1953. #define WM8993_DRC_QR_ENA_MASK 0x0400 /* DRC_QR_ENA */
  1954. #define WM8993_DRC_QR_ENA_SHIFT 10 /* DRC_QR_ENA */
  1955. #define WM8993_DRC_QR_ENA_WIDTH 1 /* DRC_QR_ENA */
  1956. #define WM8993_DRC_ANTICLIP_ENA 0x0200 /* DRC_ANTICLIP_ENA */
  1957. #define WM8993_DRC_ANTICLIP_ENA_MASK 0x0200 /* DRC_ANTICLIP_ENA */
  1958. #define WM8993_DRC_ANTICLIP_ENA_SHIFT 9 /* DRC_ANTICLIP_ENA */
  1959. #define WM8993_DRC_ANTICLIP_ENA_WIDTH 1 /* DRC_ANTICLIP_ENA */
  1960. #define WM8993_DRC_HYST_ENA 0x0100 /* DRC_HYST_ENA */
  1961. #define WM8993_DRC_HYST_ENA_MASK 0x0100 /* DRC_HYST_ENA */
  1962. #define WM8993_DRC_HYST_ENA_SHIFT 8 /* DRC_HYST_ENA */
  1963. #define WM8993_DRC_HYST_ENA_WIDTH 1 /* DRC_HYST_ENA */
  1964. #define WM8993_DRC_THRESH_HYST_MASK 0x0030 /* DRC_THRESH_HYST - [5:4] */
  1965. #define WM8993_DRC_THRESH_HYST_SHIFT 4 /* DRC_THRESH_HYST - [5:4] */
  1966. #define WM8993_DRC_THRESH_HYST_WIDTH 2 /* DRC_THRESH_HYST - [5:4] */
  1967. #define WM8993_DRC_MINGAIN_MASK 0x000C /* DRC_MINGAIN - [3:2] */
  1968. #define WM8993_DRC_MINGAIN_SHIFT 2 /* DRC_MINGAIN - [3:2] */
  1969. #define WM8993_DRC_MINGAIN_WIDTH 2 /* DRC_MINGAIN - [3:2] */
  1970. #define WM8993_DRC_MAXGAIN_MASK 0x0003 /* DRC_MAXGAIN - [1:0] */
  1971. #define WM8993_DRC_MAXGAIN_SHIFT 0 /* DRC_MAXGAIN - [1:0] */
  1972. #define WM8993_DRC_MAXGAIN_WIDTH 2 /* DRC_MAXGAIN - [1:0] */
  1973. /*
  1974. * R124 (0x7C) - DRC Control 2
  1975. */
  1976. #define WM8993_DRC_ATTACK_RATE_MASK 0xF000 /* DRC_ATTACK_RATE - [15:12] */
  1977. #define WM8993_DRC_ATTACK_RATE_SHIFT 12 /* DRC_ATTACK_RATE - [15:12] */
  1978. #define WM8993_DRC_ATTACK_RATE_WIDTH 4 /* DRC_ATTACK_RATE - [15:12] */
  1979. #define WM8993_DRC_DECAY_RATE_MASK 0x0F00 /* DRC_DECAY_RATE - [11:8] */
  1980. #define WM8993_DRC_DECAY_RATE_SHIFT 8 /* DRC_DECAY_RATE - [11:8] */
  1981. #define WM8993_DRC_DECAY_RATE_WIDTH 4 /* DRC_DECAY_RATE - [11:8] */
  1982. #define WM8993_DRC_THRESH_COMP_MASK 0x00FC /* DRC_THRESH_COMP - [7:2] */
  1983. #define WM8993_DRC_THRESH_COMP_SHIFT 2 /* DRC_THRESH_COMP - [7:2] */
  1984. #define WM8993_DRC_THRESH_COMP_WIDTH 6 /* DRC_THRESH_COMP - [7:2] */
  1985. /*
  1986. * R125 (0x7D) - DRC Control 3
  1987. */
  1988. #define WM8993_DRC_AMP_COMP_MASK 0xF800 /* DRC_AMP_COMP - [15:11] */
  1989. #define WM8993_DRC_AMP_COMP_SHIFT 11 /* DRC_AMP_COMP - [15:11] */
  1990. #define WM8993_DRC_AMP_COMP_WIDTH 5 /* DRC_AMP_COMP - [15:11] */
  1991. #define WM8993_DRC_R0_SLOPE_COMP_MASK 0x0700 /* DRC_R0_SLOPE_COMP - [10:8] */
  1992. #define WM8993_DRC_R0_SLOPE_COMP_SHIFT 8 /* DRC_R0_SLOPE_COMP - [10:8] */
  1993. #define WM8993_DRC_R0_SLOPE_COMP_WIDTH 3 /* DRC_R0_SLOPE_COMP - [10:8] */
  1994. #define WM8993_DRC_FF_DELAY 0x0080 /* DRC_FF_DELAY */
  1995. #define WM8993_DRC_FF_DELAY_MASK 0x0080 /* DRC_FF_DELAY */
  1996. #define WM8993_DRC_FF_DELAY_SHIFT 7 /* DRC_FF_DELAY */
  1997. #define WM8993_DRC_FF_DELAY_WIDTH 1 /* DRC_FF_DELAY */
  1998. #define WM8993_DRC_THRESH_QR_MASK 0x000C /* DRC_THRESH_QR - [3:2] */
  1999. #define WM8993_DRC_THRESH_QR_SHIFT 2 /* DRC_THRESH_QR - [3:2] */
  2000. #define WM8993_DRC_THRESH_QR_WIDTH 2 /* DRC_THRESH_QR - [3:2] */
  2001. #define WM8993_DRC_RATE_QR_MASK 0x0003 /* DRC_RATE_QR - [1:0] */
  2002. #define WM8993_DRC_RATE_QR_SHIFT 0 /* DRC_RATE_QR - [1:0] */
  2003. #define WM8993_DRC_RATE_QR_WIDTH 2 /* DRC_RATE_QR - [1:0] */
  2004. /*
  2005. * R126 (0x7E) - DRC Control 4
  2006. */
  2007. #define WM8993_DRC_R1_SLOPE_COMP_MASK 0xE000 /* DRC_R1_SLOPE_COMP - [15:13] */
  2008. #define WM8993_DRC_R1_SLOPE_COMP_SHIFT 13 /* DRC_R1_SLOPE_COMP - [15:13] */
  2009. #define WM8993_DRC_R1_SLOPE_COMP_WIDTH 3 /* DRC_R1_SLOPE_COMP - [15:13] */
  2010. #define WM8993_DRC_STARTUP_GAIN_MASK 0x1F00 /* DRC_STARTUP_GAIN - [12:8] */
  2011. #define WM8993_DRC_STARTUP_GAIN_SHIFT 8 /* DRC_STARTUP_GAIN - [12:8] */
  2012. #define WM8993_DRC_STARTUP_GAIN_WIDTH 5 /* DRC_STARTUP_GAIN - [12:8] */
  2013. #endif