|
@@ -700,6 +700,7 @@ int em28xx_vb2_setup(struct em28xx *dev)
|
|
|
q = &dev->vb_vidq;
|
|
|
q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
|
|
q->io_modes = VB2_READ | VB2_MMAP | VB2_USERPTR | VB2_DMABUF;
|
|
|
+ q->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
|
|
|
q->drv_priv = dev;
|
|
|
q->buf_struct_size = sizeof(struct em28xx_buffer);
|
|
|
q->ops = &em28xx_video_qops;
|
|
@@ -713,6 +714,7 @@ int em28xx_vb2_setup(struct em28xx *dev)
|
|
|
q = &dev->vb_vbiq;
|
|
|
q->type = V4L2_BUF_TYPE_VBI_CAPTURE;
|
|
|
q->io_modes = VB2_READ | VB2_MMAP | VB2_USERPTR;
|
|
|
+ q->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
|
|
|
q->drv_priv = dev;
|
|
|
q->buf_struct_size = sizeof(struct em28xx_buffer);
|
|
|
q->ops = &em28xx_vbi_qops;
|