diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-06-25 13:46:05 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-06-25 13:46:05 -0400 |
commit | 6a644b15afc4df5051f34d722423ffea9bc681eb (patch) | |
tree | 8a4e81d9747d03d35a8c387eaed53b849480001a /linux/drivers/media/video/cx88 | |
parent | 9ac489295f3df0cc0478b6a1fc9f20c9c1862bb0 (diff) | |
download | mediapointer-dvb-s2-6a644b15afc4df5051f34d722423ffea9bc681eb.tar.gz mediapointer-dvb-s2-6a644b15afc4df5051f34d722423ffea9bc681eb.tar.bz2 |
cx88: add remote control support for Leadtek Winfast DTV1000
From: Edgar Pisani <episani@onqweb.com.au>
Signed-off-by: Edgar Pisani <episani@onqweb.com.au>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx88')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-input.c b/linux/drivers/media/video/cx88/cx88-input.c index 9ae004123..b96dbbfb4 100644 --- a/linux/drivers/media/video/cx88/cx88-input.c +++ b/linux/drivers/media/video/cx88/cx88-input.c @@ -91,6 +91,9 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) auxgpio = cx_read(MO_GP1_IO); /* Take out the parity part */ gpio=(gpio & 0x7fd) + (auxgpio & 0xef); + } else if (core->board == CX88_BOARD_WINFAST_DTV1000) { + gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900); + auxgpio = gpio; } else auxgpio = gpio; @@ -244,6 +247,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) ir->polling = 50; /* ms */ break; case CX88_BOARD_WINFAST2000XP_EXPERT: + case CX88_BOARD_WINFAST_DTV1000: ir_codes = ir_codes_winfast; ir->gpio_addr = MO_GP0_IO; ir->mask_keycode = 0x8f8; |