summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorVeera Sundaram Sankaran <veeras@codeaurora.org>2015-10-14 12:36:46 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:46:40 -0700
commit75631a476bf9abf0076eb6acf5015fd8cd30b0d6 (patch)
treeb08ee26a78ffc281a6340c857f2b4ffa6c4d3fdf /drivers/video/fbdev
parent7b721f87264086e157fa17905e7ea935f27cd40b (diff)
msm: mdss: update split fb for HDMI usecases
For HDMI usecases, set the correct split_mode and split_fb values on resolution change. Previously, HDMI resolution switch within the same split_mode was not updating the split_fb values. Update the mode and values according to the new resolution. Change-Id: I56d0d937056a1aeff114d6addd674287b202ee60 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_overlay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
index 7412d3941769..052ddd821388 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
@@ -4388,8 +4388,9 @@ static void mdss_mdp_set_lm_flag(struct msm_fb_data_type *mfd)
width = mfd->fbi->var.xres;
/* setting the appropriate split_mode for HDMI usecases */
- if (mfd->split_mode == MDP_SPLIT_MODE_NONE &&
- width > mdata->max_mixer_width) {
+ if ((mfd->split_mode == MDP_SPLIT_MODE_NONE ||
+ mfd->split_mode == MDP_DUAL_LM_SINGLE_DISPLAY) &&
+ (width > mdata->max_mixer_width)) {
width /= 2;
mfd->split_mode = MDP_DUAL_LM_SINGLE_DISPLAY;
mfd->split_fb_left = width;