Merge "msm: vidc: Initialize the dcvs load during perf mode switch"

This commit is contained in:
Linux Build Service Account 2016-11-08 11:18:48 -08:00 committed by Gerrit - the friendly Code Review server
commit e77fc25751

View file

@ -2940,7 +2940,10 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
case V4L2_CID_MPEG_VIDC_SET_PERF_LEVEL:
switch (ctrl->val) {
case V4L2_CID_MPEG_VIDC_PERF_LEVEL_NOMINAL:
inst->flags &= ~VIDC_TURBO;
if (inst->flags & VIDC_TURBO) {
inst->flags &= ~VIDC_TURBO;
msm_dcvs_init_load(inst);
}
break;
case V4L2_CID_MPEG_VIDC_PERF_LEVEL_TURBO:
inst->flags |= VIDC_TURBO;