From 9d1690ea4342641cfa2034b9f4420567b0d39e54 Mon Sep 17 00:00:00 2001 From: uncarvedblock <1+uncarvedblock@git.franklin57.com> Date: Fri, 30 Oct 2026 13:22:42 -0400 Subject: [PATCH] update ALC --- components/es8388/es8388.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/es8388/es8388.cpp b/components/es8388/es8388.cpp index 08f77b8..e6deed5 100644 --- a/components/es8388/es8388.cpp +++ b/components/es8388/es8388.cpp @@ -50,7 +50,8 @@ static constexpr i2c::I2CRegValue ES8388_INIT[] PROGMEM = { // power down adc and line in {ES8388_ADCPOWER, 0xFF}, //@nightdav - {ES8388_ADCCONTROL1, 0x00}, // +21dB : recommended value for ALC & voice recording + //{ES8388_ADCCONTROL1, 0x00}, // +21dB : recommended value for ALC & voice recording + {ES8388_ADCCONTROL1, 077}, // @uncarvedblock // set to Mono Right {ES8388_ADCCONTROL3, 0x02}, // I2S 16 Bits length and I2S serial audio data format @@ -63,13 +64,16 @@ static constexpr i2c::I2CRegValue ES8388_INIT[] PROGMEM = { //@nightDav // ALC Config (as recommended by ES8388 user guide for voice recording) // Reg 0x12 = 0xe2 (ALC enable, PGA Max. Gain=23.5dB, Min. Gain=0dB) - {ES8388_ADCCONTROL10, 0xe2}, + //{ES8388_ADCCONTROL10, 0xe2}, + {ES8388_ADCCONTROL10, 0xea}, //@uncarvedblock // Reg 0x13 = 0xa0 (ALC Target=-1.5dB, ALC Hold time =0 mS) - {ES8388_ADCCONTROL11, 0xa0}, + //{ES8388_ADCCONTROL11, 0xa0}, + {ES8388_ADCCONTROL11, 0xc0}, //@uncarvedblock // Reg 0x14 = 0x12(Decay time =820uS , Attack time = 416 uS) {ES8388_ADCCONTROL12, 0x12}, // Reg 0x15 = 0x06(ALC mode) - {ES8388_ADCCONTROL13, 0x06}, + //{ES8388_ADCCONTROL13, 0x06}, + {ES8388_ADCCONTROL13, 0x6}, // Reg 0x16 = 0xc3(nose gate = -40.5dB, NGG = 0x01(mute ADC)) {ES8388_ADCCONTROL14, 0xc3}, // Power on ADC