1 From 6201ef98a10f52c12d98a0d747154d60a305c2b9 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 8 Oct 2020 15:35:14 +0100
4 Subject: [PATCH] staging: bcm2835-camera: Replace deprecated
7 V4L2_PIX_FMT_BGR32 is deprecated as it is ambiguous over where
8 the alpha byte is. Cheese/GStreamer appear to get it wrong for
9 one, and qv4l2 gets red and blue swapped.
11 Swap to the newer V4L2_PIX_FMT_BGRX32 format.
13 https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=267736&p=1738912
15 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
17 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
21 +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
22 @@ -176,7 +176,7 @@ static struct mmal_fmt formats[] = {
26 - .fourcc = V4L2_PIX_FMT_BGR32,
27 + .fourcc = V4L2_PIX_FMT_BGRX32,
28 .mmal = MMAL_ENCODING_BGRA,
30 .mmal_component = COMP_CAMERA,