FreeCalypso > hg > fc-tourmaline
view src/cs/riviera/rvm/rvm_ext_priorities.h @ 275:79cfefc1e2b4
audio mode load: gracefully handle mode files of wrong AEC version
Unfortunately our change of enabling L1_NEW_AEC (which is necessary
in order to bring our Calypso ARM fw into match with the underlying
DSP reality) brings along a change in the audio mode file binary
format and file size - all those new tunable AEC parameters do need
to be stored somewhere, after all. But we already have existing
mode files in the old format, and setting AEC config to garbage when
loading old audio modes (which is what would happen without the
present change) is not an appealing proposition.
The solution implemented in the present change is as follows: the
audio mode loading code checks the file size, and if it differs
from the active version of T_AUDIO_MODE, the T_AUDIO_AEC_CFG structure
is cleared - set to the default (disabled AEC) for the compiled type
of AEC. We got lucky in that this varying T_AUDIO_AEC_CFG structure
sits at the end of T_AUDIO_MODE!
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 30 Jul 2021 02:55:48 +0000 |
parents | 0faa72eaedcb |
children | 2d7d95e7f9c2 |
line wrap: on
line source
/******************************************************************************* * * * Name rvm_ext_priorities.h * * * * Function this file priorities defintitions for basic SWEs * * It includes a file * * * * Version 0.1 * * * * Date Modification * * ------------------------------------ * * 10/11/2000 Create * * * * Author Cristian Livadiotti (c-livadiotti@ti.com) * * * * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved * * * * --------------------------------------------------------------------------- * * * * History: * * * * 10/18/2001 - Updated for R2D by Christophe Favergeon * * * ******************************************************************************/ #ifndef __RVM_EXT_PRIORITIES_H_ #define __RVM_EXT_PRIORITIES_H_ /* PRIORITIES SETTING: */ /* All user priority should be set under 250: */ /* Higher values are reserved */ /* ** External Priority definitions ** Note that RVM_EXPL_TASK_PRIORITY is used for testing purpose (refer to RTEST). ** Hence, users have to make sure that such a priority is lower than the software ** entity under test, not to starve the system. */ #define RVM_EXPL_TASK_PRIORITY (242) #define RVM_RGUI_TASK_PRIORITY (240) #define RVM_R2D_TASK_PRIORITY (239) #define RVM_DEV1_TASK_PRIORITY (245) #define RVM_DEV2_TASK_PRIORITY (245) #define RVM_DEV3_TASK_PRIORITY (245) #define RVM_UVM_TASK_PRIORITY (245) #define RVM_BTU_TASK_PRIORITY (248) /* was 240 */ #define RVM_BTUI_TASK_PRIORITY (240) #define RVM_BTA_TASK_PRIORITY (248) /* rl: was 200 */ #define RVM_BTH_TASK_PRIORITY (200) #define RVM_FCBM_TASK_PRIORITY (238) #endif /* __RVM_EXT_PRIORITIES_H_ */