Skip to content

Commit abc5014

Browse files
6by9pelwell
authored andcommitted
staging: bcm2835-codec: 32bpp RGB formats need a 64byte alignment
The firmware needs 16 pixel alignment on RGBx 32bpp formats, which would be 64 byte. The driver was only setting 32byte alignment. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent e0c78d5 commit abc5014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ static const struct bcm2835_codec_fmt supported_formats[] = {
256256
}, {
257257
.fourcc = V4L2_PIX_FMT_BGR32,
258258
.depth = 32,
259-
.bytesperline_align = { 32, 32, 32, 32, 32 },
259+
.bytesperline_align = { 64, 64, 64, 64, 64 },
260260
.flags = 0,
261261
.mmal_fmt = MMAL_ENCODING_BGRA,
262262
.size_multiplier_x2 = 2,
263263
}, {
264264
.fourcc = V4L2_PIX_FMT_RGBA32,
265265
.depth = 32,
266-
.bytesperline_align = { 32, 32, 32, 32, 32 },
266+
.bytesperline_align = { 64, 64, 64, 64, 64 },
267267
.flags = 0,
268268
.mmal_fmt = MMAL_ENCODING_RGBA,
269269
.size_multiplier_x2 = 2,

0 commit comments

Comments
 (0)