Lines Matching +full:2 +full:- +full:5

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * wm8741.h -- WM8423 ASoC driver
38 * R0 (0x00) - DACLLSB_ATTENUATION
42 #define WM8741_UPDATELL_SHIFT 5 /* UPDATELL */
44 #define WM8741_LAT_4_0_MASK 0x001F /* LAT[4:0] - [4:0] */
45 #define WM8741_LAT_4_0_SHIFT 0 /* LAT[4:0] - [4:0] */
46 #define WM8741_LAT_4_0_WIDTH 5 /* LAT[4:0] - [4:0] */
49 * R1 (0x01) - DACLMSB_ATTENUATION
53 #define WM8741_UPDATELM_SHIFT 5 /* UPDATELM */
55 #define WM8741_LAT_9_5_0_MASK 0x001F /* LAT[9:5] - [4:0] */
56 #define WM8741_LAT_9_5_0_SHIFT 0 /* LAT[9:5] - [4:0] */
57 #define WM8741_LAT_9_5_0_WIDTH 5 /* LAT[9:5] - [4:0] */
60 * R2 (0x02) - DACRLSB_ATTENUATION
64 #define WM8741_UPDATERL_SHIFT 5 /* UPDATERL */
66 #define WM8741_RAT_4_0_MASK 0x001F /* RAT[4:0] - [4:0] */
67 #define WM8741_RAT_4_0_SHIFT 0 /* RAT[4:0] - [4:0] */
68 #define WM8741_RAT_4_0_WIDTH 5 /* RAT[4:0] - [4:0] */
71 * R3 (0x03) - DACRMSB_ATTENUATION
75 #define WM8741_UPDATERM_SHIFT 5 /* UPDATERM */
77 #define WM8741_RAT_9_5_0_MASK 0x001F /* RAT[9:5] - [4:0] */
78 #define WM8741_RAT_9_5_0_SHIFT 0 /* RAT[9:5] - [4:0] */
79 #define WM8741_RAT_9_5_0_WIDTH 5 /* RAT[9:5] - [4:0] */
82 * R4 (0x04) - VOLUME_CONTROL
88 #define WM8741_ZFLAG_MASK 0x0060 /* ZFLAG - [6:5] */
89 #define WM8741_ZFLAG_SHIFT 5 /* ZFLAG - [6:5] */
90 #define WM8741_ZFLAG_WIDTH 2 /* ZFLAG - [6:5] */
101 #define WM8741_ATC_SHIFT 2 /* ATC */
113 * R5 (0x05) - FORMAT_CONTROL
125 #define WM8741_BCP_SHIFT 5 /* BCP */
131 #define WM8741_FMT_MASK 0x000C /* FMT - [3:2] */
132 #define WM8741_FMT_SHIFT 2 /* FMT - [3:2] */
133 #define WM8741_FMT_WIDTH 2 /* FMT - [3:2] */
134 #define WM8741_IWL_MASK 0x0003 /* IWL - [1:0] */
135 #define WM8741_IWL_SHIFT 0 /* IWL - [1:0] */
136 #define WM8741_IWL_WIDTH 2 /* IWL - [1:0] */
139 * R6 (0x06) - FILTER_CONTROL
145 #define WM8741_DEEMPH_MASK 0x0060 /* DEEMPH - [6:5] */
146 #define WM8741_DEEMPH_SHIFT 5 /* DEEMPH - [6:5] */
147 #define WM8741_DEEMPH_WIDTH 2 /* DEEMPH - [6:5] */
148 #define WM8741_DSDFILT_MASK 0x0018 /* DSDFILT - [4:3] */
149 #define WM8741_DSDFILT_SHIFT 3 /* DSDFILT - [4:3] */
150 #define WM8741_DSDFILT_WIDTH 2 /* DSDFILT - [4:3] */
151 #define WM8741_FIRSEL_MASK 0x0007 /* FIRSEL - [2:0] */
152 #define WM8741_FIRSEL_SHIFT 0 /* FIRSEL - [2:0] */
153 #define WM8741_FIRSEL_WIDTH 3 /* FIRSEL - [2:0] */
156 * R7 (0x07) - MODE_CONTROL_1
162 #define WM8741_OSR_MASK 0x0060 /* OSR - [6:5] */
163 #define WM8741_OSR_SHIFT 5 /* OSR - [6:5] */
164 #define WM8741_OSR_WIDTH 2 /* OSR - [6:5] */
165 #define WM8741_SR_MASK 0x001C /* SR - [4:2] */
166 #define WM8741_SR_SHIFT 2 /* SR - [4:2] */
167 #define WM8741_SR_WIDTH 3 /* SR - [4:2] */
168 #define WM8741_MODESEL_MASK 0x0003 /* MODESEL - [1:0] */
169 #define WM8741_MODESEL_SHIFT 0 /* MODESEL - [1:0] */
170 #define WM8741_MODESEL_WIDTH 2 /* MODESEL - [1:0] */
173 * R8 (0x08) - MODE_CONTROL_2
181 #define WM8741_SDOUT_SHIFT 5 /* SDOUT */
187 #define WM8741_DIFF_MASK 0x000C /* DIFF - [3:2] */
188 #define WM8741_DIFF_SHIFT 2 /* DIFF - [3:2] */
189 #define WM8741_DIFF_WIDTH 2 /* DIFF - [3:2] */
190 #define WM8741_DITHER_MASK 0x0003 /* DITHER - [1:0] */
191 #define WM8741_DITHER_SHIFT 0 /* DITHER - [1:0] */
192 #define WM8741_DITHER_WIDTH 2 /* DITHER - [1:0] */
196 #define WM8741_DIFF_MODE_STEREO_REVERSED 2 /* stereo reversed */
201 * R32 (0x20) - ADDITONAL_CONTROL_1