XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
void XV_HdmiTxSs_StreamStart(XV_HdmiTxSs *InstancePtr)
{
  u32 TmdsClk;

  // Set TX pixel rate
  XV_HdmiTx_SetPixelRate(InstancePtr->HdmiTxPtr);

  // Set TX color depth
  XV_HdmiTx_SetColorDepth(InstancePtr->HdmiTxPtr);

  // Set TX color format
  XV_HdmiTx_SetColorFormat(InstancePtr->HdmiTxPtr);

  // Set the TMDS Clock
  TmdsClk = XV_HdmiTxSS_SetTMDS(InstancePtr,
				 InstancePtr->HdmiTxPtr->Stream.Video.VmId,
				 InstancePtr->HdmiTxPtr->Stream.Video.ColorFormatId,
				 InstancePtr->HdmiTxPtr->Stream.Video.ColorDepth);

  // Set TX scrambler
  XV_HdmiTx_Scrambler(InstancePtr->HdmiTxPtr);

  // Set TX clock ratio
  XV_HdmiTx_ClockRatio(InstancePtr->HdmiTxPtr);
#ifdef XV_HDMITXSS_LOG_ENABLE
  XV_HdmiTxSs_LogWrite(InstancePtr, XV_HDMITXSS_LOG_EVT_STREAMSTART, 0);
#endif
  if ((InstancePtr->HdmiTxPtr->Stream.IsHdmi20 == (FALSE))
  		&& (TmdsClk > 340000000)) {
      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");
  }
}
/*****************************************************************************/
/**
*
* This function starts the HDMI TX stream
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function starts the HDMI TX stream
This function starts the HDMI TX stream
void XV_HdmiTxSs_StreamStart(XV_HdmiTxSs *InstancePtr)
{
  u32 TmdsClk;
  XV_HdmiTx_SetPixelRate(InstancePtr->HdmiTxPtr);
  XV_HdmiTx_SetColorDepth(InstancePtr->HdmiTxPtr);
  XV_HdmiTx_SetColorFormat(InstancePtr->HdmiTxPtr);
  TmdsClk = XV_HdmiTxSS_SetTMDS(InstancePtr,
				 InstancePtr->HdmiTxPtr->Stream.Video.VmId,
				 InstancePtr->HdmiTxPtr->Stream.Video.ColorFormatId,
				 InstancePtr->HdmiTxPtr->Stream.Video.ColorDepth);
  XV_HdmiTx_Scrambler(InstancePtr->HdmiTxPtr);
  XV_HdmiTx_ClockRatio(InstancePtr->HdmiTxPtr);
#ifdef XV_HDMITXSS_LOG_ENABLE
  XV_HdmiTxSs_LogWrite(InstancePtr, XV_HDMITXSS_LOG_EVT_STREAMSTART, 0);
#endif
  if ((InstancePtr->HdmiTxPtr->Stream.IsHdmi20 == (FALSE))
  		&& (TmdsClk > 340000000)) {
      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");
  }
}
void XV_HdmiTxSs_StreamStart ( XV_HdmiTxSs * InstancePtr ) { u32 TmdsClk ; XV_HdmiTx_SetPixelRate ( InstancePtr -> HdmiTxPtr ) ; XV_HdmiTx_SetColorDepth ( InstancePtr -> HdmiTxPtr ) ; XV_HdmiTx_SetColorFormat ( InstancePtr -> HdmiTxPtr ) ; TmdsClk = XV_HdmiTxSS_SetTMDS ( InstancePtr , InstancePtr -> HdmiTxPtr -> Stream . Video . VmId , InstancePtr -> HdmiTxPtr -> Stream . Video . ColorFormatId , InstancePtr -> HdmiTxPtr -> Stream . Video . ColorDepth ) ; XV_HdmiTx_Scrambler ( InstancePtr -> HdmiTxPtr ) ; XV_HdmiTx_ClockRatio ( InstancePtr -> HdmiTxPtr ) ; #ifdef XV_HDMITXSS_LOG_ENABLE XV_HdmiTxSs_LogWrite ( InstancePtr , XV_HDMITXSS_LOG_EVT_STREAMSTART , 0 ) ; #endif if ( ( InstancePtr -> HdmiTxPtr -> Stream . IsHdmi20 == ( FALSE ) ) && ( TmdsClk > 340000000 ) ) { 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 " ) ; } }
This function starts the HDMI TX stream
This function starts the HDMI TX stream
// Set TX pixel rate // Set TX color depth // Set TX color format // Set the TMDS Clock // Set TX scrambler // Set TX clock ratio