mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
hdd6330: change the synaptics-mep driver in a few places according to the touchpad behavior.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27273 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78c9a19e51
commit
63c795a349
4 changed files with 18 additions and 10 deletions
|
|
@ -64,7 +64,7 @@ void _buttonlight_on(void)
|
|||
{
|
||||
if (!buttonlight_status)
|
||||
{
|
||||
touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */
|
||||
touchpad_set_parameter(0, 0x22, 0x000f); /* 0x22 - GPO_ENABLE */
|
||||
buttonlight_status = 1;
|
||||
}
|
||||
}
|
||||
|
|
@ -73,7 +73,7 @@ void _buttonlight_off(void)
|
|||
{
|
||||
if (buttonlight_status)
|
||||
{
|
||||
touchpad_set_parameter(0x22, 0x0000); /* 0x22 - GPO_ENABLE */
|
||||
touchpad_set_parameter(0, 0x22, 0x0000); /* 0x22 - GPO_ENABLE */
|
||||
buttonlight_status = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@ void _buttonlight_set_brightness(int brightness)
|
|||
{
|
||||
/* no brightness control, but lights stays on - for compatibility */
|
||||
(void)brightness;
|
||||
touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */
|
||||
touchpad_set_parameter(0, 0x22, 0x000f); /* 0x22 - GPO_ENABLE */
|
||||
buttonlight_status = 1;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue