diff options
| author | Chinmay Sawarkar <chinmays@codeaurora.org> | 2016-10-05 14:14:52 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-07 12:24:44 -0700 |
| commit | 5a9807e1338684fbba7468074bb1c737d626418f (patch) | |
| tree | 85eee00b1bbf17b5cb4a9af0e9210076b51c2076 | |
| parent | 3c7400dc73db9b1455032e8d6e7679f27869cd75 (diff) | |
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: Chinmay Sawarkar <chinmays@codeaurora.org>
| -rw-r--r-- | drivers/media/platform/msm/vidc/msm_vidc_dcvs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/msm/vidc/msm_vidc_dcvs.c b/drivers/media/platform/msm/vidc/msm_vidc_dcvs.c index 9e67ef096c63..f5cfd6159982 100644 --- a/drivers/media/platform/msm/vidc/msm_vidc_dcvs.c +++ b/drivers/media/platform/msm/vidc/msm_vidc_dcvs.c @@ -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: |
