Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7747b713 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/radeon/kms: add common lvds modes in the ddc case



previous patch only handled the non-ddc case.

Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 2f9a60d7
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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;
		}
	}
@@ -249,10 +253,9 @@ 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);
	}

	return ret;
}