projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a4e40
)
media: cadence: csi2rx: add support for RGB formats
author
Jai Luthra
<j-luthra@ti.com>
Fri, 5 Jan 2024 09:00:24 +0000
(10:00 +0100)
committer
Hans Verkuil
<hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 16:23:58 +0000
(17:23 +0100)
Add support for RGB565, RGB888 and BGR888 media bus formats.
Signed-off-by: Jai Luthra <j-luthra@ti.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/cadence/cdns-csi2rx.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/cadence/cdns-csi2rx.c
b/drivers/media/platform/cadence/cdns-csi2rx.c
index cdc63a6b394a91d49d49af4372d373bc98a18418..401d9a7c65f8663c7754de7c57eb93e4b86939e7 100644
(file)
--- a/
drivers/media/platform/cadence/cdns-csi2rx.c
+++ b/
drivers/media/platform/cadence/cdns-csi2rx.c
@@
-119,6
+119,9
@@
static const struct csi2rx_fmt formats[] = {
{ .code = MEDIA_BUS_FMT_SGBRG10_1X10, .bpp = 10, },
{ .code = MEDIA_BUS_FMT_SGRBG10_1X10, .bpp = 10, },
{ .code = MEDIA_BUS_FMT_SRGGB10_1X10, .bpp = 10, },
+ { .code = MEDIA_BUS_FMT_RGB565_1X16, .bpp = 16, },
+ { .code = MEDIA_BUS_FMT_RGB888_1X24, .bpp = 24, },
+ { .code = MEDIA_BUS_FMT_BGR888_1X24, .bpp = 24, },
};
static const struct csi2rx_fmt *csi2rx_get_fmt_by_code(u32 code)