Skip to content

Commit ab689ad

Browse files
committed
codec_board: Add more board support
1 parent 9512eef commit ab689ad

File tree

6 files changed

+34
-4
lines changed

6 files changed

+34
-4
lines changed

components/codec_board/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.5.5
4+
5+
- Add board support for `ESP32_S3_KORVO_2L`, `ESP32_S3_EchoEar`, `ATOMS3_ECHO_BASE`
6+
- Mount SDcard use high speed for better performance on esp32s3 and esp32p4
7+
38
## v0.5.4
49

510
- Add PDM support

components/codec_board/board_cfg.txt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ sdcard: {clk: 14, cmd: 15, d0: 2}
4747

4848
Board: ESP32_LYRAT_V43
4949
i2c: {sda: 18, scl: 23}
50-
i2s: {mclk: -1, bclk: 5, ws: 25, dout: 26, din: 35}
51-
out: {codec: ES8388, pa: 21, use_mclk: 0, pa_gain:6}
50+
i2s: {mclk: 0, bclk: 5, ws: 25, dout: 26, din: 35}
51+
in_out: {codec: ES8388, pa: 21, use_mclk: 1, pa_gain:6}
5252

5353
Board: ESP32S3_BOX
5454
i2c: {sda: 8, scl: 18}
@@ -94,3 +94,20 @@ Board: ESP_SPOT
9494
i2c: {sda: 25, scl: 26, i2c_addr: 0x18}
9595
i2s: {bclk: 7, ws: 8, dout: 9, din: 10}
9696
in_out: {codec: ES8311, pa: 23, pa_gain:6}
97+
98+
Board: ESP32_S3_KORVO_2L
99+
i2c: {sda: 17, scl: 18}
100+
i2s: {bclk: 9, ws: 45, dout: 8, din: 10}
101+
in_out: {codec: ES8311, pa: 46, pa_gain:6}
102+
103+
Board: ESP32_S3_EchoEar
104+
i2c: {sda: 2, scl: 1}
105+
i2s: {bclk: 40, ws: 39, dout: 41, din: 15, mclk: 42}
106+
out: {codec: ES8311, pa: 4, use_mclk: 1, pa_gain:6}
107+
in: {codec: ES7210}
108+
sdcard: {clk: 16, cmd: 38, d0: 17}
109+
110+
Board: ATOMS3_ECHO_BASE
111+
i2c: {sda: 38, scl: 39}
112+
i2s: {bclk: 8, ws: 6, dout: 5, din: 7}
113+
in_out: {codec: ES8311, pa: -1, pa_gain:6}

components/codec_board/codec_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ int mount_sdcard(void)
663663
sdmmc_host_t host = SDMMC_HOST_DEFAULT();
664664
#if CONFIG_IDF_TARGET_ESP32P4
665665
host.slot = 0;
666+
#endif
667+
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32P4
666668
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
667669
#endif
668670
sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();

components/codec_board/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## IDF Component Manager Manifest File
2-
version: "0.5.4"
2+
version: "0.5.5"
33
description: Simple ESP32 series codec board realization
44
dependencies:
55
espressif/esp_codec_dev: "~1.3.4"

components/esp_webrtc/impl/apprtc_signal/https_client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ esp_err_t _http_event_handler(esp_http_client_event_t *evt)
4848
{
4949
http_info_t *info = evt->user_data;
5050
switch (evt->event_id) {
51+
default:
52+
break;
5153
case HTTP_EVENT_ERROR:
5254
ESP_LOGD(TAG, "HTTP_EVENT_ERROR");
5355
break;

solutions/common/idf_component.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## IDF Component Manager Manifest File
22
dependencies:
33
espressif/esp_wifi_remote:
4-
version: "~0.10.0"
4+
version: "~0.14.3"
5+
rules:
6+
- if: "target in [esp32p4]"
7+
espressif/esp_hosted:
8+
version: "~2.0.13"
59
rules:
610
- if: "target in [esp32p4]"

0 commit comments

Comments
 (0)