Skip to content

Commit 894a483

Browse files
committed
Merge branch 'feat/update_codec_dev_dependency' into 'master'
refactor(codec_dev): Update driver dependency See merge request adf/esp-adf-internal!1456
2 parents 24ba9b0 + b513126 commit 894a483

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

components/esp_codec_dev/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
- Fixed the register configuration for es8311 when playing 8kHz audio without using MCLK.
88

9+
## v1.5.0
10+
11+
### Refactor:
12+
13+
- Clean up the component dependency, no longer depend on the `driver` component
14+
915
## v1.4.0
1016

1117
### Bug Fixed

components/esp_codec_dev/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ set(COMPONENT_SRCS
1111
audio_codec_sw_vol.c
1212
)
1313

14+
set(priv_requires freertos)
15+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
16+
list(APPEND priv_requires esp_driver_gpio esp_driver_i2c esp_driver_i2s esp_driver_spi)
17+
else()
18+
list(APPEND priv_requires driver)
19+
endif()
20+
1421
list(APPEND COMPONENT_SRCS
1522
platform/audio_codec_gpio.c
1623
platform/audio_codec_ctrl_i2c.c
@@ -77,8 +84,7 @@ endif()
7784
idf_component_register(SRCS "${COMPONENT_SRCS}"
7885
INCLUDE_DIRS "${COMPONENT_ADD_INCLUDEDIRS}"
7986
PRIV_INCLUDE_DIRS "${COMPONENT_PRIV_INCLUDEDIRS}"
80-
REQUIRES driver
81-
PRIV_REQUIRES freertos)
87+
PRIV_REQUIRES ${priv_requires})
8288
# Library only support xtensa
8389
if (CONFIG_CODEC_ZL38063_SUPPORT)
8490
if (NOT ((CONFIG_IDF_TARGET STREQUAL "esp32c6") OR (CONFIG_IDF_TARGET STREQUAL "esp32c3") OR (CONFIG_IDF_TARGET STREQUAL "esp32p4")))

components/esp_codec_dev/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.4.0
1+
version: 1.5.0
22
description: Audio codec device support for Espressif SOC
33
url: https://github.com/espressif/esp-adf/tree/master/components/esp_codec_dev
44

0 commit comments

Comments
 (0)