diff options
-rw-r--r-- | firmware/export/config/sansafuzeplus.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 369e798528..c6f30ab00e 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h | |||
@@ -114,8 +114,8 @@ | |||
114 | 114 | ||
115 | /* Main LCD backlight brightness range and defaults */ | 115 | /* Main LCD backlight brightness range and defaults */ |
116 | #define MIN_BRIGHTNESS_SETTING 0 | 116 | #define MIN_BRIGHTNESS_SETTING 0 |
117 | #define MAX_BRIGHTNESS_SETTING 80 | 117 | #define MAX_BRIGHTNESS_SETTING 32 |
118 | #define DEFAULT_BRIGHTNESS_SETTING 40 | 118 | #define DEFAULT_BRIGHTNESS_SETTING 16 |
119 | 119 | ||
120 | /* Which backlight fading type? */ | 120 | /* Which backlight fading type? */ |
121 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | 121 | #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 efe9268989..3ee9d0914a 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | |||
@@ -29,7 +29,7 @@ | |||
29 | void _backlight_set_brightness(int brightness) | 29 | void _backlight_set_brightness(int brightness) |
30 | { | 30 | { |
31 | if(brightness != 0) | 31 | if(brightness != 0) |
32 | brightness = 32 - (brightness * 32) / 100; | 32 | brightness = MAX_BRIGHTNESS_SETTING + 1 - brightness; |
33 | imx233_pinctrl_set_gpio(1, 28, false); | 33 | imx233_pinctrl_set_gpio(1, 28, false); |
34 | udelay(600); | 34 | udelay(600); |
35 | while(brightness-- > 0) | 35 | while(brightness-- > 0) |