Fuze+: fixed brightness settings: previously there were 81 settings for only 26 possible brightnesses, now there are 33 for 33
Change-Id: Idc6e3a635850f3ee54ec23246795af88af960ab0 Reviewed-on: http://gerrit.rockbox.org/916 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
parent
223038dfe0
commit
d3cf366868
2 changed files with 3 additions and 3 deletions
|
@ -114,8 +114,8 @@
|
|||
|
||||
/* Main LCD backlight brightness range and defaults */
|
||||
#define MIN_BRIGHTNESS_SETTING 0
|
||||
#define MAX_BRIGHTNESS_SETTING 80
|
||||
#define DEFAULT_BRIGHTNESS_SETTING 40
|
||||
#define MAX_BRIGHTNESS_SETTING 32
|
||||
#define DEFAULT_BRIGHTNESS_SETTING 16
|
||||
|
||||
/* Which backlight fading type? */
|
||||
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
void _backlight_set_brightness(int brightness)
|
||||
{
|
||||
if(brightness != 0)
|
||||
brightness = 32 - (brightness * 32) / 100;
|
||||
brightness = MAX_BRIGHTNESS_SETTING + 1 - brightness;
|
||||
imx233_pinctrl_set_gpio(1, 28, false);
|
||||
udelay(600);
|
||||
while(brightness-- > 0)
|
||||
|
|
Loading…
Reference in a new issue