aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/rc/ir-nec-decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/ir-nec-decoder.c b/drivers/media/rc/ir-nec-decoder.c
index 3c9431a9f62d..2ca509e6e16b 100644
--- a/drivers/media/rc/ir-nec-decoder.c
+++ b/drivers/media/rc/ir-nec-decoder.c
@@ -70,7 +70,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
70 if (!ev.pulse) 70 if (!ev.pulse)
71 break; 71 break;
72 72
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT / 2)) { 73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) {
74 data->is_nec_x = false; 74 data->is_nec_x = false;
75 data->necx_repeat = false; 75 data->necx_repeat = false;
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) 76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2))
@@ -86,7 +86,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
86 if (ev.pulse) 86 if (ev.pulse)
87 break; 87 break;
88 88
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT / 2)) { 89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) {
90 data->state = STATE_BIT_PULSE; 90 data->state = STATE_BIT_PULSE;
91 return 0; 91 return 0;
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { 92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) {