/* Enable or disable the mute feature on the audio codec.  */
uint32_t cs42l51_SetMute(uint16_t DeviceAddr, uint32_t Cmd)
/* Enable or disable the mute feature on the audio codec.  */
uint32_t cs42l51_SetMute(uint16_t DeviceAddr, uint32_t Cmd)
{
  uint32_t counter = 0;
  uint8_t  Value;
  Value = AUDIO_IO_Read(DeviceAddr, 0x08);
  if(Cmd == AUDIO_MUTE_ON)
  {
    counter += CODEC_IO_Write(DeviceAddr, 0x08, (Value | 0x03));
  }
  else
  {
    counter += CODEC_IO_Write(DeviceAddr, 0x08, (Value & 0xFC));
  }
  return counter;
}