From 7fbdd13a49214e69f097d1604f3cc314c0eb18b9 Mon Sep 17 00:00:00 2001 From: Dmitry Perchanov Date: Mon, 5 Jun 2023 18:27:00 +0300 Subject: [PATCH] backend-v4l: stop metadata before video for ipu6 Signed-off-by: Dmitry Perchanov --- src/linux/backend-v4l2.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/linux/backend-v4l2.cpp b/src/linux/backend-v4l2.cpp index 5dad97d1c5..234603ef92 100644 --- a/src/linux/backend-v4l2.cpp +++ b/src/linux/backend-v4l2.cpp @@ -2222,12 +2222,18 @@ namespace librealsense void v4l_uvc_meta_device::streamoff() const { - v4l_uvc_device::streamoff(); + bool jetson_platform = is_platform_jetson(); + // IPU6 platform should stop md, then video + if (jetson_platform) + v4l_uvc_device::streamoff(); + if (_md_fd != -1) { // D457 development - added for mipi device, for IR because no metadata there stream_off(_md_fd, _md_type); } + if (!jetson_platform) + v4l_uvc_device::streamoff(); } void v4l_uvc_meta_device::negotiate_kernel_buffers(size_t num) const