Skip to content

esp_codec_dev: Set es8388 L2/R2 volume to 0dB (AUD-6315) #1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/esp_codec_dev/device/es8388/es8388.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ static int es8388_open(const audio_codec_if_t *h, void *cfg, int cfg_size)

res |= es8388_write_reg(codec, ES8388_DACCONTROL24, 0x1E); // Set L1 R1 L2 R2 volume. 0x00: -30dB, 0x1E: 0dB, 0x21: 3dB
res |= es8388_write_reg(codec, ES8388_DACCONTROL25, 0x1E);
res |= es8388_write_reg(codec, ES8388_DACCONTROL26, 0);
res |= es8388_write_reg(codec, ES8388_DACCONTROL27, 0);
res |= es8388_write_reg(codec, ES8388_DACCONTROL26, 0x1E);
res |= es8388_write_reg(codec, ES8388_DACCONTROL27, 0x1E);

// TODO default use DAC_ALL
int tmp = DAC_OUTPUT_LOUT1 | DAC_OUTPUT_LOUT2 | DAC_OUTPUT_ROUT1 | DAC_OUTPUT_ROUT2;
Expand Down