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

Commit 5a9807e1 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Fix the condition to check dcvs support



DCVS limit check fails due to coding error in the condition.
With this change, dcvs-limit is correctly interpreted.

CRs-Fixed: 1074911
Change-Id: I38689d490a31a8e02688d0cacaa6f6028f6f79c8
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 3c7400dc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -599,8 +599,8 @@ static bool msm_dcvs_check_supported(struct msm_vidc_inst *inst)
			goto dcvs_decision_done;
		}
		if (msm_comm_turbo_session(inst) ||
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit ||
			instance_count > 1))
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit) ||
			instance_count > 1)
			is_dcvs_supported = false;
	}
	if (inst->session_type == MSM_VIDC_ENCODER) {
@@ -617,8 +617,8 @@ static bool msm_dcvs_check_supported(struct msm_vidc_inst *inst)
			goto dcvs_decision_done;
		}
		if (msm_comm_turbo_session(inst) ||
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit ||
				instance_count > 1))
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit) ||
				instance_count > 1)
			is_dcvs_supported = false;
	}
dcvs_decision_done: