mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
sonynwz: fix backlight
Apparently the backlight driver is leaking current even when the PWM set to 0. This patch should greatly improve the battery life of the device. Change-Id: I76bbc8a87cae452e599b37de17e91f373cee58bc
This commit is contained in:
parent
ae9b78ee2e
commit
6e575b6c70
1 changed files with 3 additions and 1 deletions
|
|
@ -29,8 +29,10 @@
|
|||
|
||||
void _backlight_set_brightness(int brightness)
|
||||
{
|
||||
bool en = brightness > 0;
|
||||
imx233_pwm_setup_simple(2, 24000, 100 - brightness);
|
||||
imx233_pwm_enable(2, true);
|
||||
imx233_pwm_enable(2, en);
|
||||
imx233_pinctrl_set_gpio(0, 10, en);
|
||||
}
|
||||
|
||||
bool _backlight_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue