[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / itopo / patchs.c
2 /*
3 Copyright (c) 2004 - 2016, 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>
47 //
48 // Decoder Definitions
49 //
51 #include <pcm.h>
52 #include <pcm_mds.h>
53 #include <dwr_inp.h>
55 #if 0 // FL: slave
56 const PAF_ASP_LinkInit decLinkInitI13[] =
57 {
58 //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
59 PAF_ASP_LINKINIT(STD, PCM, MDS),
61 PAF_ASP_LINKNONE,
62 };
64 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
65 {
66 decLinkInitI13,
67 };
68 #endif
70 //
71 // Audio Stream Processing Declarations & Definitions
72 //
74 #include <aspstd.h>
76 #define _AE0_
77 #ifdef _AE0_
78 #include <ae.h>
79 #include <ae_mds.h>
80 #endif
82 //#define _SRC4_
83 #ifdef _SRC4_
84 #include <src.h>
85 #include <src_tih.h>
86 #define SUC_TIH_init SRC_TIH_init
87 #define SUC_TIH_ISUC SRC_TIH_ISRC
88 #endif
90 //#define _OAR_
91 #ifdef _OAR_
92 #include <oar.h>
93 #include <oar_tig.h>
94 #endif
96 //#define _BMDA_
97 #ifdef _BMDA_
98 #include <bmda.h>
99 #include <bmda_tig.h>
100 #endif
103 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
104 {
105 #ifdef _AE0_
106 PAF_ASP_LINKINIT(CUS,AE,MDS),
107 #endif
109 #ifdef _SRC4_
110 // PAF_ASP_LINKINIT(STD, SRC, MDS),
111 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
112 #endif
114 #ifdef _OAR_
115 PAF_ASP_LINKINIT(STD, OAR, TIG),
116 #endif
117 #ifdef _BMDA_
118 PAF_ASP_LINKINIT(STD, BMDA, TIG),
119 #endif
120 PAF_ASP_LINKNONE,
121 };
123 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
124 {
125 PAF_ASP_LINKNONE,
126 };
128 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
129 {
130 #ifdef _SRC4_
131 // PAF_ASP_LINKINIT(STD, SRC, MDS),
132 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
133 #endif
135 #ifdef _OAR_
136 PAF_ASP_LINKINIT(STD, OAR, TIG),
137 #endif
138 #ifdef _BMDA_
139 PAF_ASP_LINKINIT(STD, BMDA, TIG),
140 #endif
141 PAF_ASP_LINKNONE,
142 };
144 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
145 {
146 #ifdef _AE0_
147 PAF_ASP_LINKINIT(CUS,AE,MDS),
148 #endif
149 PAF_ASP_LINKNONE,
150 };
152 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
153 {
154 {
155 aspLinkInitAllI13,
156 aspLinkInitNilI13,
157 aspLinkInitStdI13,
158 aspLinkInitCusI13,
159 },
160 };
162 //
163 // Encoder Definitions
164 //
166 #include <pce.h>
167 #include <pce_tii.h>
168 extern const IPCE_Params IPCE_PARAMS_NODELAY;
170 const PAF_ASP_LinkInit encLinkInitI13[] =
171 {
172 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
173 PAF_ASP_LINKNONE,
174 };
177 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
178 {
179 encLinkInitI13,
180 };
182 //
183 // Audio Stream Patch Definition
184 //
186 extern const PAF_SIO_ParamsN patchs_devinp[];
187 extern const PAF_SIO_ParamsN patchs_devout[];
189 const PAF_AST_Patchs asip_patchs_PAi =
190 {
191 patchs_devinp,
192 patchs_devout,
193 NULL, //patchs_decLinkInit,
194 patchs_aspLinkInit,
195 patchs_encLinkInit,
196 };
198 // (***) FL: initially a copy of asip
199 const PAF_AST_Patchs asop_patchs_PAi =
200 {
201 patchs_devinp,
202 patchs_devout,
203 NULL, //patchs_decLinkInit,
204 patchs_aspLinkInit,
205 patchs_encLinkInit,
206 };
208 // EOF