drmmode_output_get_modes: Replace existing EDID property blob with new one

This synchronizes the X EDID data with the kernel EDID data each time the
kernel data may have changed. Otherwise, X ends up stuck with the first EDID
data it sees, failing to accomodate to different monitors.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2009-07-21 12:32:10 -07:00
parent 840a787a19
commit 6f3fc6b20f
1 changed files with 1 additions and 2 deletions

View File

@ -641,8 +641,7 @@ drmmode_output_get_modes(xf86OutputPtr output)
if (!props || !(props->flags & DRM_MODE_PROP_BLOB))
continue;
if (!strcmp(props->name, "EDID") &&
drmmode_output->edid_blob == NULL) {
if (!strcmp(props->name, "EDID")) {
drmModeFreePropertyBlob(drmmode_output->edid_blob);
drmmode_output->edid_blob =
drmModeGetPropertyBlob(drmmode->fd,