V4L/DVB (7046): Finalise support for the Pinnacle HD 8000i
authorSteven Toth <stoth@hauppauge.com>
Wed, 16 Jan 2008 00:57:14 +0000 (21:57 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:05:08 +0000 (19:05 -0200)
Correctly set the atatch structures, enable IR, configure the
xc5000 tuner includes.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/xc5000.c
drivers/media/video/cx88/cx88-dvb.c
drivers/media/video/cx88/cx88-input.c
drivers/media/video/cx88/cx88-mpeg.c

index a0705a640bafa6074b08fc2272d591c6b0c35e99..a13027e09cdac59b50196bcca373b7faccf7fae5 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/videodev.h>
+#include <linux/videodev2.h>
 #include <linux/delay.h>
 #include <linux/dvb/frontend.h>
 #include <linux/i2c.h>
index c852efca1592fdbacd5732f79456bfd853ac7176..f7b41eb1bb5a63a689c6e105718f20a262d0a2a0 100644 (file)
@@ -380,6 +380,7 @@ static struct s5h1409_config pinnacle_pctv_hd_800i_config = {
        .qam_if        = 44000,
        .inversion     = S5H1409_INVERSION_OFF,
        .status_mode   = S5H1409_DEMODLOCKING,
+       .mpeg_timing   = S5H1409_MPEGTIMING_NONCONTINOUS_NONINVERTING_CLOCK,
 };
 
 static struct xc5000_config pinnacle_pctv_hd_800i_tuner_config = {
@@ -643,9 +644,6 @@ static int dvb_register(struct cx8802_dev *dev)
                }
                break;
        case CX88_BOARD_PINNACLE_PCTV_HD_800i:
-               /* Parallel mpeg data port and punctured clock mode */
-               dev->ts_gen_cntrl = 0x04;
-
                dev->dvb.frontend = dvb_attach(s5h1409_attach,
                                               &pinnacle_pctv_hd_800i_config,
                                               &dev->core->i2c_adap);
index e52de3968c6351d4fa4cd60874ca767db8e87d2b..f79a1c77414c4d7df186fe44179861bfa9704b81 100644 (file)
@@ -224,6 +224,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
        case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
        case CX88_BOARD_HAUPPAUGE_HVR1100:
        case CX88_BOARD_HAUPPAUGE_HVR3000:
+       case CX88_BOARD_PINNACLE_PCTV_HD_800i:
                ir_codes = ir_codes_hauppauge_new;
                ir_type = IR_TYPE_RC5;
                ir->sampling = 1;
@@ -443,6 +444,7 @@ void cx88_ir_irq(struct cx88_core *core)
        case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
        case CX88_BOARD_HAUPPAUGE_HVR1100:
        case CX88_BOARD_HAUPPAUGE_HVR3000:
+       case CX88_BOARD_PINNACLE_PCTV_HD_800i:
                ircode = ir_decode_biphase(ir->samples, ir->scount, 5, 7);
                ir_dprintk("biphase decoded: %x\n", ircode);
                if ((ircode & 0xfffff000) != 0x3000)
index a21b50357a892c4d994afbe126a4743559c3ba11..0aedbeaf94cd7edfacc59c3271e3166f3dd75cb1 100644 (file)
@@ -118,8 +118,12 @@ static int cx8802_start_dma(struct cx8802_dev    *dev,
                case CX88_BOARD_HAUPPAUGE_HVR1300:
                        break;
                case CX88_BOARD_PINNACLE_PCTV_HD_800i:
-                       /* Enable MPEG parallel port */
-                       cx_write(MO_PINMUX_IO, 0x80);
+                       /* Enable MPEG parallel IO and video signal pins */
+                       cx_write(MO_PINMUX_IO, 0x88);
+                       cx_write(TS_HW_SOP_CNTRL, (0x47 << 16) | (188 << 4));
+                       dev->ts_gen_cntrl = 5;
+                       cx_write(TS_SOP_STAT, 0);
+                       cx_write(TS_VALERR_CNTRL, 0);
                        udelay(100);
                        break;
                default: