drm/radeon/kms: prefer legacy pll algo for tv-out

ntsc seems to work fine with either algo, some
pal TVs seem pickier.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=30832

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by Alex Deucher and committed by Dave Airlie 64146f8b fb3b06c8

+5 -1
+5 -1
drivers/gpu/drm/radeon/atombios_crtc.c
··· 957 /* adjust pixel clock as needed */ 958 adjusted_clock = atombios_adjust_pll(crtc, mode, pll, ss_enabled, &ss); 959 960 - if (ASIC_IS_AVIVO(rdev)) 961 radeon_compute_pll_avivo(pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div, 962 &ref_div, &post_div); 963 else
··· 957 /* adjust pixel clock as needed */ 958 adjusted_clock = atombios_adjust_pll(crtc, mode, pll, ss_enabled, &ss); 959 960 + if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) 961 + /* TV seems to prefer the legacy algo on some boards */ 962 + radeon_compute_pll_legacy(pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div, 963 + &ref_div, &post_div); 964 + else if (ASIC_IS_AVIVO(rdev)) 965 radeon_compute_pll_avivo(pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div, 966 &ref_div, &post_div); 967 else