summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-03-10 14:58:25 +0100
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-11 14:31:04 +0100
commitf063bb6638c5337929d091c0d3abdbd049f829ba (patch)
tree179d445dfa311aa586a067549f0deb86abfa10f7 /drivers/media/platform
parent[media] mem2mem_testdev: pick default format with try_fmt (diff)
downloadlinux-f063bb6638c5337929d091c0d3abdbd049f829ba.tar.xz
linux-f063bb6638c5337929d091c0d3abdbd049f829ba.zip
[media] mem2mem_testdev: set priv to 0
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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/mem2mem_testdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c
index 104d86318107..c4b54f8ac573 100644
--- a/drivers/media/platform/mem2mem_testdev.c
+++ b/drivers/media/platform/mem2mem_testdev.c
@@ -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;
}