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.

[DM3730 + TVP5150] Unable to use DMAI Capture

Other Parts Discussed in Thread: TVP5150, OMAP3530

Hi

I used the mistral evaluation board and all is working well.

When i shift the program over to a board that uses TVP5150, the dmai just output "Failed to get Capture device".

When i tried to meddle with the Camera_capture method in capture.c for omap3530, it seems like getting video standard failed, allocating buffers _DMAI_v4l2DriverAlloc failed, video streaming failed, not a video capture device for v4l2 cap video capture, and so on.

I am using DVSDK4.02 not DVSDK4.03 because of the resizer. Is there something that I should be looking at?

I am able to use gstreamer to output the video but not in dmai.

gst-launch -v  v4l2src device=$(media-ctl -e "OMAP3 ISP CCDC output")  ...

  • Hi John,

    I suggest you to build the Linux kernel with support of TVP5150 instead of TVP514x. It is very possible the problem be due to uninitialized video decoder (TVP5150) when start the problem to a different board which is equipped with different video decoder.

    BR

    Tsvetolin Shulev

  • Hi.

    When the image boots up, it is able to find the decoder. 

    tvp5150 3-005c: chip found at address 0x5c (OMAP I2C adapter)
    tvp5150 3-005c: *** tvp5151 chip detected.
    tvp5150 3-005c: *** Rom ver is 1.0

    I have the media-ctl code that will initialize all the pads and entities.

    After some meddling, The weird thing is that when I set it to /dev/video2 which is what my camera is at to capture, it will get stuck at the
    VIDIOC_STREAMON which will return < 0 that will return null.
    The error is due to incorrect parameter which I have no idea what or where I should progress.

    /* Start the video streaming */
    type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

    if (ioctl(hCapture->fd, VIDIOC_STREAMON, &type) == -1) {
    Dmai_err2("VIDIOC_STREAMON failed on %s (%s)\n", attrs->captureDevice,
    strerror(errno));
    cleanup(hCapture);
    return NULL;
    }

  • Hi.

    I realise that my media ctl take in size is different from the usual specified by Ti such as d1 NTSC. The size is 720 by 486. V4l2getuserbuffer will fail when I define something different.  Is there a workaround