msm: vidc: do not update inst state for map failure

Currently for map failure inst->state updated to
MSM_VIDC_CORE_INVALID. So during flush driver issues
session_abort to firmware. So firmware asserts and
sends sys_error back. So added change to avoid
updating inst->state.

Change-Id: I30f90726d21cb13bf5a27dd3d259a8d026260746
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal 2020-04-01 13:13:42 +05:30
commit b689990576

View file

@ -1267,7 +1267,9 @@ static void msm_vidc_buf_queue(struct vb2_buffer *vb2)
if (rc) {
print_vb2_buffer("failed vb2-qbuf", inst, vb2);
msm_comm_generate_session_error(inst);
vb2_buffer_done(vb2, VB2_BUF_STATE_DONE);
msm_vidc_queue_v4l2_event(inst,
V4L2_EVENT_MSM_VIDC_SYS_ERROR);
}
}