From: Mariusz Białończyk Date: Wed, 29 Dec 2010 22:48:43 +0000 (-0300) Subject: [media] ir-nec-decoder: fix repeat key issue X-Git-Tag: v2.6.38-rc1~470^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21d33014108671cc6b02feda088f32bf26ce532d;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed