Skip to content

Commit

Permalink
[media] vsp1: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for histogram controls
Browse files Browse the repository at this point in the history
The two histogram controls will modify the layout of the
metadata, so this flag should be set.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 15, 2017
1 parent aacfed8 commit 6c1c0af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/platform/vsp1/vsp1_hgo.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static const struct v4l2_ctrl_config hgo_max_rgb_control = {
.max = 1,
.def = 0,
.step = 1,
.flags = V4L2_CTRL_FLAG_MODIFY_LAYOUT,
};

static const s64 hgo_num_bins[] = {
Expand All @@ -125,6 +126,7 @@ static const struct v4l2_ctrl_config hgo_num_bins_control = {
.max = 1,
.def = 0,
.qmenu_int = hgo_num_bins,
.flags = V4L2_CTRL_FLAG_MODIFY_LAYOUT,
};

/* -----------------------------------------------------------------------------
Expand Down

0 comments on commit 6c1c0af

Please sign in to comment.