Skip to content

Commit

Permalink
ESP32 i2s: mclk_multiple=384 only when mclk pin is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Sep 1, 2024
1 parent d8c3a52 commit 0212866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioI2S/I2SESP32V1.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class I2SDriverESP32V1 {
if (cfg.mclk_multiple > 0){
clk_cfg.mclk_multiple = cfg.mclk_multiple;
} else {
if (cfg.bits_per_sample == 24) {
if (pin_mck!=-1 && cfg.bits_per_sample == 24) {
// mclk_multiple' should be the multiple of 3 while using 24-bit
clk_cfg.mclk_multiple = I2S_MCLK_MULTIPLE_384;
LOGI("mclk_multiple=384");
Expand Down

0 comments on commit 0212866

Please sign in to comment.