XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static void XV_HdmiRxSs_AudCallback(void *CallbackRef)
{
  XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;

  u8 Channels;

  if (XV_HdmiRx_IsAudioActive(HdmiRxSsPtr->HdmiRxPtr)) {

    // Get audio channels
    Channels = XV_HdmiRx_GetAudioChannels(HdmiRxSsPtr->HdmiRxPtr);
    HdmiRxSsPtr->AudioChannels = Channels;
  }

  // Check if user callback has been registered
  if (HdmiRxSsPtr->AudCallback) {
      HdmiRxSsPtr->AudCallback(HdmiRxSsPtr->AudRef);
  }
}
/*****************************************************************************/
/**
*
* This function is called when a RX Audio IRQ has occurred.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when a RX Audio IRQ has occurred.
This function is called when a RX Audio IRQ has occurred .
static void XV_HdmiRxSs_AudCallback(void *CallbackRef)
{
  XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;
  u8 Channels;
  if (XV_HdmiRx_IsAudioActive(HdmiRxSsPtr->HdmiRxPtr)) {
    Channels = XV_HdmiRx_GetAudioChannels(HdmiRxSsPtr->HdmiRxPtr);
    HdmiRxSsPtr->AudioChannels = Channels;
  }
  if (HdmiRxSsPtr->AudCallback) {
      HdmiRxSsPtr->AudCallback(HdmiRxSsPtr->AudRef);
  }
}
static void XV_HdmiRxSs_AudCallback ( void * CallbackRef ) { XV_HdmiRxSs * HdmiRxSsPtr = ( XV_HdmiRxSs * ) CallbackRef ; u8 Channels ; if ( XV_HdmiRx_IsAudioActive ( HdmiRxSsPtr -> HdmiRxPtr ) ) { Channels = XV_HdmiRx_GetAudioChannels ( HdmiRxSsPtr -> HdmiRxPtr ) ; HdmiRxSsPtr -> AudioChannels = Channels ; } if ( HdmiRxSsPtr -> AudCallback ) { HdmiRxSsPtr -> AudCallback ( HdmiRxSsPtr -> AudRef ) ; } }
This function is called when a RX Audio IRQ has occurred.
This function is called when a RX Audio IRQ has occurred .
// Get audio channels // Check if user callback has been registered