aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <[email protected]>2011-04-01 17:03:39 -0400
committerJiri Kosina <[email protected]>2011-04-06 06:17:45 -0700
commitcc5e0f08ca2a66fc4c6984ccff74fd529e969fac (patch)
tree5a32e35a6e5d8c9158448f7766e250727ad99b67
parent1478d82df822f5d895d810f2b11ec9d373b63bc0 (diff)
HID: hid-magicmouse: Increase evdev buffer size
The evdev buffer isn't big enough when you get many fingers on the device. Bump up the buffer to a reasonable size, matching what other multitouch devices use. Without this change, events may be discarded in the evdev buffer before they are read. Reported-by: Simon Budig <[email protected]> Cc: Henrik Rydberg <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: [email protected] Signed-off-by: Chase Douglas <[email protected]> Acked-by: Henrik Rydberg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
-rw-r--r--drivers/hid/hid-magicmouse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
index 318cc40df92d..418c399d3ef7 100644
--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -418,6 +418,8 @@ static void magicmouse_setup_input(struct input_dev *input, struct hid_device *h
input_set_abs_params(input, ABS_MT_POSITION_Y, -2456,
2565, 4, 0);
}
+
+ input_set_events_per_packet(input, 60);
}
if (report_undeciphered) {