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

Commit 1b3aae74 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Update device clock after cx ipeak logic"

parents 61f3f9d7 17939045
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1411,19 +1411,20 @@ static int __set_clk_rate(struct venus_hfi_device *device,
		return rc;
	}

	device->clk_freq = rate;

	if (device->clk_freq >= threshold_freq && rate < threshold_freq) {
		rc = cx_ipeak_update(ipeak, false);
		if (rc) {
			dprintk(VIDC_ERR,
				"cx_ipeak_update failed! ipeak %pK\n", ipeak);
			device->clk_freq = rate;
			return rc;
		}
		dprintk(VIDC_PROF, "cx_ipeak_update: down, clk freq = %lu\n",
			device->clk_freq);
	}

	device->clk_freq = rate;

	return rc;
}