]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/log
KLGD_FF_plugin.git
9 years agoHIGHLY EXPERIMENTAL: Update effect timing only when it makes sense master
Michal Malý [Mon, 12 Oct 2015 14:57:23 +0000 (16:57 +0200)]
HIGHLY EXPERIMENTAL: Update effect timing only when it makes sense

9 years agoHIGHLY EXPERIMENTAL: Update trip times when the effect is updated
Michal Malý [Sun, 11 Oct 2015 00:59:05 +0000 (02:59 +0200)]
HIGHLY EXPERIMENTAL: Update trip times when the effect is updated

9 years agoReplace BUG()s with WARN()s so that we do not crash the entire kernel
Michal Malý [Fri, 9 Oct 2015 20:55:42 +0000 (22:55 +0200)]
Replace BUG()s with WARN()s so that we do not crash the entire kernel
even when the resulting operation is nonsensical

9 years agoDo not reschedule if the queue is empty
Michal Malý [Sat, 3 Oct 2015 13:06:46 +0000 (15:06 +0200)]
Do not reschedule if the queue is empty

9 years agoDefer processing of all userspace requests to a workqueue.
Michal Malý [Sat, 3 Oct 2015 13:03:07 +0000 (15:03 +0200)]
Defer processing of all userspace requests to a workqueue.

9 years agoSlightly improved debugging output
Michal Malý [Sat, 3 Oct 2015 00:55:26 +0000 (02:55 +0200)]
Slightly improved debugging output

9 years agoEmulate FF_PERIODIC through FF_RUMBLE
Michal Malý [Fri, 2 Oct 2015 22:58:02 +0000 (00:58 +0200)]
Emulate FF_PERIODIC through FF_RUMBLE

9 years ago- Emulate FF_RUMBLE with FF_CONSTANT
Michal Malý [Mon, 28 Sep 2015 22:35:52 +0000 (00:35 +0200)]
- Emulate FF_RUMBLE with FF_CONSTANT
- Improve the decision logic of which effects shoud be treated as
  combinable

9 years agoRemove DIR_TO_DEGREES macro
Michal Malý [Mon, 28 Sep 2015 00:56:40 +0000 (02:56 +0200)]
Remove DIR_TO_DEGREES macro

9 years agoSimplify conversion from direction units to degrees
Michal Malý [Mon, 28 Sep 2015 00:48:59 +0000 (02:48 +0200)]
Simplify conversion from direction units to degrees

9 years agoFix an overflow in constant force scaling in the testing module
Michal Malý [Sun, 27 Sep 2015 23:26:06 +0000 (01:26 +0200)]
Fix an overflow in constant force scaling in the testing module

9 years agoAPI Change!:
Michal Malý [Sun, 27 Sep 2015 23:23:48 +0000 (01:23 +0200)]
API Change!:
Remove the supported_effects field from ffpl_init(), read supported
force feedback capabilities from dev->ffbit directly instead

9 years agoEmulate periodic effects through rumble if the device does not support
Michal Malý [Sun, 27 Sep 2015 23:10:04 +0000 (01:10 +0200)]
Emulate periodic effects through rumble if the device does not support
constant force effect.

9 years agoHandle direction and magnitude of rumble effects in the same fashion as
Michal Malý [Sun, 27 Sep 2015 22:46:35 +0000 (00:46 +0200)]
Handle direction and magnitude of rumble effects in the same fashion as
direction and level of constant force effects.

9 years ago- Defer playback requests to a workqueue to avoid sleeping under
Michal Malý [Sat, 26 Sep 2015 17:27:05 +0000 (19:27 +0200)]
- Defer playback requests to a workqueue to avoid sleeping under
  spinlock
- Fix stack corruption on the testing module

9 years ago- More work on rumble effects combining
Michal Malý [Wed, 23 Sep 2015 16:02:14 +0000 (18:02 +0200)]
- More work on rumble effects combining
- Use "spinning" lock in playback_rq (might not be a good idea!)

9 years agoSplit KLGD-FF plugin and the testing module
Michal Malý [Wed, 23 Sep 2015 08:59:44 +0000 (10:59 +0200)]
Split KLGD-FF plugin and the testing module

9 years agoAdd support for rumble effect combining (EXPERIMENTAL)
Michal Malý [Tue, 22 Sep 2015 22:09:06 +0000 (00:09 +0200)]
Add support for rumble effect combining (EXPERIMENTAL)

9 years agoMerge branch 'master' of https://github.com/MadCatX/LinuxFF-KLGDFF
Michal Malý [Sun, 20 Sep 2015 20:08:32 +0000 (22:08 +0200)]
Merge branch 'master' of https://github.com/MadCatX/LinuxFF-KLGDFF

9 years agoInitial implementation of rumble effects combining
Michal Malý [Sun, 20 Sep 2015 19:41:44 +0000 (21:41 +0200)]
Initial implementation of rumble effects combining

9 years agoRead autocentering support from ffbits
Michal Malý [Wed, 19 Aug 2015 21:48:44 +0000 (23:48 +0200)]
Read autocentering support from ffbits

9 years agoIgnore uncombinable effects in overall combined force calculation
Michal Malý [Wed, 19 Aug 2015 21:28:44 +0000 (23:28 +0200)]
Ignore uncombinable effects in overall combined force calculation

9 years agoFirst steps towards full modularization of KLGD-FF
Michal Malý [Sun, 16 Aug 2015 13:25:51 +0000 (15:25 +0200)]
First steps towards full modularization of KLGD-FF

9 years agoSkip effect that are to be processed later in the processing loop
Michal Malý [Sun, 16 Aug 2015 10:56:18 +0000 (12:56 +0200)]
Skip effect that are to be processed later in the processing loop

9 years ago- Add an option to have KLGD-FF control timing of condition effects
Michal Malý [Sun, 16 Aug 2015 10:19:26 +0000 (12:19 +0200)]
- Add an option to have KLGD-FF control timing of condition effects
- Fix delay handling with memless effects

9 years agoDo not force processing of CONSTANT effects when the memless mode is
Michal Malý [Sun, 16 Aug 2015 09:49:51 +0000 (11:49 +0200)]
Do not force processing of CONSTANT effects when the memless mode is
switcehd on

9 years agoAdapt to updated user data format in klgd_command struct
Michal Malý [Wed, 12 Aug 2015 08:55:05 +0000 (10:55 +0200)]
Adapt to updated user data format in klgd_command struct

9 years agoAllow to pin arbitrary data to the plugin context
Michal Malý [Tue, 11 Aug 2015 23:45:33 +0000 (01:45 +0200)]
Allow to pin arbitrary data to the plugin context

9 years agoAdapt for changed KLGD API
Michal Malý [Tue, 11 Aug 2015 22:47:40 +0000 (00:47 +0200)]
Adapt for changed KLGD API

9 years agoAllow KLGD-FF to operate in a dumbed down mode where it does not process
Michal Malý [Sun, 9 Aug 2015 18:30:16 +0000 (20:30 +0200)]
Allow KLGD-FF to operate in a dumbed down mode where it does not process
combinable effect and/or controls timing of those effects.

9 years agoAdd support for autocentering
Michal Malý [Sun, 2 Aug 2015 21:31:53 +0000 (23:31 +0200)]
Add support for autocentering

9 years agoHandle gain adjustment correctly for ticking effects or effects with an
Michal Malý [Sun, 2 Aug 2015 00:00:19 +0000 (02:00 +0200)]
Handle gain adjustment correctly for ticking effects or effects with an
envelope when the device does not support gain natively

9 years ago- Adapt to KLGD's updated API
Michal Malý [Sat, 1 Aug 2015 23:10:25 +0000 (01:10 +0200)]
- Adapt to KLGD's updated API
- Add actual support for adjustable gain

9 years agoAdd debugging output specific to FF_CONSTANT to the dummy device.
Michal Malý [Tue, 28 Jul 2015 15:21:43 +0000 (17:21 +0200)]
Add debugging output specific to FF_CONSTANT to the dummy device.

9 years agoExport ffpl_lvl_dir_to_x_y().
Michal Malý [Tue, 28 Jul 2015 12:48:23 +0000 (14:48 +0200)]
Export ffpl_lvl_dir_to_x_y().

9 years agoCreate LICENSE.md
MadCatX [Mon, 27 Jul 2015 10:56:56 +0000 (12:56 +0200)]
Create LICENSE.md

9 years agoEnable FF_RAMP in dummy device.
Michal Malý [Mon, 27 Jul 2015 10:04:00 +0000 (12:04 +0200)]
Enable FF_RAMP in dummy device.

9 years ago- Implement FF_RAMP
Michal Malý [Mon, 27 Jul 2015 09:59:23 +0000 (11:59 +0200)]
- Implement FF_RAMP
- Simplify total combined force calculation

9 years agoDo not start a stopped combinable effect when it gets updated.
Michal Malý [Sun, 26 Jul 2015 22:43:04 +0000 (00:43 +0200)]
Do not start a stopped combinable effect when it gets updated.

9 years agoGet envelopes recalculations working.
Michal Malý [Sun, 26 Jul 2015 22:13:12 +0000 (00:13 +0200)]
Get envelopes recalculations working.

9 years agoMASSIVE UPDATE, this could not have been broken down into multiple
Michal Malý [Sun, 26 Jul 2015 14:44:10 +0000 (16:44 +0200)]
MASSIVE UPDATE, this could not have been broken down into multiple
commints.

- Working periodic effects
- Fixed a race condition that lead to wrong scheduling

9 years agoBegin implementation of other types of combinable effects.
Michal Malý [Sat, 25 Jul 2015 11:31:44 +0000 (13:31 +0200)]
Begin implementation of other types of combinable effects.

9 years agoAdd support for effect repeating.
Michal Malý [Thu, 23 Jul 2015 20:15:33 +0000 (22:15 +0200)]
Add support for effect repeating.

9 years agoDownscale from fixed-point calculations correctly.
Michal Malý [Wed, 22 Jul 2015 10:25:30 +0000 (12:25 +0200)]
Downscale from fixed-point calculations correctly.

