This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About V4L2 Driver User Guide

Other Parts Discussed in Thread: TVP5146

Hi,

   I could find V4L2 Display Driver User Guide (SPRUEL3), but where do I find V4L2 Capture Driver User Guide?

  Is CCDC Driver(SPRUEP7) equal with V4L2 Capture Driver?

Thank you

  • I believe the SPRUEP7 document is what you are looking for, the CCDC driver discussed there is V4L2 compliant, and if you are using the V4L2 driver from the DVSDK/PSP on a DM644x or DM35x than you are using the driver they are referring to here.

    http://focus.ti.com/lit/ug/spruep7/spruep7.pdf

  • A further question on how to program based on CCDC driver.

    I've read spruep7, and I try to write a simple code to open CCDC, but I failed. I think I must misunderstand something about coding based on driver.

    Testccdc.c :

    /* spruep7 tells me that CCDC driver uses some include files, so I also include these head files.*/

    #include <davinci_vpfe.h>

    #include <ccdc_davinci.h>

    #include <mt9t001.h>

    #include <tvp5146.h>

    /* I begin my main function*/

    int main()

    {

            int iState;  //Getting return value of some functions to verify whether it is called successfully.

            int fd;

            /*here I want to open CCDC*/

            open("/dev/davinci_aew",O_RDWR);

            iState=close(fd);

            if(iState!=0)

           {   //   Error message.

           }

            return 0;

    }

    And then I decide to compile this program and run it on ARM.(Actually, after finishing this code,I think this program is not related with CCDC driver, but I don't know how to do.)

    target$ > arm_v5t_le-gcc -c Testccdc.c -o Testccdc -I /home/usracc/workdir/lsp/ti-davinci/include/media/

    and then , I get lots of error including "O_RDWR"  is no been defined etc.

    So, I think I must misunderstand how to coding based on CCDC driver. Could you tell me how to revise this program? Or, I make mistakes from the very beginning.

     

    Thanks a lot.

     

  • It appears you may not have all the paths to necessary header files defined.  You should refer to the DVSDK demos for examples of using drivers.

  • Hi LorryAstra

    With your experience.

    I try connect Micron MT9P031 sensor camera through DVEVM.

    I also try to write a simple code to open CCDC ,

    I believe It`s similar your device, what souled I need to do.

    I can`t find the necessary file such as mt9t001.h

    Thanks a lot.

  • Please refer to encodedecode demos in "/home/useAcc/workdir/dvevm_x_xx/demos/".

    In capture thread, it describes how to open CCDC device and other neccesary operations.

    For details about CCDC driver,pls refer to : http://focus.ti.com/lit/ug/spruep7/spruep7.pdf 

     

    I don't know whether the compilor can't find "mt9t001.h". If it is true, pls check your "makefile". I think you miss one or more "include path" in your command line.