summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-11-18 19:09:24 (GMT)
committerKeith Packard <keithp@keithp.com>2011-11-23 21:07:13 (GMT)
commitca88479c1c3b7b1a9f94320745f5331e1de77f80 (patch)
tree1704b84389d53be5441a805eb8e5b3ef5346f1be /drivers/gpu/drm/i915/intel_lvds.c
parent1a2eb4604b85c5efb343da8a4dcf41288fcfca85 (diff)
downloadlinux-fsl-qoriq-ca88479c1c3b7b1a9f94320745f5331e1de77f80.tar.xz
drm/i915: Treat pre-gen4 backlight duty cycle value consistently
For i945 and earlier chips, the backlight frequency value had the low bit (of 16) fixed to zero. The Pineview code path handled this by just exposing the backlight range as 15 bits while other chips had the backlight range limited to 0 .. 0xfffe. This patch makes everyone take the pineview code path, providing 15 bits of backlight duty cycle range which seems more than sufficient to me. Daniel Mack reported that writing 1 to bit 0 of the duty cycle register was causing problems on his Samsung X20 notebook, even when the duty cycle value was less than the maximum backlight value. (He tried a value of 29749 with max_brightness of 29750). This patch never writes a '1' to that bit. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Reported-and-tested-by: Daniel Mack <zonque@gmail.com> Cc: stable@kernel.org
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
0 files changed, 0 insertions, 0 deletions