diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 10:25:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 05:29:17 -0500 |
commit | 4c5ce24bcacbfead905b210031bab131b416661a (patch) | |
tree | 085d4e38f5c1650f32b0287620ab407a0ce8a18d | |
parent | 68d66a931079ac8badc0b224491dd57c5eacc4f4 (diff) | |
download | linux-4c5ce24bcacbfead905b210031bab131b416661a.tar.gz linux-4c5ce24bcacbfead905b210031bab131b416661a.tar.bz2 linux-4c5ce24bcacbfead905b210031bab131b416661a.zip |
media: coda: set V4L2_CAP_TIMEPERFRAME flag in coda_s_parm
The flag is already set in coda_g_parm, but v4l2-compliance complains
about it not being set during S_PARM.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 5452271cb3a0..6d950335c0d2 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -1136,6 +1136,7 @@ static int coda_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) if (a->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) return -EINVAL; + a->parm.output.capability = V4L2_CAP_TIMEPERFRAME; tpf = &a->parm.output.timeperframe; coda_approximate_timeperframe(tpf); ctx->params.framerate = coda_timeperframe_to_frate(tpf); |