Skip to content

Commit

Permalink
backend-v4l: stop metadata before video for ipu6
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Perchanov <dmitry.perchanov@intel.com>
  • Loading branch information
dmipx committed Jun 5, 2023
1 parent c2b47dd commit 7fbdd13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fbdd13

Please sign in to comment.