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
7 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
9 .../media/platform/raspberrypi/rp1_cfe/cfe_fmts.h | 14 ++++++++++----
10 1 file changed, 10 insertions(+), 4 deletions(-)
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,
18 - .remap = { V4L2_PIX_FMT_Y16 },
19 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
22 .fourcc = V4L2_PIX_FMT_Y12P,
23 .code = MEDIA_BUS_FMT_Y12_1X12,
26 - .remap = { V4L2_PIX_FMT_Y16 },
27 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
30 .fourcc = V4L2_PIX_FMT_Y14P,
31 .code = MEDIA_BUS_FMT_Y14_1X14,
34 - .remap = { V4L2_PIX_FMT_Y16 },
35 + .remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
38 .fourcc = V4L2_PIX_FMT_Y16,
39 + .code = MEDIA_BUS_FMT_Y16_1X16,
41 .flags = CFE_FORMAT_FLAG_FE_OUT,
45 + .fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,
46 + .code = MEDIA_BUS_FMT_Y16_1X16,
48 + .flags = CFE_FORMAT_FLAG_FE_OUT,
50 /* Embedded data format */
52 .fourcc = V4L2_META_FMT_SENSOR_DATA,