update ALC

This commit is contained in:
uncarvedblock committed 2026-10-30 13:22:42 -04:00
1 parent 3e61b558ad
commit 9d1690ea43
1 file changed
+8 -4
+8 -4
View File
@@ -50,7 +50,8 @@ static constexpr i2c::I2CRegValue ES8388_INIT[] PROGMEM = {
// power down adc and line in // power down adc and line in
{ES8388_ADCPOWER, 0xFF}, {ES8388_ADCPOWER, 0xFF},
//@nightdav //@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 // set to Mono Right
{ES8388_ADCCONTROL3, 0x02}, {ES8388_ADCCONTROL3, 0x02},
// I2S 16 Bits length and I2S serial audio data format // I2S 16 Bits length and I2S serial audio data format
@@ -63,13 +64,16 @@ static constexpr i2c::I2CRegValue ES8388_INIT[] PROGMEM = {
//@nightDav //@nightDav
// ALC Config (as recommended by ES8388 user guide for voice recording) // ALC Config (as recommended by ES8388 user guide for voice recording)
// Reg 0x12 = 0xe2 (ALC enable, PGA Max. Gain=23.5dB, Min. Gain=0dB) // 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) // 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) // Reg 0x14 = 0x12(Decay time =820uS , Attack time = 416 uS)
{ES8388_ADCCONTROL12, 0x12}, {ES8388_ADCCONTROL12, 0x12},
// Reg 0x15 = 0x06(ALC mode) // 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)) // Reg 0x16 = 0xc3(nose gate = -40.5dB, NGG = 0x01(mute ADC))
{ES8388_ADCCONTROL14, 0xc3}, {ES8388_ADCCONTROL14, 0xc3},
// Power on ADC // Power on ADC