diff options
author | Henrik Rydberg <rydberg@thabit.(none)> | 2010-08-24 04:54:44 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-09-21 10:11:44 -0400 |
commit | 24750f3e469bef81a96c0036cd4700df5fb48925 (patch) | |
tree | 83277d19622844e56c97c498b5c305cd77d93d39 /drivers/hid | |
parent | 9c03f1622af051004416dd3e24d8a0fa31e34178 (diff) |
HID: Add a hid quirk for input sync override
As of lately, HID devices which send per-frame data split over several
HID reports have started to emerge. This patch adds a quirk which
allows the HID driver to take over the input layer synchronization,
and hence the control of the frame boundary.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 6c03dcc5760a..b186f6d0feba 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -659,6 +659,9 @@ void hidinput_report_event(struct hid_device *hid, struct hid_report *report) | |||
659 | { | 659 | { |
660 | struct hid_input *hidinput; | 660 | struct hid_input *hidinput; |
661 | 661 | ||
662 | if (hid->quirks & HID_QUIRK_NO_INPUT_SYNC) | ||
663 | return; | ||
664 | |||
662 | list_for_each_entry(hidinput, &hid->inputs, list) | 665 | list_for_each_entry(hidinput, &hid->inputs, list) |
663 | input_sync(hidinput->input); | 666 | input_sync(hidinput->input); |
664 | } | 667 | } |