Lines Matching +full:enable +full:- +full:bias +full:- +full:control

1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * wm8737.c -- WM8523 ALSA SoC Audio driver
41 * R0 (0x00) - Left PGA volume
47 #define WM8737_LINVOL_MASK 0x00FF /* LINVOL - [7:0] */
48 #define WM8737_LINVOL_SHIFT 0 /* LINVOL - [7:0] */
49 #define WM8737_LINVOL_WIDTH 8 /* LINVOL - [7:0] */
52 * R1 (0x01) - Right PGA volume
58 #define WM8737_RINVOL_MASK 0x00FF /* RINVOL - [7:0] */
59 #define WM8737_RINVOL_SHIFT 0 /* RINVOL - [7:0] */
60 #define WM8737_RINVOL_WIDTH 8 /* RINVOL - [7:0] */
63 * R2 (0x02) - AUDIO path L
65 #define WM8737_LINSEL_MASK 0x0180 /* LINSEL - [8:7] */
66 #define WM8737_LINSEL_SHIFT 7 /* LINSEL - [8:7] */
67 #define WM8737_LINSEL_WIDTH 2 /* LINSEL - [8:7] */
68 #define WM8737_LMICBOOST_MASK 0x0060 /* LMICBOOST - [6:5] */
69 #define WM8737_LMICBOOST_SHIFT 5 /* LMICBOOST - [6:5] */
70 #define WM8737_LMICBOOST_WIDTH 2 /* LMICBOOST - [6:5] */
83 #define WM8737_LZCTO_MASK 0x0003 /* LZCTO - [1:0] */
84 #define WM8737_LZCTO_SHIFT 0 /* LZCTO - [1:0] */
85 #define WM8737_LZCTO_WIDTH 2 /* LZCTO - [1:0] */
88 * R3 (0x03) - AUDIO path R
90 #define WM8737_RINSEL_MASK 0x0180 /* RINSEL - [8:7] */
91 #define WM8737_RINSEL_SHIFT 7 /* RINSEL - [8:7] */
92 #define WM8737_RINSEL_WIDTH 2 /* RINSEL - [8:7] */
93 #define WM8737_RMICBOOST_MASK 0x0060 /* RMICBOOST - [6:5] */
94 #define WM8737_RMICBOOST_SHIFT 5 /* RMICBOOST - [6:5] */
95 #define WM8737_RMICBOOST_WIDTH 2 /* RMICBOOST - [6:5] */
108 #define WM8737_RZCTO_MASK 0x0003 /* RZCTO - [1:0] */
109 #define WM8737_RZCTO_SHIFT 0 /* RZCTO - [1:0] */
110 #define WM8737_RZCTO_WIDTH 2 /* RZCTO - [1:0] */
113 * R4 (0x04) - 3D Enhance
127 #define WM8737_3DDEPTH_MASK 0x001E /* 3DDEPTH - [4:1] */
128 #define WM8737_3DDEPTH_SHIFT 1 /* 3DDEPTH - [4:1] */
129 #define WM8737_3DDEPTH_WIDTH 4 /* 3DDEPTH - [4:1] */
136 * R5 (0x05) - ADC Control
138 #define WM8737_MONOMIX_MASK 0x0180 /* MONOMIX - [8:7] */
139 #define WM8737_MONOMIX_SHIFT 7 /* MONOMIX - [8:7] */
140 #define WM8737_MONOMIX_WIDTH 2 /* MONOMIX - [8:7] */
141 #define WM8737_POLARITY_MASK 0x0060 /* POLARITY - [6:5] */
142 #define WM8737_POLARITY_SHIFT 5 /* POLARITY - [6:5] */
143 #define WM8737_POLARITY_WIDTH 2 /* POLARITY - [6:5] */
162 * R6 (0x06) - Power Management
192 #define WM8737_MICBIAS_MASK 0x0003 /* MICBIAS - [1:0] */
193 #define WM8737_MICBIAS_SHIFT 0 /* MICBIAS - [1:0] */
194 #define WM8737_MICBIAS_WIDTH 2 /* MICBIAS - [1:0] */
197 * R7 (0x07) - Audio Format
211 #define WM8737_WL_MASK 0x000C /* WL - [3:2] */
212 #define WM8737_WL_SHIFT 2 /* WL - [3:2] */
213 #define WM8737_WL_WIDTH 2 /* WL - [3:2] */
214 #define WM8737_FORMAT_MASK 0x0003 /* FORMAT - [1:0] */
215 #define WM8737_FORMAT_SHIFT 0 /* FORMAT - [1:0] */
216 #define WM8737_FORMAT_WIDTH 2 /* FORMAT - [1:0] */
219 * R8 (0x08) - Clocking
229 #define WM8737_SR_MASK 0x003E /* SR - [5:1] */
230 #define WM8737_SR_SHIFT 1 /* SR - [5:1] */
231 #define WM8737_SR_WIDTH 5 /* SR - [5:1] */
238 * R9 (0x09) - MIC Preamp Control
248 #define WM8737_MBCTRL_MASK 0x0003 /* MBCTRL - [1:0] */
249 #define WM8737_MBCTRL_SHIFT 0 /* MBCTRL - [1:0] */
250 #define WM8737_MBCTRL_WIDTH 2 /* MBCTRL - [1:0] */
253 * R10 (0x0A) - Misc Bias Control
255 #define WM8737_VMIDSEL_MASK 0x000C /* VMIDSEL - [3:2] */
256 #define WM8737_VMIDSEL_SHIFT 2 /* VMIDSEL - [3:2] */
257 #define WM8737_VMIDSEL_WIDTH 2 /* VMIDSEL - [3:2] */
258 #define WM8737_LINPUT1_DC_BIAS_ENABLE 0x0002 /* LINPUT1 DC BIAS ENABLE */
259 #define WM8737_LINPUT1_DC_BIAS_ENABLE_MASK 0x0002 /* LINPUT1 DC BIAS ENABLE */
260 #define WM8737_LINPUT1_DC_BIAS_ENABLE_SHIFT 1 /* LINPUT1 DC BIAS ENABLE */
261 #define WM8737_LINPUT1_DC_BIAS_ENABLE_WIDTH 1 /* LINPUT1 DC BIAS ENABLE */
262 #define WM8737_RINPUT1_DC_BIAS_ENABLE 0x0001 /* RINPUT1 DC BIAS ENABLE */
263 #define WM8737_RINPUT1_DC_BIAS_ENABLE_MASK 0x0001 /* RINPUT1 DC BIAS ENABLE */
264 #define WM8737_RINPUT1_DC_BIAS_ENABLE_SHIFT 0 /* RINPUT1 DC BIAS ENABLE */
265 #define WM8737_RINPUT1_DC_BIAS_ENABLE_WIDTH 1 /* RINPUT1 DC BIAS ENABLE */
268 * R11 (0x0B) - Noise Gate
270 #define WM8737_NGTH_MASK 0x001C /* NGTH - [4:2] */
271 #define WM8737_NGTH_SHIFT 2 /* NGTH - [4:2] */
272 #define WM8737_NGTH_WIDTH 3 /* NGTH - [4:2] */
279 * R12 (0x0C) - ALC1
281 #define WM8737_ALCSEL_MASK 0x0180 /* ALCSEL - [8:7] */
282 #define WM8737_ALCSEL_SHIFT 7 /* ALCSEL - [8:7] */
283 #define WM8737_ALCSEL_WIDTH 2 /* ALCSEL - [8:7] */
284 #define WM8737_MAX_GAIN_MASK 0x0070 /* MAX GAIN - [6:4] */
285 #define WM8737_MAX_GAIN_SHIFT 4 /* MAX GAIN - [6:4] */
286 #define WM8737_MAX_GAIN_WIDTH 3 /* MAX GAIN - [6:4] */
287 #define WM8737_ALCL_MASK 0x000F /* ALCL - [3:0] */
288 #define WM8737_ALCL_SHIFT 0 /* ALCL - [3:0] */
289 #define WM8737_ALCL_WIDTH 4 /* ALCL - [3:0] */
292 * R13 (0x0D) - ALC2
298 #define WM8737_HLD_MASK 0x000F /* HLD - [3:0] */
299 #define WM8737_HLD_SHIFT 0 /* HLD - [3:0] */
300 #define WM8737_HLD_WIDTH 4 /* HLD - [3:0] */
303 * R14 (0x0E) - ALC3
305 #define WM8737_DCY_MASK 0x00F0 /* DCY - [7:4] */
306 #define WM8737_DCY_SHIFT 4 /* DCY - [7:4] */
307 #define WM8737_DCY_WIDTH 4 /* DCY - [7:4] */
308 #define WM8737_ATK_MASK 0x000F /* ATK - [3:0] */
309 #define WM8737_ATK_SHIFT 0 /* ATK - [3:0] */
310 #define WM8737_ATK_WIDTH 4 /* ATK - [3:0] */
313 * R15 (0x0F) - Reset
315 #define WM8737_RESET_MASK 0x01FF /* RESET - [8:0] */
316 #define WM8737_RESET_SHIFT 0 /* RESET - [8:0] */
317 #define WM8737_RESET_WIDTH 9 /* RESET - [8:0] */