Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6de1162f authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal
Browse files

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: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent 4f9d7ba5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1171,7 +1171,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);
	}
}