Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124722

Forum Post: dm8168 Dual capture video can not work problem

$
0
0

HI All,

     Our project uses VIP0 of portA and portB capture two-way standard definition video input, an application if it is a single channel capture video portA or portB port input is completely normal, but if the application wants to simultaneously capture two port input, running to the second road capturing video, the system prints out the following error, the second capture video program termination:

VPSS_FVID2: create handle is NULL
ti81xxvin ti81xxvin: ti81xxvin_vps_create failed
ti81xxvin ti81xxvin: Vps create failed

May I ask what might be the causes?

Here is arch/arm/mach-omap2/ti81xx_vpss.c in protA, protB configurations:

static struct ti81xxvin_subdev_info hdvpss_capture_sdev_info[] = {

//The following configuration is connected to the VIP0 of protA

{
        .name = "tvp5147",
        .board_info = {
                 /* TODO Find the correct address
                    of the TVP7002 connected */
                I2C_BOARD_INFO("tvp5147", 0x5c),
                .platform_data = &tvp7002_pdata,
         },
         .vip_port_cfg = {
                .ctrlChanSel = VPS_VIP_CTRL_CHAN_SEL_7_0,
                .ancChSel8b = VPS_VIP_ANC_CH_SEL_DONT_CARE,
                .pixClkEdgePol = VPS_VIP_PIX_CLK_EDGE_POL_RISING,
                .invertFidPol = 0,
                .embConfig = {
                     .errCorrEnable = 1,
                     .srcNumPos = VPS_VIP_SRC_NUM_POS_DONT_CARE,
                     .isMaxChan3Bits = 0,
                 },
                .disConfig = {
                .fidSkewPostCnt = 0,
                .fidSkewPreCnt = 0,
                .lineCaptureStyle =
                    VPS_VIP_LINE_CAPTURE_STYLE_DONT_CARE,
                .fidDetectMode =
                    VPS_VIP_FID_DETECT_MODE_DONT_CARE,
                .actvidPol = VPS_VIP_POLARITY_DONT_CARE,
                .vsyncPol = VPS_VIP_POLARITY_DONT_CARE,
                .hsyncPol = VPS_VIP_POLARITY_DONT_CARE,
          }
      },
      .video_capture_mode =
             VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_EMBEDDED_SYNC,
      .video_if_mode = VPS_CAPT_VIDEO_IF_MODE_8BIT,
      .input_data_format = FVID2_DF_YUV422P,
  },

//The following configuration is connected to the VIP0 of protB

  {
        .name = "tvp5147_portB",
        .board_info = {
                 /* TODO Find the correct address
                    of the TVP7002 connected */
                I2C_BOARD_INFO("tvp5147", 0x5d),
                .platform_data = &tvp7002_pdata,
         },
         .vip_port_cfg = {
                .ctrlChanSel = VPS_VIP_CTRL_CHAN_SEL_15_8,
                .ancChSel8b = VPS_VIP_ANC_CH_SEL_DONT_CARE,
                .pixClkEdgePol = VPS_VIP_PIX_CLK_EDGE_POL_RISING,
                .invertFidPol = 0,
                .embConfig = {
                     .errCorrEnable = 1,
                     .srcNumPos = VPS_VIP_SRC_NUM_POS_DONT_CARE,
                     .isMaxChan3Bits = 0,
                 },
                .disConfig = {
                .fidSkewPostCnt = 0,
                .fidSkewPreCnt = 0,
                .lineCaptureStyle =
                    VPS_VIP_LINE_CAPTURE_STYLE_DONT_CARE,
                .fidDetectMode =
                    VPS_VIP_FID_DETECT_MODE_DONT_CARE,
                .actvidPol = VPS_VIP_POLARITY_DONT_CARE,
                .vsyncPol = VPS_VIP_POLARITY_DONT_CARE,
                .hsyncPol = VPS_VIP_POLARITY_DONT_CARE,
          }
      },
      .video_capture_mode =
             VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_EMBEDDED_SYNC,
      .video_if_mode = VPS_CAPT_VIDEO_IF_MODE_8BIT,
      .input_data_format = FVID2_DF_YUV422P,
   },

}

Will it be two port configuration conflict it?


Viewing all articles
Browse latest Browse all 124722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>