Skip to content

Commit

Permalink
PR #11902 from dmipx: backend-v4l: stop metadata before video for ipu6
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jun 14, 2023
2 parents c2b47dd + 7fbdd13 commit fe656b7
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 fe656b7

Please sign in to comment.