media: rockchip: vicap fixed frame_phase state with wake up mode

sometimes, cause buffer state error in thunderboot mode

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1b750cbad21e29b112d8e7670029c6f1d0d53fc3
This commit is contained in:
Zefa Chen
2022-11-10 09:39:47 +08:00
committed by Tao Huang
parent 651d51090c
commit da1b05c63b

View File

@@ -7628,9 +7628,11 @@ static void rkcif_line_wake_up_rdbk(struct rkcif_stream *stream, int mipi_id)
if (mode) {
if (stream->curr_buf_toisp)
active_buf = stream->curr_buf_toisp;
stream->frame_phase = CIF_CSI_FRAME0_READY;
} else {
if (stream->next_buf_toisp)
active_buf = stream->next_buf_toisp;
stream->frame_phase = CIF_CSI_FRAME1_READY;
}
if (!active_buf) {