1 From 029edf0e33a123569f83becb1153769e425c605e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 1 Jul 2020 10:57:57 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Add support for unpacked 14bit
7 Now that the 14bit non-packed Bayer formats are defined, add them
8 into the supported formats lookup table.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 drivers/media/platform/bcm2835/bcm2835-unicam.c | 4 ++++
13 1 file changed, 4 insertions(+)
15 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
17 @@ -299,21 +299,25 @@ static const struct unicam_fmt formats[]
20 .fourcc = V4L2_PIX_FMT_SBGGR14P,
21 + .repacked_fourcc = V4L2_PIX_FMT_SBGGR14,
22 .code = MEDIA_BUS_FMT_SBGGR14_1X14,
26 .fourcc = V4L2_PIX_FMT_SGBRG14P,
27 + .repacked_fourcc = V4L2_PIX_FMT_SGBRG14,
28 .code = MEDIA_BUS_FMT_SGBRG14_1X14,
32 .fourcc = V4L2_PIX_FMT_SGRBG14P,
33 + .repacked_fourcc = V4L2_PIX_FMT_SGRBG14,
34 .code = MEDIA_BUS_FMT_SGRBG14_1X14,
38 .fourcc = V4L2_PIX_FMT_SRGGB14P,
39 + .repacked_fourcc = V4L2_PIX_FMT_SRGGB14,
40 .code = MEDIA_BUS_FMT_SRGGB14_1X14,