media: rockchip: isp: fix isp32 stream buf update double

Change-Id: Ie6d5e6a411f071777756da6e92cc451507118236
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2022-06-08 17:52:16 +08:00
committed by Tao Huang
parent 78bb39759a
commit 201d45e4d4

View File

@@ -763,11 +763,11 @@ static void update_mi(struct rkisp_stream *stream)
if (!ISP3X_ISP_OUT_LINE(rkisp_read(dev, ISP3X_ISP_DEBUG2, true))) {
stream->ops->enable_mi(stream);
stream->is_pause = false;
}
stream_self_update(stream);
if (!stream->curr_buf) {
stream->curr_buf = stream->next_buf;
stream->next_buf = NULL;
stream_self_update(stream);
if (!stream->curr_buf) {
stream->curr_buf = stream->next_buf;
stream->next_buf = NULL;
}
}
}
if (stream->is_pause) {