mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
128c3afaf1
commit
00c0980018
1 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue