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

Commit 05179abb authored by Saurabh Kothawade's avatar Saurabh Kothawade
Browse files

msm: vidc: Update validation for operating rate



Allow operating rate to be set to higher value
when clock scaling is disabled or core is voted
at max frequency to cover the DCVS window.

Change-Id: Ice3bd821365b54855bae294699dd44ab34e5a8ea
Signed-off-by: default avatarSaurabh Kothawade <skothawa@codeaurora.org>
parent 099e9fc7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -652,7 +652,9 @@ int msm_vidc_validate_operating_rate(struct msm_vidc_inst *inst,

	operating_rate = operating_rate >> 16;

	if ((curr_operating_rate + ops_left) >= operating_rate) {
	if ((curr_operating_rate + ops_left) >= operating_rate ||
			!msm_vidc_clock_scaling ||
			inst->clk_data.buffer_counter < DCVS_FTB_WINDOW) {
		dprintk(VIDC_DBG,
			"Requestd operating rate is valid %u\n",
			operating_rate);