2 /*
3 Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
4 All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the
16 * distribution.
17 *
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 * its contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 //
37 //
38 //
39 //
40 // Framework Declarations
41 //
43 #include <audioStreamProc_patchs.h>
44 #include <asp0.h>
45 #include <asp1.h>
46 #include "audioStreamInpProc.h"
47 #include "audioStreamOutProc.h"
49 #include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
51 #ifdef DTS_BUILD
52 //
53 // DTS build
54 //
55 #define _DTS_
57 #elif defined DH_BUILD
58 //
59 // DH build
60 //
62 #ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
63 //
64 // NOT performing PCM high-sampling rate + SRC + CAR benchmarking
65 //
67 //#define _AE0_
68 #define _SRC4_
69 #define _CAR_
70 #define _OAR_
71 #define _BMDA_
72 //#define _ML0_
74 #else // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
75 //
76 // Performing PCM high-sampling rate + SRC + CAR benchmarking
77 //
79 //#define _AE0_
80 #define _SRC4_
81 #define _CAR_
82 //#define _OAR_
83 #define _BMDA_
84 //#define _ML0_
86 #endif // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
88 #else
89 //
90 // NO-IP build
91 //
92 #undef _DTS_
93 #undef _CAR_
94 #undef _OAR_
95 #undef _BMDA_
96 //#define _AE0_
97 //#define _ML0_
99 #endif
103 //
104 // Decoder Definitions
105 //
107 #include <pcm.h>
108 #include <pcm_mds.h>
111 //
112 // Audio Stream Processing Declarations & Definitions
113 //
115 #include <aspstd.h>
117 #ifdef _AE0_
118 #include <ae.h>
119 #include <ae_mds.h>
120 #endif
122 #ifdef _SRC4_
123 #include <src.h>
124 #include <src_tih.h>
125 #define SUC_TIH_init SRC_TIH_init
126 #define SUC_TIH_ISUC SRC_TIH_ISRC
127 #endif
129 #ifdef _CAR_
130 #include <car.h>
131 #include <car_tig.h>
132 #endif
134 #ifdef _OAR_
135 #include <oar.h>
136 #include <oar_tig.h>
137 #endif
139 #ifdef _BMDA_
140 #include <bmda.h>
141 #include <bmda_tig.h>
142 #endif
144 #ifdef _ML0_
145 #include <ml.h>
146 #include <ml_mds.h>
147 #endif
149 #ifdef _DTS_
150 #include <dtsuhdb.h>
151 #include <dtsuhdb_mds.h>
152 #endif
154 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
155 {
156 #ifdef _AE0_
157 PAF_ASP_LINKINIT(CUS,AE,MDS),
158 #endif
160 #ifdef _ML0_
161 PAF_ASP_LINKINIT(STD, ML, MDS),
162 #endif
164 #ifdef _SRC4_
165 // PAF_ASP_LINKINIT(STD, SRC, MDS),
166 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
167 #endif
169 #ifdef _CAR_
170 PAF_ASP_LINKINIT(STD, CAR, TIG),
171 #endif
173 #ifdef _OAR_
174 PAF_ASP_LINKINIT(STD, OAR, TIG),
175 #endif
177 #ifdef _BMDA_
178 PAF_ASP_LINKINIT(STD, BMDA, TIG),
179 #endif
181 #ifdef _DTS_
182 PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
183 #endif
184 PAF_ASP_LINKNONE,
185 };
187 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
188 {
189 PAF_ASP_LINKNONE,
190 };
192 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
193 {
194 #ifdef _AE0_
195 PAF_ASP_LINKINIT(CUS,AE,MDS),
196 #endif
198 #ifdef _ML0_
199 PAF_ASP_LINKINIT(STD, ML, MDS),
200 #endif
202 #ifdef _SRC4_
203 // PAF_ASP_LINKINIT(STD, SRC, MDS),
204 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
205 #endif
207 #ifdef _CAR_
208 PAF_ASP_LINKINIT(STD, CAR, TIG),
209 #endif
211 #ifdef _OAR_
212 PAF_ASP_LINKINIT(STD, OAR, TIG),
213 #endif
215 #ifdef _BMDA_
216 PAF_ASP_LINKINIT(STD, BMDA, TIG),
217 #endif
219 #ifdef _DTS_
220 PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
221 #endif
222 PAF_ASP_LINKNONE,
223 };
225 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
226 {
227 PAF_ASP_LINKNONE,
228 };
230 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
231 {
232 {
233 aspLinkInitAllI13,
234 aspLinkInitNilI13,
235 aspLinkInitStdI13,
236 aspLinkInitCusI13,
237 },
238 };
240 //
241 // Encoder Definitions
242 //
244 #include <pce.h>
245 #include <pce_tii.h>
246 extern const IPCE_Params IPCE_PARAMS_NODELAY;
248 const PAF_ASP_LinkInit encLinkInitI13[] =
249 {
250 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
251 PAF_ASP_LINKNONE,
252 };
255 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
256 {
257 encLinkInitI13,
258 };
260 //
261 // Audio Stream Patch Definition
262 //
264 extern const PAF_SIO_ParamsN patchs_devinp[];
265 extern const PAF_SIO_ParamsN patchs_devout[];
267 const PAF_ASIT_Patchs asip_patchs_PAi =
268 {
269 patchs_devinp,
270 //NULL, //patchs_devout,
271 //NULL, //patchs_decLinkInit,
272 //NULL, //patchs_aspLinkInit,
273 //NULL, //patchs_encLinkInit,
274 };
276 // (***) FL: initially a copy of asip
277 const PAF_ASOT_Patchs asop_patchs_PAi =
278 {
279 //NULL, //patchs_devinp,
280 patchs_devout,
281 //NULL, //patchs_decLinkInit,
282 patchs_aspLinkInit,
283 patchs_encLinkInit,
284 };
286 // EOF