mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
intel_fb: optionally respect connector hz config
This commit is contained in:
parent
c63f7725be
commit
d80fadc635
@ -104,6 +104,7 @@ Framebuffer::Driver::_preferred_mode(drm_connector *connector)
|
|||||||
|
|
||||||
unsigned long width = 0;
|
unsigned long width = 0;
|
||||||
unsigned long height = 0;
|
unsigned long height = 0;
|
||||||
|
long hz = xn.attribute_value("hz", 0L);
|
||||||
xn.attribute("width").value(&width);
|
xn.attribute("width").value(&width);
|
||||||
xn.attribute("height").value(&height);
|
xn.attribute("height").value(&height);
|
||||||
|
|
||||||
@ -111,6 +112,7 @@ Framebuffer::Driver::_preferred_mode(drm_connector *connector)
|
|||||||
list_for_each_entry(mode, &connector->modes, head) {
|
list_for_each_entry(mode, &connector->modes, head) {
|
||||||
if (mode->hdisplay == (int) width &&
|
if (mode->hdisplay == (int) width &&
|
||||||
mode->vdisplay == (int) height)
|
mode->vdisplay == (int) height)
|
||||||
|
if (!hz || hz == mode->vrefresh)
|
||||||
return mode;
|
return mode;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user