aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authorManuel Capinha <mcapinha@gmail.com>2005-06-24 01:04:53 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 03:06:38 -0400
commit239df2e2b0e1f4f69fdf76fb67e865824029e8ab (patch)
tree57088068f1f464c9d1c71f9a4e9dccfcd5106c66 /drivers/media/video/cx88
parentd81ef559daf2a8afa9292035d58b00e7cb23dd1a (diff)
[PATCH] v4l: add support for PixelView Ultra Pro
The following patch adds support for the PixelView Ultra Pro video capture card in v4l. - It removes the remote control key definitions from ir-kbd-gpio.c and moves them to ir-common.c so that they can be shared between bt878 and cx88 based cards. - The patch also moves the FUSIONHDTV_3_GOLD_Q card from number 27 to 28 to regain compatibility with the V4L cvs. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-cards.c21
-rw-r--r--drivers/media/video/cx88/cx88-input.c7
-rw-r--r--drivers/media/video/cx88/cx88.h3
3 files changed, 30 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c
index 98e40026aa4d..1c036cc36fe1 100644
--- a/drivers/media/video/cx88/cx88-cards.c
+++ b/drivers/media/video/cx88/cx88-cards.c
@@ -628,6 +628,27 @@ struct cx88_board cx88_boards[] = {
628 .gpio1 = 0x0000e07f, 628 .gpio1 = 0x0000e07f,
629 }} 629 }}
630 }, 630 },
631 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
632 .name = "PixelView PlayTV Ultra Pro (Stereo)",
633 .tuner_type = 38,
634 .input = {{
635 .type = CX88_VMUX_TELEVISION,
636 .vmux = 0,
637 .gpio0 = 0xbf61, // internal decoder
638 },{
639 .type = CX88_VMUX_COMPOSITE1,
640 .vmux = 1,
641 .gpio0 = 0xbf63,
642 },{
643 .type = CX88_VMUX_SVIDEO,
644 .vmux = 2,
645 .gpio0 = 0xbf63,
646 }},
647 .radio = {
648 .type = CX88_RADIO,
649 .gpio0 = 0xbf60,
650 },
651 },
631}; 652};
632const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards); 653const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
633 654
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index af6ad8cdbdb7..fbf21dbe2511 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -261,6 +261,13 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
261 ir->mask_keydown = 0x02; 261 ir->mask_keydown = 0x02;
262 ir->polling = 5; // ms 262 ir->polling = 5; // ms
263 break; 263 break;
264 case CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO:
265 ir_codes = ir_codes_pixelview;
266 ir->gpio_addr = MO_GP1_IO;
267 ir->mask_keycode = 0x1f;
268 ir->mask_keyup = 0x80;
269 ir->polling = 1; // ms
270 break;
264 } 271 }
265 if (NULL == ir_codes) { 272 if (NULL == ir_codes) {
266 kfree(ir); 273 kfree(ir);
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h
index 0ea24b72d927..7fca1f500c56 100644
--- a/drivers/media/video/cx88/cx88.h
+++ b/drivers/media/video/cx88/cx88.h
@@ -162,7 +162,8 @@ extern struct sram_channel cx88_sram_channels[];
162#define CX88_BOARD_HAUPPAUGE_ROSLYN 24 162#define CX88_BOARD_HAUPPAUGE_ROSLYN 24
163#define CX88_BOARD_DIGITALLOGIC_MEC 25 163#define CX88_BOARD_DIGITALLOGIC_MEC 25
164#define CX88_BOARD_IODATA_GVBCTV7E 26 164#define CX88_BOARD_IODATA_GVBCTV7E 26
165#define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q 27 165#define CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO 27
166#define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q 28
166 167
167enum cx88_itype { 168enum cx88_itype {
168 CX88_VMUX_COMPOSITE1 = 1, 169 CX88_VMUX_COMPOSITE1 = 1,