forked from Minki/linux
[media] rcar-vin: use monotonic timestamps
Even though the rcar-vin driver tells userspace that it will give a monotonic timestamp, it is actually using gettimeofday. Replace this with a proper monotonic timestamp. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
b59b100c91
commit
b9143e5ac5
@ -899,7 +899,7 @@ static irqreturn_t rcar_vin_irq(int irq, void *data)
|
||||
|
||||
priv->queue_buf[slot]->v4l2_buf.field = priv->field;
|
||||
priv->queue_buf[slot]->v4l2_buf.sequence = priv->sequence++;
|
||||
do_gettimeofday(&priv->queue_buf[slot]->v4l2_buf.timestamp);
|
||||
v4l2_get_timestamp(&priv->queue_buf[slot]->v4l2_buf.timestamp);
|
||||
vb2_buffer_done(priv->queue_buf[slot], VB2_BUF_STATE_DONE);
|
||||
priv->queue_buf[slot] = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user