mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 00:21:32 +00:00
[media] vivid: set V4L2_CAP_TIMEPERFRAME
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>
This commit is contained in:
parent
a874a170fa
commit
f639983319
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user