Skip to content

Commit

Permalink
24 bit I2S - I2S_MCLK_MULTIPLE_384
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 12, 2024
1 parent 45e9ae3 commit 2d5d09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class I2SDriverESP32V1 {
if (cfg.mclk_multiple > 0) {
clk_cfg.mclk_multiple = (i2s_mclk_multiple_t)cfg.mclk_multiple;
} else {
if (cfg.pin_mck == -1 && cfg.bits_per_sample == 24) {
if (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 2d5d09a

Please sign in to comment.