Skip to content

Commit 8634ac6

Browse files
committed
Support S3 Box board, refine uncorrect log
Closes #10
1 parent 805ca54 commit 8634ac6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

components/codec_board/board_cfg.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ i2c: {sda: 18, scl: 23}
5050
i2s: {mclk: -1, bclk: 5, ws: 25, dout: 26, din: 35}
5151
out: {codec: ES8388, pa: 21, use_mclk: 0, pa_gain:6}
5252

53+
Board: ESP32S3_BOX
54+
i2c: {sda: 8, scl: 18}
55+
i2s: {mclk: 2, bclk: 17, ws: 47, dout: 15, din: 16}
56+
out: {codec: ES8311, pa: 46, use_mclk: 1, pa_gain:6}
57+
in: {codec: ES7210}
58+
5359
Board: ESP32_P4_DEV_V14
5460
i2c: {sda: 7, scl: 8}
5561
i2s: {mclk: 13, bclk: 12, ws: 10, dout: 9, din: 11}

components/codec_board/codec_board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ int get_lcd_cfg(lcd_cfg_t *lcd_cfg)
9393
memcpy(lcd_cfg, &codec->lcd, sizeof(lcd_cfg_t));
9494
return 0;
9595
}
96-
ESP_LOGE(TAG, "Input codec not exits on board");
96+
ESP_LOGE(TAG, "LCD not exits on board");
9797
return -1;
9898
}

components/codec_board/codec_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int init_codec(codec_init_cfg_t *cfg)
303303
_i2c_init(0);
304304
// Init i2c and i2s
305305
bool same_i2s = (has_in && has_out && out_cfg.i2s_port == in_cfg.i2s_port);
306-
ESP_LOGE(TAG, "in:%d out:%d port: %d", has_in, has_out, out_cfg.i2s_port == in_cfg.i2s_port);
306+
ESP_LOGI(TAG, "in:%d out:%d port: %d", has_in, has_out, out_cfg.i2s_port == in_cfg.i2s_port);
307307
if (has_out) {
308308
if (out_cfg.i2c_port >= 0 && _i2c_init(out_cfg.i2c_port)) {
309309
ESP_LOGE(TAG, "Fail to int i2c: %d", out_cfg.i2c_port);

0 commit comments

Comments
 (0)