Skip to content

Commit 650a864

Browse files
committed
applications: nrf5340_audio: align to nrfx 4.0
Align to new return codes. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 0ea3abf commit 650a864

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

applications/nrf5340_audio/src/modules/audio_i2s.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ void audio_i2s_set_next_buf(const uint8_t *tx_buf, uint32_t *rx_buf)
8888
.p_tx_buffer = (uint32_t *)tx_buf,
8989
.buffer_size = I2S_SAMPLES_NUM};
9090

91-
nrfx_err_t ret;
91+
int ret;
9292

9393
ret = nrfx_i2s_next_buffers_set(&i2s_inst, &i2s_buf);
94-
__ASSERT_NO_MSG(ret == NRFX_SUCCESS);
94+
__ASSERT_NO_MSG(ret == 0);
9595
}
9696

9797
void audio_i2s_start(const uint8_t *tx_buf, uint32_t *rx_buf)
@@ -109,11 +109,11 @@ void audio_i2s_start(const uint8_t *tx_buf, uint32_t *rx_buf)
109109
.p_tx_buffer = (uint32_t *)tx_buf,
110110
.buffer_size = I2S_SAMPLES_NUM};
111111

112-
nrfx_err_t ret;
112+
int ret;
113113

114114
/* Buffer size in 32-bit words */
115115
ret = nrfx_i2s_start(&i2s_inst, &i2s_buf, 0);
116-
__ASSERT_NO_MSG(ret == NRFX_SUCCESS);
116+
__ASSERT_NO_MSG(ret == 0);
117117

118118
state = AUDIO_I2S_STATE_STARTED;
119119
}
@@ -136,7 +136,7 @@ void audio_i2s_init(void)
136136
{
137137
__ASSERT_NO_MSG(state == AUDIO_I2S_STATE_UNINIT);
138138

139-
nrfx_err_t ret;
139+
int ret;
140140

141141
nrfx_clock_hfclkaudio_config_set(HFCLKAUDIO_12_288_MHZ);
142142

@@ -154,7 +154,7 @@ void audio_i2s_init(void)
154154
irq_enable(DT_IRQN(I2S_NL));
155155

156156
ret = nrfx_i2s_init(&i2s_inst, &cfg, i2s_comp_handler);
157-
__ASSERT_NO_MSG(ret == NRFX_SUCCESS);
157+
__ASSERT_NO_MSG(ret == 0);
158158

159159
state = AUDIO_I2S_STATE_IDLE;
160160
}

0 commit comments

Comments
 (0)