HDMI: fix filter feature SUPPORT_TMDS_600M error:

If soc is not support feature SUPPORT_TMDS_600M,
	or current EDID information is not support the
	feature, we should not show the corresponding
	option, such as 3840x2160p-60.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2015-02-09 10:40:40 +08:00
parent af62aaaac5
commit 1f69fb2931

View File

@@ -447,10 +447,10 @@ static void hdmi_sort_modelist(struct hdmi_edid *edid, int feature)
vic = modelist->vic & HDMI_VIC_MASK;
if (vic == hdmi_mode[i].vic ||
vic == hdmi_mode[i].vic_2nd) {
if ((feature & SUPPORT_TMDS_600M) == 0 &&
!(modelist->vic & HDMI_VIDEO_YUV420) &&
hdmi_mode[i].mode.pixclock > 340000000 &&
edid->maxtmdsclock < 340000000)
if ((((feature & SUPPORT_TMDS_600M) == 0 &&
!(modelist->vic & HDMI_VIDEO_YUV420)) ||
edid->maxtmdsclock < 340000000) &&
hdmi_mode[i].mode.pixclock > 340000000)
continue;
if ((feature & SUPPORT_4K) == 0 &&
hdmi_mode[i].mode.xres >= 3840)