Go to the documentation of this file.
19 #define WM8737_LEFT_PGA_VOLUME 0x00
20 #define WM8737_RIGHT_PGA_VOLUME 0x01
21 #define WM8737_AUDIO_PATH_L 0x02
22 #define WM8737_AUDIO_PATH_R 0x03
23 #define WM8737_3D_ENHANCE 0x04
24 #define WM8737_ADC_CONTROL 0x05
25 #define WM8737_POWER_MANAGEMENT 0x06
26 #define WM8737_AUDIO_FORMAT 0x07
27 #define WM8737_CLOCKING 0x08
28 #define WM8737_MIC_PREAMP_CONTROL 0x09
29 #define WM8737_MISC_BIAS_CONTROL 0x0A
30 #define WM8737_NOISE_GATE 0x0B
31 #define WM8737_ALC1 0x0C
32 #define WM8737_ALC2 0x0D
33 #define WM8737_ALC3 0x0E
34 #define WM8737_RESET 0x0F
36 #define WM8737_REGISTER_COUNT 16
37 #define WM8737_MAX_REGISTER 0x0F
46 #define WM8737_LVU 0x0100
47 #define WM8737_LVU_MASK 0x0100
48 #define WM8737_LVU_SHIFT 8
49 #define WM8737_LVU_WIDTH 1
50 #define WM8737_LINVOL_MASK 0x00FF
51 #define WM8737_LINVOL_SHIFT 0
52 #define WM8737_LINVOL_WIDTH 8
57 #define WM8737_RVU 0x0100
58 #define WM8737_RVU_MASK 0x0100
59 #define WM8737_RVU_SHIFT 8
60 #define WM8737_RVU_WIDTH 1
61 #define WM8737_RINVOL_MASK 0x00FF
62 #define WM8737_RINVOL_SHIFT 0
63 #define WM8737_RINVOL_WIDTH 8
68 #define WM8737_LINSEL_MASK 0x0180
69 #define WM8737_LINSEL_SHIFT 7
70 #define WM8737_LINSEL_WIDTH 2
71 #define WM8737_LMICBOOST_MASK 0x0060
72 #define WM8737_LMICBOOST_SHIFT 5
73 #define WM8737_LMICBOOST_WIDTH 2
74 #define WM8737_LMBE 0x0010
75 #define WM8737_LMBE_MASK 0x0010
76 #define WM8737_LMBE_SHIFT 4
77 #define WM8737_LMBE_WIDTH 1
78 #define WM8737_LMZC 0x0008
79 #define WM8737_LMZC_MASK 0x0008
80 #define WM8737_LMZC_SHIFT 3
81 #define WM8737_LMZC_WIDTH 1
82 #define WM8737_LPZC 0x0004
83 #define WM8737_LPZC_MASK 0x0004
84 #define WM8737_LPZC_SHIFT 2
85 #define WM8737_LPZC_WIDTH 1
86 #define WM8737_LZCTO_MASK 0x0003
87 #define WM8737_LZCTO_SHIFT 0
88 #define WM8737_LZCTO_WIDTH 2
93 #define WM8737_RINSEL_MASK 0x0180
94 #define WM8737_RINSEL_SHIFT 7
95 #define WM8737_RINSEL_WIDTH 2
96 #define WM8737_RMICBOOST_MASK 0x0060
97 #define WM8737_RMICBOOST_SHIFT 5
98 #define WM8737_RMICBOOST_WIDTH 2
99 #define WM8737_RMBE 0x0010
100 #define WM8737_RMBE_MASK 0x0010
101 #define WM8737_RMBE_SHIFT 4
102 #define WM8737_RMBE_WIDTH 1
103 #define WM8737_RMZC 0x0008
104 #define WM8737_RMZC_MASK 0x0008
105 #define WM8737_RMZC_SHIFT 3
106 #define WM8737_RMZC_WIDTH 1
107 #define WM8737_RPZC 0x0004
108 #define WM8737_RPZC_MASK 0x0004
109 #define WM8737_RPZC_SHIFT 2
110 #define WM8737_RPZC_WIDTH 1
111 #define WM8737_RZCTO_MASK 0x0003
112 #define WM8737_RZCTO_SHIFT 0
113 #define WM8737_RZCTO_WIDTH 2
118 #define WM8737_DIV2 0x0080
119 #define WM8737_DIV2_MASK 0x0080
120 #define WM8737_DIV2_SHIFT 7
121 #define WM8737_DIV2_WIDTH 1
122 #define WM8737_3DLC 0x0040
123 #define WM8737_3DLC_MASK 0x0040
124 #define WM8737_3DLC_SHIFT 6
125 #define WM8737_3DLC_WIDTH 1
126 #define WM8737_3DUC 0x0020
127 #define WM8737_3DUC_MASK 0x0020
128 #define WM8737_3DUC_SHIFT 5
129 #define WM8737_3DUC_WIDTH 1
130 #define WM8737_3DDEPTH_MASK 0x001E
131 #define WM8737_3DDEPTH_SHIFT 1
132 #define WM8737_3DDEPTH_WIDTH 4
133 #define WM8737_3DE 0x0001
134 #define WM8737_3DE_MASK 0x0001
135 #define WM8737_3DE_SHIFT 0
136 #define WM8737_3DE_WIDTH 1
141 #define WM8737_MONOMIX_MASK 0x0180
142 #define WM8737_MONOMIX_SHIFT 7
143 #define WM8737_MONOMIX_WIDTH 2
144 #define WM8737_POLARITY_MASK 0x0060
145 #define WM8737_POLARITY_SHIFT 5
146 #define WM8737_POLARITY_WIDTH 2
147 #define WM8737_HPOR 0x0010
148 #define WM8737_HPOR_MASK 0x0010
149 #define WM8737_HPOR_SHIFT 4
150 #define WM8737_HPOR_WIDTH 1
151 #define WM8737_LP 0x0004
152 #define WM8737_LP_MASK 0x0004
153 #define WM8737_LP_SHIFT 2
154 #define WM8737_LP_WIDTH 1
155 #define WM8737_MONOUT 0x0002
156 #define WM8737_MONOUT_MASK 0x0002
157 #define WM8737_MONOUT_SHIFT 1
158 #define WM8737_MONOUT_WIDTH 1
159 #define WM8737_ADCHPD 0x0001
160 #define WM8737_ADCHPD_MASK 0x0001
161 #define WM8737_ADCHPD_SHIFT 0
162 #define WM8737_ADCHPD_WIDTH 1
167 #define WM8737_VMID 0x0100
168 #define WM8737_VMID_MASK 0x0100
169 #define WM8737_VMID_SHIFT 8
170 #define WM8737_VMID_WIDTH 1
171 #define WM8737_VREF 0x0080
172 #define WM8737_VREF_MASK 0x0080
173 #define WM8737_VREF_SHIFT 7
174 #define WM8737_VREF_WIDTH 1
175 #define WM8737_AI 0x0040
176 #define WM8737_AI_MASK 0x0040
177 #define WM8737_AI_SHIFT 6
178 #define WM8737_AI_WIDTH 1
179 #define WM8737_PGL 0x0020
180 #define WM8737_PGL_MASK 0x0020
181 #define WM8737_PGL_SHIFT 5
182 #define WM8737_PGL_WIDTH 1
183 #define WM8737_PGR 0x0010
184 #define WM8737_PGR_MASK 0x0010
185 #define WM8737_PGR_SHIFT 4
186 #define WM8737_PGR_WIDTH 1
187 #define WM8737_ADL 0x0008
188 #define WM8737_ADL_MASK 0x0008
189 #define WM8737_ADL_SHIFT 3
190 #define WM8737_ADL_WIDTH 1
191 #define WM8737_ADR 0x0004
192 #define WM8737_ADR_MASK 0x0004
193 #define WM8737_ADR_SHIFT 2
194 #define WM8737_ADR_WIDTH 1
195 #define WM8737_MICBIAS_MASK 0x0003
196 #define WM8737_MICBIAS_SHIFT 0
197 #define WM8737_MICBIAS_WIDTH 2
202 #define WM8737_SDODIS 0x0080
203 #define WM8737_SDODIS_MASK 0x0080
204 #define WM8737_SDODIS_SHIFT 7
205 #define WM8737_SDODIS_WIDTH 1
206 #define WM8737_MS 0x0040
207 #define WM8737_MS_MASK 0x0040
208 #define WM8737_MS_SHIFT 6
209 #define WM8737_MS_WIDTH 1
210 #define WM8737_LRP 0x0010
211 #define WM8737_LRP_MASK 0x0010
212 #define WM8737_LRP_SHIFT 4
213 #define WM8737_LRP_WIDTH 1
214 #define WM8737_WL_MASK 0x000C
215 #define WM8737_WL_SHIFT 2
216 #define WM8737_WL_WIDTH 2
217 #define WM8737_FORMAT_MASK 0x0003
218 #define WM8737_FORMAT_SHIFT 0
219 #define WM8737_FORMAT_WIDTH 2
224 #define WM8737_AUTODETECT 0x0080
225 #define WM8737_AUTODETECT_MASK 0x0080
226 #define WM8737_AUTODETECT_SHIFT 7
227 #define WM8737_AUTODETECT_WIDTH 1
228 #define WM8737_CLKDIV2 0x0040
229 #define WM8737_CLKDIV2_MASK 0x0040
230 #define WM8737_CLKDIV2_SHIFT 6
231 #define WM8737_CLKDIV2_WIDTH 1
232 #define WM8737_SR_MASK 0x003E
233 #define WM8737_SR_SHIFT 1
234 #define WM8737_SR_WIDTH 5
235 #define WM8737_USB_MODE 0x0001
236 #define WM8737_USB_MODE_MASK 0x0001
237 #define WM8737_USB_MODE_SHIFT 0
238 #define WM8737_USB_MODE_WIDTH 1
243 #define WM8737_RBYPEN 0x0008
244 #define WM8737_RBYPEN_MASK 0x0008
245 #define WM8737_RBYPEN_SHIFT 3
246 #define WM8737_RBYPEN_WIDTH 1
247 #define WM8737_LBYPEN 0x0004
248 #define WM8737_LBYPEN_MASK 0x0004
249 #define WM8737_LBYPEN_SHIFT 2
250 #define WM8737_LBYPEN_WIDTH 1
251 #define WM8737_MBCTRL_MASK 0x0003
252 #define WM8737_MBCTRL_SHIFT 0
253 #define WM8737_MBCTRL_WIDTH 2
258 #define WM8737_VMIDSEL_MASK 0x000C
259 #define WM8737_VMIDSEL_SHIFT 2
260 #define WM8737_VMIDSEL_WIDTH 2
261 #define WM8737_LINPUT1_DC_BIAS_ENABLE 0x0002
262 #define WM8737_LINPUT1_DC_BIAS_ENABLE_MASK 0x0002
263 #define WM8737_LINPUT1_DC_BIAS_ENABLE_SHIFT 1
264 #define WM8737_LINPUT1_DC_BIAS_ENABLE_WIDTH 1
265 #define WM8737_RINPUT1_DC_BIAS_ENABLE 0x0001
266 #define WM8737_RINPUT1_DC_BIAS_ENABLE_MASK 0x0001
267 #define WM8737_RINPUT1_DC_BIAS_ENABLE_SHIFT 0
268 #define WM8737_RINPUT1_DC_BIAS_ENABLE_WIDTH 1
273 #define WM8737_NGTH_MASK 0x001C
274 #define WM8737_NGTH_SHIFT 2
275 #define WM8737_NGTH_WIDTH 3
276 #define WM8737_NGAT 0x0001
277 #define WM8737_NGAT_MASK 0x0001
278 #define WM8737_NGAT_SHIFT 0
279 #define WM8737_NGAT_WIDTH 1
284 #define WM8737_ALCSEL_MASK 0x0180
285 #define WM8737_ALCSEL_SHIFT 7
286 #define WM8737_ALCSEL_WIDTH 2
287 #define WM8737_MAX_GAIN_MASK 0x0070
288 #define WM8737_MAX_GAIN_SHIFT 4
289 #define WM8737_MAX_GAIN_WIDTH 3
290 #define WM8737_ALCL_MASK 0x000F
291 #define WM8737_ALCL_SHIFT 0
292 #define WM8737_ALCL_WIDTH 4
297 #define WM8737_ALCZCE 0x0010
298 #define WM8737_ALCZCE_MASK 0x0010
299 #define WM8737_ALCZCE_SHIFT 4
300 #define WM8737_ALCZCE_WIDTH 1
301 #define WM8737_HLD_MASK 0x000F
302 #define WM8737_HLD_SHIFT 0
303 #define WM8737_HLD_WIDTH 4
308 #define WM8737_DCY_MASK 0x00F0
309 #define WM8737_DCY_SHIFT 4
310 #define WM8737_DCY_WIDTH 4
311 #define WM8737_ATK_MASK 0x000F
312 #define WM8737_ATK_SHIFT 0
313 #define WM8737_ATK_WIDTH 4
318 #define WM8737_RESET_MASK 0x01FF
319 #define WM8737_RESET_SHIFT 0
320 #define WM8737_RESET_WIDTH 9