1 From 34963c9fb717bc47131b662c34a472c4f717f7fe Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 1 Jul 2020 10:50:12 +0100
4 Subject: [PATCH] staging: vc04_services: codec: Add support for
7 Now that the 14bit Bayer formats have been defined within
8 V4L2, add them to the lookup table of V4L2/MMAL formats.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 .../bcm2835-codec/bcm2835-v4l2-codec.c | 34 +++++++++++++++++++
13 1 file changed, 34 insertions(+)
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -311,6 +311,40 @@ static const struct bcm2835_codec_fmt su
18 .size_multiplier_x2 = 2,
22 + .fourcc = V4L2_PIX_FMT_SRGGB14P,
24 + .bytesperline_align = 32,
26 + .mmal_fmt = MMAL_ENCODING_BAYER_SRGGB14P,
27 + .size_multiplier_x2 = 2,
30 + .fourcc = V4L2_PIX_FMT_SBGGR14P,
32 + .bytesperline_align = 32,
34 + .mmal_fmt = MMAL_ENCODING_BAYER_SBGGR14P,
35 + .size_multiplier_x2 = 2,
39 + .fourcc = V4L2_PIX_FMT_SGRBG14P,
41 + .bytesperline_align = 32,
43 + .mmal_fmt = MMAL_ENCODING_BAYER_SGRBG14P,
44 + .size_multiplier_x2 = 2,
47 + .fourcc = V4L2_PIX_FMT_SGBRG14P,
49 + .bytesperline_align = 32,
51 + .mmal_fmt = MMAL_ENCODING_BAYER_SGBRG14P,
52 + .size_multiplier_x2 = 2,
56 .fourcc = V4L2_PIX_FMT_SRGGB16,