Skip to content

Conversation

mstasiaknordic
Copy link
Contributor

Added usage of new API responsible for calculating I2S prescaler values.

Upstream PR #: 96703

config->ratio = ratios[best_r].ratio_enum;
LOG_INF("I2S MCK frequency: %u, actual PCM rate: %u",
best_mck, best_mck / ratios[best_r].ratio_val);
nrfx_i2s_prescalers_calc(src_freq, i2s_cfg->frame_clk_freq, config->sample_width,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the return value be handled somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added log, similar to how it have been handled before

}
}
}
if (!nrfx_i2s_prescalers_calc(src_freq, i2s_cfg->frame_clk_freq, config->sample_width,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nrfx_i2s_prescalers_calc returns nrfx_err_t, not bool.

Copy link
Contributor

@magp-nordic magp-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some complaint from Compliance checks, but overall LGTM.

standalone-tech and others added 2 commits October 10, 2025 11:26
…nd MCK Ratios

nRF53 series SoCs have a dedicated configurable audio PLL and the ability
to enable MCK bypass via a register value CONFIG.CLKCONFIG. This can
enable higher MCK/LRCK ratios that some I2S peripherals require the host
to generate. Allow an application developer to choose if they want to
initially look for a bypass ratio and, if found, enable bypass in the
NRFX driver. If not, the standard MCK calculation is conducted as normal.

Signed-off-by: Sean O'Connor <[email protected]>
(cherry picked from commit 8115d9b)
Added usage of new API responsible for calculating
I2S prescaler values.

Upstream PR #: 96703

Signed-off-by: Michał Stasiak <[email protected]>
@mstasiaknordic mstasiaknordic force-pushed the nrfx_i2s_prescaler_calc branch from 30def77 to 78d5af5 Compare October 10, 2025 09:28
…rf54h20 PPR XIP

Add overlay and config file required to run the uart_async_api
test on nrf54h20dk/nrf54h20/cpuppr/xip platform.

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit e0a9a16)
@masz-nordic masz-nordic merged commit 3c9c5b7 into nrfconnect:collab-nrfx-4.0 Oct 13, 2025
16 of 18 checks passed
@mstasiaknordic mstasiaknordic deleted the nrfx_i2s_prescaler_calc branch October 15, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants