mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user