Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static int init_VDI_channel ( vout_data *  vout,
ipu_channel_params_t  params 
) [static]

Initialize VDI channels

Parameters:
vout structure vout_data *
Returns:
status 0 Success

Definition at line 643 of file mxc_v4l2_output.c.

Referenced by init_VDI().

{
      struct device *dev = &vout->video_dev->dev;

      if (ipu_init_channel(MEM_VDI_PRP_VF_MEM, &params) != 0) {
            dev_dbg(dev, "Error initializing VDI current channel\n");
            return -EINVAL;
      }
      if (LOAD_3FIELDS(vout)) {
            if (ipu_init_channel(MEM_VDI_PRP_VF_MEM_P, &params) != 0) {
                  dev_err(dev, "Error initializing VDI previous channel\n");
                  return -EINVAL;
            }
            if (ipu_init_channel(MEM_VDI_PRP_VF_MEM_N, &params) != 0) {
                  dev_err(dev, "Error initializing VDI next channel\n");
                  return -EINVAL;
            }
      }
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index