summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunkyeong Kim <jk0430.kim@samsung.com>2020-03-19 17:55:26 +0900
committerJunkyeong Kim <jk0430.kim@samsung.com>2020-03-19 17:55:30 +0900
commit9e802405c89907e3ae365813b7d58145411e5d46 (patch)
tree21d44184cf79fcff8bf68b527ee607e0e23b6748
parent8eb2c92794755e51e2804c8eb6083f43ca3e5e84 (diff)
downloadlibtdm-vc4-9e802405c89907e3ae365813b7d58145411e5d46.tar.gz
libtdm-vc4-9e802405c89907e3ae365813b7d58145411e5d46.tar.bz2
libtdm-vc4-9e802405c89907e3ae365813b7d58145411e5d46.zip
discard mode if refresh rate is over 60
Change-Id: I096bc505d3165c9b4e18321ec8debb7e6fe703d0 Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r--src/tdm_vc4_display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tdm_vc4_display.c b/src/tdm_vc4_display.c
index 892bc98..a3754c9 100644
--- a/src/tdm_vc4_display.c
+++ b/src/tdm_vc4_display.c
@@ -1172,6 +1172,8 @@ vc4_output_get_capability(tdm_output *output, tdm_caps_output *caps)
if ((connector->modes[i].hdisplay > MODE_WIDTH_LIMIT) ||
(connector->modes[i].vdisplay > MODE_HEIGHT_LIMIT))
continue;
+ if (connector->modes[i].vrefresh > 60)
+ continue;
count++;
}
@@ -1219,6 +1221,8 @@ vc4_output_get_capability(tdm_output *output, tdm_caps_output *caps)
if ((connector->modes[i].hdisplay > MODE_WIDTH_LIMIT) ||
(connector->modes[i].vdisplay > MODE_HEIGHT_LIMIT))
continue;
+ if (connector->modes[i].vrefresh > 60)
+ continue;
_tdm_vc4_display_to_tdm_mode(&output_data->vc4_modes[i],
&output_data->output_modes[count]);