]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: ov5640: Fix set 15fps regression
authorJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Jan 2019 17:58:01 +0000 (12:58 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 16:38:28 +0000 (11:38 -0500)
The ov5640_try_frame_interval operation updates the FPS as per user
input based on default ov5640_frame_rate, OV5640_30_FPS which is failed
to update when user trigger 15fps.

So, initialize the default ov5640_frame_rate to OV5640_15_FPS so-that
it can satisfy to update all fps.

Fixes: 5a3ad937bc78 ("media: ov5640: Make the return rate type more explicit")
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c

index d2efb94a57207d81a1bd750be7bac41982e3f847..2387c29b7fb0f87f85c922c94f3f30efc7b22a71 100644 (file)
@@ -2105,7 +2105,7 @@ static int ov5640_try_frame_interval(struct ov5640_dev *sensor,
                                     u32 width, u32 height)
 {
        const struct ov5640_mode_info *mode;
-       enum ov5640_frame_rate rate = OV5640_30_FPS;
+       enum ov5640_frame_rate rate = OV5640_15_FPS;
        int minfps, maxfps, best_fps, fps;
        int i;