FreeCalypso > hg > tcs211-l1-reconst
annotate chipsetsw/layer1/audio_cfile/l1audio_afunc.c @ 349:ed3e588600c1 default tip
README update for the successful completion of the L1 reconstruction project
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 30 Oct 2017 18:03:24 +0000 |
parents | ca2eff9c5236 |
children |
rev | line source |
---|---|
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
1 /************* Revision Controle System Header ************* |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
2 * GSM Layer 1 software |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
3 * L1AUDIO_AFUNC.C |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
4 * |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
5 * Filename l1audio_afunc.c |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
6 * Copyright 2003 (C) Texas Instruments |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
7 * |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
8 ************* Revision Controle System Header *************/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
9 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
10 /************************************/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
11 /* Include files... */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
12 /************************************/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
13 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
14 #include "l1_macro.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
15 #include "l1_confg.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
16 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
17 #if (AUDIO_TASK == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
18 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
19 #include "l1_types.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
20 #include "sys_types.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
21 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
22 #if (CODE_VERSION == SIMULATION) && (AUDIO_SIMULATION) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
23 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
24 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
25 #include <stdlib.h> |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
26 #include <string.h> |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
27 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
28 #include "iq.h" // Debug / Init hardware ("eva3.lib") |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
29 #include "l1_ver.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
30 #include "l1_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
31 #include "l1_signa.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
32 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
33 #if TESTMODE |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
34 #include "l1tm_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
35 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
36 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
37 #include "l1audio_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
38 #include "l1audio_cust.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
39 #include "l1audio_signa.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
40 #include "l1audio_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
41 #include "l1audio_msgty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
42 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
43 #if (L1_GTT == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
44 #include "l1gtt_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
45 #include "l1gtt_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
46 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
47 //added from e-sample for AAC |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
48 #if (L1_DYN_DSP_DWNLD == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
49 #include "l1_dyn_dwl_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
50 #include "l1_dyn_dwl_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
51 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
52 #if (L1_MP3 == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
53 #include "l1mp3_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
54 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
55 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
56 #if (L1_MIDI == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
57 #include "l1midi_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
58 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
59 //added from e-sample for AAC |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
60 #if (L1_AAC == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
61 #include "l1aac_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
62 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
63 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
64 #include "l1_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
65 #include "cust_os.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
66 #include "l1_msgty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
67 #include "l1_varex.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
68 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
69 #include "l1_mftab.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
70 #include "l1_tabs.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
71 #include "l1_ctl.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
72 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
73 #include "l1_time.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
74 #include "l1_scen.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
75 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
76 #include "l1audio_proto.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
77 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
78 #else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
79 // Layer1 and debug include files. |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
80 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
81 #include <ctype.h> |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
82 #include <math.h> |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
83 #include "l1_ver.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
84 #include "l1_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
85 #include "l1_signa.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
86 #include "cust_os.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
87 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
88 #if TESTMODE |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
89 #include "l1tm_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
90 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
91 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
92 #include "l1audio_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
93 #include "l1audio_cust.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
94 #include "l1audio_signa.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
95 #include "l1audio_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
96 #include "l1audio_msgty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
97 #include "l1audio_proto.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
98 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
99 #if (L1_GTT == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
100 #include "l1gtt_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
101 #include "l1gtt_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
102 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
103 //added from e-sample for AAC |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
104 #if (L1_DYN_DSP_DWNLD == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
105 #include "l1_dyn_dwl_const.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
106 #include "l1_dyn_dwl_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
107 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
108 #if (L1_MP3 == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
109 #include "l1mp3_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
110 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
111 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
112 #if (L1_MIDI == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
113 #include "l1midi_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
114 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
115 //added from e-smaple for AAC |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
116 #if (L1_AAC == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
117 #include "l1aac_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
118 #endif |
175
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
119 |
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
120 #if (RF_FAM == 61) |
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
121 #include "l1_rf61.h" |
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
122 #endif |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
123 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
124 #include "l1_defty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
125 #include "l1_msgty.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
126 #include "tpudrv.h" // TPU drivers. ("eva3.lib") |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
127 #include "l1_varex.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
128 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
129 #include "l1_proto.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
130 #include "l1_mftab.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
131 #include "l1_tabs.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
132 #include "mem.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
133 #include "armio.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
134 #include "timer.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
135 #include "timer1.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
136 #include "dma.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
137 #include "inth.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
138 #include "ulpd.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
139 #include "rhea_arm.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
140 #include "clkm.h" // Clockm ("eva3.lib") |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
141 #include "l1_ctl.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
142 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
143 #include "l1_time.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
144 #if L2_L3_SIMUL |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
145 #include "l1_scen.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
146 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
147 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
148 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
149 #include "rv_general.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
150 #include "audio_api.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
151 #include "audio_structs_i.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
152 #include "audio_var_i.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
153 #include "audio_macro_i.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
154 #include "audio_const_i.h" |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
155 #endif |
175
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
156 #endif |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
157 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
158 // This macro avoids to duplicate the code. |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
159 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
160 #define AUDIO_MSG (p_message) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
161 #else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
162 #define AUDIO_MSG (msg->SigP) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
163 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
164 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
165 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
166 /* l1a_audio_send_confirmation() */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
167 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
168 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
169 /* Parameters : Signal Code ofthe message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
170 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
171 /* Return : */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
172 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
173 /* Description : Send a confirmation message to the MMI */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
174 /* for an audio task. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
175 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
176 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
177 void l1a_audio_send_confirmation(UWORD32 SignalCode) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
178 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
179 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
180 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
181 void *p_message; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
182 T_RVF_MB_STATUS mb_status; //omaps00090550 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
183 |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
184 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
185 sizeof (T_RV_HDR), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
186 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
187 |
175
855b091b3839
l1audio_afunc.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
173
diff
changeset
|
188 /* If insufficient resources, then report a memory error and abort. */ |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
189 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
190 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
191 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
192 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
193 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
194 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
195 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
196 /* fill the message id */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
197 ((T_RV_HDR *)p_message)->msg_id = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
198 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
199 /* send the messsage to the audio entity */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
200 rvf_send_msg (p_audio_gbl_var->addrId, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
201 p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
202 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
203 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
204 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
205 xSignalHeaderRec *msg; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
206 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
207 msg = os_alloc_sig(0); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
208 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
209 msg->SignalCode = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
210 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
211 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
212 l1_trace_message(msg); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
213 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
214 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
215 os_send_sig(msg, MMI_QUEUE); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
216 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
217 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
218 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
219 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
220 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
221 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
222 /* l1a_audio_send_result() */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
223 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
224 /* Parameters : */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
225 /* Return : */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
226 /* Functionality : Send a result message to the MMI. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
227 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
228 void l1a_audio_send_result(UWORD32 SignalCode, xSignalHeaderRec *msg, UWORD8 queue) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
229 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
230 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
231 |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
232 void *p_message; |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
233 T_RVF_MB_STATUS mb_status; //omaps00090550 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
234 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
235 switch (SignalCode) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
236 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
237 #if (L1_AUDIO_DRIVER == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
238 case AUDIO_DRIVER_NOTIFICATION_MSG: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
239 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
240 T_AUDIO_DRIVER_SESSION *p_session; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
241 T_RV_RETURN *return_path; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
242 UINT8 channel_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
243 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
244 /* get driver session */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
245 channel_id = ((T_L1_AUDIO_DRIVER_IND *)msg->SigP)->channel_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
246 p_session = &(p_audio_gbl_var->audio_driver_session[channel_id]); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
247 return_path = &(p_session->session_req.return_path); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
248 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
249 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
250 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
251 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
252 sizeof (T_AUDIO_DRIVER_NOTIFICATION), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
253 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
254 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
255 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
256 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
257 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
258 AUDIO_SEND_TRACE("AUDIO entity has no memory for driver notification",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
259 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
260 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
261 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
262 /* Fill the message ID + parameters */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
263 ((T_AUDIO_DRIVER_NOTIFICATION *)p_message)->header.msg_id = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
264 ((T_AUDIO_DRIVER_NOTIFICATION *)p_message)->channel_id = channel_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
265 ((T_AUDIO_DRIVER_NOTIFICATION *)p_message)->p_buffer = ((T_L1_AUDIO_DRIVER_IND *)(msg->SigP))->p_buffer; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
266 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
267 /* send answer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
268 if (return_path->callback_func == NULL) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
269 rvf_send_msg (return_path->addr_id, p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
270 else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
271 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
272 (*return_path->callback_func)((void *)(p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
273 rvf_free_buf((T_RVF_BUFFER *)p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
274 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
275 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
276 // This return is important because there is another rvf_send_msg at the end of the switch |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
277 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
278 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
279 //omaps00090550 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
280 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
281 #if (L1_VOICE_MEMO_AMR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
282 case MMI_VM_AMR_RECORD_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
283 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
284 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
285 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
286 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
287 sizeof (T_MMI_VM_AMR_RECORD_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
288 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
289 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
290 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
291 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
292 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
293 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
294 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_VM_AMR_RECORD_STOP_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
295 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
296 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
297 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
298 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
299 ((T_MMI_VM_AMR_RECORD_CON *)p_message)->recorded_size = ((T_L1_VM_AMR_RECORD_CON *)(msg->SigP))->recorded_size; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
300 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
301 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
302 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
303 #if (VOICE_MEMO) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
304 case MMI_VM_RECORD_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
305 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
306 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
307 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
308 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
309 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
310 sizeof (T_MMI_VM_RECORD_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
311 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
312 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
313 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
314 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
315 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
316 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
317 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
318 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
319 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
320 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
321 ((T_MMI_VM_RECORD_CON *)p_message)->recorded_size = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
322 ((T_L1_VM_RECORD_CON *)(msg->SigP))->recorded_size; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
323 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
324 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
325 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
326 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
327 #if (L1_PCM_EXTRACTION) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
328 case MMI_PCM_UPLOAD_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
329 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
330 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
331 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
332 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
333 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
334 sizeof (T_MMI_PCM_UPLOAD_STOP_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
335 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
336 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
337 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
338 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
339 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
340 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
341 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
342 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
343 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
344 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
345 ((T_MMI_PCM_UPLOAD_STOP_CON *)p_message)->uploaded_size = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
346 ((T_L1_PCM_UPLOAD_STOP_CON *)(msg->SigP))->uploaded_size; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
347 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
348 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
349 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
350 #endif /* L1_PCM_EXTRACTION */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
351 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
352 #if (SPEECH_RECO) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
353 case MMI_SR_ENROLL_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
354 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
355 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
356 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
357 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
358 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
359 sizeof (T_MMI_SR_ENROLL_STOP_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
360 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
361 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
362 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
363 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
364 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
365 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
366 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
367 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
368 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
369 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
370 /* Fill the message parameter */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
371 ((T_MMI_SR_ENROLL_STOP_CON *)(p_message))->error_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
372 ((T_L1_SR_ENROLL_STOP_CON *)(msg->SigP))->error_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
373 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
374 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
375 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
376 case MMI_SR_UPDATE_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
377 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
378 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
379 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
380 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
381 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
382 sizeof (T_MMI_SR_UPDATE_STOP_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
383 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
384 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
385 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
386 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
387 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
388 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
389 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
390 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
391 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
392 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
393 /* Fill the message parameter */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
394 ((T_MMI_SR_UPDATE_STOP_CON *)(p_message))->error_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
395 ((T_L1_SR_UPDATE_STOP_CON *)(msg->SigP))->error_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
396 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
397 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
398 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
399 case MMI_SR_RECO_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
400 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
401 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
402 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
403 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
404 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
405 sizeof (T_MMI_SR_RECO_STOP_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
406 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
407 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
408 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
409 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
410 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
411 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
412 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
413 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
414 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
415 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
416 /* Fill the message parameter */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
417 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->error_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
418 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->error_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
419 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
420 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
421 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
422 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
423 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->second_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
424 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->second_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
425 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->second_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
426 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->second_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
427 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->third_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
428 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->third_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
429 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->third_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
430 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->third_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
431 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->fourth_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
432 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->fourth_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
433 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->fourth_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
434 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->fourth_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
435 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->d_sr_model_size = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
436 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->d_sr_model_size; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
437 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->d_sr_db_level = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
438 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->d_sr_db_level; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
439 ((T_MMI_SR_RECO_STOP_CON *)(p_message))->d_sr_db_noise = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
440 ((T_L1_SR_RECO_STOP_IND *)(msg->SigP))->d_sr_db_noise; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
441 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
442 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
443 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
444 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
445 case MMI_SR_UPDATE_CHECK_STOP_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
446 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
447 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
448 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
449 /* Allocate the Riviera buffer */ |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
450 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
451 sizeof (T_MMI_SR_UPDATE_CHECK_STOP_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
452 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
453 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
454 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
455 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
456 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
457 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
458 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
459 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
460 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
461 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
462 /* Fill the message parameter */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
463 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->error_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
464 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->error_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
465 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
466 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
467 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
468 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
469 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->second_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
470 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->second_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
471 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->second_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
472 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->second_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
473 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->third_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
474 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->third_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
475 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->third_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
476 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->third_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
477 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->fourth_best_word_index = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
478 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->fourth_best_word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
479 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->fourth_best_word_score = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
480 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->fourth_best_word_score; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
481 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->d_sr_model_size = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
482 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->d_sr_model_size; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
483 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->d_sr_db_level = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
484 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->d_sr_db_level; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
485 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(p_message))->d_sr_db_noise = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
486 ((T_MMI_SR_UPDATE_CHECK_STOP_CON *)(msg->SigP))->d_sr_db_noise; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
487 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
488 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
489 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
490 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
491 #endif /* SPEECH_RECO */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
492 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
493 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
494 #if (L1_CPORT == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
495 case MMI_CPORT_CONFIGURE_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
496 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
497 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
498 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
499 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
500 sizeof (T_MMI_CPORT_CONFIGURE_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
501 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
502 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
503 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
504 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
505 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
506 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
507 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_CPORT_CONFIGURE_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
508 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
509 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
510 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
511 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
512 ((T_MMI_CPORT_CONFIGURE_CON *)p_message)->register_id = ((T_L1_CPORT_CONFIGURE_CON *)(msg->SigP))->register_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
513 ((T_MMI_CPORT_CONFIGURE_CON *)p_message)->register_value = ((T_L1_CPORT_CONFIGURE_CON *)(msg->SigP))->register_value; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
514 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
515 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
516 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
517 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
518 #if(L1_ANR == 2) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
519 case MMI_AQI_ANR_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
520 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
521 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
522 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
523 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
524 sizeof (T_MMI_AQI_ANR_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
525 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
526 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
527 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
528 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
529 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
530 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
531 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_ANR_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
532 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
533 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
534 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
535 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
536 ((T_MMI_AQI_ANR_CON *)p_message)->anr_ul_action = ((T_L1_AQI_ANR_CON *)(msg->SigP))->anr_ul_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
537 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
538 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
539 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
540 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
541 #if(L1_IIR == 2) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
542 case MMI_AQI_IIR_DL_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
543 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
544 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
545 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
546 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
547 sizeof (T_MMI_AQI_IIR_DL_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
548 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
549 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
550 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
551 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
552 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
553 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
554 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_IIR_DL_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
555 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
556 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
557 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
558 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
559 ((T_MMI_AQI_IIR_DL_CON *)p_message)->iir_dl_action = ((T_L1_AQI_IIR_DL_CON *)(msg->SigP))->iir_dl_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
560 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
561 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
562 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
563 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
564 #if(L1_AGC_UL == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
565 case MMI_AQI_AGC_UL_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
566 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
567 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
568 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
569 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
570 sizeof (T_MMI_AQI_AGC_UL_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
571 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
572 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
573 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
574 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
575 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
576 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
577 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_AGC_UL_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
578 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
579 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
580 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
581 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
582 ((T_MMI_AQI_AGC_UL_CON *)p_message)->agc_ul_action = ((T_L1_AQI_AGC_UL_CON *)(msg->SigP))->agc_ul_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
583 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
584 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
585 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
586 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
587 #if(L1_AGC_DL == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
588 case MMI_AQI_AGC_DL_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
589 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
590 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
591 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
592 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
593 sizeof (T_MMI_AQI_AGC_DL_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
594 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
595 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
596 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
597 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
598 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
599 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
600 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_AGC_DL_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
601 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
602 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
603 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
604 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
605 ((T_MMI_AQI_AGC_DL_CON *)p_message)->agc_dl_action = ((T_L1_AQI_AGC_DL_CON *)(msg->SigP))->agc_dl_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
606 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
607 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
608 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
609 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
610 #if(L1_WCM == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
611 case MMI_AQI_WCM_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
612 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
613 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
614 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
615 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
616 sizeof (T_MMI_AQI_WCM_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
617 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
618 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
619 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
620 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
621 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
622 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
623 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_WCM_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
624 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
625 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
626 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
627 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
628 ((T_MMI_AQI_WCM_CON *)p_message)->wcm_action = ((T_L1_AQI_WCM_CON *)(msg->SigP))->wcm_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
629 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
630 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
631 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
632 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
633 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
634 #if(L1_DRC == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
635 case MMI_AQI_DRC_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
636 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
637 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
638 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
639 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
640 sizeof (T_MMI_AQI_DRC_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
641 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
642 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
643 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
644 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
645 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
646 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
647 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_DRC_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
648 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
649 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
650 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
651 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
652 ((T_MMI_AQI_DRC_CON *)p_message)->drc_dl_action = ((T_L1_AQI_DRC_CON *)(msg->SigP))->drc_dl_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
653 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
654 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
655 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
656 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
657 #if(L1_AEC == 2) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
658 case MMI_AQI_AEC_CON: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
659 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
660 /* Translate the l1 message into the Riviera compliant message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
661 /* Allocate the Riviera buffer */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
662 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
663 sizeof (T_MMI_AQI_AEC_CON), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
664 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
665 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
666 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
667 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
668 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
669 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
670 AUDIO_SEND_TRACE("AUDIO entity has no memory for MMI_AQI_AEC_CON",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
671 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
672 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
673 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
674 // recorded size includes the end mask |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
675 ((T_MMI_AQI_AEC_CON *)p_message)->aec_action = ((T_L1_AQI_AEC_CON *)(msg->SigP))->aec_action; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
676 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
677 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
678 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
679 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
680 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
681 default: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
682 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
683 AUDIO_SEND_TRACE("AUDIO entity: wrong L1 confirmation message",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
684 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
685 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
686 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
687 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
688 /* Fill the message ID */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
689 ((T_RV_HDR *)p_message)->msg_id = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
690 /* send the messsage to the audio entity */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
691 rvf_send_msg (p_audio_gbl_var->addrId, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
692 p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
693 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
694 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
695 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
696 // Set flag to avoid the FREE(msg) in L1ASYNC. |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
697 l1a.l1_msg_forwarded = TRUE; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
698 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
699 msg->SignalCode = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
700 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
701 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
702 l1_trace_message(msg); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
703 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
704 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
705 os_send_sig(msg, queue); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
706 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
707 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
708 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
709 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
710 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
711 #if (SPEECH_RECO) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
712 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
713 /* l1_send_sr_background_msg() */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
714 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
715 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
716 /* Parameters : Signal Code ofthe message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
717 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
718 /* Return : */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
719 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
720 /* Description : Send a message to the SR background */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
721 /* task. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
722 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
723 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
724 void l1_send_sr_background_msg(UWORD32 SignalCode) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
725 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
726 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
727 void *p_message; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
728 T_RVF_MB_STATUS mb_status; //omaps00090550 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
729 #else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
730 xSignalHeaderRec *msg; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
731 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
732 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
733 switch (SignalCode) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
734 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
735 case L1_SRBACK_SAVE_DATA_REQ: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
736 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
737 // Allocate the partition |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
738 #if (OP_RIV_AUDIO == 1) |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
739 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
740 sizeof (T_L1_SRBACK_SAVE_DATA_REQ), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
741 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
742 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
743 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
744 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
745 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
746 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
747 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
748 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
749 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
750 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
751 msg = os_alloc_sig(sizeof(T_L1_SRBACK_SAVE_DATA_REQ)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
752 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
753 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
754 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
755 // Fill the message |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
756 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->database_id = l1a_l1s_com.speechreco_task.parameters.database_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
757 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->model_index = l1a_l1s_com.speechreco_task.parameters.word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
758 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->model_RAM_address = l1a_l1s_com.speechreco_task.parameters.model_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
759 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->speech = l1a_l1s_com.speechreco_task.parameters.speech; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
760 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->start_buffer = l1a_l1s_com.speechreco_task.parameters.speech_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
761 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->stop_buffer = l1a_l1s_com.speechreco_task.parameters.speech_address + SC_SR_MMI_2_L1_SPEECH_SIZE; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
762 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->start_address = l1a_l1s_com.speechreco_task.parameters.start_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
763 ((T_L1_SRBACK_SAVE_DATA_REQ *)(AUDIO_MSG))->stop_address = l1a_l1s_com.speechreco_task.parameters.stop_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
764 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
765 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
766 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
767 case L1_SRBACK_LOAD_MODEL_REQ: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
768 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
769 // Allocate the partition |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
770 #if (OP_RIV_AUDIO == 1) |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
771 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
772 sizeof (T_L1_SRBACK_LOAD_MODEL_REQ), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
773 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
774 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
775 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
776 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
777 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
778 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
779 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
780 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
781 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
782 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
783 msg = os_alloc_sig(sizeof(T_L1_SRBACK_LOAD_MODEL_REQ)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
784 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
785 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
786 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
787 // Fill the message |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
788 ((T_L1_SRBACK_LOAD_MODEL_REQ *)(AUDIO_MSG))->database_id = l1a_l1s_com.speechreco_task.parameters.database_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
789 ((T_L1_SRBACK_LOAD_MODEL_REQ *)(AUDIO_MSG))->model_index = l1a_l1s_com.speechreco_task.parameters.word_index; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
790 ((T_L1_SRBACK_LOAD_MODEL_REQ *)(AUDIO_MSG))->model_RAM_address = l1a_l1s_com.speechreco_task.parameters.model_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
791 ((T_L1_SRBACK_LOAD_MODEL_REQ *)(AUDIO_MSG))->CTO_enable = l1a_l1s_com.speechreco_task.parameters.CTO_algorithm; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
792 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
793 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
794 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
795 case L1_SRBACK_TEMP_SAVE_DATA_REQ: |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
796 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
797 // Allocate the partition |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
798 #if (OP_RIV_AUDIO == 1) |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
799 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
800 sizeof (T_L1_SRBACK_TEMP_SAVE_DATA_REQ), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
801 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
802 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
803 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
804 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
805 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
806 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
807 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
808 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
809 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
810 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
811 msg = os_alloc_sig(sizeof(T_L1_SRBACK_TEMP_SAVE_DATA_REQ)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
812 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
813 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
814 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
815 // Fill the message |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
816 ((T_L1_SRBACK_TEMP_SAVE_DATA_REQ *)(AUDIO_MSG))->model_RAM_address_input = l1a_l1s_com.speechreco_task.parameters.model_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
817 ((T_L1_SRBACK_TEMP_SAVE_DATA_REQ *)(AUDIO_MSG))->model_RAM_address_output = l1a_l1s_com.speechreco_task.parameters.model_temp_address; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
818 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
819 break; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
820 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
821 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
822 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
823 /* fill the message id */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
824 ((T_RV_HDR *)p_message)->msg_id = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
825 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
826 /* send the messsage to the audio entity */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
827 rvf_send_msg (p_audio_gbl_var->addrId, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
828 p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
829 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
830 msg->SignalCode = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
831 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
832 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
833 l1_trace_message(msg); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
834 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
835 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
836 os_send_sig(msg, SRBACK_QUEUE); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
837 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
838 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
839 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
840 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
841 #if (MELODY_E2) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
842 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
843 /* l1_send_melody_e2_background_msg() */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
844 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
845 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
846 /* Parameters : Signal Code of the message */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
847 /* melody ID (0 or 1) */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
848 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
849 /* Return : */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
850 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
851 /* Description : Send a message to the audio background */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
852 /* for the melody E2 feature. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
853 /* */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
854 /*-------------------------------------------------------*/ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
855 void l1_send_melody_e2_background_msg(UWORD32 SignalCode, UWORD8 melody_id) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
856 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
857 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
858 void *p_message; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
859 T_RVF_MB_STATUS mb_status; //omaps00090550 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
860 #else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
861 xSignalHeaderRec *msg; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
862 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
863 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
864 UWORD8 i; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
865 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
866 if ( SignalCode == L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ ) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
867 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
868 // Allocate the partition |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
869 #if (OP_RIV_AUDIO == 1) |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
870 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
871 sizeof (T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
872 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
873 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
874 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
875 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
876 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
877 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
878 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
879 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
880 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
881 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
882 msg = os_alloc_sig(sizeof(T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
883 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
884 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
885 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
886 ((T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->melody_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
887 melody_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
888 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
889 if (melody_id == 0) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
890 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
891 // Load instrument for the melody 0 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
892 // Fill the message |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
893 ((T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->number_of_instrument = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
894 l1a_l1s_com.melody0_e2_task.parameters.number_of_instrument; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
895 for(i=0; i<SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT; i++) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
896 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
897 ((T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->waves_table_id[i] = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
898 l1a_l1s_com.melody0_e2_task.parameters.waves_table_id[i]; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
899 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
900 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
901 if (melody_id == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
902 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
903 // Load instrument for the melody 1 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
904 // Fill the message |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
905 ((T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->number_of_instrument = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
906 l1a_l1s_com.melody1_e2_task.parameters.number_of_instrument; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
907 for(i=0; i<SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT; i++) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
908 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
909 ((T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->waves_table_id[i] = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
910 l1a_l1s_com.melody1_e2_task.parameters.waves_table_id[i]; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
911 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
912 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
913 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
914 else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
915 if (SignalCode == L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
916 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
917 // Allocate the partition |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
918 #if (OP_RIV_AUDIO == 1) |
176
ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
175
diff
changeset
|
919 mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, |
173
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
920 sizeof (T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ), |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
921 (T_RVF_BUFFER **) (&p_message)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
922 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
923 /* If insufficient resources, then report a memory error and abort. */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
924 if (mb_status == RVF_RED) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
925 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
926 /* the memory is insufficient to continue the non regression test */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
927 AUDIO_SEND_TRACE("AUDIO entity has no memory for L1 confirm",RV_TRACE_LEVEL_ERROR); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
928 return; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
929 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
930 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
931 msg = os_alloc_sig(sizeof(T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ)); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
932 DEBUGMSG(status,NU_ALLOC_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
933 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
934 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
935 ((T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->melody_id = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
936 melody_id; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
937 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
938 if (melody_id == 0) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
939 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
940 ((T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->number_of_instrument = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
941 l1a_l1s_com.melody0_e2_task.parameters.number_of_instrument; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
942 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
943 else |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
944 if (melody_id == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
945 { |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
946 ((T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ *)(AUDIO_MSG))->number_of_instrument = |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
947 l1a_l1s_com.melody1_e2_task.parameters.number_of_instrument; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
948 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
949 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
950 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
951 #if (OP_RIV_AUDIO == 1) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
952 ((T_RV_HDR *)p_message)->msg_id = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
953 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
954 /* send the messsage to the audio entity */ |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
955 rvf_send_msg (p_audio_gbl_var->addrId, |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
956 p_message); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
957 #else // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
958 msg->SignalCode = SignalCode; |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
959 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
960 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
961 l1_trace_message(msg); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
962 #endif |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
963 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
964 os_send_sig(msg, SRBACK_QUEUE); |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
965 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
966 #endif // OP_RIV_AUDIO |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
967 } |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
968 #endif // MELODY_E2 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
969 |
ea9a8b16374d
l1audio_afunc.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
970 #endif // AUDIO_TASK |