[media] v4l: Convert drivers to use monotonic timestamps
Convert drivers using wall clock time (CLOCK_REALTIME) to timestamp from the monotonic timer (CLOCK_MONOTONIC). Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Esse commit está contido em:

commit de
Mauro Carvalho Chehab

pai
abd2329564
commit
8e6057b510
@@ -1113,7 +1113,7 @@ static int stk_vidioc_dqbuf(struct file *filp,
|
||||
sbuf->v4lbuf.flags &= ~V4L2_BUF_FLAG_QUEUED;
|
||||
sbuf->v4lbuf.flags |= V4L2_BUF_FLAG_DONE;
|
||||
sbuf->v4lbuf.sequence = ++dev->sequence;
|
||||
do_gettimeofday(&sbuf->v4lbuf.timestamp);
|
||||
v4l2_get_timestamp(&sbuf->v4lbuf.timestamp);
|
||||
|
||||
*buf = sbuf->v4lbuf;
|
||||
return 0;
|
||||
|
Referência em uma nova issue
Block a user