]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] marvell-ccic: fix vb2 warning
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 3 Mar 2015 18:07:27 +0000 (15:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 10:38:05 +0000 (07:38 -0300)
We must set timestamp_flags in vb2_queue otherwise vb2 will complain
loudly about it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/marvell-ccic/mcam-core.c

index 9c64b5d01c6ad7b85e8020f87046ddf51af83fe5..bf160dd0a329161321e1f88c7be602ae67efec8c 100644 (file)
@@ -1246,6 +1246,7 @@ static int mcam_setup_vb2(struct mcam_camera *cam)
        vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        vq->drv_priv = cam;
        vq->lock = &cam->s_mutex;
+       vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
        INIT_LIST_HEAD(&cam->buffers);
        switch (cam->buffer_mode) {
        case B_DMA_contig: