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.

How to write or migrate external video capture(decoder) driver for DM8168 board?

Other Parts Discussed in Thread: TVP5158, TVP7002, TVP5154

     I got a TI8168 evm board with 4 TVP5158 as a child board attached instead of HD I/O expension card. The mother board operates well that it can run all OMX demos except capture-encode. SDK 503 seems to support only TVP7002,   So I intent to add the driver for it.
    I noted there is link on TI wiki says how to add a external decoder in general, but it says very little about how to make it work with M3 core. From my understanding the output of external decoder is sent to M3 core and from ARM linux side the code stream is not accessable but only the output of M3 core is accessable, So I think there needs to be a way to tell M3 how the external decoder works and at which PINs it have sent message. Could anyone provide some guidence about how to make these work on latest PSP release?  Mostly important questions I want ask are as following:

    1 is it possible to add new external video capture driver for PSP04.00.02.14?

    2 how to configure M3 core to let it accept the streams from decoder TVP5158?

    3 if it could work, could I sent patches for new driver let it me merged to PSP upstream?

                                                                                                                                                                                             Thanks

                                                                                                                                                                      

  • Hi,

    V4L2 capture driver which is having ability to support external decoders is not meant for multi channel use case like Video surveillance. We have RDK (Reference Design Kit) for video surveillance. In that we are planning to add feature to add new decoders instead of TVP5158 and it will be controlled through A8 and not M3. You can contact your local FAE to get details about RDK.

    Regards,

    Hardik Shah

  • Thanks for the information,  is it possible to write a driver for TVP5158 for non multi channel use case? I mean I just want one channel for one TVP5158. What I am confusing is if the M3 program in PSP04.00.02.14 have flexibility to accept stream input other than TVP7002? this matters about choosing of development path. If it is , then I would like to do development on SDK503 because other components it provides seems great.

  • Hi,

    Its possible to add TVP5158 driver to V4L2 capture driver for a non-multichannel use case. You can refer a app note on how toa add new decoder to V4L2 capture driver at

    http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver What all comonenets/use cases you are interested in other than capture, we will be able to guide you fully on selection of framework /SDK based on  that.

    Regards,

    Hardik Shah

  • Hi, Hardik.

    I want to clarify – can I do multichannel capturing with tvp5154 or tvp5158 (for example) with EZSDK? If not, how I can do this? One of my goals is to get scalable system with possibility of changing number of captured channels.

    Thanks.

    Gregory.

  • Hi, hardik

        I got one more question:

        I saw there is a line saying: only one instance would be created for TVP7002 device. Does this mean that one instance would be created for one TVP7002 chip, or one instance for whole board? I mean there should be 2 TVP7002 devices on I/O expansion card, could I get two instance from the two device with two output from TVP7002, or only one even though there are two devices present.

  • Hi,

    Clarifications to your questions. If you have plan of supporting multichannel use case, it is must to move to RDK frame work because multi channel is not supported by currently V4L2 Linux architecture. So in future you will hit a dead end with V4L2 if you want to support multichannel.

      For TVP7002 instance, we have taken driver from open source Linux kernel, so it doesnt support multiple instance of TVP7002 driver to be created. So only 1 instance is supported as of now. We have a plan of supporting all decoders present on IO expansion card. But still we will not support TVP5158 at V4L2 driver because of multichannel use case.

    Regards,

    Hardik Shah

  • Thank u for the detailed answer, I am going to RDK to see if it provided other components that SDK have.

  • Hi,

    RDK is having all features of SDK and its easy to modify and customize. We are also adding feature of supporting your own decoders.

    Regards,

    Hardik Shah