mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: rockchip: isp: fixed framerate ctl invalid issue
When set framerate from small one to big one, will lead to discard all frame because the is_diacard flag is not reset to "false" in the change. Signed-off-by: LongChang Ma <chad.ma@rock-chips.com> Change-Id: I7197d40ec0053c7dad7f2c088d77f7493626ea90
This commit is contained in:
@@ -577,8 +577,12 @@ bool rkisp_rockit_ctrl_fps(struct rkisp_stream *stream)
|
||||
}
|
||||
}
|
||||
|
||||
if (dst_fps >= fps_in)
|
||||
if (dst_fps >= fps_in) {
|
||||
/* avoid from small frame rate to big frame rate lead to all buf is discard issue */
|
||||
*is_discard = false;
|
||||
stream_cfg->dst_fps = fps_in;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((fps_in > 0) && (dst_fps > 0)) {
|
||||
if (*fps_cnt < 0)
|
||||
|
||||
Reference in New Issue
Block a user