diff options
author | Pieter Van Schaik <vansterpc@gmail.com> | 2009-04-29 02:55:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:58 -0400 |
commit | 3e9a489743ea87663e9ff638cb9b8fe13805a327 (patch) | |
tree | dd611831648ecad25f58709d0e05fde28d2ad99c /drivers/media/video/cx88/cx88-input.c | |
parent | 2ec3475609aa70cd0d9ea218c5d4e915a3caef49 (diff) |
V4L/DVB (11735): Enables the Winfast TV2000 XP Global TV IR
Adds support to the remote control of the Winfast TV2000 XP Global TV
capture card. A case statement was added in order to initialize the
GPIO data structures as well as a case statement for handling the keys
correctly when pressed.
Thanks to Hermann and Mauro for all the help
Signed-off-by: Pieter C van Schaik <vansterpc@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx88/cx88-input.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index bd2baa76203f..8a7c2bc457a6 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -91,6 +91,7 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) | |||
91 | gpio=(gpio & 0x7fd) + (auxgpio & 0xef); | 91 | gpio=(gpio & 0x7fd) + (auxgpio & 0xef); |
92 | break; | 92 | break; |
93 | case CX88_BOARD_WINFAST_DTV1000: | 93 | case CX88_BOARD_WINFAST_DTV1000: |
94 | case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: | ||
94 | gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900); | 95 | gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900); |
95 | auxgpio = gpio; | 96 | auxgpio = gpio; |
96 | break; | 97 | break; |
@@ -231,6 +232,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) | |||
231 | break; | 232 | break; |
232 | case CX88_BOARD_WINFAST2000XP_EXPERT: | 233 | case CX88_BOARD_WINFAST2000XP_EXPERT: |
233 | case CX88_BOARD_WINFAST_DTV1000: | 234 | case CX88_BOARD_WINFAST_DTV1000: |
235 | case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: | ||
234 | ir_codes = ir_codes_winfast; | 236 | ir_codes = ir_codes_winfast; |
235 | ir->gpio_addr = MO_GP0_IO; | 237 | ir->gpio_addr = MO_GP0_IO; |
236 | ir->mask_keycode = 0x8f8; | 238 | ir->mask_keycode = 0x8f8; |