[PATCH v3] Enabling of the Winfast TV2000 XP Global TV capture card remote control
This patch is for supporting 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 diff -r ac3865b16886 linux/drivers/media/video/cx88/cx88-input.c --- a/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 08:47:22 2009 -0300 +++ b/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 15:25:19 2009 +0200 @@ -92,6 +92,7 @@ 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; @@ -243,6 +244,7 @@ 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;
[PATCH v2] Enabling of the Winfast TV2000 XP Global TV capture card remote control
This patch is for supporting 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 for all his help Regards Pieter van Schaik diff -r ac3865b16886 linux/drivers/media/video/cx88/cx88-input.c --- a/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 08:47:22 2009 -0300 +++ b/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 15:25:19 2009 +0200 @@ -92,6 +92,7 @@ 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; @@ -243,6 +244,7 @@ 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;
[PATCH] Enabling of the Winfast TV2000 XP Global TV capture card remote control
The Winfast TV2000 XP Global video capture card IR remote keys were not initialized and handled in cx88-input.c; added two corresponding case statements, where this card's remote works exactly the same as the DTV1000's. Signed-off-by: Pieter C van Schaik --- --- linux-2.6.29/drivers/media/video/cx88/cx88-input.c.orig 2009-04-01 12:38:34.0 +0200 +++ linux-2.6.29/drivers/media/video/cx88/cx88-input.c 2009-04-01 12:39:07.0 +0200 @@ -92,6 +92,7 @@ static void cx88_ir_handle_key(struct cx 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; @@ -239,6 +240,7 @@ int cx88_ir_init(struct cx88_core *core, 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; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] Enabling of the Winfast TV2000 XP Global TV capture card remote control
From: Pieter Van Schaik Date: Mon, Apr 6, 2009 at 1:52 PM Subject: [PATCH] Enabling of the Winfast TV2000 XP Global TV capture card remote control To: linux-media@vger.kernel.org From: Pieter C van Schaik The Winfast TV2000 XP Global video capture card IR remote keys were not initialized and handled in cx88-input.c; added two corresponding case statements, where this card's remote works exactly the same as the DTV1000's. Signed-off-by: Pieter C van Schaik --- --- linux-2.6.29/drivers/media/video/cx88/cx88-input.c.orig 2009-04-01 12:38:34.0 +0200 +++ linux-2.6.29/drivers/media/video/cx88/cx88-input.c 2009-04-01 12:39:07.0 +0200 @@ -92,6 +92,7 @@ static void cx88_ir_handle_key(struct cx 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; @@ -239,6 +240,7 @@ int cx88_ir_init(struct cx88_core *core, 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; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] Enabling of the Winfast TV2000 XP Global TV capture card remote control
From: Pieter C van Schaik The Winfast TV2000 XP Global video capture card IR remote keys were not initialized and handled in cx88-input.c; added two corresponding case statements, where this card's remote works exactly the same as the DTV1000's. Signed-off-by: Pieter C van Schaik --- --- linux-2.6.29/drivers/media/video/cx88/cx88-input.c.orig 2009-04-01 12:38:34.0 +0200 +++ linux-2.6.29/drivers/media/video/cx88/cx88-input.c 2009-04-01 12:39:07.0 +0200 @@ -92,6 +92,7 @@ static void cx88_ir_handle_key(struct cx 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; @@ -239,6 +240,7 @@ int cx88_ir_init(struct cx88_core *core, 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; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html