Commit 4c5681ac authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Hans Verkuil

media: i2c: adv7604: Enable video adjustment

The video adjustments (contrast, brightness, saturation and hue) are
ignored by default by the device when the VID_ADJ_EN bit is clear. The
corresponding V4L2 controls exposed by the drivers have thus no effect.
Fix this by setting the VID_ADJ_EN bit.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 0482fbb1
...@@ -1805,6 +1805,9 @@ static void select_input(struct v4l2_subdev *sd) ...@@ -1805,6 +1805,9 @@ static void select_input(struct v4l2_subdev *sd)
v4l2_dbg(2, debug, sd, "%s: Unknown port %d selected\n", v4l2_dbg(2, debug, sd, "%s: Unknown port %d selected\n",
__func__, state->selected_input); __func__, state->selected_input);
} }
/* Enable video adjustment (contrast, saturation, brightness and hue) */
cp_write_clr_set(sd, 0x3e, 0x80, 0x80);
} }
static int adv76xx_s_routing(struct v4l2_subdev *sd, static int adv76xx_s_routing(struct v4l2_subdev *sd,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment