msm_fb: Optimize the resolution change on hdmi interface

HDMI resolution is changed twice on cable connect.
This will optimize resolution change by turning on
HDMI core only once, with best possible resolution.

Change-Id: I7f636b0c2c64eb3c661fda2a709b5480db05bd27
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
This commit is contained in:
Nagamalleswararao Ganji 2013-02-14 21:22:15 -08:00 committed by Iliyan Malchev
parent 128c3afaf1
commit 00c0980018

View file

@ -1753,11 +1753,10 @@ static int msm_fb_open(struct fb_info *info, int user)
if (mfd->is_panel_ready && !mfd->is_panel_ready())
unblank = false;
if (unblank) {
if (unblank && (mfd->panel_info.type != DTV_PANEL)) {
if (msm_fb_blank_sub(FB_BLANK_UNBLANK, info, TRUE)) {
MSM_FB_ERR("%s: can't turn on display!\n",
__func__);
return -EPERM;
pr_err("msm_fb_open: can't turn on display\n");
return -EINVAL;
}
}
}
@ -2255,12 +2254,13 @@ static int msm_fb_set_par(struct fb_info *info)
mfd->fbi->fix.line_length = msm_fb_line_length(mfd->index, var->xres,
var->bits_per_pixel/8);
if (blank) {
if (mfd->update_panel_info)
mfd->update_panel_info(mfd);
if ((mfd->panel_info.type == DTV_PANEL) && !mfd->panel_power_on) {
msm_fb_blank_sub(FB_BLANK_UNBLANK, info, mfd->op_enable);
} else if (blank) {
msm_fb_blank_sub(FB_BLANK_POWERDOWN, info, mfd->op_enable);
if (mfd->update_panel_info)
mfd->update_panel_info(mfd);
msm_fb_blank_sub(FB_BLANK_UNBLANK, info, mfd->op_enable);
}