FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/fchg/bsim_start.c @ 286:ee16d57b32b2
Condat audio_Init(): rm setting of sidetone level
The default sidetone level in the absence of audio mode loading
is just that, a basic default without any promises of good tuning.
In the original TCS211 code this default sidetone level was set in
two places: first in L1 init of ABB-via-DSP registers (set to -17 dB),
and then initialized again in Condat audio_Init(), this time set to
-5 dB. The present change removes the redundant second initialization.
The default sidetone level is now -17 dB instead of -5 dB with this
change, but again it is just the default; all serious users are now
expected to use audio mode config files.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 09 Nov 2021 02:16:59 +0000 |
parents | aec644728174 |
children |
line wrap: on
line source
/* * This module implements a boot-time function for BSIM mode: * figuring out the initial battery percentage to be reported. */ #include "fchg/fchg_env.h" #include "fchg/bsim_func_i.h" #include "rv/rv_general.h" #include "rvf/rvf_api.h" #include "rvm/rvm_use_id_list.h" void bsim_init_percent(void) { UINT16 i; for (i = 0; i < pwr_ctrl->nb_percent_thresh; i++) { if (pwr_ctrl->batt.percent_thresh[i].remain_capa == pwr_ctrl->bsim.init_percent) { pwr_ctrl->curr_disch_thresh = i; return; } } rvf_send_trace("BSIM boot: invalid init_percent setting", 39, pwr_ctrl->bsim.init_percent, RV_TRACE_LEVEL_ERROR, FCHG_USE_ID); pwr_ctrl->curr_disch_thresh = 0; }