]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[media] mem2mem_testdev: set priv to 0
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Mar 2014 13:58:25 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 13:31:04 +0000 (10:31 -0300)
v4l2_compliance fix.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/mem2mem_testdev.c

index 104d86318107d379c1d714473395af4dac9553d1..c4b54f8ac573fdbf947ee34d5b83bb18c49ed476 100644 (file)
@@ -532,6 +532,7 @@ static int vidioc_try_fmt(struct v4l2_format *f, struct m2mtest_fmt *fmt)
        f->fmt.pix.width &= ~DIM_ALIGN_MASK;
        f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3;
        f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
+       f->fmt.pix.priv = 0;
 
        return 0;
 }