Skip to content

Commit 0212866

Browse files
committed
ESP32 i2s: mclk_multiple=384 only when mclk pin is defined
1 parent d8c3a52 commit 0212866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioI2S/I2SESP32V1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class I2SDriverESP32V1 {
207207
if (cfg.mclk_multiple > 0){
208208
clk_cfg.mclk_multiple = cfg.mclk_multiple;
209209
} else {
210-
if (cfg.bits_per_sample == 24) {
210+
if (pin_mck!=-1 && cfg.bits_per_sample == 24) {
211211
// mclk_multiple' should be the multiple of 3 while using 24-bit
212212
clk_cfg.mclk_multiple = I2S_MCLK_MULTIPLE_384;
213213
LOGI("mclk_multiple=384");

0 commit comments

Comments
 (0)