static void tonePlayOn( void *data )
{
   tone.isOnDur = true;

   if( tone.bQTMF ) {
      tone.curr_qtmf = (L1SP_QTMF *)tone.tonelist + (uint32)data;
      
      tone.info->freq1 = tone.curr_qtmf->freq1;
      tone.info->freq2 = tone.curr_qtmf->freq2;
      tone.info->freq3 = tone.curr_qtmf->freq3;
      tone.info->freq4 = tone.curr_qtmf->freq4;
   } else {
      tone.curr_qtmf = (L1SP_QTMF *)(tone.tonelist + (uint32)data);
      
      tone.info->freq1 = tone.curr_qtmf->freq1;
      tone.info->freq2 = tone.curr_qtmf->freq2;
      tone.info->freq3 = 0;
      tone.info->freq4 = 0;
   }

   if (tone.curr_qtmf->on_duration == 0) {
      tone.info->msDur = -1;
   } else {
      tone.info->msDur = tone.curr_qtmf->on_duration;
   }

      AFE_TurnOnSpeaker( L1SP_TONE ); 
      kal_sleep_task(1);
   
   tone.state = TONE_STATE_INIT;
/*workaround for SPEECH DSP MAIN/AUX Mode Task in FCORE*/ 
#ifdef BGSND_ENABLE
   if (tone.sndOffHandler != NULL)
      tone.sndOffHandler( tone.sndHdl );
#endif      
/*workaround for SPEECH DSP MAIN/AUX Mode Task in FCORE*/    
   
   L1Audio_FC_TonePlaybackOn(tone.fc_aud_id, tone.info);

   // apply hardware mute during tone playback 
   //AFE_TurnOnSpeaker( L1SP_TONE ); 
}
Ejemplo n.º 2
0
void I2SIN_TurnOnSpeaker()
{
   kal_trace( TRACE_FUNC, L1AUDIO_I2S_TURNON_SPK);
   AFE_TurnOnSpeaker(L1SP_AUDIO);
}