previous patch only handled the non-ddc case.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
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;
}
}
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;
}