From 3ebae000e5dca8776f9be53c47575021bc72df4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Mon, 19 May 2025 10:13:25 +0200 Subject: [PATCH] drivers: i2s_nrfx: Add missing inclusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This driver uses the NRF_CLOCK_HAS_HFCLKAUDIO symbol that is defined in , so it should explicitly include that header, not count on this inclusion being done by some other header, like . Extend also the build assertion that checks if the audio clock can be used so that now it ensures that the above symbol is defined (to prevent the driver from silently discarding the audio clock configured as the clock source). Signed-off-by: Andrzej Głąbek --- drivers/i2s/i2s_nrfx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2s/i2s_nrfx.c b/drivers/i2s/i2s_nrfx.c index 8ee3e668be4..74f7046732f 100644 --- a/drivers/i2s/i2s_nrfx.c +++ b/drivers/i2s/i2s_nrfx.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -971,7 +972,8 @@ static DEVICE_API(i2s, i2s_nrf_drv_api) = { init_clock_manager(dev); \ return 0; \ } \ - BUILD_ASSERT(I2S_CLK_SRC(idx) != ACLK || NRF_I2S_HAS_CLKCONFIG, \ + BUILD_ASSERT(I2S_CLK_SRC(idx) != ACLK || \ + (NRF_I2S_HAS_CLKCONFIG && NRF_CLOCK_HAS_HFCLKAUDIO), \ "Clock source ACLK is not available."); \ BUILD_ASSERT(I2S_CLK_SRC(idx) != ACLK || \ DT_NODE_HAS_PROP(DT_NODELABEL(clock), \