summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2016-07-22 14:57:59 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-09-29 06:48:56 +0200
commit9effb3ad5fbbf94ba10cc7d509c93f9fdb236236 (patch)
treed45e0e47419226a4159ce320457ea5480a3bc7ea
parentd20d9941202fa728df9260d2c812a6444afa4821 (diff)
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 <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--drivers/video/tegra/dc/hdmi.c7
1 files changed, 4 insertions, 3 deletions
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