/*******************************************************
-
Function name : audio_energy_detect_close
-
Description : 关闭能量获取句柄
-
Parameter :
-
@_hdl 能量获取句柄
-
Return : 0:正常 other:出错
********************************************************/
int user_audio_energy_detect_close(void *_hdl)
{
audio_energy_detect_hdl *hdl = (audio_energy_detect_hdl *)_hdl;
if (hdl == NULL) {
return -1;
}os_mutex_pend(&hdl->mutex, 0);
if (hdl->mute_check_10ms_timer != 0) {
sys_s_hi_timer_del(hdl->mute_check_10ms_timer);
hdl->mute_check_10ms_timer = 0;
}