summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2013-09-30 10:34:46 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-28 15:24:02 -0200
commitbaf70211280c8ca7148d21bea7ea174a0d48b7ee (patch)
treecce4a9530bae598a524c3a5d2d62af2721cca806
parenteb107516ed60dfcec25218e1becf66bb91eafe87 (diff)
downloadlinux-baf70211280c8ca7148d21bea7ea174a0d48b7ee.tar.bz2
[media] coda: add compressed flag to format enumeration output
Correctly flag compressed formats in the ENUM_FMT ioctl output. 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>
-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 945c53951791..53539c1d99a4 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -457,6 +457,8 @@ static int enum_fmt(void *priv, struct v4l2_fmtdesc *f,
fmt = &formats[i];
strlcpy(f->description, fmt->name, sizeof(f->description));
f->pixelformat = fmt->fourcc;
+ if (!coda_format_is_yuv(fmt->fourcc))
+ f->flags |= V4L2_FMT_FLAG_COMPRESSED;
return 0;
}