Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6399833 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a874a170
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;