mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Fix RC5 decoding with Fintek CIR chipset
commitbbdb34c90aupstream. Fix RC5 decoding with Fintek CIR chipset Commite87b540be2tightened 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> Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
33201bcbc3
commit
8dbd7a3684
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user