aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-12-04 22:21:18 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-12-04 22:21:18 +0200
commit8ceb052b123a42eeab6513803422c0a6257c01b8 (patch)
tree30563246a28fbb491230a9e4ec1fb2800fcc714c /src
parentca168637fbfb085ebc9ade0c47fa0653dac5d25b (diff)
downloadhid-tmff2-8ceb052b123a42eeab6513803422c0a6257c01b8.tar.gz
hid-tmff2-8ceb052b123a42eeab6513803422c0a6257c01b8.zip
make it more unlikely to fill up USB buffer
Diffstat (limited to 'src')
-rw-r--r--src/hid-tmff2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hid-tmff2.c b/src/hid-tmff2.c
index 013039f..ee4232a 100644
--- a/src/hid-tmff2.c
+++ b/src/hid-tmff2.c
@@ -359,6 +359,9 @@ static void tmff2_work_handler(struct work_struct *w)
max_count = state->count;
spin_unlock(&tmff2->lock);
+ /* wait for each effect update to actually be sent out to avoid
+ * filling up usb output queue */
+ hid_hw_wait(tmff2->hdev);
}
if (max_count && tmff2->allow_scheduling)