Skip to content

Commit

Permalink
HID: hid-magicmouse: Increase evdev buffer size
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Chase Douglas authored and Jiri Kosina committed Apr 6, 2011
1 parent 1478d82 commit cc5e0f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hid/hid-magicmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cc5e0f0

Please sign in to comment.