Initialize config custom values
Posted: Thu Feb 09, 2017 1:43 pm
After tuning and flashing the xCORE VOICE Smart Microphone board, I would like to change
the default value of the parameters. Therefor the function il_voice_get_default_cfg_xmos() is used to change the parameters.
which is located in "app_usb_aud_mic_array/src/extensions/xvsm/xvsm_dsp.xc
The problem is that after rebooting the configuration is overwritten
with the initial values but not with the custom values on the il_voice_get_default_cfg_xmos() function.
Is there some other init that is writing this non-default values after this function? Should I build my one init (batch file)?
/* TODO this needs to be called on reset */
void il_voice_get_default_cfg_xmos(il_voice_cfg_t &ilv_cfg, il_voice_rtcfg_t &ilv_rtcfg)
{
/* Initialize config structures to viable default values */
il_voice_get_default_cfg(ilv_cfg, ilv_rtcfg);
/* Setup parameters in config structure */
ilv_rtcfg.bypass_on = 0;
ilv_rtcfg.mic_shift = 4;
/*Beamformer*/
ilv_rtcfg.bf_on = 1;
ilv_rtcfg.bf_focus = 10;
ilv_rtcfg.bf_diffgain_dB = -10;
/*Noise suppression*/
ilv_rtcfg.ns_on = 1;
ilv_rtcfg.ns_attlimit_dB = -20;
/*de-reverb*/
ilv_rtcfg.rvb_on = 1;
ilv_rtcfg.rvb_attlimit_dB = -20;
/*Echo control*/
ilv_rtcfg.aec_on = 1;
ilv_rtcfg.aec_strength = 10;
ilv_rtcfg.aec_force_thr_dB = -10;
ilv_rtcfg.aec_noise_thr_dB = 15;
ilv_rtcfg.aec_dt_thr_dB = 20;
ilv_rtcfg.aec_dt_release_dB = 10;
ilv_rtcfg.aec_dt_att_limit_dB = -30;
ilv_rtcfg.aec_no_adapt = 0;
/*Auto gain control*/
ilv_rtcfg.agc_on = 1;
ilv_rtcfg.agc_init_gain_dB = 36;
ilv_rtcfg.agc_target_dB = -10 ;
/*For more info go to -> lib_xvsm_support/api/xvsm_support.h*/
}
Many thanks
the default value of the parameters. Therefor the function il_voice_get_default_cfg_xmos() is used to change the parameters.
which is located in "app_usb_aud_mic_array/src/extensions/xvsm/xvsm_dsp.xc
The problem is that after rebooting the configuration is overwritten
with the initial values but not with the custom values on the il_voice_get_default_cfg_xmos() function.
Is there some other init that is writing this non-default values after this function? Should I build my one init (batch file)?
/* TODO this needs to be called on reset */
void il_voice_get_default_cfg_xmos(il_voice_cfg_t &ilv_cfg, il_voice_rtcfg_t &ilv_rtcfg)
{
/* Initialize config structures to viable default values */
il_voice_get_default_cfg(ilv_cfg, ilv_rtcfg);
/* Setup parameters in config structure */
ilv_rtcfg.bypass_on = 0;
ilv_rtcfg.mic_shift = 4;
/*Beamformer*/
ilv_rtcfg.bf_on = 1;
ilv_rtcfg.bf_focus = 10;
ilv_rtcfg.bf_diffgain_dB = -10;
/*Noise suppression*/
ilv_rtcfg.ns_on = 1;
ilv_rtcfg.ns_attlimit_dB = -20;
/*de-reverb*/
ilv_rtcfg.rvb_on = 1;
ilv_rtcfg.rvb_attlimit_dB = -20;
/*Echo control*/
ilv_rtcfg.aec_on = 1;
ilv_rtcfg.aec_strength = 10;
ilv_rtcfg.aec_force_thr_dB = -10;
ilv_rtcfg.aec_noise_thr_dB = 15;
ilv_rtcfg.aec_dt_thr_dB = 20;
ilv_rtcfg.aec_dt_release_dB = 10;
ilv_rtcfg.aec_dt_att_limit_dB = -30;
ilv_rtcfg.aec_no_adapt = 0;
/*Auto gain control*/
ilv_rtcfg.agc_on = 1;
ilv_rtcfg.agc_init_gain_dB = 36;
ilv_rtcfg.agc_target_dB = -10 ;
/*For more info go to -> lib_xvsm_support/api/xvsm_support.h*/
}
Many thanks