Commit 2ff2185e authored by Enrico Scholz's avatar Enrico Scholz

onsemi: core: do not fail on bad S_FRAME_INTERVAL

continue with upper/lower values instead of failing when a too high or
low frame rate has been requested.
Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent cd9fc48d
......@@ -2424,8 +2424,8 @@ static int onsemi_s_frame_interval(struct v4l2_subdev *sd,
&parm.parm.vblank,
0xffff);
if (rc < 0) {
v4l2_warn(sd, "failed to find matching parameters for given interval\n");
goto out;
v4l2_warn(sd, "failed to find matching parameters for given interval; assuming limits\n");
rc = onsemi_frame_time_us(onsemi, &parm.parm, &parm.freq);
}
/* write back the calculated time */
......
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