Skip to content

Commit 68d43e3

Browse files
naushirpelwell
authored andcommitted
drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8 and V4L2_PIX_FMT_SBGGR8
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 <[email protected]>
1 parent 7e86e8f commit 68d43e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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,
@@ -305,8 +305,8 @@ static const struct pisp_be_format supported_formats[] = {
305305
{
306306
.fourcc = V4L2_PIX_FMT_SBGGR8,
307307
.bit_depth = 8,
308-
.opt_align = 16,
309-
.min_align = 32,
308+
.opt_align = 32,
309+
.min_align = 16,
310310
.plane_factor = { P3(1.0) },
311311
.num_planes = 1,
312312
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,

0 commit comments

Comments
 (0)