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

Commit f0e549a9 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Fix video cores clock rate value



No need to half the min frequency in msm_vidc_set_clocks()
if both video cores are used as the min frequency is already
calculated per core basis.

CRs-Fixed: 2154043
Change-Id: I66bbb3e6961b0974a4d5d28bee690a37f7cd9604
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 54d765eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -640,8 +640,8 @@ static int msm_vidc_set_clocks(struct msm_vidc_core *core)
		else if (temp->clk_data.core_id == VIDC_CORE_ID_2)
			freq_core_2 += temp->clk_data.min_freq;
		else if (temp->clk_data.core_id == VIDC_CORE_ID_3) {
			freq_core_1 += temp->clk_data.min_freq / 2;
			freq_core_2 += temp->clk_data.min_freq / 2;
			freq_core_1 += temp->clk_data.min_freq;
			freq_core_2 += temp->clk_data.min_freq;
		}

		freq_core_max = max_t(unsigned long, freq_core_1, freq_core_2);