media: imx296: Only advertise the full resolution mode
authorNaushir Patuck <naush@raspberrypi.com>
Fri, 20 May 2022 08:56:11 +0000 (09:56 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 20 May 2022 15:12:36 +0000 (16:12 +0100)
The 1/4 resolution derived mode does not stream correctly, so remove it from
the advertised mode list.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/i2c/imx296.c

index c0da6f8..c565f31 100644 (file)
@@ -626,7 +626,7 @@ static int imx296_enum_frame_size(struct v4l2_subdev *sd,
 {
        struct imx296 *sensor = to_imx296(sd);
 
-       if (fse->index >= 2 || fse->code != sensor->format.code)
+       if (fse->index >= 1 || fse->code != sensor->format.code)
                return -EINVAL;
 
        fse->min_width = IMX296_PIXEL_ARRAY_WIDTH / (fse->index + 1);