diff options
author | Jonathan McDowell <noodles@earth.li> | 2016-05-14 14:01:26 -0300 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-22 12:23:06 -0400 |
commit | 9bf4930d0540fa4783f06ea321686e9400582438 (patch) | |
tree | 07ab6134aa4d2299c573114c105dc233b7a3ddcb | |
parent | 5d3e4a33748513a81c22c730865fef30810c5229 (diff) | |
download | lwn-9bf4930d0540fa4783f06ea321686e9400582438.tar.gz lwn-9bf4930d0540fa4783f06ea321686e9400582438.zip |
[media] Fix RC5 decoding with Fintek CIR chipset
[ Upstream commit bbdb34c90aeb8b2253eae88029788ebe1d7f2fd4 ]
Fix RC5 decoding with Fintek CIR chipset
Commit e87b540be2dd02552fb9244d50ae8b4e4619a34b tightened up the RC5
decoding by adding a check for trailing silence to ensure a valid RC5
command had been received. Unfortunately the trailer length checked was
10 units and the Fintek CIR device does not want to provide details of a
space longer than 6350us. This meant that RC5 remotes working on a
Fintek setup on 3.16 failed on 3.17 and later. Fix this by shortening
the trailer check to 6 units (allowing for a previous space in the
received remote command).
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=117221
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Cc: stable@vger.kernel.org
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r-- | drivers/media/rc/ir-rc5-decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c index 84fa6e9b59a1..67314c034cdb 100644 --- a/drivers/media/rc/ir-rc5-decoder.c +++ b/drivers/media/rc/ir-rc5-decoder.c @@ -29,7 +29,7 @@ #define RC5_BIT_START (1 * RC5_UNIT) #define RC5_BIT_END (1 * RC5_UNIT) #define RC5X_SPACE (4 * RC5_UNIT) -#define RC5_TRAILER (10 * RC5_UNIT) /* In reality, approx 100 */ +#define RC5_TRAILER (6 * RC5_UNIT) /* In reality, approx 100 */ enum rc5_state { STATE_INACTIVE, |