Commit 5554db37 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Vojtech Pavlik

input: Allow Synaptics packet rate to be controlled by the

       psmouse_rate= option.
parent 2dc34924
...@@ -67,6 +67,7 @@ struct psmouse { ...@@ -67,6 +67,7 @@ struct psmouse {
int psmouse_command(struct psmouse *psmouse, unsigned char *param, int command); int psmouse_command(struct psmouse *psmouse, unsigned char *param, int command);
extern int psmouse_smartscroll; extern int psmouse_smartscroll;
extern unsigned int psmouse_rate;
extern unsigned int psmouse_resetafter; extern unsigned int psmouse_resetafter;
#endif /* _PSMOUSE_H */ #endif /* _PSMOUSE_H */
...@@ -214,7 +214,9 @@ static int synaptics_set_mode(struct psmouse *psmouse, int mode) ...@@ -214,7 +214,9 @@ static int synaptics_set_mode(struct psmouse *psmouse, int mode)
{ {
struct synaptics_data *priv = psmouse->private; struct synaptics_data *priv = psmouse->private;
mode |= SYN_BIT_ABSOLUTE_MODE | SYN_BIT_HIGH_RATE; mode |= SYN_BIT_ABSOLUTE_MODE;
if (psmouse_rate >= 80)
mode |= SYN_BIT_HIGH_RATE;
if (SYN_ID_MAJOR(priv->identity) >= 4) if (SYN_ID_MAJOR(priv->identity) >= 4)
mode |= SYN_BIT_DISABLE_GESTURE; mode |= SYN_BIT_DISABLE_GESTURE;
if (SYN_CAP_EXTENDED(priv->capabilities)) if (SYN_CAP_EXTENDED(priv->capabilities))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment