Skip to content

Commit

Permalink
drm/radeon/kms: add common lvds modes in the ddc case
Browse files Browse the repository at this point in the history
previous patch only handled the non-ddc case.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Sep 11, 2009
1 parent 2f9a60d commit 7747b71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/gpu/drm/radeon/radeon_connectors.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
if (radeon_connector->ddc_bus) {
ret = radeon_ddc_get_modes(radeon_connector);
if (ret > 0) {
encoder = radeon_best_single_encoder(connector);
if (encoder)
/* add scaled modes */
radeon_add_common_modes(encoder, connector);
return ret;
}
}
Expand All @@ -249,11 +253,10 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
if (mode) {
ret = 1;
drm_mode_probed_add(connector, mode);
/* add scaled modes */
radeon_add_common_modes(encoder, connector);
}

/* add scaled modes */
radeon_add_common_modes(encoder, connector);

return ret;
}

Expand Down

0 comments on commit 7747b71

Please sign in to comment.