]> git.hungrycats.org Git - linux/commitdiff
drm/radeon: call drm_edid_to_eld when we update the edid
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 31 Mar 2014 15:19:46 +0000 (11:19 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:25 +0000 (16:23 +0100)
commit 16086279353cbfecbb3ead474072dced17b97ddc upstream.

This needs to be done to update some of the fields in
the connector structure used by the audio code.

Noticed by several users on irc.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_display.c

index 63e714307c8e3e40c4a7cc0461ce2f2779338d78..3291ab8e8f84c281411ba297d384965e189346c8 100644 (file)
@@ -738,6 +738,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);