mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
9c03f1622a
commit
24750f3e46
2 changed files with 4 additions and 0 deletions
|
|
@ -659,6 +659,9 @@ void hidinput_report_event(struct hid_device *hid, struct hid_report *report)
|
|||
{
|
||||
struct hid_input *hidinput;
|
||||
|
||||
if (hid->quirks & HID_QUIRK_NO_INPUT_SYNC)
|
||||
return;
|
||||
|
||||
list_for_each_entry(hidinput, &hid->inputs, list)
|
||||
input_sync(hidinput->input);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue