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.

McFW with TVP7002

Other Parts Discussed in Thread: TVP7002, TVP5158

Hi, all

 

My board is DM814x, and I want to use tvp7002 as my video input.

Does McFW(Vcap) support tvp7002??

If not, would you have any steps to implement ??

 

P.S. TVP7002.ko is loaded.

 

Thanks.

  • Hello,

    What you are using DVR RDK?

    Best regards,

    Margarita

  • Hi, Margarita

     

    I'm using DVRRDK_03.00.

     

    Thanks.

  • McFW does not support TVP7002 but the Video Decoder configuration is external to McFW. It appears you have already written the driver to control tvp7002. Once you have validated your driver to be working, you have to set the correct parameters for the Capture link create params.

    Pls refer DVRRDK\DVRRDK_03.00.01.xx\DVRRDK_03.00.01.03_Docs\DVRRDK_03.00.01.03_Docs\UserGuides\DVR_RDK_ApiGuide.CHM

    Modules->Link API -> Capture Link API.CaptureLink_CreateParams structure.

    Pls let us know the issue you are facing and your capture link create params to debug the issue further.

  • Hi,

    I didn't get it clearly. You mean that I can only use Link API to connect the TVP7002 and don't have to write TVP7002 API such as TVP5158??

    Would you mind to describe the way to implement??

     

    Thanks

  • Video Decoders like TVP5158/TVP7002 can be programmed from A8 by application as you have already done. To start capturing frames, the 814x VIP has to be configured with information such as whether video decoder will be sending EMBEDDED_SYNC or DISCRETE_SYNC , whether channels are line multiplexed or pixel muxed. This info is passed to VIP via the capture link create params. Which TVP 5158 APIs are you refering to ?

  • Hi,

    I'm refering to DVRRDK_03.00.01.xx\dvr_rdk\mcfw\src_linux\device\tvp5158

    In this directory, it performs the low level i2c ctrl and api implement.(two files)

    Thanks.

  • It is not mandatory to implement the APIs under DVRRDK_03.00.01.xx\dvr_rdk\mcfw\src_linux\device\tvp5158 for tvp7002.

    The following MCFW APIs invoke TVP5158 device APIs:

    Int32 Vcap_detectVideo();

    Int32 Vcap_getVideoSourceStatus(VCAP_VIDEO_SOURCE_STATUS_S *pStatus);

    Int32 Vcap_setVideoSourceStatus(VCAP_VIDEO_SOURCE_STATUS_S *pStatus);

    Int32 Vcap_configVideoDecoder(VCAP_VIDDEC_PARAMS_S * modeParams, UInt32 numDevices);

    Int32 Vcap_deleteVideoDecoder();

    Int32 Vcap_setColor(Int32 contrast, Int32 brightness, Int32 saturation, Int32 hue, Int32 chId);

    Bool Vcap_isPalMode();

    If your application invokes any of above APIs you will have to modify the above functions to use the TVP7002 APIs you have implemented to achieve the required functionality.

    If your application does not invoke any of above APIs you dont have to modify above functions.

    To get capture functional you dont have to implement any of above APIs.You just need to configure capture link with the correct VIP create params.