Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_sw_vol_mute_wrong' into 'master'
Browse files Browse the repository at this point in the history
esp_codec_dec: Fix codec without codec_if mute wrong behavior

See merge request adf/esp-adf-internal!1361
  • Loading branch information
jason-mao committed Dec 19, 2024
2 parents cbf80d8 + 2b7eedc commit 8a3b56a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions components/esp_codec_dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v1.3.3

### Bug Fixes

- Fix codec without mute API, set mute wrong behavior


## v1.3.2

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion components/esp_codec_dev/esp_codec_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int esp_codec_dev_set_out_mute(esp_codec_dev_handle_t handle, bool mute)
}
// When codec not support mute set volume instead
if (dev->sw_vol) {
float db_value = mute ? -100.0 : dev->volume;
float db_value = mute ? -100.0 : _get_vol_db(&dev->vol_curve, dev->volume);
dev->sw_vol->set_vol(dev->sw_vol, db_value);
}
return ESP_CODEC_DEV_NOT_SUPPORT;
Expand Down
2 changes: 1 addition & 1 deletion components/esp_codec_dev/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.3.2
version: 1.3.3
description: Audio codec device support for Espressif SOC
url: https://github.com/espressif/esp-adf/tree/master/components/esp_codec_dev

Expand Down

0 comments on commit 8a3b56a

Please sign in to comment.