forked from atar-axis/xpadneo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] hid-xpadneo: only send rumble output reports when needed
The user-space driver implementation xow only sends rumble reports to the device if the rumble motors are running or the desired magnitude is non-zero. To implement this here, we first allocate a private device structure for maintaining the rumble state. This will be passed in via the `input_ff_create_memless()` hook. Additionally, in the hook we need to protect concurrent access to the structure with a spinlock, tho I'm not sure if the hook may really be called in parallel. Maybe it's better to defer this into a dedicated worker queue as `hid-microsoft.c` does it. This may reduce pressure on the device firmware and stabilize the bluetooth connection. Maybe-related: atar-axis#171 Maybe-related: atar-axis#122
- Loading branch information
Showing
1 changed file
with
68 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters