int audio_disable(struct msm_audio *prtd) { if (prtd->enabled) { mutex_lock(&the_locks.lock); prtd->enabled = 0; audio_dsp_out_enable(prtd, 0); wake_up(&the_locks.write_wait); audpp_disable(AUDPP_ALSA_DECODER, prtd); audmgr_disable(&prtd->audmgr); prtd->out_needed = 0; mutex_unlock(&the_locks.lock); } return 0; }
int alsa_audio_disable(struct msm_audio *prtd) { if (prtd->enabled) { MM_DBG("\n"); mutex_lock(&the_locks.lock); prtd->enabled = 0; audio_dsp_out_enable(prtd, 0); wake_up(&the_locks.write_wait); audpp_disable(-1, prtd); prtd->out_needed = 0; mutex_unlock(&the_locks.lock); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { pr_info("audio_disable\n"); if (audio->enabled) { audio->enabled = 0; audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_DBG("\n"); /* Macro prints the file name and function */ if (audio->enabled) { audio->enabled = 0; audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_DBG("\n"); /* Macro prints the file name and function */ if (audio->enabled) { MM_AUD_INFO("audio_disable()\n"); audio->enabled = 0; audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); audio->stopped = 1; wake_up(&audio->wait); audmgr_disable(&audio->audmgr); audio->out_needed = 0; audio_allow_sleep(audio); htc_pwrsink_audio_set(PWRSINK_AUDIO_PCM, 0); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_INFO("\n"); /* Macro prints the file name and function */ if (audio->enabled) { audio->enabled = 0; isAudioEn = 0; //JRD added. audio_opal_spkr_pa_enable(); audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audmgr_disable(&audio->audmgr); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_INFO("\n"); /* Macro prints the file name and function */ if (audio->enabled) { #ifdef CONFIG_AMP_MAX97000 audio_enabled = 0; //max97000_suspend(); #endif audio->enabled = 0; audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audmgr_disable(&audio->audmgr); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { if (audio->enabled) { pr_info("audio_mp3_disable()\n"); audio->enabled = 0; auddec_dsp_config(audio, 0); wake_up(&audio->wait); audpp_disable(audio->dec_id, audio); msm_adsp_disable(audio->audplay); msm_adsp_put(audio->audplay); audmgr_disable(&audio->audmgr); atomic_set(&audio->image_swap, 0); audio->sent_bytes = 0; audio->consumed_bytes = 0; audio->total_consumed_bytes = 0; audio->out_needed = 0; audio->paused = 0; audio_allow_sleep(audio); htc_pwrsink_audio_set(PWRSINK_AUDIO_MP3, 0); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_DBG("\n"); /* Macro prints the file name and function */ if (audio->enabled) { audio->enabled = 0; //added by john isAudioEn = audio->enabled; if(!isIncallMode) { audio_opal_spkr_pa_enable(false); } //added by john audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audmgr_disable(&audio->audmgr); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }
/* must be called with audio->lock held */ static int audio_disable(struct audio *audio) { MM_INFO("[CLK]\n"); /* Macro prints the file name and function */ if (audio->enabled) { audio->enabled = 0; #ifdef CONFIG_CCI_SPEAKER MM_INFO("[CLK] speaker_audmgr_enable(false)\n"); /*cci.johnny_lee, for pop-noise issue */ if (speaker_audmgr_enable(false) < 0) { MM_ERR("[CLK] speaker_audmgr_enable return failed, we will retry after 600ms\n"); } #endif audio_dsp_out_enable(audio, 0); audpp_disable(-1, audio); wake_up(&audio->wait); audmgr_disable(&audio->audmgr); audio->out_needed = 0; audio_allow_sleep(audio); } return 0; }