9d0462a74a596dcf9dabfc16af64a73cb30e43fb
[openwrt/staging/jow.git] /
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
5 V4L2_PIX_FMT_RGBA32
6
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.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
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
19 }, {
20 .fourcc = V4L2_PIX_FMT_RGBA32,
21 .depth = 32,
22 - .bytesperline_align = { 32, 32, 32, 32 },
23 + .bytesperline_align = { 32, 32, 32, 32, 32 },
24 .flags = 0,
25 .mmal_fmt = MMAL_ENCODING_RGBA,
26 .size_multiplier_x2 = 2,