Skip to content

Commit a09740a

Browse files
committed
Modification to CSI
Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent 5ae25ad commit a09740a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/video/video_mcux_csi.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <fsl_cache.h>
2020
#endif
2121

22+
#include "video_buffer.h"
2223
#include "video_device.h"
2324

2425
struct video_mcux_csi_config {
@@ -69,8 +70,11 @@ static void __frame_done_cb(CSI_Type *base, csi_handle_t *handle, status_t statu
6970

7071
// k_fifo_put(&data->fifo_out, vbuf);
7172

72-
struct mpsc_node *node = mpsc_pop(&data->io_q);
73-
struct rtio_iodev_sqe *iodev_sqe = CONTAINER_OF(node, struct rtio_iodev_sqe, q);
73+
struct rtio_iodev_sqe *iodev_sqe = video_pop_io_q(&data->io_q);
74+
75+
if (iodev_sqe == NULL) {
76+
return;
77+
}
7478

7579
rtio_iodev_sqe_ok(iodev_sqe, 0);
7680

0 commit comments

Comments
 (0)