XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
void XV_HdmiTxSs_SetAudioChannels(XV_HdmiTxSs *InstancePtr, u8 AudioChannels)
{
	// Audio InfoFrame's channel count starts from 2ch = 1
	InstancePtr->AudioInfoframe.ChannelCount = AudioChannels - 1;
    InstancePtr->AudioChannels = AudioChannels;
    XV_HdmiTx_SetAudioChannels(InstancePtr->HdmiTxPtr, AudioChannels);
#ifdef XV_HDMITXSS_LOG_ENABLE
    XV_HdmiTxSs_LogWrite(InstancePtr,
                         XV_HDMITXSS_LOG_EVT_SETAUDIOCHANNELS,
                         AudioChannels);
#endif
}
/*****************************************************************************/
/**
*
* This function Sets the HDMI TX SS number of active audio channels
*
* @param  InstancePtr pointer to XV_HdmiTxSs instance
* @param  AudioChannels
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function Sets the HDMI TX SS number of active audio channels
This function Sets the HDMI TX SS number of active audio channels
void XV_HdmiTxSs_SetAudioChannels(XV_HdmiTxSs *InstancePtr, u8 AudioChannels)
{
	InstancePtr->AudioInfoframe.ChannelCount = AudioChannels - 1;
    InstancePtr->AudioChannels = AudioChannels;
    XV_HdmiTx_SetAudioChannels(InstancePtr->HdmiTxPtr, AudioChannels);
#ifdef XV_HDMITXSS_LOG_ENABLE
    XV_HdmiTxSs_LogWrite(InstancePtr,
                         XV_HDMITXSS_LOG_EVT_SETAUDIOCHANNELS,
                         AudioChannels);
#endif
}
void XV_HdmiTxSs_SetAudioChannels ( XV_HdmiTxSs * InstancePtr , u8 AudioChannels ) { InstancePtr -> AudioInfoframe . ChannelCount = AudioChannels - 1 ; InstancePtr -> AudioChannels = AudioChannels ; XV_HdmiTx_SetAudioChannels ( InstancePtr -> HdmiTxPtr , AudioChannels ) ; #ifdef XV_HDMITXSS_LOG_ENABLE XV_HdmiTxSs_LogWrite ( InstancePtr , XV_HDMITXSS_LOG_EVT_SETAUDIOCHANNELS , AudioChannels ) ; #endif }
This function Sets the HDMI TX SS number of active audio channels
This function Sets the HDMI TX SS number of active audio channels
// Audio InfoFrame's channel count starts from 2ch = 1