Commit e7d11ecb authored by Edgar Pisani's avatar Edgar Pisani Committed by Mauro Carvalho Chehab

V4L/DVB (5787): Cx88: add remote control support for Leadtek Winfast DTV1000

Signed-off-by: default avatarEdgar Pisani <episani@onqweb.com.au>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 39cf1e81
...@@ -90,6 +90,9 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) ...@@ -90,6 +90,9 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
auxgpio = cx_read(MO_GP1_IO); auxgpio = cx_read(MO_GP1_IO);
/* Take out the parity part */ /* Take out the parity part */
gpio=(gpio & 0x7fd) + (auxgpio & 0xef); 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 } else
auxgpio = gpio; auxgpio = gpio;
...@@ -231,6 +234,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) ...@@ -231,6 +234,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
ir->polling = 50; /* ms */ ir->polling = 50; /* ms */
break; break;
case CX88_BOARD_WINFAST2000XP_EXPERT: case CX88_BOARD_WINFAST2000XP_EXPERT:
case CX88_BOARD_WINFAST_DTV1000:
ir_codes = ir_codes_winfast; ir_codes = ir_codes_winfast;
ir->gpio_addr = MO_GP0_IO; ir->gpio_addr = MO_GP0_IO;
ir->mask_keycode = 0x8f8; ir->mask_keycode = 0x8f8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment