FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/fchg/fchg_common.h @ 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 | 75067af48bfd |
children |
line wrap: on
line source
/* * The definitions in this header file are used both in the external API * and in the internal structures. */ #ifndef __FCHG_COMMON_H #define __FCHG_COMMON_H enum fchg_state { FCHG_STATE_NO_EXT_PWR = 0, FCHG_STATE_PWR_PLUG_TIMER, FCHG_STATE_READY_TO_CHARGE, FCHG_STATE_READY_TO_RECHARGE, FCHG_STATE_I2V_CAL_1, FCHG_STATE_I2V_CAL_2, FCHG_STATE_CI_CHARGING, FCHG_STATE_CV_CHARGING, FCHG_STATE_RECHARGE_TIMER, FCHG_STATE_NO_CHARGING }; /* from original PWR SWE */ typedef UINT8 T_PWR_PERCENT; enum fchg_event { FCHG_EVENT_DISCHARGE, FCHG_EVENT_CHARGER_PLUG, FCHG_EVENT_CHARGER_UNPLUG, FCHG_EVENT_CHARGING_START, FCHG_EVENT_CHARGING_COMPLETE, FCHG_EVENT_CHARGING_STOPPED, FCHG_EVENT_CHARGING_TIMEOUT }; typedef void (*T_FCHG_EVENT_HANDLER)(enum fchg_event); #endif /* include guard */