Skip to content

Commit

Permalink
media: venus: correct low power frequency calculation for encoder
Browse files Browse the repository at this point in the history
In exististing implimentation, in min_loaded_core() for low_power
vpp frequency value is considering as vpp_freq instead of low_power_freq.
Fixed this by correcting vpp frequency calculation for encoder.

Fixes: 3cfe581 (media: venus: Enable low power setting for encoder)
Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Mansur Alisha Shaik authored and mchehab committed Nov 30, 2021
1 parent be25b04 commit b1f9bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/qcom/venus/pm_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ min_loaded_core(struct venus_inst *inst, u32 *min_coreid, u32 *min_load, bool lo
if (inst->session_type == VIDC_SESSION_TYPE_DEC)
vpp_freq = inst_pos->clk_data.vpp_freq;
else if (inst->session_type == VIDC_SESSION_TYPE_ENC)
vpp_freq = low_power ? inst_pos->clk_data.vpp_freq :
inst_pos->clk_data.low_power_freq;
vpp_freq = low_power ? inst_pos->clk_data.low_power_freq :
inst_pos->clk_data.vpp_freq;
else
continue;

Expand Down

0 comments on commit b1f9bb8

Please sign in to comment.