File tree Expand file tree Collapse file tree
internal_filesystem/lib/drivers/codec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ def const(x): return x
4444_REG12_DAC_EN = const (0x12 ) # system: power-up DAC
4545_REG13_SYS = const (0x13 ) # system: enable HP output driver
4646_REG14_MIC = const (0x14 ) # microphone: DMIC select, analog PGA gain
47+ _REG16_ADC_GAIN = const (0x16 ) # ADC digital gain (separate from volume; default 4 = 24 dB)
4748_REG17_ADC_VOL = const (0x17 ) # ADC volume / gain
4849_REG1C_ADC_EQ = const (0x1C ) # ADC equalizer bypass + DC-offset cancel
4950_REG31_DAC_MUTE = const (0x31 ) # DAC soft-mute control (bits[6:5] = 11 → muted)
@@ -117,6 +118,7 @@ def _init(self):
117118 self ._wr (_REG14_MIC , 0x1A ) # enable analog mic input, max PGA gain
118119
119120 # --- ADC (microphone) ---
121+ self ._wr (_REG16_ADC_GAIN , 0x04 ) # ADC digital gain = 24 dB (default)
120122 self ._wr (_REG17_ADC_VOL , 0xC8 ) # ADC gain/volume (Espressif default)
121123 self ._wr (_REG1C_ADC_EQ , 0x6A ) # ADC equalizer bypass, cancel DC offset
122124
You can’t perform that action at this time.
0 commit comments