9 years agoUpdate to kernel-4.2 modified fixed-point arithmetics (breaks build on
Michal Malý [Wed, 22 Jul 2015 09:50:55 +0000 (11:50 +0200)]
Update to kernel-4.2 modified fixed-point arithmetics (breaks build on
pre-4.2 kernels)

9 years agoCheck effect sanity before upload.
Michal Malý [Tue, 21 Jul 2015 18:08:57 +0000 (20:08 +0200)]
Check effect sanity before upload.

9 years agoTrigger an update when a playing effect is updated.
Michal Malý [Tue, 21 Jul 2015 16:33:15 +0000 (18:33 +0200)]
Trigger an update when a playing effect is updated.

9 years agoAdd preliminary support for envelopes.
Michal Malý [Tue, 21 Jul 2015 16:30:42 +0000 (18:30 +0200)]
Add preliminary support for envelopes.

9 years agoFix behavior when effects are being erased or replaced.
Michal Malý [Mon, 20 Jul 2015 20:23:28 +0000 (22:23 +0200)]
Fix behavior when effects are being erased or replaced.

9 years agoFirst step towards effect timing implementation.
Michal Malý [Mon, 20 Jul 2015 10:52:17 +0000 (12:52 +0200)]
First step towards effect timing implementation.

9 years agoHandle transition from STARTED to EMPTY uncombinable effect correctly
Michal Malý [Sat, 11 Jul 2015 09:26:13 +0000 (11:26 +0200)]
Handle transition from STARTED to EMPTY uncombinable effect correctly
when it is being replaced by a combinable effect.

9 years agoHopefully fix state tranisions when combinable and uncombinable effects
Michal Malý [Sat, 11 Jul 2015 01:47:33 +0000 (03:47 +0200)]
Hopefully fix state tranisions when combinable and uncombinable effects
replace each other.

9 years agoHandle transition from STARTED to STOPPED correctly for combinable
Michal Malý [Wed, 8 Jul 2015 22:52:38 +0000 (00:52 +0200)]
Handle transition from STARTED to STOPPED correctly for combinable
effects.

9 years agoUse polynomial of 3rd order to approximate atan.
Michal Malý [Wed, 8 Jul 2015 17:18:16 +0000 (19:18 +0200)]
Use polynomial of 3rd order to approximate atan.

Implementation provided by Elias Vanderstuyft.

9 years agoStop and erase combinable effect only when it is playing.
Michal Malý [Wed, 8 Jul 2015 15:17:01 +0000 (17:17 +0200)]
Stop and erase combinable effect only when it is playing.

9 years agoHandle uploaded but not started combinable effect correctly.
Michal Malý [Mon, 6 Jul 2015 23:49:38 +0000 (01:49 +0200)]
Handle uploaded but not started combinable effect correctly.

9 years agoFirst take at implementation of combinable effects.
Michal Malý [Sun, 21 Jun 2015 00:41:48 +0000 (02:41 +0200)]
First take at implementation of combinable effects.

Lots of stuff changed and moved around. Debugging messages have been
updated to a more standardized form. Only FF_CONSTANT can be combined at
this point and the combining is not configurable.

10 years agoDo not set "eff->state" where "eff->change" should be set
Michal Malý [Wed, 1 Oct 2014 14:04:56 +0000 (16:04 +0200)]
Do not set "eff->state" where "eff->change" should be set

10 years agoAdd state tracking debugging info
Michal Malý [Wed, 1 Oct 2014 14:02:34 +0000 (16:02 +0200)]
Add state tracking debugging info

10 years agoDo not send an unnecessary START commmand after EMP_TO_SRT command
Michal Malý [Wed, 1 Oct 2014 13:35:52 +0000 (15:35 +0200)]
Do not send an unnecessary START commmand after EMP_TO_SRT command

10 years agoPass repeat info to HW-spec driver
Michal Malý [Wed, 1 Oct 2014 13:32:26 +0000 (15:32 +0200)]
Pass repeat info to HW-spec driver

10 years agoSet state change to TO_UPLOAD when effect is to be replaced
Michal Malý [Wed, 1 Oct 2014 13:14:23 +0000 (15:14 +0200)]
Set state change to TO_UPLOAD when effect is to be replaced

10 years agoFix behavior of "HAS_EMP_TO_SRT"
Michal Malý [Wed, 1 Oct 2014 13:02:11 +0000 (15:02 +0200)]
Fix behavior of "HAS_EMP_TO_SRT"

10 years ago- Rework the effect replacing logic
Michal Malý [Tue, 30 Sep 2014 23:03:06 +0000 (01:03 +0200)]
- Rework the effect replacing logic
- Preallocate memory for ff_effect structs

10 years ago- Use correct command for uploading
Michal Malý [Sat, 20 Sep 2014 10:44:42 +0000 (12:44 +0200)]
- Use correct command for uploading
- Remove unused variable

10 years ago- Do not let "active" and "latest" effect point to the same effect
Michal Malý [Sat, 20 Sep 2014 10:33:19 +0000 (12:33 +0200)]
- Do not let "active" and "latest" effect point to the same effect
- Fix effect updating

10 years agoAPI change!
Michal Malý [Fri, 19 Sep 2014 23:45:08 +0000 (01:45 +0200)]
API change!

- Revised logic of effect state transition handling
- Simpler and more flexible plugin<->HW-spec driver interface

10 years agoUpdate to new klgd_register_plugin() API
Michal Malý [Thu, 28 Aug 2014 10:44:02 +0000 (12:44 +0200)]
Update to new klgd_register_plugin() API

10 years agoDon't leak memory in effect manipulation functions.
Michal Malý [Tue, 26 Aug 2014 17:55:54 +0000 (19:55 +0200)]
Don't leak memory in effect manipulation functions.

10 years agoUse the KLGD command struct as intended.
Michal Malý [Mon, 25 Aug 2014 23:31:49 +0000 (01:31 +0200)]
Use the KLGD command struct as intended.

10 years ago- Preliminary gain adjustment support
Michal Malý [Mon, 25 Aug 2014 14:15:33 +0000 (16:15 +0200)]
- Preliminary gain adjustment support
- Expose struct input_dev to command building callbacks

10 years agoFix double variable assignment
Michal Malý [Fri, 15 Aug 2014 21:55:20 +0000 (23:55 +0200)]
Fix double variable assignment

10 years agoFix comparison sign
Michal Malý [Fri, 15 Aug 2014 21:54:08 +0000 (23:54 +0200)]
Fix comparison sign

10 years agoAdd some comments
Michal Malý [Fri, 15 Aug 2014 19:26:34 +0000 (21:26 +0200)]
Add some comments

10 years agoUpdate for the new KLGD command sending logic
Michal Malý [Wed, 13 Aug 2014 15:21:07 +0000 (17:21 +0200)]
Update for the new KLGD command sending logic

10 years agoRemove obsolete test_me.sh script
Michal Malý [Wed, 13 Aug 2014 10:25:22 +0000 (12:25 +0200)]
Remove obsolete test_me.sh script

10 years agoMAJOR CHANGES!
Michal Malý [Wed, 13 Aug 2014 08:48:33 +0000 (10:48 +0200)]
MAJOR CHANGES!
- Create a virtual Force Feedback device to test KLGD and FFB handling
- Add klgd_ff_plugin

10 years agoMake the callback function asynchronous
Michal Malý [Sun, 27 Jul 2014 15:52:33 +0000 (17:52 +0200)]
Make the callback function asynchronous

10 years agoInitial commit
Michal Malý [Sun, 27 Jul 2014 13:55:30 +0000 (15:55 +0200)]
Initial commit