Lines Matching +full:1 +full:- +full:6
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * es8328.h -- ES8328 ALSA SoC Audio driver
23 #define ES8328_CONTROL1_VMIDSEL_50k (1 << 0)
27 #define ES8328_CONTROL1_ENREF (1 << 2)
28 #define ES8328_CONTROL1_SEQEN (1 << 3)
29 #define ES8328_CONTROL1_SAMEFS (1 << 4)
31 #define ES8328_CONTROL1_DACMCLK_DAC (1 << 5)
32 #define ES8328_CONTROL1_LRCM (1 << 6)
33 #define ES8328_CONTROL1_SCP_RESET (1 << 7)
36 #define ES8328_CONTROL2_VREF_BUF_OFF (1 << 0)
37 #define ES8328_CONTROL2_VREF_LOWPOWER (1 << 1)
38 #define ES8328_CONTROL2_IBIASGEN_OFF (1 << 2)
39 #define ES8328_CONTROL2_ANALOG_OFF (1 << 3)
40 #define ES8328_CONTROL2_VREF_BUF_LOWPOWER (1 << 4)
41 #define ES8328_CONTROL2_VCM_MOD_LOWPOWER (1 << 5)
42 #define ES8328_CONTROL2_OVERCURRENT_ON (1 << 6)
43 #define ES8328_CONTROL2_THERMAL_SHUTDOWN_ON (1 << 7)
47 #define ES8328_CHIPPOWER_ADCVREF_OFF 1
52 #define ES8328_CHIPPOWER_DACDIG_OFF 6
57 #define ES8328_ADCPOWER_FLASH_ADC_LOWPOWER 1
62 #define ES8328_ADCPOWER_AINR_OFF 6
67 #define ES8328_DACPOWER_MONO_ON 1
72 #define ES8328_DACPOWER_RDAC_OFF 6
81 #define ES8328_MASTERMODE_BCLK_INV (1 << 5)
82 #define ES8328_MASTERMODE_MCLKDIV2 (1 << 6)
83 #define ES8328_MASTERMODE_MSC (1 << 7)
92 #define ES8328_ADCCONTROL4_ADCFORMAT_LJUST (1 << 0)
98 #define ES8328_ADCCONTROL4_ADCLRP_I2S_POL_INV (1 << 5)
100 #define ES8328_ADCCONTROL4_ADCLRP_PCM_MSB_CLK1 (1 << 5)
108 #define ES8328_ADCCONTROL7_ADC_MUTE (1 << 2)
109 #define ES8328_ADCCONTROL7_ADC_LER (1 << 3)
110 #define ES8328_ADCCONTROL7_ADC_ZERO_CROSS (1 << 4)
111 #define ES8328_ADCCONTROL7_ADC_SOFT_RAMP (1 << 5)
112 #define ES8328_ADCCONTROL7_ADC_RAMP_RATE_4 (0 << 6)
113 #define ES8328_ADCCONTROL7_ADC_RAMP_RATE_8 (1 << 6)
114 #define ES8328_ADCCONTROL7_ADC_RAMP_RATE_16 (2 << 6)
115 #define ES8328_ADCCONTROL7_ADC_RAMP_RATE_32 (3 << 6)
126 #define ES8328_DACCONTROL1_DACFORMAT_MASK (3 << 1)
127 #define ES8328_DACCONTROL1_DACFORMAT_I2S (0 << 1)
128 #define ES8328_DACCONTROL1_DACFORMAT_LJUST (1 << 1)
129 #define ES8328_DACCONTROL1_DACFORMAT_RJUST (2 << 1)
130 #define ES8328_DACCONTROL1_DACFORMAT_PCM (3 << 1)
133 #define ES8328_DACCONTROL1_DACLRP_I2S_POL_NORMAL (0 << 6)
134 #define ES8328_DACCONTROL1_DACLRP_I2S_POL_INV (1 << 6)
135 #define ES8328_DACCONTROL1_DACLRP_PCM_MSB_CLK2 (0 << 6)
136 #define ES8328_DACCONTROL1_DACLRP_PCM_MSB_CLK1 (1 << 6)
137 #define ES8328_DACCONTROL1_LRSWAP (1 << 7)
141 #define ES8328_DACCONTROL2_DOUBLESPEED (1 << 5)
144 #define ES8328_DACCONTROL3_AUTOMUTE (1 << 2)
145 #define ES8328_DACCONTROL3_DACMUTE (1 << 2)
146 #define ES8328_DACCONTROL3_LEFTGAINVOL (1 << 3)
147 #define ES8328_DACCONTROL3_DACZEROCROSS (1 << 4)
148 #define ES8328_DACCONTROL3_DACSOFTRAMP (1 << 5)
149 #define ES8328_DACCONTROL3_DACRAMPRATE (3 << 6)
165 #define ES8328_DACCONTROL6_CLICKFREE (1 << 3)
166 #define ES8328_DACCONTROL6_DAC_INVR (1 << 4)
167 #define ES8328_DACCONTROL6_DAC_INVL (1 << 5)
168 #define ES8328_DACCONTROL6_DEEMPH_MASK (3 << 6)
169 #define ES8328_DACCONTROL6_DEEMPH_OFF (0 << 6)
170 #define ES8328_DACCONTROL6_DEEMPH_32k (1 << 6)
171 #define ES8328_DACCONTROL6_DEEMPH_44_1k (2 << 6)
172 #define ES8328_DACCONTROL6_DEEMPH_48k (3 << 6)
176 #define ES8328_DACCONTROL7_VPP_SCALE_4p0 (1 << 0)
179 #define ES8328_DACCONTROL7_SHELVING_STRENGTH (1 << 2) /* In eights */
180 #define ES8328_DACCONTROL7_MONO (1 << 5)
181 #define ES8328_DACCONTROL7_ZEROR (1 << 6)
182 #define ES8328_DACCONTROL7_ZEROL (1 << 7)
196 #define ES8328_DACCONTROL16_RMIXSEL_RIN2 (1 << 0)
200 #define ES8328_DACCONTROL16_LMIXSEL_LIN2 (1 << 3)
206 #define ES8328_DACCONTROL17_LI2LO (1 << 6)
207 #define ES8328_DACCONTROL17_LD2LO (1 << 7)
211 #define ES8328_DACCONTROL18_RI2LO (1 << 6)
212 #define ES8328_DACCONTROL18_RD2LO (1 << 7)
216 #define ES8328_DACCONTROL19_LI2RO (1 << 6)
217 #define ES8328_DACCONTROL19_LD2RO (1 << 7)
221 #define ES8328_DACCONTROL20_RI2RO (1 << 6)
222 #define ES8328_DACCONTROL20_RD2RO (1 << 7)
226 #define ES8328_DACCONTROL21_LI2MO (1 << 6)
227 #define ES8328_DACCONTROL21_LD2MO (1 << 7)
231 #define ES8328_DACCONTROL22_RI2MO (1 << 6)
232 #define ES8328_DACCONTROL22_RD2MO (1 << 7)
235 #define ES8328_DACCONTROL23_MOUTINV (1 << 1)
236 #define ES8328_DACCONTROL23_HPSWPOL (1 << 2)
237 #define ES8328_DACCONTROL23_HPSWEN (1 << 3)
239 #define ES8328_DACCONTROL23_VROI_40k (1 << 4)
241 #define ES8328_DACCONTROL23_OUT3_ROUT1 (1 << 5)
244 #define ES8328_DACCONTROL23_ROUT2INV (1 << 7)