XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
u32 XV_HdmiRxSs_SetStream(XV_HdmiRxSs *InstancePtr,
        u32 Clock, u32 LineRate)
{

    LineRate = LineRate;

    if (Clock == 0) {
#ifdef XV_HDMIRXSS_LOG_ENABLE
  /* Write log */
  XV_HdmiRxSs_LogWrite(InstancePtr, XV_HDMIRXSS_LOG_EVT_SETSTREAM_ERR, 0);
#endif

        return (XST_FAILURE);
    }

#ifdef XV_HDMIRXSS_LOG_ENABLE
  /* Write log */
  XV_HdmiRxSs_LogWrite(InstancePtr, XV_HDMIRXSS_LOG_EVT_SETSTREAM, 0);
#endif
  /* Set stream */
  XV_HdmiRx_SetStream(InstancePtr->HdmiRxPtr, InstancePtr->Config.Ppc, Clock);

  /* In case the TMDS clock ratio is 1/40 */
  /* The reference clock must be compensated */
  if (XV_HdmiRx_GetTmdsClockRatio(InstancePtr->HdmiRxPtr)) {
      InstancePtr->HdmiRxPtr->Stream.RefClk =
                   InstancePtr->HdmiRxPtr->Stream.RefClk * 4;
  }

  return (XST_SUCCESS);
}
/*****************************************************************************/
/**
*
* This function set HDMI RX susbsystem stream parameters
*
* @param  None.
*
* @return Calculated TMDS Clock
*
* @note   None.
*
******************************************************************************/
This function set HDMI RX susbsystem stream parameters
This function set HDMI RX susbsystem stream parameters
u32 XV_HdmiRxSs_SetStream(XV_HdmiRxSs *InstancePtr,
        u32 Clock, u32 LineRate)
{
    LineRate = LineRate;
    if (Clock == 0) {
#ifdef XV_HDMIRXSS_LOG_ENABLE
  XV_HdmiRxSs_LogWrite(InstancePtr, XV_HDMIRXSS_LOG_EVT_SETSTREAM_ERR, 0);
#endif
        return (XST_FAILURE);
    }
#ifdef XV_HDMIRXSS_LOG_ENABLE
  XV_HdmiRxSs_LogWrite(InstancePtr, XV_HDMIRXSS_LOG_EVT_SETSTREAM, 0);
#endif
  XV_HdmiRx_SetStream(InstancePtr->HdmiRxPtr, InstancePtr->Config.Ppc, Clock);
  if (XV_HdmiRx_GetTmdsClockRatio(InstancePtr->HdmiRxPtr)) {
      InstancePtr->HdmiRxPtr->Stream.RefClk =
                   InstancePtr->HdmiRxPtr->Stream.RefClk * 4;
  }
  return (XST_SUCCESS);
}
u32 XV_HdmiRxSs_SetStream ( XV_HdmiRxSs * InstancePtr , u32 Clock , u32 LineRate ) { LineRate = LineRate ; if ( Clock == 0 ) { #ifdef XV_HDMIRXSS_LOG_ENABLE XV_HdmiRxSs_LogWrite ( InstancePtr , XV_HDMIRXSS_LOG_EVT_SETSTREAM_ERR , 0 ) ; #endif return ( XST_FAILURE ) ; } #ifdef XV_HDMIRXSS_LOG_ENABLE XV_HdmiRxSs_LogWrite ( InstancePtr , XV_HDMIRXSS_LOG_EVT_SETSTREAM , 0 ) ; #endif XV_HdmiRx_SetStream ( InstancePtr -> HdmiRxPtr , InstancePtr -> Config . Ppc , Clock ) ; if ( XV_HdmiRx_GetTmdsClockRatio ( InstancePtr -> HdmiRxPtr ) ) { InstancePtr -> HdmiRxPtr -> Stream . RefClk = InstancePtr -> HdmiRxPtr -> Stream . RefClk * 4 ; } return ( XST_SUCCESS ) ; }
This function set HDMI RX susbsystem stream parameters
This function set HDMI RX susbsystem stream parameters
/* Write log */ /* Write log */ /* Set stream */ /* In case the TMDS clock ratio is 1/40 */ /* The reference clock must be compensated */