case EventSysCheckAudioAmpDrive:
/* cancel any pending messages */
MessageCancelAll( &theSink.task , EventSysCheckAudioAmpDrive);
/* when the device is no longer routing audio to the speaker then turn off the audio amplifier */
if((!sinkAudioIsAudioRouted()) && (!sinkAudioIsVoiceRouted())&& (!isSinkInCallMode()))
{
MAIN_DEBUG (( "HS : EventSysCheckAudioAmpDrive turn off amp\n" ));
PioDrivePio(PIO_AUDIO_ACTIVE, FALSE);
}
else
lIndicateEvent = FALSE;
break;