Skip to content

Commit b2bbf1a

Browse files
Dafna Hirschfeldmchehab
authored andcommitted
media: i2c: imx219: Fix a bug in imx219_enum_frame_size
When enumerating the frame sizes, the value sent to imx219_get_format_code should be fse->code (the code from the ioctl) and not imx219->fmt.code which is the code set currently in the driver. Fixes: 22da1d5 ("media: i2c: imx219: Add support for RAW8 bit bayer format") Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Reviewed-by: Helen Koike <helen.koike@collabora.com> Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent e6d4ef7 commit b2bbf1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/i2c/imx219.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static int imx219_enum_frame_size(struct v4l2_subdev *sd,
824824
if (fse->index >= ARRAY_SIZE(supported_modes))
825825
return -EINVAL;
826826

827-
if (fse->code != imx219_get_format_code(imx219, imx219->fmt.code))
827+
if (fse->code != imx219_get_format_code(imx219, fse->code))
828828
return -EINVAL;
829829

830830
fse->min_width = supported_modes[fse->index].width;

0 commit comments

Comments
 (0)