msm: camera: isp: Initialize completion structure
When setting the stream satte to UPDATING the active completion should be initialized since we wait on that completion. CRs-Fixed: 1064457 Change-Id: Ia17d8fb224ef2709761f03464aaf2d4541566817 Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
This commit is contained in:
parent
fa50126290
commit
f5640f2c84
1 changed files with 4 additions and 1 deletions
|
@ -1412,6 +1412,7 @@ static void __msm_isp_axi_stream_update(
|
|||
switch (stream_info->state) {
|
||||
case UPDATING:
|
||||
stream_info->state = ACTIVE;
|
||||
complete_all(&stream_info->active_comp);
|
||||
break;
|
||||
case STOP_PENDING:
|
||||
msm_isp_axi_stream_enable_cfg(stream_info);
|
||||
|
@ -3388,9 +3389,11 @@ static void msm_isp_remove_buf_queue(struct vfe_device *vfe_dev,
|
|||
|
||||
if (stream_info->bufq_handle[bufq_id]) {
|
||||
stream_info->bufq_handle[bufq_id] = 0;
|
||||
if (stream_info->state == ACTIVE)
|
||||
if (stream_info->state == ACTIVE) {
|
||||
init_completion(&stream_info->active_comp);
|
||||
stream_info->state = UPDATING;
|
||||
}
|
||||
}
|
||||
spin_unlock_irqrestore(&stream_info->lock, flags);
|
||||
if (stream_info->state == UPDATING)
|
||||
msm_isp_axi_wait_for_stream_cfg_done(stream_info, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue