Commit 6530a5eb authored by Jagan Teki's avatar Jagan Teki Committed by Mauro Carvalho Chehab

media: ov5640: Fix set 15fps regression

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: 5a3ad937 ("media: ov5640: Make the return rate type more explicit")
Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
Acked-by: default avatarJacopo Mondi <jacopo@jmondi.org>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 2b5c18f9
...@@ -2105,7 +2105,7 @@ static int ov5640_try_frame_interval(struct ov5640_dev *sensor, ...@@ -2105,7 +2105,7 @@ static int ov5640_try_frame_interval(struct ov5640_dev *sensor,
u32 width, u32 height) u32 width, u32 height)
{ {
const struct ov5640_mode_info *mode; 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 minfps, maxfps, best_fps, fps;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment