summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-input.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:56:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:56:50 -0300
commit034d0acc1b03bd1d68b729ea719978961628dd2a (patch)
tree37d1972d39ab6a125e483ae293f8f205303c6921 /linux/drivers/media/video/saa7134/saa7134-input.c
parent6d20e235949a06a88588f8fcc0bcddce7e3a2924 (diff)
parent7921b528872c180d255e21140cd54502dda70a7a (diff)
downloadmediapointer-dvb-s2-034d0acc1b03bd1d68b729ea719978961628dd2a.tar.gz
mediapointer-dvb-s2-034d0acc1b03bd1d68b729ea719978961628dd2a.tar.bz2
merge: http://www.linuxtv.org/hg/~dougsland/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-input.c b/linux/drivers/media/video/saa7134/saa7134-input.c
index 153fb3c5b..5bd1f3b8b 100644
--- a/linux/drivers/media/video/saa7134/saa7134-input.c
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c
@@ -288,6 +288,10 @@ static int get_key_beholdm6xx(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
if (data[10] != 0x6b && data[11] != 0x86 && disable_other_ir)
return 0;
+ /* Wrong data decode fix */
+ if (data[9] != (unsigned char)(~data[8]))
+ return 0;
+
*ir_key = data[9];
*ir_raw = data[9];