diff options
author | Mariusz Białończyk <manio@skyboo.net> | 2010-12-29 23:48:43 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-31 16:46:01 +0100 |
commit | 21d33014108671cc6b02feda088f32bf26ce532d (patch) | |
tree | 6cf400b067ca0da5adb45c9ec1611ba417e2e8f7 /mm | |
parent | [media] staging: se401 depends on USB (diff) | |
download | linux-21d33014108671cc6b02feda088f32bf26ce532d.tar.xz linux-21d33014108671cc6b02feda088f32bf26ce532d.zip |
[media] ir-nec-decoder: fix repeat key issue
Fixing the problem with NEC protocol and repeating keys under the following
circumstances. The problem occurs when there is a repeat code without
properly decoded scancode. This leads to repeat the wrong (last decoded)
scancode.
An example from real life:
I am pressing volume down, then several minutes later i am pressing
volume up, but the real scancode is wrongly decoded and only a repeat
event is emitted, so as a result volume is going down while i am holding
volume up button.
The patch fixes above problem using rc_keyup timeout (as pointed by Mauro).
It just prevents key repeats if they appear after rc_keyup.
Signed-off-by: Mariusz Białończyk <manio@skyboo.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions