During the dcvs initial buffering period, which can be extended
in a pause resume, dcvs->load remains as the nominal load. But
scale clocks is not called in this period. Also modify the
switching conditions to cause dcvs->load to be updated with
high freq.
Change-Id: Ib9dcbb5e35ca36ae6bd29a455c1e0df73834fab0
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
if (dcvs->etb_counter < total_input_buf) {
dcvs->etb_counter++;
- if (dcvs->etb_counter != total_input_buf)
- return rc;
+ if (dcvs->etb_counter != total_input_buf) {
+ return msm_comm_scale_clocks_load(core, dcvs->load,
+ LOAD_CALC_NO_QUIRKS);
+ }
}
dprintk(VIDC_PROF,
}
if (fw_pending_bufs >= DCVS_ENC_HIGH_THR &&
- dcvs->load <= dcvs->load_low) {
+ dcvs->load < dcvs->load_high) {
dcvs->load = dcvs->load_high;
dcvs->prev_freq_increased = true;
} else {