aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-ir-raw.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-01-05 13:38:43 +0000
committerSean Young <sean@mess.org>2018-01-05 15:13:15 +0000
commit6dc84d93e557c787ae74a808d93a8493f85a7800 (patch)
treea52f366fdb969d6a8d442cb3781b3cd6fe88bb34 /drivers/media/rc/rc-ir-raw.c
parent3da4f8704df6a4959687b916ecfcbfcf3ab306d1 (diff)
media: rc: do not remove first bit if leader pulse is presentfor-v4.16c
The rc5 protocol does not have a leading pulse or space, but we encode the first bit using a single leading pulse. For other protocols, the leading pulse or space does not represent any bit. So, don't remove the first bit if a leading pulse is present. Cc: Antti Seppälä <a.seppala@gmail.com> Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'drivers/media/rc/rc-ir-raw.c')
-rw-r--r--drivers/media/rc/rc-ir-raw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-ir-raw.c b/drivers/media/rc/rc-ir-raw.c
index 8500b57923c0..18504870b9f0 100644
--- a/drivers/media/rc/rc-ir-raw.c
+++ b/drivers/media/rc/rc-ir-raw.c
@@ -256,7 +256,6 @@ int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
init_ir_raw_event_duration(++(*ev), 0,
timings->leader_space);
}
- i >>= 1;
} else {
/* continue existing signal */
--(*ev);

Privacy Policy