XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
void XV_HdmiTxSs_SetScrambler(XV_HdmiTxSs *InstancePtr, u8 Enable)
{
	if (InstancePtr->HdmiTxPtr->Stream.IsHdmi20 == (TRUE)) {
		/* Override the default behavior of the scrambler so that scrambling
		 * can be disabled even when TMDS Clock > 340 MHz
		 */
		InstancePtr->HdmiTxPtr->Stream.OverrideScrambler = (TRUE);
		/* Set the IsScrambled flag in order to enable or disable scrambler
		 * when XV_HdmiTx_Scrambler is called
		 */
		XV_HdmiTxSs_SetVideoStreamScramblingFlag(InstancePtr, Enable);
		/* Enable / disable scrambler depending on the value set to
		 * IsScrambled
		 */
		XV_HdmiTx_Scrambler(InstancePtr->HdmiTxPtr);
		// Disable the override of the scrambler
		InstancePtr->HdmiTxPtr->Stream.OverrideScrambler = (FALSE);
	} else {
		xdbg_printf(XDBG_DEBUG_GENERAL,
			  "\r\nWarning: Scrambler is always disabled when sink does"
			  "not support SCDC control interface\r\n");
	}
}
/*****************************************************************************/
/**
*
* This function enables / disables the TX scrambler
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  Enable TRUE:Enable scrambler FALSE:Disable scrambler
*
* @return None.
*
* @note   The scrambler setting will revert to the default behavior during the
*         next stream configuration (scrambler is enabled for HDMI 2.0 video
*         and disabled when the video is of HDMI 1.4 or lower)
*
******************************************************************************/
This function enables / disables the TX scrambler
This function enables / disables the TX scrambler
void XV_HdmiTxSs_SetScrambler(XV_HdmiTxSs *InstancePtr, u8 Enable)
{
	if (InstancePtr->HdmiTxPtr->Stream.IsHdmi20 == (TRUE)) {
		InstancePtr->HdmiTxPtr->Stream.OverrideScrambler = (TRUE);
		XV_HdmiTxSs_SetVideoStreamScramblingFlag(InstancePtr, Enable);
		XV_HdmiTx_Scrambler(InstancePtr->HdmiTxPtr);
		InstancePtr->HdmiTxPtr->Stream.OverrideScrambler = (FALSE);
	} else {
		xdbg_printf(XDBG_DEBUG_GENERAL,
			  "\r\nWarning: Scrambler is always disabled when sink does"
			  "not support SCDC control interface\r\n");
	}
}
void XV_HdmiTxSs_SetScrambler ( XV_HdmiTxSs * InstancePtr , u8 Enable ) { if ( InstancePtr -> HdmiTxPtr -> Stream . IsHdmi20 == ( TRUE ) ) { InstancePtr -> HdmiTxPtr -> Stream . OverrideScrambler = ( TRUE ) ; XV_HdmiTxSs_SetVideoStreamScramblingFlag ( InstancePtr , Enable ) ; XV_HdmiTx_Scrambler ( InstancePtr -> HdmiTxPtr ) ; InstancePtr -> HdmiTxPtr -> Stream . OverrideScrambler = ( FALSE ) ; } else { xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n " " \r \n " ) ; } }
This function enables / disables the TX scrambler
This function enables / disables the TX scrambler
/* Override the default behavior of the scrambler so that scrambling
		 * can be disabled even when TMDS Clock > 340 MHz
		 */ /* Set the IsScrambled flag in order to enable or disable scrambler
		 * when XV_HdmiTx_Scrambler is called
		 */ /* Enable / disable scrambler depending on the value set to
		 * IsScrambled
		 */ // Disable the override of the scrambler