XilinxProcessorIPLib/drivers/v_hdmirxss1/src/xv_hdmirxss1.c
static void XV_HdmiRxSs1_AudCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;

  u8 Channels;

  if (XV_HdmiRx1_IsAudioActive(HdmiRxSs1Ptr->HdmiRx1Ptr)) {

    /* Get audio channels*/
    Channels = XV_HdmiRx1_GetAudioChannels(HdmiRxSs1Ptr->HdmiRx1Ptr);
    HdmiRxSs1Ptr->AudioChannels = Channels;
  }

  /* Check if user callback has been registered*/
  if (HdmiRxSs1Ptr->AudCallback) {
      HdmiRxSs1Ptr->AudCallback(HdmiRxSs1Ptr->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_HdmiRxSs1_AudCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;
  u8 Channels;
  if (XV_HdmiRx1_IsAudioActive(HdmiRxSs1Ptr->HdmiRx1Ptr)) {
    Channels = XV_HdmiRx1_GetAudioChannels(HdmiRxSs1Ptr->HdmiRx1Ptr);
    HdmiRxSs1Ptr->AudioChannels = Channels;
  }
  if (HdmiRxSs1Ptr->AudCallback) {
      HdmiRxSs1Ptr->AudCallback(HdmiRxSs1Ptr->AudRef);
  }
}
static void XV_HdmiRxSs1_AudCallback ( void * CallbackRef ) { XV_HdmiRxSs1 * HdmiRxSs1Ptr = ( XV_HdmiRxSs1 * ) CallbackRef ; u8 Channels ; if ( XV_HdmiRx1_IsAudioActive ( HdmiRxSs1Ptr -> HdmiRx1Ptr ) ) { Channels = XV_HdmiRx1_GetAudioChannels ( HdmiRxSs1Ptr -> HdmiRx1Ptr ) ; HdmiRxSs1Ptr -> AudioChannels = Channels ; } if ( HdmiRxSs1Ptr -> AudCallback ) { HdmiRxSs1Ptr -> AudCallback ( HdmiRxSs1Ptr -> 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*/