]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[media] rcar-vin: use monotonic timestamps
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 7 May 2015 06:26:21 +0000 (03:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 18 May 2015 19:27:30 +0000 (16:27 -0300)
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>
drivers/media/platform/soc_camera/rcar_vin.c

index 4dc3288ddd06cc6f4977d2ae2e24762c9020385e..db7700b0af7cd56914136166292314e34d1b2017 100644 (file)
@@ -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;