]> git.baikalelectronics.ru Git - kernel.git/commit
[media] Fix RC5 decoding with Fintek CIR chipset
authorJonathan McDowell <noodles@earth.li>
Sat, 14 May 2016 17:01:26 +0000 (14:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 9 Jul 2016 14:47:28 +0000 (11:47 -0300)
commit9358e7234997e2ab1e5368ee6e69b897d36f7381
treef7cad9804a8e1cad6944802221c6065df0382a62
parent7d1317cb3e8f579b9b37c8cf7637c2f7212d3780
[media] Fix RC5 decoding with Fintek CIR chipset

Fix RC5 decoding with Fintek CIR chipset

Commit 41438443f90589cb3d03af43e667e12a9237754a 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>
drivers/media/rc/ir-rc5-decoder.c