Skip to content

Commit

Permalink
Hardcoding the AE control range of MIPI device
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Oct 25, 2024
1 parent 8cb4150 commit 0dd7aa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dd7aa9

Please sign in to comment.