File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ class I2SConfigESP32V1 : public AudioInfo {
67
67
bool use_apll = I2S_USE_APLL;
68
68
// / Select left or right channel when channels == 1
69
69
I2SChannelSelect channel_format = I2SChannelSelect::Default;
70
+ // / masterclock multiple (-1 = use default)
71
+ int mclk_multiple = -1 ;
70
72
71
73
void logInfo (const char * source=" " ) {
72
74
AudioInfo::logInfo (source);
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ class I2SDriverESP32V1 {
208
208
// mclk_multiple' should be the multiple of 3 while using 24-bit
209
209
clk_cfg.mclk_multiple = I2S_MCLK_MULTIPLE_384;
210
210
}
211
+ if (cfg.mclk_multiple > 0 ){
212
+ clk_cfg.mclk_multiple = cfg.mclk_multiple ;
213
+ }
211
214
return clk_cfg;
212
215
}
213
216
You can’t perform that action at this time.
0 commit comments