Skip to contentSkip to conversation

drm/radeon/kms: adjust pll settings for tv

PATCH New Alex Deucher 1 participant 1 message Apr 12, 2010

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

PATCH 1/1 drm/radeon/kms: adjust pll settings for tv

This fixes PAL on atom systems with KMS. Confirmed fixes bug 26582.

Alex

Quoted 1 line

From c69493066489b351544ddecac65f350c8851754e Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Fri, 9 Apr 2010 15:31:56 -0400
Subject: [PATCH] drm/radeon/kms: adjust pll settings for tv

May fix fdo bug 26582.

---
 drivers/gpu/drm/radeon/atombios_crtc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/atombios_crtc.c
index 6300675..3feca6a 100644

drivers/gpu/drm/radeon/atombios_crtc.c +4 -0
@@ -517,6 +517,10 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc,
 				/* DVO wants 2x pixel clock if the DVO chip is in 12 bit mode */
 				if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1)
 					adjusted_clock = mode->clock * 2;
+				if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) {
+					pll->algo = PLL_ALGO_LEGACY;
+					pll->flags |= RADEON_PLL_PREFER_CLOSEST_LOWER;
+				}
 			} else {
 				if (encoder->encoder_type != DRM_MODE_ENCODER_DAC)
 					pll->flags |= RADEON_PLL_NO_ODD_POST_DIV;
Signature · 1 line
1.5.6.3

From c69493066489b351544ddecac65f350c8851754e Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Fri, 9 Apr 2010 15:31:56 -0400
Subject: [PATCH] drm/radeon/kms: adjust pll settings for tv

May fix fdo bug 26582.

---
 drivers/gpu/drm/radeon/atombios_crtc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/atombios_crtc.c +4 -0
index 6300675..3feca6a 100644
@@ -517,6 +517,10 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc,
 				/* DVO wants 2x pixel clock if the DVO chip is in 12 bit mode */
 				if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1)
 					adjusted_clock = mode->clock * 2;
+				if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) {
+					pll->algo = PLL_ALGO_LEGACY;
+					pll->flags |= RADEON_PLL_PREFER_CLOSEST_LOWER;
+				}
 			} else {
 				if (encoder->encoder_type != DRM_MODE_ENCODER_DAC)
 					pll->flags |= RADEON_PLL_NO_ODD_POST_DIV;
Signature · 1 line
1.5.6.3

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