mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
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>
This commit is contained in:
parent
2ec3475609
commit
3e9a489743
@ -91,6 +91,7 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
|
||||
gpio=(gpio & 0x7fd) + (auxgpio & 0xef);
|
||||
break;
|
||||
case CX88_BOARD_WINFAST_DTV1000:
|
||||
case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL:
|
||||
gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900);
|
||||
auxgpio = gpio;
|
||||
break;
|
||||
@ -231,6 +232,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
||||
break;
|
||||
case CX88_BOARD_WINFAST2000XP_EXPERT:
|
||||
case CX88_BOARD_WINFAST_DTV1000:
|
||||
case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL:
|
||||
ir_codes = ir_codes_winfast;
|
||||
ir->gpio_addr = MO_GP0_IO;
|
||||
ir->mask_keycode = 0x8f8;
|
||||
|
Loading…
Reference in New Issue
Block a user