We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 073f3d9 commit 53414e7Copy full SHA for 53414e7
src/AudioI2S/I2SESP32V1.h
@@ -205,9 +205,9 @@ class I2SDriverESP32V1 {
205
i2s_std_clk_config_t clk_cfg =
206
I2S_STD_CLK_DEFAULT_CONFIG((uint32_t)cfg.sample_rate);
207
if (cfg.mclk_multiple > 0){
208
- clk_cfg.mclk_multiple = cfg.mclk_multiple;
+ clk_cfg.mclk_multiple = (i2s_mclk_multiple_t) cfg.mclk_multiple;
209
} else {
210
- if (pin_mck!=-1 && cfg.bits_per_sample == 24) {
+ if (cfg.pin_mck !=-1 && cfg.bits_per_sample == 24) {
211
// mclk_multiple' should be the multiple of 3 while using 24-bit
212
clk_cfg.mclk_multiple = I2S_MCLK_MULTIPLE_384;
213
LOGI("mclk_multiple=384");
0 commit comments