summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/ir-functions.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2007-02-21 01:19:20 +0100
committerHartmut Hackmann <hartmut.hackmann@t-online.de>2007-02-21 01:19:20 +0100
commit9047bbc89eed91f91b8e0e7b3341bf696515889a (patch)
tree3e86ac7b2b4f36903d60357c9f75ff9ec148e5b2 /linux/drivers/media/common/ir-functions.c
parent74e7804095438328ec72e3a870cd57267f034e53 (diff)
downloadmediapointer-dvb-s2-9047bbc89eed91f91b8e0e7b3341bf696515889a.tar.gz
mediapointer-dvb-s2-9047bbc89eed91f91b8e0e7b3341bf696515889a.tar.bz2
ir_rc5_timer_end decoder lockup fix
From: Vincent Penne <ziggy@sashipa.com> ir_rc5_timer_end decoder lockup fix Signed-off-by: Vincent Penne <ziggy@sashipa.com> Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Diffstat (limited to 'linux/drivers/media/common/ir-functions.c')
-rw-r--r--linux/drivers/media/common/ir-functions.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/common/ir-functions.c b/linux/drivers/media/common/ir-functions.c
index 13259912f..5280402e8 100644
--- a/linux/drivers/media/common/ir-functions.c
+++ b/linux/drivers/media/common/ir-functions.c
@@ -318,13 +318,15 @@ void ir_rc5_timer_end(unsigned long data)
tv.tv_usec - ir->base_time.tv_usec;
}
- /* Allow some timmer jitter (RC5 is ~24ms anyway so this is ok) */
+ /* signal we're ready to start a new code */
+ ir->active = 0;
+
+ /* Allow some timer jitter (RC5 is ~24ms anyway so this is ok) */
if (gap < 28000) {
dprintk(1, "ir-common: spurious timer_end\n");
return;
}
- ir->active = 0;
if (ir->last_bit < 20) {
/* ignore spurious codes (caused by light/other remotes) */
dprintk(1, "ir-common: short code: %x\n", ir->code);