Skip to content

Commit 049161a

Browse files
committed
drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8
The opt_align and min_align field values got swapped, fix this. Fixes: 7e86e8f ("drivers: media: pisp_be: Add minimal alinment to the format structure") Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 7e86e8f commit 049161a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/raspberrypi/pisp_be/pisp_be_formats.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ static const struct pisp_be_format supported_formats[] = {
295295
{
296296
.fourcc = V4L2_PIX_FMT_SRGGB8,
297297
.bit_depth = 8,
298-
.opt_align = 16,
299-
.min_align = 32,
298+
.opt_align = 32,
299+
.min_align = 16,
300300
.plane_factor = { P3(1.0) },
301301
.num_planes = 1,
302302
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,

0 commit comments

Comments
 (0)