video: rockchip: hdmi: contrast uboot and kernel resolution

When box is starting, if kernel resolution is different from uboot,
need to clear hdmi->uboot

Change-Id: Iec56862fe20dcaccc12fefae21de55b56ab2fe54
Signed-off-by: Shen Zhenyi <szy@rock-chips.com>
This commit is contained in:
Shen Zhenyi
2016-07-22 16:04:02 +08:00
committed by Gerrit Code Review
parent 58d839be99
commit 899bf65ac0

View File

@@ -137,6 +137,12 @@ static void hdmi_wq_set_video(struct hdmi *hdmi)
} else {
video->vic = hdmi->vic & HDMI_VIC_MASK;
}
if (hdmi->uboot) {
if ((uboot_vic & HDMI_UBOOT_VIC_MASK) != hdmi->vic)
hdmi->uboot = 0;
}
hdmi_set_lcdc(hdmi);
if (hdmi->ops->setvideo)
hdmi->ops->setvideo(hdmi, video);