From ca694544247695864493ce67613f07bb19d272fd Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 28 Mar 2008 13:23:02 -0700 Subject: Use combo backlight control rather than pure legacy If the legacy bit is set, use both the BLC_PWM_CTL and LBB regs to control the backlight, rather than just LBB. Looks like more platforms want that than what the current code does. Note that kernel provided interfaces will always be used if available, so this shouldn't affect users with /sys/class/backlight interfaces at all. Fixes #14721. (cherry picked from commit 1450acd046d47e1739a3ffbd146c73ad2974a935) --- src/i830_lvds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/i830_lvds.c') diff --git a/src/i830_lvds.c b/src/i830_lvds.c index 28a51d98..33b4f269 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -133,11 +133,11 @@ i830_set_lvds_backlight_method(xf86OutputPtr output) } else if (IS_I965GM(pI830) || IS_IGD_GM(pI830)) { blc_pwm_ctl2 = INREG(BLC_PWM_CTL2); if (blc_pwm_ctl2 & BLM_LEGACY_MODE2) - method = BCM_LEGACY; + method = BCM_COMBO; } else { blc_pwm_ctl = INREG(BLC_PWM_CTL); if (blc_pwm_ctl & BLM_LEGACY_MODE) - method = BCM_LEGACY; + method = BCM_COMBO; } pI830->backlight_control_method = method; -- cgit v1.2.3