607f23eeb345abd2903a68c518390a05d0a77727
[openwrt/staging/xback.git] /
1 From 88d06a674009ad5b77234537527a800e6e0e88a3 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Thu, 16 Nov 2023 14:28:55 +0000
4 Subject: [PATCH] drivers: media: cfe: Add 16-bit and compressed mono format
5 support
6
7 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
8 ---
9 .../media/platform/raspberrypi/rp1_cfe/cfe_fmts.h | 14 ++++++++++----
10 1 file changed, 10 insertions(+), 4 deletions(-)
11
12 --- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
13 +++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h
14 @@ -249,28 +249,34 @@ static const struct cfe_fmt formats[] =
15 .code = MEDIA_BUS_FMT_Y10_1X10,
16 .depth = 10,
17 .csi_dt = 0x2b,
18 - .remap = { V4L2_PIX_FMT_Y16 },
19 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
20 },
21 {
22 .fourcc = V4L2_PIX_FMT_Y12P,
23 .code = MEDIA_BUS_FMT_Y12_1X12,
24 .depth = 12,
25 .csi_dt = 0x2c,
26 - .remap = { V4L2_PIX_FMT_Y16 },
27 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
28 },
29 {
30 .fourcc = V4L2_PIX_FMT_Y14P,
31 .code = MEDIA_BUS_FMT_Y14_1X14,
32 .depth = 14,
33 .csi_dt = 0x2d,
34 - .remap = { V4L2_PIX_FMT_Y16 },
35 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
36 },
37 {
38 .fourcc = V4L2_PIX_FMT_Y16,
39 + .code = MEDIA_BUS_FMT_Y16_1X16,
40 .depth = 16,
41 .flags = CFE_FORMAT_FLAG_FE_OUT,
42 },
43 -
44 + {
45 + .fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,
46 + .code = MEDIA_BUS_FMT_Y16_1X16,
47 + .depth = 8,
48 + .flags = CFE_FORMAT_FLAG_FE_OUT,
49 + },
50 /* Embedded data format */
51 {
52 .fourcc = V4L2_META_FMT_SENSOR_DATA,