projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb10751
)
[media] coda: add compressed flag to format enumeration output
author
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 30 Sep 2013 13:34:46 +0000
(10:34 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Mon, 28 Oct 2013 17:24:02 +0000
(15:24 -0200)
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>
drivers/media/platform/coda.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/coda.c
b/drivers/media/platform/coda.c
index 945c5395179101bc622f42a051d5d5f86078e3ed..53539c1d99a4380748ca57ddbef721610ba80ac9 100644
(file)
--- 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;
}