2e6d04bcbb5fd1123922d8f3b4ae964dd6929559
[openwrt/staging/mans0n.git] /
1 From ed4adfd60c1495b864720e1f79b0b2a443447e38 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 8 Oct 2020 16:06:59 +0100
4 Subject: [PATCH] staging: bcm2835-codec: Replace deprecated
5 V4L2_PIX_FMT_BGR32
6
7 V4L2_PIX_FMT_BGR32 is deprecated as it is ambiguous over where
8 the alpha byte is.
9
10 Swap to the newer V4L2_PIX_FMT_BGRX32 format.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
19 @@ -207,7 +207,7 @@ static const struct bcm2835_codec_fmt su
20 .mmal_fmt = MMAL_ENCODING_BGR24,
21 .size_multiplier_x2 = 2,
22 }, {
23 - .fourcc = V4L2_PIX_FMT_BGR32,
24 + .fourcc = V4L2_PIX_FMT_BGRX32,
25 .depth = 32,
26 .bytesperline_align = 32,
27 .flags = 0,