From 01bd6ec52a108af91299c27c6843d466c8eb0388 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Fri, 24 May 2024 15:55:24 +0200 Subject: [PATCH] apll not supported on all SOCs (#21483) --- tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino b/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino index 26e0d5285..bce536903 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino @@ -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);