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

Commit a59fbb8e authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/radeon: fix typo in atombios_get_encoder_mode



comparing the encoder mode to the encoder id for DVO.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e729586e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -662,7 +662,8 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
		return ATOM_ENCODER_MODE_DP;

	/* DVO is always DVO */
	if (radeon_encoder->encoder_id == ATOM_ENCODER_MODE_DVO)
	if ((radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_DVO1) ||
	    (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1))
		return ATOM_ENCODER_MODE_DVO;

	connector = radeon_get_connector_for_encoder(encoder);