提交 6c1c0afd 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] vsp1: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for histogram controls

The two histogram controls will modify the layout of the
metadata, so this flag should be set.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 aacfed85
...@@ -111,6 +111,7 @@ static const struct v4l2_ctrl_config hgo_max_rgb_control = { ...@@ -111,6 +111,7 @@ static const struct v4l2_ctrl_config hgo_max_rgb_control = {
.max = 1, .max = 1,
.def = 0, .def = 0,
.step = 1, .step = 1,
.flags = V4L2_CTRL_FLAG_MODIFY_LAYOUT,
}; };
static const s64 hgo_num_bins[] = { static const s64 hgo_num_bins[] = {
...@@ -125,6 +126,7 @@ static const struct v4l2_ctrl_config hgo_num_bins_control = { ...@@ -125,6 +126,7 @@ static const struct v4l2_ctrl_config hgo_num_bins_control = {
.max = 1, .max = 1,
.def = 0, .def = 0,
.qmenu_int = hgo_num_bins, .qmenu_int = hgo_num_bins,
.flags = V4L2_CTRL_FLAG_MODIFY_LAYOUT,
}; };
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册