DM365 Leopard Video Output without Camera Interface

From RidgeRun Developer Connection
Jump to: navigation, search

Using video output without Camera Interface in LeopardBoardDM365sdkEVAL2011Q2

Video Processor Front End (vpfe) clocks are disabled when camera interface is not present at the LeopardBoard, in order to use video output without a camera module or other video interface, vpfe_disable_clock function needs to be modified:

Open vpfe_capture.c located at:

LeopardBoardDM365sdkEVAL2011Q2/kernel/linux-2.6.32.17-psp03.01.01.39/drivers/media/video/davinci/vpfe_capture.c

Search for vpfe_disable_clock function inside vpfe_capture.c

static void vpfe_disable_clock(struct vpfe_device *vpfe_dev)
{
        struct vpfe_config *vpfe_cfg = vpfe_dev->cfg;
        int i;

        for (i = 0; i < vpfe_cfg->num_clocks; i++) {
                clk_disable(vpfe_dev->clks[i]);
                clk_put(vpfe_dev->clks[i]);
        }
        kfree(vpfe_dev->clks);
        v4l2_info(vpfe_dev->pdev->driver, "vpfe capture clocks disabled\n");
}

Comment code inside vpfe_disable_clock

static void vpfe_disable_clock(struct vpfe_device *vpfe_dev)
{
/*      struct vpfe_config *vpfe_cfg = vpfe_dev->cfg;
        int i;

        for (i = 0; i < vpfe_cfg->num_clocks; i++) {
                clk_disable(vpfe_dev->clks[i]);
                clk_put(vpfe_dev->clks[i]);
        }
        kfree(vpfe_dev->clks);
        v4l2_info(vpfe_dev->pdev->driver, "vpfe capture clocks disabled\n");*/
}

Remove vpfe_capture.o

rm vpfe_capture.o

Recompile and install

make 
make install