summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorHans Verkuil2017-04-10 21:18:06 +0200
committerMauro Carvalho Chehab2017-04-15 03:55:54 +0200
commit6c1c0afd19317a15d6f2ae4965a73be7240aba18 (patch)
tree49c83c12da43a8b50a09988f22b242f6da215634 /drivers/media/platform
parent[media] buffer.rst: clarify how V4L2_CTRL_FLAG_MODIFY_LAYOUT/GRABBER are used (diff)
downloadkernel-qcow2-linux-6c1c0afd19317a15d6f2ae4965a73be7240aba18.tar.gz
kernel-qcow2-linux-6c1c0afd19317a15d6f2ae4965a73be7240aba18.tar.xz
kernel-qcow2-linux-6c1c0afd19317a15d6f2ae4965a73be7240aba18.zip
[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: 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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/vsp1/vsp1_hgo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_hgo.c b/drivers/media/platform/vsp1/vsp1_hgo.c
index a138c6b7fb05..50309c053b78 100644
--- a/drivers/media/platform/vsp1/vsp1_hgo.c
+++ b/drivers/media/platform/vsp1/vsp1_hgo.c
@@ -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[] = {
@@ -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,
};
/* -----------------------------------------------------------------------------