]> 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' of ssh://bitbucket.itg.ti.com/pasdk/pasdk_sr into dev_pasdk
[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 #ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
52 //
53 // NOT performing PCM high-sampling rate + SRC + CAR benchmarking
54 //
56 //#define _AE0_
57 #define _SRC4_
58 #define _CAR_
59 #define _OAR_
60 //#define _DAP_
61 #define _BMDA_
62 //#define _ML0_
64 #else // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
65 //
66 // Performing PCM high-sampling rate + SRC + CAR benchmarking
67 //
69 //#define _AE0_
70 #define _SRC4_
71 #define _CAR_
72 //#define _OAR_
73 //#define _DAP_
74 #define _BMDA_
75 //#define _ML0_
77 #endif // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
80 //
81 // Decoder Definitions
82 //
84 #include <pcm.h>
85 #include <pcm_mds.h>
88 //
89 // Audio Stream Processing Declarations & Definitions
90 //
92 #include <aspstd.h>
94 #ifdef _AE0_
95 #include <ae.h>
96 #include <ae_mds.h>
97 #endif
99 #ifdef _SRC4_
100 #include <src.h>
101 #include <src_tih.h>
102 #define SUC_TIH_init SRC_TIH_init
103 #define SUC_TIH_ISUC SRC_TIH_ISRC
104 #endif
106 #ifdef _CAR_
107 #include <car.h>
108 #include <car_tig.h>
109 #endif
111 #ifdef _OAR_
112 #include <oar.h>
113 #include <oar_tig.h>
114 #endif
116 #ifdef _DAP_
117 #include <dap.h>
118 #include <dap_tig.h>
119 #endif
121 #ifdef _BMDA_
122 #include <bmda.h>
123 #include <bmda_tig.h>
124 #endif
126 #ifdef _ML0_
127 #include <ml.h>
128 #include <ml_mds.h>
129 #endif
131 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
133 #ifdef _AE0_
134     PAF_ASP_LINKINIT(CUS,AE,MDS), 
135 #endif
137 #ifdef _ML0_
138     PAF_ASP_LINKINIT(STD, ML, MDS), 
139 #endif
141 #ifdef _SRC4_
142 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
143     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
144 #endif
146 #ifdef _CAR_
147     PAF_ASP_LINKINIT(STD, CAR, TIG),
148 #endif
150 #ifdef _OAR_
151     PAF_ASP_LINKINIT(STD, OAR, TIG),
152 #endif
154 #ifdef _DAP_
155     PAF_ASP_LINKINIT(STD, DAP, TIG),
156 #endif
158 #ifdef _BMDA_
159     PAF_ASP_LINKINIT(STD, BMDA, TIG),
160 #endif
161     PAF_ASP_LINKNONE,
162 };
164 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
166     PAF_ASP_LINKNONE,
167 };
169 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
171 #ifdef _AE0_
172     PAF_ASP_LINKINIT(CUS,AE,MDS), 
173 #endif
175 #ifdef _ML0_
176     PAF_ASP_LINKINIT(STD, ML, MDS), 
177 #endif
179 #ifdef _SRC4_
180 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
181     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
182 #endif
184 #ifdef _CAR_
185     PAF_ASP_LINKINIT(STD, CAR, TIG),
186 #endif
188 #ifdef _OAR_
189     PAF_ASP_LINKINIT(STD, OAR, TIG),
190 #endif
192 #ifdef _DAP_
193     PAF_ASP_LINKINIT(STD, DAP, TIG),
194 #endif
196 #ifdef _BMDA_
197     PAF_ASP_LINKINIT(STD, BMDA, TIG),
198 #endif
199     PAF_ASP_LINKNONE,
200 };
202 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
204     PAF_ASP_LINKNONE,
205 };
207 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
209     {
210         aspLinkInitAllI13,
211         aspLinkInitNilI13,
212         aspLinkInitStdI13,
213         aspLinkInitCusI13,
214     },
215 };
217 //
218 // Encoder Definitions
219 //
221 #include <pce.h>
222 #include <pce_tii.h>
223 extern const IPCE_Params IPCE_PARAMS_NODELAY;
225 const PAF_ASP_LinkInit encLinkInitI13[] =
227     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
228     PAF_ASP_LINKNONE,
229 };
232 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
234     encLinkInitI13,
235 };
237 //
238 // Audio Stream Patch Definition
239 //
241 extern const PAF_SIO_ParamsN patchs_devinp[];
242 extern const PAF_SIO_ParamsN patchs_devout[];
244 const PAF_ASIT_Patchs asip_patchs_PAi =
246     patchs_devinp,
247     //NULL, //patchs_devout,
248     //NULL, //patchs_decLinkInit,
249     //NULL, //patchs_aspLinkInit,
250     //NULL, //patchs_encLinkInit,
251 };
253 // (***) FL: initially a copy of asip
254 const PAF_ASOT_Patchs asop_patchs_PAi =
256     //NULL, //patchs_devinp,
257     patchs_devout,
258     //NULL, //patchs_decLinkInit,
259     patchs_aspLinkInit,
260     patchs_encLinkInit,
261 };
263 // EOF