[media] vivid: set V4L2_CAP_TIMEPERFRAME
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 6 Jul 2016 07:36:39 +0000 (04:36 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 16:29:49 +0000 (13:29 -0300)
The vivid driver didn't set the V4L2_CAP_TIMEPERFRAME flag in s_parm for the
non-webcam inputs. This caused a v4l2-compliance fail.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-vid-cap.c

index 27f39c7375a2ab1dfdd4335d341810ba7d7aca81..d404a7ce33a48c4ae2ad2514bd0bc42e27783990 100644 (file)
@@ -1851,6 +1851,7 @@ int vivid_vid_cap_s_parm(struct file *file, void *priv,
        /* resync the thread's timings */
        dev->cap_seq_resync = true;
        dev->timeperframe_vid_cap = tpf;
+       parm->parm.capture.capability   = V4L2_CAP_TIMEPERFRAME;
        parm->parm.capture.timeperframe = tpf;
        parm->parm.capture.readbuffers  = 1;
        return 0;