From 9effb3ad5fbbf94ba10cc7d509c93f9fdb236236 Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Fri, 22 Jul 2016 14:57:59 +0200 Subject: tegra: HDMI allow more aspect ratios When connected display EDID presents aspect ratio that is in valid range, but it's not in a table of valid ratios accept it with a warning message. Signed-off-by: Dominik Sliwa Acked-by: Marcel Ziswiler --- drivers/video/tegra/dc/hdmi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'drivers/video/tegra') diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index 85a5d63e9326..d8e2a1e656f0 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -1278,8 +1278,9 @@ static bool tegra_dc_hdmi_valid_asp_ratio(const struct tegra_dc *dc, (abs(m_aspratio - s_aspratio) == 1)) return true; } - - return false; + dev_warn(&dc->ndev->dev, "Unusuall display aspect ratio. \ + You may encounter problems with base resolution\n"); + return true; } @@ -1309,7 +1310,7 @@ static bool tegra_dc_hdmi_mode_filter(const struct tegra_dc *dc, /* Check some of DC's constraints */ if (mode->hsync_len > 1 && mode->vsync_len > 1 && mode->lower_margin + mode->vsync_len + mode->upper_margin > 1 && - mode->xres >= 16 && mode->yres >= 16) { + mode->xres >= 256 && mode->yres >= 256) { if (mode->lower_margin == 1) { /* This might be the case for HDMI<->DVI -- cgit v1.2.3