/* Enables or disables the mute feature on the audio codec.  */
uint32_t wm8994_SetMute(uint16_t DeviceAddr, uint32_t Cmd)
/* Enables or disables the mute feature on the audio codec.  */
uint32_t wm8994_SetMute(uint16_t DeviceAddr, uint32_t Cmd)
{
  uint32_t counter = 0;
  if (outputEnabled != 0)
  {
    if(Cmd == AUDIO_MUTE_ON)
    {
      counter += CODEC_IO_Write(DeviceAddr, 0x420, 0x0200);
      counter += CODEC_IO_Write(DeviceAddr, 0x422, 0x0200);
    }
    else
    {
      counter += CODEC_IO_Write(DeviceAddr, 0x420, 0x0010);
      counter += CODEC_IO_Write(DeviceAddr, 0x422, 0x0010);
    }
  }
  return counter;
}