About v4l2 capture drvier in dm816x-evm5_03_01_15

Board:EVM8168
EZSDK:
hdvpss v4l2 frimware name: dm816x_hdvpss_v4l2.xem3
App:saLoopBack

I have a question about v4l2 capture drvier. I try to work tvp5147 on videoin1 , but not work.

Questions
1. Video standard of tvp5147 support NTSC/PAL. 1080P,1080I and 720P is not support.
   The capture driver support NTSC/PAL input ?

2. Tvp7002 was work on videoin0. Video output format is 20-bit 4:2:2 outputs with Embedded Syncs.
   Did the capture drvier support Separate Syncs ( Embedded Sync disabled ) ?
   Beause if tvp5147 is not work, I try to work SiI1161 device.

I refered DM81xx_AM38xx_Video_Capture_Driver_User_Guide.
The following support list is V4L2 capture driver supports following features.

Supports VIP0 instance of the VPSS.
Supports TVP7002 standard Linux sub device driver.
Supports YUV422 interleaved, YUV422 semiplanar, YUV420 semiplanar and RGB888 color formats to memory.
Supports scaling and cropping for YUV formats (downscaling only)
Supports 1080P60, 1080P30, 1080I60 and 720P60 input resolutions.
Supports user pointer buffer mechanism of the V4L2 driver interface.

 

19 Replies

  • In reply to Peter Millerchip:

    We ended up going with a company that manufactures the 8168 with PAL and NTSC input via tvp5150 decoders. http://z3technology.com/  Their support and the tiny size of the board is worth the price. They even provide a nice webui.

  • In reply to Masaki Hayakawa:

    Masaki Hayakawa

    4.I executed saLoopBack
      I converted /dev/video0 to /dev/video5 for videoin1.
      I added S_INPUT, S_STD and QUERYSTD of ioctl for NTSC output.

     # echo 0 > /sys/devices/platform/vpss/graphics0/enabled
     # ./saLoopBack

    Hello,

    I'm trying to get a TVP5150 working on a custom DM8148 board and looks like I need to add support for at least QUERYSTD to get things going. Could you please share your modifications to the saLoopBack application and any related changes you made to the TVP514x driver so that I can mirror those for the TVP5150 driver as well..

    Thanks

    ~Ashwin

  • In reply to Ashwin Bihari:

    Hi,

    There is no change required in the sample application as it uses V4L2 interface. What you need to is to create TVP5150 driver (if already not available) based on sub-dev model and attach it to 8148 master driver..

    Regards,

    Brijesh Jadav

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • In reply to Brijesh Jadav:

    Brijesh Jadav

    Hi,

    There is no change required in the sample application as it uses V4L2 interface. What you need to is to create TVP5150 driver (if already not available) based on sub-dev model and attach it to 8148 master driver..

    Regards,

    Brijesh Jadav

    Hi Brijesh,

    On the contrary, the saLoopback and saLoopbackFbdev applications assume you are talking to a HD decoder that supports the QUERY_DV_PRESET IOCTL to set things up. The SD decoder (like the TVP5147 and TVP5151) don't have this IOCTL but rather support the QUERYSTD IOCTL. There is a driver for the TVP5150 that kinda works. However, without adding support for QUERYSTD to both the application and the driver, things don't get set up into a default state like the rest of the V4L2 stack expects it to be.

    There are patches in the works for the TVP5150 driver to add support for Media Controller and the remaining QUERY controls. I'm in the process of backporting those patches to make them happy in the 2.6.37 Kernel that's part of the EZSDK.

    Your suggestion might work for the TVP5147 that's on the DM8148 EVM because some of this support has been added to that driver.

    Regards

    ~Ashwin

  • In reply to Ashwin Bihari:

    Hi,

    Application needs to call querystd, getStd and setStd instead of preset. Preset is used for HD and digital inputs while std is used for standard TV formats like NTSC and PAL.

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • In reply to Ashwin Bihari:

    hi Ashwin,

    Yes, you are correct, we need to change applicaiton since this app is for HD resolution.

    Thanks,

    Brijesh Jadav

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • In reply to Brijesh Jadav:

    Hi,

       In the DM8168-EVM we got the TVP5147 working with V4L2, you can find more info here:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/326172/1170437.aspx#1170437

    -David

    _______________________________________________________
    RidgeRun - https://www.ridgerun.com/www/index.php/contact-us.html

  • In reply to David Soto - RidgeRun:

    What are the steps to maka a PAL decoder working?

  • In reply to Francesco Paolacci:

    Hello,

    If you are using TVP514x, this driver is already avaiable as a part of Linux kernel under $Kernel/driver/media/tvp514x.c. You just need to hook this up to V4L2 capture driver.
    Follow this user guide :


    processors.wiki.ti.com/.../DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver

    BR
    Margarita