summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-11-18 11:09:24 -0800
committerKeith Packard <keithp@keithp.com>2011-11-23 13:07:13 -0800
commitca88479c1c3b7b1a9f94320745f5331e1de77f80 (patch)
tree1704b84389d53be5441a805eb8e5b3ef5346f1be /lib
parent1a2eb4604b85c5efb343da8a4dcf41288fcfca85 (diff)
downloadlinux-3.10-ca88479c1c3b7b1a9f94320745f5331e1de77f80.tar.gz
linux-3.10-ca88479c1c3b7b1a9f94320745f5331e1de77f80.tar.bz2
linux-3.10-ca88479c1c3b7b1a9f94320745f5331e1de77f80.zip
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 'lib')
0 files changed, 0 insertions, 0 deletions