linux/drivers/hid/usbhid
Tomasz Pakuła 9d7b89a102 HID: pidff: Fix needs_playback check
A small bug made it's way here when rewriting code to Linux quality.
Currently, if an effect is not infinite and a program requests it's
playback with the same number of loops, the play command won't be fired
and if an effect is infinite, the spam will continue.

We want every playback update for non-infinite effects and only some
for infinite (detecting when a program requests stop with 0 which will
be different than previous value which is usually 1 or 255).

Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
History 2025-11-18 18:04:28 +01:00
..
hid-core.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hid-pidff.c HID: pidff: Fix needs_playback check 2025-11-18 18:04:28 +01:00
hid-pidff.h HID: pidff: Use direction fix only for conditional effects 2025-08-15 15:58:01 +02:00
hiddev.c USB: make devnode() callback in usb_class_driver take a const * 2022-10-20 12:11:56 +02:00
Kconfig HID: intel-thc: fix CONFIG_HID dependency 2025-02-03 10:56:43 +01:00
Makefile HID: core: move the dynamic quirks handling in core 2017-11-21 11:14:48 +01:00
usbhid.h Revert "HID: usbhid: do not sleep when opening device" 2020-08-18 19:54:04 +02:00
usbkbd.c HID: usbkbd: Fix the bit shift number for LED_KANA 2025-02-03 22:52:47 +01:00
usbmouse.c HID: move from strlcpy with unused retval to strscpy 2022-08-25 11:44:27 +02:00