Packard Bell Vibe 500: touchpad code rework. Improve touch sensivity a bit by setting the MEP parameters in the power_init() function. Implement new function in synaptics-mep driver (touchpad_set_parameter) necessary for it. Move the button lights code to the target backlight file.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24541 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Szymon Dziok 2010-02-06 19:15:43 +00:00
parent 179afba31e
commit 8a36f0bad4
4 changed files with 40 additions and 24 deletions

View file

@ -64,16 +64,16 @@ void _buttonlight_on(void)
{
if (!buttonlight_status)
{
touchpad_set_buttonlights(0x0f, 0);
touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */
buttonlight_status = 1;
}
}
void _buttonlight_off(void)
{
if (buttonlight_status)
{
touchpad_set_buttonlights(0x00, 0);
touchpad_set_parameter(0x22, 0x0000); /* 0x22 - GPO_ENABLE */
buttonlight_status = 0;
}
}
@ -81,7 +81,8 @@ void _buttonlight_off(void)
void _buttonlight_set_brightness(int brightness)
{
/* no brightness control, but lights stays on - for compatibility */
touchpad_set_buttonlights(0x0f, brightness);
(void)brightness;
touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */
buttonlight_status = 1;
}
#endif