drm/radeon: call drm_edid_to_eld when we update the edid
authorjsg <jsg@openbsd.org>
Sat, 3 May 2014 05:26:47 +0000 (05:26 +0000)
committerjsg <jsg@openbsd.org>
Sat, 3 May 2014 05:26:47 +0000 (05:26 +0000)
From Alex Deucher
7752811a7d6be680e8f1a87da18e3670633981ee in ubuntu 3.8
16086279353cbfecbb3ead474072dced17b97ddc in mainline linux

sys/dev/pci/drm/radeon/radeon_display.c

index 3b3f6e0..67fbfbf 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: radeon_display.c,v 1.6 2014/02/09 11:03:31 jsg Exp $  */
+/*     $OpenBSD: radeon_display.c,v 1.7 2014/05/03 05:26:47 jsg Exp $  */
 /*
  * Copyright 2007-8 Advanced Micro Devices, Inc.
  * Copyright 2008 Red Hat Inc.
@@ -743,6 +743,7 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector)
        if (radeon_connector->edid) {
                drm_mode_connector_update_edid_property(&radeon_connector->base, radeon_connector->edid);
                ret = drm_add_edid_modes(&radeon_connector->base, radeon_connector->edid);
+               drm_edid_to_eld(&radeon_connector->base, radeon_connector->edid);
                return ret;
        }
        drm_mode_connector_update_edid_property(&radeon_connector->base, NULL);