1 From a73ecafc5532e31b184220149cc2863f625700bf Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Wed, 15 Jan 2025 09:46:25 +0000
4 Subject: [PATCH] drivers: media: pisp_be: Add support for YUV422 planar format
6 List V4L2_PIX_FMT_YUV422P as supported by the PiSP backend hardware.
8 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
10 .../platform/raspberrypi/pisp_be/pisp_be_formats.h | 10 ++++++++++
11 1 file changed, 10 insertions(+)
13 --- a/drivers/media/platform/raspberrypi/pisp_be/pisp_be_formats.h
14 +++ b/drivers/media/platform/raspberrypi/pisp_be/pisp_be_formats.h
15 @@ -129,6 +129,16 @@ static const struct pisp_be_format suppo
16 .colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
17 .colorspace_default = V4L2_COLORSPACE_SMPTE170M,
20 + .fourcc = V4L2_PIX_FMT_YUV422P,
21 + /* 128 alignment to ensure U/V planes are 64 byte aligned. */
24 + .plane_factor = { P3(1), P3(0.5), P3(0.5) },
26 + .colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
27 + .colorspace_default = V4L2_COLORSPACE_SMPTE170M,
29 /* Multiplane YUV formats */
31 .fourcc = V4L2_PIX_FMT_YUV420M,