From: Philipp Zabel Date: Mon, 30 Sep 2013 13:34:46 +0000 (-0300) Subject: [media] coda: add compressed flag to format enumeration output X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=baf70211280c8ca7148d21bea7ea174a0d48b7ee;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] coda: add compressed flag to format enumeration output Correctly flag compressed formats in the ENUM_FMT ioctl output. Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- 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; }