From 0dd7aa961535d1ba7269696fadb7606c519b928d Mon Sep 17 00:00:00 2001 From: Arun-Prasad-V Date: Fri, 25 Oct 2024 19:24:44 +0530 Subject: [PATCH] Hardcoding the AE control range of MIPI device --- src/linux/backend-v4l2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/linux/backend-v4l2.cpp b/src/linux/backend-v4l2.cpp index d4147a7d51..ad271ec3eb 100644 --- a/src/linux/backend-v4l2.cpp +++ b/src/linux/backend-v4l2.cpp @@ -2767,6 +2767,15 @@ namespace librealsense control_range v4l_mipi_device::get_pu_range(rs2_option option) const { + // Auto controls range is trimed to {0,1} range + if(option >= RS2_OPTION_ENABLE_AUTO_EXPOSURE && option <= RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE) + { + static const int32_t min = 0, max = 1, step = 1, def = 1; + control_range range(min, max, step, def); + + return range; + } + struct v4l2_query_ext_ctrl query = {}; query.id = get_cid(option); if (xioctl(_fd, VIDIOC_QUERY_EXT_CTRL, &query) < 0)