]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/test_dsp/framework/itopo/patchs.c
Merge branch 'dev_pasdk_frank_pasdk376Beta3Release' of ssh://git@bitbucket.itg.ti...
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / itopo / patchs.c
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 #else
58 //
59 // DH build
60 //
61     
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_
87     
88 #endif
92 //
93 // Decoder Definitions
94 //
96 #include <pcm.h>
97 #include <pcm_mds.h>
100 //
101 // Audio Stream Processing Declarations & Definitions
102 //
104 #include <aspstd.h>
106 #ifdef _AE0_
107 #include <ae.h>
108 #include <ae_mds.h>
109 #endif
111 #ifdef _SRC4_
112 #include <src.h>
113 #include <src_tih.h>
114 #define SUC_TIH_init SRC_TIH_init
115 #define SUC_TIH_ISUC SRC_TIH_ISRC
116 #endif
118 #ifdef _CAR_
119 #include <car.h>
120 #include <car_tig.h>
121 #endif
123 #ifdef _OAR_
124 #include <oar.h>
125 #include <oar_tig.h>
126 #endif
128 #ifdef _BMDA_
129 #include <bmda.h>
130 #include <bmda_tig.h>
131 #endif
133 #ifdef _ML0_
134 #include <ml.h>
135 #include <ml_mds.h>
136 #endif
138 #ifdef _DTS_
139 #include <dtsuhdb.h>
140 #include <dtsuhdb_mds.h>
141 #endif
143 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
145 #ifdef _AE0_
146     PAF_ASP_LINKINIT(CUS,AE,MDS), 
147 #endif
149 #ifdef _ML0_
150     PAF_ASP_LINKINIT(STD, ML, MDS), 
151 #endif
153 #ifdef _SRC4_
154 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
155     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
156 #endif
158 #ifdef _CAR_
159     PAF_ASP_LINKINIT(STD, CAR, TIG),
160 #endif
162 #ifdef _OAR_
163     PAF_ASP_LINKINIT(STD, OAR, TIG),
164 #endif
166 #ifdef _BMDA_
167     PAF_ASP_LINKINIT(STD, BMDA, TIG),
168 #endif
170 #ifdef _DTS_
171     PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
172 #endif
173     PAF_ASP_LINKNONE,
174 };
176 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
178     PAF_ASP_LINKNONE,
179 };
181 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
183 #ifdef _AE0_
184     PAF_ASP_LINKINIT(CUS,AE,MDS), 
185 #endif
187 #ifdef _ML0_
188     PAF_ASP_LINKINIT(STD, ML, MDS), 
189 #endif
191 #ifdef _SRC4_
192 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
193     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
194 #endif
196 #ifdef _CAR_
197     PAF_ASP_LINKINIT(STD, CAR, TIG),
198 #endif
200 #ifdef _OAR_
201     PAF_ASP_LINKINIT(STD, OAR, TIG),
202 #endif
204 #ifdef _BMDA_
205     PAF_ASP_LINKINIT(STD, BMDA, TIG),
206 #endif
208 #ifdef _DTS_
209     PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
210 #endif
211     PAF_ASP_LINKNONE,
212 };
214 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
216     PAF_ASP_LINKNONE,
217 };
219 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
221     {
222         aspLinkInitAllI13,
223         aspLinkInitNilI13,
224         aspLinkInitStdI13,
225         aspLinkInitCusI13,
226     },
227 };
229 //
230 // Encoder Definitions
231 //
233 #include <pce.h>
234 #include <pce_tii.h>
235 extern const IPCE_Params IPCE_PARAMS_NODELAY;
237 const PAF_ASP_LinkInit encLinkInitI13[] =
239     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
240     PAF_ASP_LINKNONE,
241 };
244 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
246     encLinkInitI13,
247 };
249 //
250 // Audio Stream Patch Definition
251 //
253 extern const PAF_SIO_ParamsN patchs_devinp[];
254 extern const PAF_SIO_ParamsN patchs_devout[];
256 const PAF_ASIT_Patchs asip_patchs_PAi =
258     patchs_devinp,
259     //NULL, //patchs_devout,
260     //NULL, //patchs_decLinkInit,
261     //NULL, //patchs_aspLinkInit,
262     //NULL, //patchs_encLinkInit,
263 };
265 // (***) FL: initially a copy of asip
266 const PAF_ASOT_Patchs asop_patchs_PAi =
268     //NULL, //patchs_devinp,
269     patchs_devout,
270     //NULL, //patchs_decLinkInit,
271     patchs_aspLinkInit,
272     patchs_encLinkInit,
273 };
275 // EOF