drm/radeon/kms: add common lvds modes in the ddc case
previous patch only handled the non-ddc case. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
committed by
Dave Airlie
parent
2f9a60d766
commit
7747b71304
@@ -236,6 +236,10 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
|
|||||||
if (radeon_connector->ddc_bus) {
|
if (radeon_connector->ddc_bus) {
|
||||||
ret = radeon_ddc_get_modes(radeon_connector);
|
ret = radeon_ddc_get_modes(radeon_connector);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
|
encoder = radeon_best_single_encoder(connector);
|
||||||
|
if (encoder)
|
||||||
|
/* add scaled modes */
|
||||||
|
radeon_add_common_modes(encoder, connector);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -249,11 +253,10 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
|
|||||||
if (mode) {
|
if (mode) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
drm_mode_probed_add(connector, mode);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user