This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new e29aa6c6b i2s/nrfx: Fix build for NRF52
e29aa6c6b is described below
commit e29aa6c6b579a817370530639e88b0d7a0fc4b69
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Sep 2 09:50:09 2026 +0200
i2s/nrfx: Fix build for NRF52
When NRF_I2S_HAS_CLKCONFIG is not 1 (NRF52)
static function set_mck_setup_for_bypass() was empty
but it was never called.
Now whole function is present only for builds
that have NRF_I2S_HAS_CLKCONFIG
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
b/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
index 44adb6a17..d891915bb 100644
--- a/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
+++ b/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
@@ -226,10 +226,10 @@ static const struct i2s_clock_cfg
mck_for_24_bit_samples[] = {
{ NRF_I2S_MCK_32MDIV15, NRF_I2S_RATIO_48X} /* 48000: 44444.444 LRCK
error -7.4% */
};
+#if NRF_I2S_HAS_CLKCONFIG
static void
set_mck_setup_for_bypass(nrfx_i2s_config_t *cfg, uint32_t sample_rate)
{
-#if NRF_I2S_HAS_CLKCONFIG
static const struct {
uint16_t ratio_val;
nrf_i2s_ratio_t ratio_enum;
@@ -265,8 +265,8 @@ set_mck_setup_for_bypass(nrfx_i2s_config_t *cfg, uint32_t
sample_rate)
/* Anything, needed by NRFX */
cfg->mck_setup = NRF_I2S_MCK_32MDIV8;
}
-#endif
}
+#endif
static void
i2s_nrfx_select_clock_cfg(nrfx_i2s_config_t *cfg, uint32_t sample_rate)