From 18715d2308647540f5168840d6778cdc48b3ecce Mon Sep 17 00:00:00 2001 From: Gabriel Chang Date: Fri, 15 Aug 2025 13:49:06 -0700 Subject: [PATCH] Copy fix for ESP32-C3-Lyra-V2 from SPIFFS sample --- .../player/pipeline_http_mp3/main/play_http_mp3_example.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c b/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c index e359fcf6e..60190c844 100644 --- a/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c +++ b/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c @@ -70,7 +70,11 @@ void app_main(void) http_stream_reader = http_stream_init(&http_cfg); ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip"); +#if defined CONFIG_ESP32_C3_LYRA_V2_BOARD + i2s_stream_cfg_t i2s_cfg = I2S_STREAM_PDM_TX_CFG_DEFAULT(); +#else i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT(); +#endif i2s_cfg.type = AUDIO_STREAM_WRITER; i2s_stream_writer = i2s_stream_init(&i2s_cfg);