diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-07 23:36:05 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-07 23:36:05 +0000 |
commit | 1f892d3f2cb393d396625ea1f65228e9531fe957 (patch) | |
tree | 1456f7f77d9368d7c2f6050871a530be814ec4d8 /linux/drivers | |
parent | 6d1c517d8eeca4c29f9e39195c16076ac6469f3f (diff) | |
download | mediapointer-dvb-s2-1f892d3f2cb393d396625ea1f65228e9531fe957.tar.gz mediapointer-dvb-s2-1f892d3f2cb393d396625ea1f65228e9531fe957.tar.bz2 |
Key filter for BeholdTV cards.
From: Dmitri Belimov <d.belimov@gmail.com>
Hi All.
When fast push-pull button of remote control we can received incorrect
key code 0x00. Key information from IR decoder has ID of remote control 2 bytes,
byte of key code and byte of mirror key code.
Correct data
0x86 0x6B 0x00 0xFF
Wrong data
0x86 0x6B 0x00 0x00
This patch added additional test of mirror byte for filtering.
With my best regards, Dmitry.
Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-input.c | 4 |
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]; |