diff options
Diffstat (limited to 'firmware/target/arm/philips/hdd6330')
-rw-r--r-- | firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c index 369f3a40f1..ec77e9c828 100644 --- a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | |||
@@ -55,26 +55,26 @@ void _buttonlight_on(void) | |||
55 | { | 55 | { |
56 | if (!buttonlight_status) | 56 | if (!buttonlight_status) |
57 | { | 57 | { |
58 | /* enable 1 led (from 2) for MENU - GPO, module 1 */ | ||
59 | /* no need to enable led for the hidden button */ | ||
60 | touchpad_set_parameter(0x01,0x21,0x01); | ||
58 | /* enable 3 leds (from 5) for PREV, PLAY and NEXT, */ | 61 | /* enable 3 leds (from 5) for PREV, PLAY and NEXT, */ |
59 | /* skip 2 leds because their light does not pass */ | 62 | /* skip 2 leds because their light does not pass */ |
60 | /* through the panel anyway - on GPOs, module 0 */ | 63 | /* through the panel anyway - on GPOs, module 0 */ |
61 | touchpad_set_parameter(0x00,0x22,0x15); | 64 | touchpad_set_parameter(0x00,0x22,0x15); |
62 | /* enable 1 led (from 2) for MENU - GPO, module 1 */ | ||
63 | /* no need to enable led for the hidden button */ | ||
64 | touchpad_set_parameter(0x01,0x21,0x01); | ||
65 | /* left, right and the scrollstrip */ | 65 | /* left, right and the scrollstrip */ |
66 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); | 66 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); |
67 | buttonlight_status = 1; | 67 | buttonlight_status = 1; |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | void _buttonlight_off(void) | 71 | void _buttonlight_off(void) |
72 | { | 72 | { |
73 | if (buttonlight_status) | 73 | if (buttonlight_status) |
74 | { | 74 | { |
75 | /* disable all leds on GPOs for module 0 and 1 */ | 75 | /* disable all leds on GPOs for module 0 and 1 */ |
76 | touchpad_set_parameter(0x00,0x22,0x00); | ||
77 | touchpad_set_parameter(0x01,0x21,0x00); | 76 | touchpad_set_parameter(0x01,0x21,0x00); |
77 | touchpad_set_parameter(0x00,0x22,0x00); | ||
78 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, 0); | 78 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, 0); |
79 | buttonlight_status = 0; | 79 | buttonlight_status = 0; |
80 | } | 80 | } |
@@ -82,8 +82,8 @@ void _buttonlight_off(void) | |||
82 | 82 | ||
83 | void _buttonlight_set_brightness(int brightness) | 83 | void _buttonlight_set_brightness(int brightness) |
84 | { | 84 | { |
85 | touchpad_set_parameter(0x00,0x22,0x15); | ||
86 | touchpad_set_parameter(0x01,0x21,0x01); | 85 | touchpad_set_parameter(0x01,0x21,0x01); |
86 | touchpad_set_parameter(0x00,0x22,0x15); | ||
87 | buttonight_brightness = brightness - 1; | 87 | buttonight_brightness = brightness - 1; |
88 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); | 88 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); |
89 | buttonlight_status = 1; | 89 | buttonlight_status = 1; |