mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: rockchip: vicap init frame_phase_cache
Change-Id: Ic783b0c8d86106d00fe60d4bff41a7abb1f7dd3e Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
This commit is contained in:
@@ -5282,6 +5282,7 @@ static int rkcif_csi_stream_start(struct rkcif_stream *stream, unsigned int mode
|
||||
stream->is_finish_single_cap = true;
|
||||
stream->is_wait_single_cap = false;
|
||||
stream->last_frame_idx = 0;
|
||||
stream->frame_phase_cache = CIF_CSI_FRAME1_READY;
|
||||
}
|
||||
stream->interlaced_bad_frame = false;
|
||||
stream->last_fs_interlaced_phase = 0;
|
||||
@@ -5576,8 +5577,6 @@ static void rkcif_check_buffer_update_pingpong(struct rkcif_stream *stream,
|
||||
stream->curr_buf == NULL ||
|
||||
stream->next_buf == NULL) {
|
||||
frame_phase = stream->frame_phase_cache;
|
||||
if (dev->irq_stats.frm_end_cnt[stream->id] == 0)
|
||||
frame_phase = CIF_CSI_FRAME1_READY;
|
||||
if (!stream->is_line_wake_up ||
|
||||
(stream->is_line_wake_up && stream->frame_idx < 2)) {
|
||||
if (mbus_cfg->type == V4L2_MBUS_CSI2_DPHY ||
|
||||
@@ -7683,6 +7682,7 @@ static int rkcif_stream_start(struct rkcif_stream *stream, unsigned int mode)
|
||||
stream->is_in_vblank = false;
|
||||
stream->is_change_toisp = false;
|
||||
stream->last_frame_idx = 0;
|
||||
stream->frame_phase_cache = CIF_CSI_FRAME1_READY;
|
||||
}
|
||||
|
||||
sensor_info = dev->active_sensor;
|
||||
|
||||
Reference in New Issue
Block a user