Skip to content

Commit f1fd998

Browse files
jaz1-nordicmasz-nordic
authored andcommitted
application: nrf5340_audio: Align to new I2S driver
Rename I2S0 symbol from Kconfig. Align audio_i2s module to the new nrfx I2S driver. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent eb4285e commit f1fd998

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

applications/nrf5340_audio/Kconfig.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ config REGULATOR
4848
config CONTIN_ARRAY
4949
default y
5050

51-
config NRFX_I2S0
51+
config NRFX_I2S
5252
default y
5353

5454
config PCM_MIX

applications/nrf5340_audio/src/modules/audio_i2s.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PINCTRL_DT_DEFINE(I2S_NL);
3636
#error "Current AUDIO_SAMPLE_RATE_HZ setting not supported"
3737
#endif
3838

39-
static nrfx_i2s_t i2s_inst = NRFX_I2S_INSTANCE(0);
39+
static nrfx_i2s_t i2s_inst = NRFX_I2S_INSTANCE(NRF_I2S0);
4040

4141
static nrfx_i2s_config_t cfg = {
4242
/* Pins are configured by pinctrl. */
@@ -150,7 +150,7 @@ void audio_i2s_init(void)
150150
ret = pinctrl_apply_state(PINCTRL_DT_DEV_CONFIG_GET(I2S_NL), PINCTRL_STATE_DEFAULT);
151151
__ASSERT_NO_MSG(ret == 0);
152152

153-
IRQ_CONNECT(DT_IRQN(I2S_NL), DT_IRQ(I2S_NL, priority), nrfx_isr, nrfx_i2s_0_irq_handler, 0);
153+
IRQ_CONNECT(DT_IRQN(I2S_NL), DT_IRQ(I2S_NL, priority), nrfx_i2s_irq_handler, &i2s_inst, 0);
154154
irq_enable(DT_IRQN(I2S_NL));
155155

156156
ret = nrfx_i2s_init(&i2s_inst, &cfg, i2s_comp_handler);

0 commit comments

Comments
 (0)