Skip to contentSkip to conversation

drm/radeon/kms: one more HDMI cleanup (in disabling code)

PATCH New Rafał Miłecki 1 participant 1 message Dec 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 drm/radeon/kms: one more HDMI cleanup (in disabling code)

---
 drivers/gpu/drm/radeon/r600_hdmi.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/r600_hdmi.c +8 -2
index 5021372..06f923e 100644
@@ -571,9 +571,15 @@ void r600_hdmi_disable(struct drm_encoder *encoder)
 	/* disable polling */
 	r600_audio_disable_polling(encoder);
 
-	if (ASIC_IS_DCE32(rdev) && !ASIC_IS_DCE4(rdev)) {
+	if (ASIC_IS_DCE5(rdev)) {
+		/* TODO */
+	} else if (ASIC_IS_DCE4(rdev)) {
+		/* TODO */
+	} else if (ASIC_IS_DCE32(rdev)) {
 		WREG32_P(radeon_encoder->hdmi_config_offset + 0x4, 0, ~0x1);
-	} else if (rdev->family >= CHIP_R600 && !ASIC_IS_DCE3(rdev)) {
+	} else if (ASIC_IS_DCE3(rdev)) {
+		/* TODO */
+	} else if (rdev->family >= CHIP_R600) {
 		switch (radeon_encoder->encoder_id) {
 		case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1:
 			WREG32_P(AVIVO_TMDSA_CNTL, 0, ~0x4);
Signature · 6 lines
1.7.3.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel