aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/usbvision/usbvision-video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/usbvision/usbvision-video.c')
-rw-r--r--drivers/media/usb/usbvision/usbvision-video.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c
index 5c36a57e6590..c6bc8ce67375 100644
--- a/drivers/media/usb/usbvision/usbvision-video.c
+++ b/drivers/media/usb/usbvision/usbvision-video.c
@@ -761,7 +761,7 @@ static int vidioc_querybuf(struct file *file,
761 if (vb->index >= usbvision->num_frames) 761 if (vb->index >= usbvision->num_frames)
762 return -EINVAL; 762 return -EINVAL;
763 /* Updating the corresponding frame state */ 763 /* Updating the corresponding frame state */
764 vb->flags = 0; 764 vb->flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
765 frame = &usbvision->frame[vb->index]; 765 frame = &usbvision->frame[vb->index];
766 if (frame->grabstate >= frame_state_ready) 766 if (frame->grabstate >= frame_state_ready)
767 vb->flags |= V4L2_BUF_FLAG_QUEUED; 767 vb->flags |= V4L2_BUF_FLAG_QUEUED;
@@ -843,7 +843,8 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *vb)
843 vb->memory = V4L2_MEMORY_MMAP; 843 vb->memory = V4L2_MEMORY_MMAP;
844 vb->flags = V4L2_BUF_FLAG_MAPPED | 844 vb->flags = V4L2_BUF_FLAG_MAPPED |
845 V4L2_BUF_FLAG_QUEUED | 845 V4L2_BUF_FLAG_QUEUED |
846 V4L2_BUF_FLAG_DONE; 846 V4L2_BUF_FLAG_DONE |
847 V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
847 vb->index = f->index; 848 vb->index = f->index;
848 vb->sequence = f->sequence; 849 vb->sequence = f->sequence;
849 vb->timestamp = f->timestamp; 850 vb->timestamp = f->timestamp;