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 6cbeb35 commit d8c3a52Copy full SHA for d8c3a52
src/AudioI2S/I2SESP32V1.h
@@ -204,13 +204,15 @@ class I2SDriverESP32V1 {
204
TRACED();
205
i2s_std_clk_config_t clk_cfg =
206
I2S_STD_CLK_DEFAULT_CONFIG((uint32_t)cfg.sample_rate);
207
- if (cfg.bits_per_sample == 24) {
208
- // mclk_multiple' should be the multiple of 3 while using 24-bit
209
- clk_cfg.mclk_multiple = I2S_MCLK_MULTIPLE_384;
210
- }
211
if (cfg.mclk_multiple > 0){
212
clk_cfg.mclk_multiple = cfg.mclk_multiple;
213
+ } else {
+ 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");
214
+ }
215
216
return clk_cfg;
217
}
218
0 commit comments