apll not supported on all SOCs (#21483)

This commit is contained in:
Christian Baars 2024-05-24 15:55:24 +02:00 committed by GitHub
parent a9e7426cff
commit 01bd6ec52a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -669,9 +669,11 @@ bool TasmotaI2S::startI2SChannel(bool tx, bool rx) {
},
},
};
#if SOC_I2S_SUPPORTS_APLL
if(audio_i2s.Settings->rx.apll == 1){
rx_std_cfg.clk_cfg.clk_src = I2S_CLK_SRC_APLL;
}
#endif //SOC_I2S_SUPPORTS_APLL
err = i2s_channel_init_std_mode(_rx_handle, &rx_std_cfg);
AddLog(LOG_LEVEL_DEBUG, "I2S: RX i2s_channel_init_std_mode with err:%i", err);
AddLog(LOG_LEVEL_DEBUG, "I2S: RX channel in standard mode with %u bit width on %i channel(s) initialized", bps, rx_slot_mode);