Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25ae0831 authored by Jari Vanhala's avatar Jari Vanhala Committed by Dmitry Torokhov
Browse files

Input: ff-memless - start playing FF effects immediately



Instead of waiting for the next timer tick to start playing an effect
do it immediately. This mostly helps systems using low HZ setting.

Signed-off-by: default avatarJari Vanhala <ext-jari.vanhala@nokia.com>
Acked-by: default avatarAnssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent ea486e68
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -411,8 +411,6 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
				 msecs_to_jiffies(state->effect->replay.length);
		state->adj_at = state->play_at;

		ml_schedule_timer(ml);

	} else {
		debug("initiated stop");

@@ -420,9 +418,9 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
			__set_bit(FF_EFFECT_ABORTING, &state->flags);
		else
			__clear_bit(FF_EFFECT_STARTED, &state->flags);
	}

	ml_play_effects(ml);
	}

	return 0;
}