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>
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)