summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2013-09-30 13:34:53 (GMT)
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-28 18:50:50 (GMT)
commit867f1edbcca970f6ec6d797764dbd165f4e528ab (patch)
tree0085946b7bffb22fe947ff1d818f68efca5331ea /drivers
parent64ba40accce3e6bb916a36390d3e202085804da8 (diff)
downloadlinux-fsl-qoriq-867f1edbcca970f6ec6d797764dbd165f4e528ab.tar.xz
[media] coda: v4l2-compliance fix: zero pixel format priv field
If unused, the pixel format priv field has to be cleared by the driver in try_fmt. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/coda.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index b541c06..ed4998c 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -613,6 +613,8 @@ static int coda_try_fmt(struct coda_ctx *ctx, struct coda_codec *codec,
BUG();
}
+ f->fmt.pix.priv = 0;
+
return 0;
}