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

Commit 66f22056 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Ensure firmware released all buffers in error case"

parents 1a7c5883 029e8e73
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4792,6 +4792,9 @@ static void msm_comm_flush_in_invalid_state(struct msm_vidc_inst *inst)
	enum vidc_ports ports[] = {OUTPUT_PORT, CAPTURE_PORT};
	int c = 0;

	/* before flush ensure venus released all buffers */
	msm_comm_try_state(inst, MSM_VIDC_RELEASE_RESOURCES_DONE);

	for (c = 0; c < ARRAY_SIZE(ports); ++c) {
		enum vidc_ports port = ports[c];

@@ -4897,9 +4900,6 @@ int msm_comm_flush(struct msm_vidc_inst *inst, u32 flags)
	}
	mutex_unlock(&inst->registeredbufs.lock);

	/* enable in flush */
	inst->in_flush = true;

	hdev = inst->core->device;
	if (ip_flush) {
		dprintk(VIDC_DBG, "Send flush on all ports to firmware\n");