1 From e9ec7b00d139fbfb37a57d3109b651809cc568cc Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 12 Apr 2023 17:28:11 +0100
4 Subject: [PATCH] staging: bcm2835-codec: Add missing alignment for
7 The patch adding image encode (JPEG) to the driver missed adding
8 the alignment constraint for V4L2_PIX_FMT_RGBA32, which meant
9 it ended up giving a stride and size of 0.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 @@ -263,7 +263,7 @@ static const struct bcm2835_codec_fmt su
20 .fourcc = V4L2_PIX_FMT_RGBA32,
22 - .bytesperline_align = { 32, 32, 32, 32 },
23 + .bytesperline_align = { 32, 32, 32, 32, 32 },
25 .mmal_fmt = MMAL_ENCODING_RGBA,
26 .size_multiplier_x2 = 2,