Skip to content

Commit

Permalink
staging: speakup: fix speakup-r regression
Browse files Browse the repository at this point in the history
commit b1d562a upstream.

Here is a patch to make speakup-r work again.

It broke in 3.6 due to commit 4369c64
"Input: Send events one packet at a time)

The problem was that the fakekey.c routine to fake a down arrow no
longer functioned properly and putting the input_sync fixed it.

Fixes: 4369c64
Acked-by: Samuel Thibault <[email protected]>
Signed-off-by: John Covici <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
covici authored and gregkh committed Oct 22, 2015
1 parent 383f72c commit a0533fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/speakup/fakekey.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void speakup_fake_down_arrow(void)
__this_cpu_write(reporting_keystroke, true);
input_report_key(virt_keyboard, KEY_DOWN, PRESSED);
input_report_key(virt_keyboard, KEY_DOWN, RELEASED);
input_sync(virt_keyboard);
__this_cpu_write(reporting_keystroke, false);

/* reenable preemption */
Expand Down

0 comments on commit a0533fb

Please sign in to comment.