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

Commit 8e17631b authored by Santhosh Behara's avatar Santhosh Behara Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Allow max load check in other states too



Currently the max load supported check is happening only
in OPEN_DONE state. Allow this check to happen in other
states too i.e. from OPEN_DONE to STOP_DONE.

Change-Id: I5934247b03e683d5e87e007ed379031a57b629f4
Signed-off-by: default avatarSanthosh Behara <santhoshbehara@codeaurora.org>
parent b175ac5d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5500,7 +5500,8 @@ static int msm_vidc_load_supported(struct msm_vidc_inst *inst)
		LOAD_CALC_IGNORE_THUMBNAIL_LOAD |
		LOAD_CALC_IGNORE_NON_REALTIME_LOAD;

	if (inst->state == MSM_VIDC_OPEN_DONE) {
	if (inst->state >= MSM_VIDC_OPEN_DONE &&
		inst->state <= MSM_VIDC_STOP_DONE) {
		max_load_adj = inst->core->resources.max_load;
		num_mbs_per_sec = msm_comm_get_load(inst->core,
					MSM_VIDC_DECODER, quirks);