mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
53 lines
1.5 KiB
Diff
53 lines
1.5 KiB
Diff
|
From 7bd5c813607448477a67a4509bebff0177ced00d Mon Sep 17 00:00:00 2001
|
||
|
From: Naushir Patuck <naush@raspberrypi.com>
|
||
|
Date: Thu, 16 Nov 2023 14:28:55 +0000
|
||
|
Subject: [PATCH 0730/1085] drivers: media: cfe: Add 16-bit and compressed mono
|
||
|
format support
|
||
|
|
||
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
||
|
---
|
||
|
.../media/platform/raspberrypi/rp1_cfe/cfe_fmts.h | 14 ++++++++++----
|
||
|
1 file changed, 10 insertions(+), 4 deletions(-)
|
||
|
|
||
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
||
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
|
||
|
@@ -249,28 +249,34 @@ static const struct cfe_fmt formats[] =
|
||
|
.code = MEDIA_BUS_FMT_Y10_1X10,
|
||
|
.depth = 10,
|
||
|
.csi_dt = 0x2b,
|
||
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
||
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
||
|
},
|
||
|
{
|
||
|
.fourcc = V4L2_PIX_FMT_Y12P,
|
||
|
.code = MEDIA_BUS_FMT_Y12_1X12,
|
||
|
.depth = 12,
|
||
|
.csi_dt = 0x2c,
|
||
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
||
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
||
|
},
|
||
|
{
|
||
|
.fourcc = V4L2_PIX_FMT_Y14P,
|
||
|
.code = MEDIA_BUS_FMT_Y14_1X14,
|
||
|
.depth = 14,
|
||
|
.csi_dt = 0x2d,
|
||
|
- .remap = { V4L2_PIX_FMT_Y16 },
|
||
|
+ .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
|
||
|
},
|
||
|
{
|
||
|
.fourcc = V4L2_PIX_FMT_Y16,
|
||
|
+ .code = MEDIA_BUS_FMT_Y16_1X16,
|
||
|
.depth = 16,
|
||
|
.flags = CFE_FORMAT_FLAG_FE_OUT,
|
||
|
},
|
||
|
-
|
||
|
+ {
|
||
|
+ .fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,
|
||
|
+ .code = MEDIA_BUS_FMT_Y16_1X16,
|
||
|
+ .depth = 8,
|
||
|
+ .flags = CFE_FORMAT_FLAG_FE_OUT,
|
||
|
+ },
|
||
|
/* Embedded data format */
|
||
|
{
|
||
|
.fourcc = V4L2_META_FMT_SENSOR_DATA,
|