On Fri, 2008-05-02 at 16:51 +0100, Brian Hope wrote:
> I have upgraded to Ubuntu Hardy Heron and downloaded the latest drive
> (thanks for giving me the new location Sander). If I follow the steps
> on the wiki I get errors at the make menuconfig stage, but if I just
> make/make install/make unload/modprobe cx18 then all appears to go Ok
> but I just get the following in dmesg:
> 
> [ 5654.047113] Linux video capture interface: v2.00
> [ 5654.064193] cx18:  Start initialization, version 1.0.0
> [ 5654.064264] cx18-0: Initializing card #0
> [ 5654.064269] cx18-0: Autodetected Yuan MPC718 card
> [ 5654.064505] cx18-0: cx23418 revision 01010000 (B)
> [ 5654.213446] cx18-0: Not yet supported!
> [ 5654.214014] cx18-0: Error -19 on initialization
> [ 5654.214043] cx18-1: Initializing card #1
> [ 5654.214047] cx18-1: Autodetected Yuan MPC718 card
> [ 5654.214183] cx18-1: cx23418 revision 01010000 (B)
> [ 5654.375028] cx18-1: Not yet supported!
> [ 5654.375584] cx18-1: Error -19 on initialization
> [ 5654.375611] cx18:  End initialization
> 
> 
> How do I force the module to initialise so that I can continue
> testing? Previously Hans added the autodetection and suggested I tried
> various video inputs, but I have been unable to start testing as I
> have been away on holiday.

I'm looking at this based on Hans initial work and what the *.inf file
for Vista has in it.

Right now, until the cards entry for the MPC718 in cx18-cards.c has a
capability other than "0",  the driver will not be usable.

I've started fixing up the cards entry.  Here's what I've got so far:

-------------
static const struct cx18_card cx18_card_mpc718 = {
        .type = CX18_CARD_YUAN_MPC718,
        .name = "Yuan MPC718",
        .comment = "Experimental support!\n",
        .v4l2_capabilities = CX18_CAP_ENCODER,
        .hw_audio_ctrl = CX18_HW_CX23418,
        .hw_all = CX18_HW_TUNER,
        .video_inputs = {
                { CX18_CARD_INPUT_VID_TUNER,  0, CX23418_COMPOSITE2 },
                { CX18_CARD_INPUT_SVIDEO1,    1,
                  CX23418_SVIDEO_LUMA3 | CX23418_SVIDEO_CHROMA4},
                { CX18_CARD_INPUT_COMPOSITE1, 1, CX23418_COMPOSITE1 },
#if 0
                /* The Windows *.inf file says S-Video 2 uses 7 & 8 */
                /* This combination should be illegal, I think */
                { CX18_CARD_INPUT_SVIDEO2,    2, 
                  CX23418_SVIDEO_LUMA7 | CX23418_SVIDEO_CHROMA8},
#endif
                { CX18_CARD_INPUT_COMPOSITE2, 2, CX23418_COMPOSITE6 },
        },
        .audio_inputs = {
                { CX18_CARD_INPUT_AUD_TUNER, CX23418_AUDIO5, 0 },
                { CX18_CARD_INPUT_LINE_IN1, CX23418_AUDIO_SERIAL, 0 },
                /* Guess */
                { CX18_CARD_INPUT_LINE_IN2, CX23418_AUDIO_SERIAL, 0 },
        },
        .radio_input = { CX18_CARD_INPUT_AUD_TUNER, CX23418_AUDIO_SERIAL, 0 },
        .tuners = {
                /* XC3028 tuner */
                { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 },
        },
        /* tuner reset */
        .gpio_init = { .direction = 0x1000, .initial_value = 0x1000 },
        /*
         * TODO: From the Windows *.inf file it looks like gpio is also used
         * for audio routing/control.  Need to port GPIO audio from ivtv
         */
        .ddr = {
                /* Probably Samsung K4D263238G-VC33 memory */
                .chip_config = 0x003,
                .refresh = 0x30c,
                .timing1 = 0x23230b73,
                .timing2 = 0x08,
                .tune_lane = 0,
                .initial_emrs = 2,
        },
        .pci_list = cx18_pci_mpc718,
        .i2c = &cx18_i2c_std,
};

---------

The MPC718's video and audio input look like they're routed to the
cx23418's internal cx25843 core, the same way the MPC622's video and
audio inputs are routed to the external cx25843 by the ivtv driver.

Major tasks to do before the cx18 driver will be useful for the Yuan
MPC718 for analog video::

1. Get the cx18 driver to load xc3028 tuner firmware and setup a xc3028
tuner.  (Maybe I can learn from what the cx88 driver does, especially
since the MPC788 may have some things in common with the MPC718.)

2. Figure out/guess/verify the proper GPIO settings for
reseting/controlling the tuner.

3. Figure out/guess the GPIO settings for routing/enabling audio and
port the gpio audio stuff over from ivtv.

4. Other stuff that's bound to pop up.

What you have the best shot of working right now is analog encoding of
Composite 1, Composite 2, or S-Video 1 without sound.

If you feel compelled to test something that you know is not going to be
fully operational, the modified cards entry I gave above, may let you
test Composite 1 or 2 or S-Video 1 without sound.


> Please reply to [EMAIL PROTECTED]

Regards,
Andy


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to