Skip to content

Commit

Permalink
staging: bcm2835-codec: 32bpp RGB formats need a 64byte alignment
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
6by9 authored and pelwell committed May 13, 2024
1 parent e0c78d5 commit abc5014
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ static const struct bcm2835_codec_fmt supported_formats[] = {
}, {
.fourcc = V4L2_PIX_FMT_BGR32,
.depth = 32,
.bytesperline_align = { 32, 32, 32, 32, 32 },
.bytesperline_align = { 64, 64, 64, 64, 64 },
.flags = 0,
.mmal_fmt = MMAL_ENCODING_BGRA,
.size_multiplier_x2 = 2,
}, {
.fourcc = V4L2_PIX_FMT_RGBA32,
.depth = 32,
.bytesperline_align = { 32, 32, 32, 32, 32 },
.bytesperline_align = { 64, 64, 64, 64, 64 },
.flags = 0,
.mmal_fmt = MMAL_ENCODING_RGBA,
.size_multiplier_x2 = 2,
Expand Down

0 comments on commit abc5014

Please sign in to comment.