/* Pauses and resumes playing on the audio codec.  */
static uint32_t Codec_PauseResume(uint32_t Cmd)
/* Pauses and resumes playing on the audio codec.  */
static uint32_t Codec_PauseResume(uint32_t Cmd)
{
  uint32_t counter = 0;
  if (Cmd == AUDIO_PAUSE)
  {
    counter += Codec_Mute(AUDIO_MUTE_ON);    
    counter += Codec_WriteRegister(0x02, 0x01);    
  }
  else
  {
    counter += Codec_Mute(AUDIO_MUTE_OFF);
    counter += Codec_WriteRegister(0x04, OutputDev);
    counter += Codec_WriteRegister(0x02, 0x9E); 
  }
  return counter;
}