diff options
author | Hans Verkuil | 2021-03-12 09:49:55 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2021-03-22 11:56:09 +0100 |
commit | ea1611ba3a544b34f89ffa3d1e833caab30a3f09 (patch) | |
tree | 6b9c75899f2f79e89387ba5f9ce15aed9de62e14 /drivers | |
parent | eaaea4681984c79d2b2b160387b297477f0c1aab (diff) |
media: v4l2-ctrls.c: initialize flags field of p_fwht_params
The V4L2_CID_STATELESS_FWHT_PARAMS compound control was missing a
proper initialization of the flags field, so after loading the vicodec
module for the first time, running v4l2-compliance for the stateless
decoder would fail on this control because the initial control value
was considered invalid by the vicodec driver.
Initializing the flags field to sane values fixes this.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-ctrls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 36a7983f7206..4ee301cc6e5b 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -1681,6 +1681,8 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx, p_fwht_params->version = V4L2_FWHT_VERSION; p_fwht_params->width = 1280; p_fwht_params->height = 720; + p_fwht_params->flags = V4L2_FWHT_FL_PIXENC_YUV | + (2 << V4L2_FWHT_FL_COMPONENTS_NUM_OFFSET); break; } } |