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>
(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;
}
/* 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