Skip to content

Commit 1f0f248

Browse files
committed
fix(i2s): Add missing initializer for I2S CLK config
1 parent 5ba4c21 commit 1f0f248

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libraries/ESP_I2S/src/ESP_I2S.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
#include "mp3dec.h"
1212
#endif
1313

14+
#if SOC_I2S_HW_VERSION_2
15+
#undef I2S_STD_CLK_DEFAULT_CONFIG
16+
#define I2S_STD_CLK_DEFAULT_CONFIG(rate) { \
17+
.sample_rate_hz = rate, \
18+
.clk_src = I2S_CLK_SRC_DEFAULT, \
19+
.ext_clk_freq_hz = 0, \
20+
.mclk_multiple = I2S_MCLK_MULTIPLE_256, \
21+
}
22+
#endif
23+
1424
#define I2S_READ_CHUNK_SIZE 1920
1525

1626
#define I2S_DEFAULT_CFG() \

0 commit comments

Comments
 (0)