XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
u32 XV_HdmiTxSs_SetStream(XV_HdmiTxSs *InstancePtr,
        XVidC_VideoMode VideoMode, XVidC_ColorFormat ColorFormat,
        XVidC_ColorDepth Bpc, XVidC_3DInfo *Info3D)
{
  u32 TmdsClock = 0;

  TmdsClock = XV_HdmiTx_SetStream(InstancePtr->HdmiTxPtr, VideoMode,
    ColorFormat, Bpc, InstancePtr->Config.Ppc, Info3D);

#ifdef XV_HDMITXSS_LOG_ENABLE
  XV_HdmiTxSs_LogWrite(InstancePtr, XV_HDMITXSS_LOG_EVT_SETSTREAM, 0);
#endif
  if(TmdsClock == 0) {
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "\r\nWarning: Sink does not support HDMI 2.0\r\n");
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "         Connect to HDMI 2.0 Sink or \r\n");
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "         Change to HDMI 1.4 video format\r\n\r\n");
}

  return TmdsClock;
}
/*****************************************************************************/
/**
*
* This function set HDMI TX susbsystem stream parameters
*
* @param  None.
*
* @return Calculated TMDS Clock
*
* @note   None.
*
******************************************************************************/
This function set HDMI TX susbsystem stream parameters
This function set HDMI TX susbsystem stream parameters
u32 XV_HdmiTxSs_SetStream(XV_HdmiTxSs *InstancePtr,
        XVidC_VideoMode VideoMode, XVidC_ColorFormat ColorFormat,
        XVidC_ColorDepth Bpc, XVidC_3DInfo *Info3D)
{
  u32 TmdsClock = 0;
  TmdsClock = XV_HdmiTx_SetStream(InstancePtr->HdmiTxPtr, VideoMode,
    ColorFormat, Bpc, InstancePtr->Config.Ppc, Info3D);
#ifdef XV_HDMITXSS_LOG_ENABLE
  XV_HdmiTxSs_LogWrite(InstancePtr, XV_HDMITXSS_LOG_EVT_SETSTREAM, 0);
#endif
  if(TmdsClock == 0) {
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "\r\nWarning: Sink does not support HDMI 2.0\r\n");
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "         Connect to HDMI 2.0 Sink or \r\n");
    xdbg_printf(XDBG_DEBUG_GENERAL,
                "         Change to HDMI 1.4 video format\r\n\r\n");
}
  return TmdsClock;
}
u32 XV_HdmiTxSs_SetStream ( XV_HdmiTxSs * InstancePtr , XVidC_VideoMode VideoMode , XVidC_ColorFormat ColorFormat , XVidC_ColorDepth Bpc , XVidC_3DInfo * Info3D ) { u32 TmdsClock = 0 ; TmdsClock = XV_HdmiTx_SetStream ( InstancePtr -> HdmiTxPtr , VideoMode , ColorFormat , Bpc , InstancePtr -> Config . Ppc , Info3D ) ; #ifdef XV_HDMITXSS_LOG_ENABLE XV_HdmiTxSs_LogWrite ( InstancePtr , XV_HDMITXSS_LOG_EVT_SETSTREAM , 0 ) ; #endif if ( TmdsClock == 0 ) { xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n \r \n " ) ; xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n " ) ; xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n \r \n " ) ; } return TmdsClock ; }
This function set HDMI TX susbsystem stream parameters
This function set HDMI TX susbsystem stream parameters