From 7e1db2ca6df405bbf4df6e6f3574f2b9a1dd4f68 Mon Sep 17 00:00:00 2001 From: Ingrid Gallardo Date: Fri, 5 Dec 2014 16:42:09 -0800 Subject: [PATCH] msm: mdss: add check to avoid fudge factor for non real time interfaces Current driver checks if some video interface is connected in order to apply a fudge factor. This is expected for real time interfaces, but non real time interfaces should not account for this extra bandwidth. This fix adds a check to make sure that for non real time interfaces the fudge factor does not get applied. Change-Id: Ib01d12f4e7749f4e083fa09f6392896313978d72 Signed-off-by: Ingrid Gallardo --- drivers/video/fbdev/msm/mdss_mdp_ctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index 5e051490b6eb..e569c361d1b8 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -1063,7 +1063,8 @@ static void mdss_mdp_perf_calc_ctl(struct mdss_mdp_ctl *ctl, __mdss_mdp_perf_calc_ctl_helper(ctl, perf, left_plist, left_cnt, right_plist, right_cnt, 0); - if (ctl->is_video_mode || mdss_mdp_video_mode_intf_connected(ctl)) { + if (ctl->is_video_mode || ((ctl->intf_type != MDSS_MDP_NO_INTF) && + mdss_mdp_video_mode_intf_connected(ctl))) { perf->bw_ctl = max(apply_fudge_factor(perf->bw_overlap, &mdss_res->ib_factor_overlap),