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

Commit c316e38a authored by Karthikeyan Periasamy's avatar Karthikeyan Periasamy
Browse files

msm: vidc: Update state check for buffer count verification



When session is in release_resources_done state, buffer counts
are not reliable. Hence driver should avoid verifying them.

CRs-Fixed: 2123579
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: default avatarKarthikeyan Periasamy <kperiasa@codeaurora.org>
Change-Id: I686324d9f84be2470971b3e4e26e63aeefee0e94
parent e795ead2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -835,7 +835,8 @@ static inline int msm_vidc_verify_buffer_counts(struct msm_vidc_inst *inst)

	/* For decoder No need to sanity till LOAD_RESOURCES */
	if (inst->session_type == MSM_VIDC_DECODER &&
			inst->state < MSM_VIDC_LOAD_RESOURCES_DONE) {
			(inst->state < MSM_VIDC_LOAD_RESOURCES_DONE ||
			inst->state >= MSM_VIDC_RELEASE_RESOURCES_DONE)) {
		dprintk(VIDC_DBG,
			"No need to verify buffer counts : %pK\n", inst);
		return 0;