diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config/sansafuzeplus.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 15288b1b21..2d744125c6 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h | |||
@@ -110,8 +110,8 @@ | |||
110 | 110 | ||
111 | /* Main LCD backlight brightness range and defaults */ | 111 | /* Main LCD backlight brightness range and defaults */ |
112 | #define MIN_BRIGHTNESS_SETTING 1 | 112 | #define MIN_BRIGHTNESS_SETTING 1 |
113 | #define MAX_BRIGHTNESS_SETTING 100 /* unsure */ | 113 | #define MAX_BRIGHTNESS_SETTING 80 |
114 | #define DEFAULT_BRIGHTNESS_SETTING 60 /* fixme */ | 114 | #define DEFAULT_BRIGHTNESS_SETTING 40 |
115 | 115 | ||
116 | /* Which backlight fading type? */ | 116 | /* Which backlight fading type? */ |
117 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | 117 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING |
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c index f2c9e438e1..90bd8b556b 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | |||
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | void _backlight_set_brightness(int brightness) | 29 | void _backlight_set_brightness(int brightness) |
30 | { | 30 | { |
31 | brightness = 32 - (brightness * 32) / 100; | ||
31 | imx233_set_gpio_output(1, 28, false); | 32 | imx233_set_gpio_output(1, 28, false); |
32 | udelay(600); | 33 | udelay(600); |
33 | while(brightness-- > 0) | 34 | while(brightness-- > 0) |