FreeCalypso > hg > fc-tourmaline
annotate 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 |
rev | line source |
---|---|
228
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
1 /******************************************************************************* |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
2 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
3 * Name rvm_ext_priorities.h * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
4 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
5 * Function this file priorities defintitions for basic SWEs * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
6 * It includes a file * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
7 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
8 * Version 0.1 * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
9 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
10 * Date Modification * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
11 * ------------------------------------ * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
12 * 10/11/2000 Create * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
13 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
14 * Author Cristian Livadiotti (c-livadiotti@ti.com) * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
15 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
16 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
17 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
18 * --------------------------------------------------------------------------- * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
19 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
20 * History: * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
21 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
22 * 10/18/2001 - Updated for R2D by Christophe Favergeon * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
23 * * |
93af50ca61f9
rvm_priorities.h, rvm_ext_priorities.h: readability fixes
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
24 ******************************************************************************/ |
0
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 #ifndef __RVM_EXT_PRIORITIES_H_ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 #define __RVM_EXT_PRIORITIES_H_ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 /* PRIORITIES SETTING: */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 /* All user priority should be set under 250: */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 /* Higher values are reserved */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 /* |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 ** External Priority definitions |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 ** Note that RVM_EXPL_TASK_PRIORITY is used for testing purpose (refer to RTEST). |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 ** Hence, users have to make sure that such a priority is lower than the software |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 ** entity under test, not to starve the system. |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 #define RVM_EXPL_TASK_PRIORITY (242) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 #define RVM_RGUI_TASK_PRIORITY (240) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 #define RVM_R2D_TASK_PRIORITY (239) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 #define RVM_DEV1_TASK_PRIORITY (245) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 #define RVM_DEV2_TASK_PRIORITY (245) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 #define RVM_DEV3_TASK_PRIORITY (245) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 #define RVM_UVM_TASK_PRIORITY (245) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 #define RVM_BTU_TASK_PRIORITY (248) /* was 240 */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 #define RVM_BTUI_TASK_PRIORITY (240) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 #define RVM_BTA_TASK_PRIORITY (248) /* rl: was 200 */ |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 #define RVM_BTH_TASK_PRIORITY (200) |
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
234
0faa72eaedcb
give FCBM task a more carefully chosen priority
Mychaela Falconia <falcon@freecalypso.org>
parents:
229
diff
changeset
|
55 #define RVM_FCBM_TASK_PRIORITY (238) |
229
7ec0ae23ce76
rvm_ext_priorities.h: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents:
228
diff
changeset
|
56 |
0
4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 #endif /* __RVM_EXT_PRIORITIES_H_ */ |