From a4ac64021c880f12fe7bfa8c60b25ecf3ea2aef8 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 12 Apr 2010 16:14:46 -0400 Subject: [PATCH] drm/radeon/kms: disable the tv encoder when tv/cv is not in use Switching between TV and VGA caused VGA to break on some systems since the TV encoder was left enabled when VGA was used. Should fix fdo bug 25520. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index c52fc30..7f974d9 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c @@ -1375,6 +1375,8 @@ radeon_atom_encoder_mode_set(struct drm_encoder *encoder, atombios_dac_setup(encoder, ATOM_ENABLE); if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)) atombios_tv_setup(encoder, ATOM_ENABLE); + else + atombios_tv_setup(encoder, ATOM_DISABLE); break; } atombios_apply_encoder_quirks(encoder, adjusted_mode); -- 1.5.6.3