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

Commit c3c38fbd authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: ati_remote - add missing input_sync()



When emulating button toggle drivers need to send input_sync()
between 'down' and 'up' events, otherwise some users might miss
keypress because device's state is only considered finalized
after EV_SYN/SYN_REPORT is received.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c605b679
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -489,6 +489,7 @@ static void ati_remote_input_report(struct urb *urb, struct pt_regs *regs)
		input_regs(dev, regs);
		input_regs(dev, regs);
		input_event(dev, ati_remote_tbl[index].type,
		input_event(dev, ati_remote_tbl[index].type,
			ati_remote_tbl[index].code, 1);
			ati_remote_tbl[index].code, 1);
		input_sync(dev);
		input_event(dev, ati_remote_tbl[index].type,
		input_event(dev, ati_remote_tbl[index].type,
			ati_remote_tbl[index].code, 0);
			ati_remote_tbl[index].code, 0);
		input_sync(dev);
		input_sync(dev);