Skip to content
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

esp_codec_dev: Fix volume setting for ES8374 (AUD-5742) #1285

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
2 changes: 1 addition & 1 deletion components/esp_codec_dev/device/es8374/es8374.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static int es8374_config_adc_input(audio_codec_es8374_t *codec, es_adc_input_t i

static int es8374_set_adc_dac_volume(audio_codec_es8374_t *codec, esp_codec_dec_work_mode_t mode, float db_value)
{
int reg = esp_codec_dev_vol_calc_db(&vol_range, db_value);
int reg = esp_codec_dev_vol_calc_reg(&vol_range, db_value);
int ret = ESP_CODEC_DEV_OK;
if (mode & ESP_CODEC_DEV_WORK_MODE_ADC) {
ret = es8374_write_reg(codec, 0x25, (uint8_t) reg);
Expand Down