diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2012-10-23 00:10:16 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 17:20:51 +0400 |
commit | 1b18e7a0be859911b22138ce27258687efc528b8 (patch) | |
tree | 13a6a83e0e6d2b1b83eb9554c102422d08553aa3 /drivers/media/platform/vino.c | |
parent | 8e6057b510aad354e017c6dfca7f386a0eb91b63 (diff) | |
download | linux-1b18e7a0be859911b22138ce27258687efc528b8.tar.xz |
[media] v4l: Tell user space we're using monotonic timestamps
Set buffer timestamp flags for videobuf, videobuf2 and drivers that use
neither.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/vino.c')
-rw-r--r-- | drivers/media/platform/vino.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/vino.c b/drivers/media/platform/vino.c index 28350e78b564..eb5d6f955709 100644 --- a/drivers/media/platform/vino.c +++ b/drivers/media/platform/vino.c @@ -3410,6 +3410,9 @@ static void vino_v4l2_get_buffer_status(struct vino_channel_settings *vcs, if (fb->map_count > 0) b->flags |= V4L2_BUF_FLAG_MAPPED; + b->flags &= ~V4L2_BUF_FLAG_TIMESTAMP_MASK; + b->flags |= V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; + b->index = fb->id; b->memory = (vcs->fb_queue.type == VINO_MEMORY_MMAP) ? V4L2_MEMORY_MMAP : V4L2_MEMORY_USERPTR; |