diff --git a/drivers/i2s/i2s_nrf_tdm.c b/drivers/i2s/i2s_nrf_tdm.c index 2e9e94c0702..f1a691e0cef 100644 --- a/drivers/i2s/i2s_nrf_tdm.c +++ b/drivers/i2s/i2s_nrf_tdm.c @@ -484,7 +484,7 @@ static int tdm_nrf_configure(const struct device *dev, enum i2s_dir dir, tdm_cfg->block_size <= NRFX_TDM_MIN_TRANSFER_SIZE_ALLOWED) { LOG_ERR("This device can only transmit full 32-bit words greater than %u bytes.", NRFX_TDM_MIN_TRANSFER_SIZE_ALLOWED); - return -EIO; + return -EINVAL; } switch (tdm_cfg->word_size) {