diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-12-04 22:21:18 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-12-04 22:21:18 +0200 |
| commit | 8ceb052b123a42eeab6513803422c0a6257c01b8 (patch) | |
| tree | 30563246a28fbb491230a9e4ec1fb2800fcc714c /src/hid-tmff2.c | |
| parent | ca168637fbfb085ebc9ade0c47fa0653dac5d25b (diff) | |
| download | hid-tmff2-8ceb052b123a42eeab6513803422c0a6257c01b8.tar.gz hid-tmff2-8ceb052b123a42eeab6513803422c0a6257c01b8.zip | |
make it more unlikely to fill up USB buffer
Diffstat (limited to 'src/hid-tmff2.c')
| -rw-r--r-- | src/hid-tmff2.c | 3 |
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) |
