1 From c1c9a3f124f3273fc076651f3f89d1746d5bee77 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 5 Aug 2021 15:11:23 +0100
4 Subject: [PATCH] staging/bcm2835-codec: Correct ENUM_FRAMESIZES
7 Being YUV420 formats, the step size is always 2 to avoid part
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -2222,10 +2222,10 @@ static int vidioc_enum_framesizes(struct
19 fsize->stepwise.min_width = MIN_W;
20 fsize->stepwise.max_width = MAX_W;
21 - fsize->stepwise.step_width = 1;
22 + fsize->stepwise.step_width = 2;
23 fsize->stepwise.min_height = MIN_H;
24 fsize->stepwise.max_height = MAX_H;
25 - fsize->stepwise.step_height = 1;
26 + fsize->stepwise.step_height = 2;