Skip to content

Commit 5de5993

Browse files
committed
ESP32 I2S noise due to wrong CLK
1 parent 2f5977d commit 5de5993

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ class I2SDriverESP32V1 {
300300
LOGE("pin_mclk as input not supported");
301301
#endif
302302
}
303-
303+
}
304304
// select APLL clock if possible
305-
if (is_pin_mck_output && cfg.use_apll) {
305+
if (is_pin_mck_output && cfg.use_apll) {
306306
// select clock source
307307
#if SOC_I2S_SUPPORTS_APLL
308308
result = I2S_CLK_SRC_APLL;
@@ -311,8 +311,9 @@ class I2SDriverESP32V1 {
311311
result = I2S_CLK_SRC_PLL_160M;
312312
LOGI("clk_src is I2S_CLK_SRC_PLL_160M");
313313
#endif
314-
}
315314
}
315+
316+
316317
return result;
317318

318319
}

0 commit comments

Comments
 (0)