[media] rc-core: fix toggle handling in the rc6 decoder
authorDavid Härdeman <david@hardeman.nu>
Thu, 20 Nov 2014 21:09:54 +0000 (18:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Nov 2014 17:57:47 +0000 (15:57 -0200)
commitd2a74581390d8e5ed09b12c9d4736847d918dfa6
tree8463ce0cb32972a7de8acd3ac7785a9f47edb861
parent009a5410337224896e300a570e185308836a2f14
[media] rc-core: fix toggle handling in the rc6 decoder

The toggle bit shouldn't be cleared before the toggle value is calculated.

This should probably go into 3.17.x as well.

Fixes: 120703f9eb32 ([media] rc-core: document the protocol type)

Cc: stable@vger.kernel.org # For v3.17
Tested-by: Stephan Raue <mailinglists@openelec.tv>
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/ir-rc6-decoder.c