mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
media: i2c: imx335: Fix hblank min/max values
The V4L2_CID_HBLANK control is marked as readonly and can only be a single value. Set the minimum and maximum value to match the mode value. Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
252b2caaf2
commit
d7b95ad7a8
@ -1046,8 +1046,8 @@ static int imx335_init_controls(struct imx335 *imx335)
|
||||
imx335->hblank_ctrl = v4l2_ctrl_new_std(ctrl_hdlr,
|
||||
&imx335_ctrl_ops,
|
||||
V4L2_CID_HBLANK,
|
||||
IMX335_REG_MIN,
|
||||
IMX335_REG_MAX,
|
||||
mode->hblank,
|
||||
mode->hblank,
|
||||
1, mode->hblank);
|
||||
if (imx335->hblank_ctrl)
|
||||
imx335->hblank_ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
||||
|
Loading…
Reference in New Issue
Block a user