@@ -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
9797void 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