This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9327441e6 hw/drivers/i2s_nrfx: Update to version 3.3.0
9327441e6 is described below
commit 9327441e6734357ed7f1821039d97477e292cf62
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Jan 20 07:55:29 2026 +0100
hw/drivers/i2s_nrfx: Update to version 3.3.0
Starting from nrfx 3.3.0 nrfx_i2s_start() has different
prototype.
Now code handles old and new code dependeing on nrfx version.
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
b/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
index 1aa446b30..44adb6a17 100644
--- a/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
+++ b/hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
@@ -60,6 +60,10 @@ nrfx_add_buffer(struct i2s *i2s, struct i2s_sample_buffer
*buffer)
nrfx_buffers.p_rx_buffer = buffer->sample_data;
}
+#if NRFX_API_VER_AT_LEAST(3, 3, 0)
+ nrfx_buffers.buffer_size = buffer_size;
+#endif
+
assert(i2s_nrfx.nrfx_queued_count < 2);
assert(i2s_nrfx.nrfx_buffers[i2s_nrfx.nrfx_queued_count] == NULL);
@@ -67,7 +71,11 @@ nrfx_add_buffer(struct i2s *i2s, struct i2s_sample_buffer
*buffer)
i2s_nrfx.nrfx_queued_count++;
if (i2s_nrfx.nrfx_queued_count == 1) {
i2s_driver_state_changed (i2s, I2S_STATE_RUNNING);
+#if NRFX_API_VER_AT_LEAST(3, 3, 0)
+ err = nrfx_i2s_start(&i2s_nrfx.inst, &nrfx_buffers, 0);
+#else
err = nrfx_i2s_start(&i2s_nrfx.inst, &nrfx_buffers, buffer_size, 0);
+#endif
} else {
err = nrfx_i2s_next_buffers_set(&i2s_nrfx.inst, &nrfx_buffers);
}