aboutsummaryrefslogtreecommitdiff
path: root/src/hid-tmff2.c
AgeCommit message (Collapse)Author
2026-08-09use an unsigned 16-bit type for gainKai Krakow
+ Gain is documented and sent to the hardware as a value in the range 0 to 65535, but the module parameter and sysfs attribute accept wider integer values. Store gain as a u16 and parse sysfs writes with kstrtou16 so out-of-range values are rejected instead of being silently changed. + This constrains only the configured value. Calculations combining gain values still require a wider intermediate to cover the product of two full-range 16-bit values.
2026-01-26Revert "use on_hid_hw_open instead of input_dev->open"Kimplul
This reverts commit c26573d77369c042dc2b9a881a7f2ff88ddc0dd9. + `on_hid_hw_open` is apparently new enough that common distros don't have it yet, so let's wait a few years and try again. The old method works well enough and if not, just set `open_mode=0`.
2026-01-04use on_hid_hw_open instead of input_dev->openKimplul
+ Seems some applications can mess with input_dev->open, still unclear how but on_hid_hw_open seems to be a bit more reliable so use it for now at least
2025-11-23apply initial tspc patchesKimplul
+ Courtesy of @BDave95
2025-11-03minimize critical section in work handlerKimplul
+ Effects handlers were being called in a locked context, which in this case happened to work due to how `hid_hw_request` is implemented. Now, only the selected state is updated and the heavy lifting of making the wheel aware of the requested changes is done after the critical section.
2025-01-26irqsave/irqrestore spinlocksKimplul
2024-11-24fix report_fixup() on linux 6.12MmAaXx500
"HID: change return type of report_fixup() to const" fe73965
2024-07-01Consider the delay to determine the length of the effectMmAaXx500
2024-06-16convert FF_RUMBLE ourselvesKimplul
2024-06-16move effect repeat count to wheelKimplul
+ This avoids a slight stutter when an effect is restarted. I also had a bug in the original code that effectively stopped the playing of some effects, whoops
2024-04-21Add support for TS-XW Raceryassine
2024-04-04fix error ladder in tmff2_wheel_initKimplul
2023-12-04make it more unlikely to fill up USB bufferKimplul
2023-10-08docs: general tidbitsKimplul
2023-10-02src: initial refactoringRaySlash