[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / itopo / patchs.c
2 /*
3 Copyright (c) 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>
46 #include "audioStreamInpProc.h"
47 #include "audioStreamOutProc.h"
49 //
50 // Decoder Definitions
51 //
53 #include <pcm.h>
54 #include <pcm_mds.h>
57 //
58 // Audio Stream Processing Declarations & Definitions
59 //
61 #include <aspstd.h>
63 //#define _AE0_
64 #ifdef _AE0_
65 #include <ae.h>
66 #include <ae_mds.h>
67 #endif
69 //#define _SRC4_
70 #ifdef _SRC4_
71 #include <src.h>
72 #include <src_tih.h>
73 #define SUC_TIH_init SRC_TIH_init
74 #define SUC_TIH_ISUC SRC_TIH_ISRC
75 #endif
77 //#define _OAR_
78 #ifdef _OAR_
79 #include <oar.h>
80 #include <oar_tig.h>
81 #endif
83 //#define _BMDA_
84 #ifdef _BMDA_
85 #include <bmda.h>
86 #include <bmda_tig.h>
87 #endif
89 #define _DAP_
90 #ifdef _DAP_
91 #include <dap.h>
92 #include <dap_tig.h>
93 #endif
95 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
96 {
97 #ifdef _AE0_
98 PAF_ASP_LINKINIT(CUS,AE,MDS),
99 #endif
101 #ifdef _SRC4_
102 // PAF_ASP_LINKINIT(STD, SRC, MDS),
103 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
104 #endif
106 #ifdef _OAR_
107 PAF_ASP_LINKINIT(STD, OAR, TIG),
108 #endif
110 #ifdef _DAP_
111 PAF_ASP_LINKINIT(STD, DAP, TIG),
112 #endif
114 #ifdef _BMDA_
115 PAF_ASP_LINKINIT(STD, BMDA, TIG),
116 #endif
117 PAF_ASP_LINKNONE,
118 };
120 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
121 {
122 PAF_ASP_LINKNONE,
123 };
125 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
126 {
127 #ifdef _SRC4_
128 // PAF_ASP_LINKINIT(STD, SRC, MDS),
129 PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
130 #endif
132 #ifdef _OAR_
133 PAF_ASP_LINKINIT(STD, OAR, TIG),
134 #endif
135 #ifdef _BMDA_
136 PAF_ASP_LINKINIT(STD, BMDA, TIG),
137 #endif
138 PAF_ASP_LINKNONE,
139 };
141 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
142 {
143 #ifdef _AE0_
144 PAF_ASP_LINKINIT(CUS,AE,MDS),
145 #endif
146 PAF_ASP_LINKNONE,
147 };
149 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
150 {
151 {
152 aspLinkInitAllI13,
153 aspLinkInitNilI13,
154 aspLinkInitStdI13,
155 aspLinkInitCusI13,
156 },
157 };
159 //
160 // Encoder Definitions
161 //
163 #include <pce.h>
164 #include <pce_tii.h>
165 extern const IPCE_Params IPCE_PARAMS_NODELAY;
167 const PAF_ASP_LinkInit encLinkInitI13[] =
168 {
169 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
170 PAF_ASP_LINKNONE,
171 };
174 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
175 {
176 encLinkInitI13,
177 };
179 //
180 // Audio Stream Patch Definition
181 //
183 extern const PAF_SIO_ParamsN patchs_devinp[];
184 extern const PAF_SIO_ParamsN patchs_devout[];
186 const PAF_ASIT_Patchs asip_patchs_PAi =
187 {
188 patchs_devinp,
189 //NULL, //patchs_devout,
190 //NULL, //patchs_decLinkInit,
191 //NULL, //patchs_aspLinkInit,
192 //NULL, //patchs_encLinkInit,
193 };
195 // (***) FL: initially a copy of asip
196 const PAF_ASOT_Patchs asop_patchs_PAi =
197 {
198 //NULL, //patchs_devinp,
199 patchs_devout,
200 //NULL, //patchs_decLinkInit,
201 patchs_aspLinkInit,
202 patchs_encLinkInit,
203 };
205 // EOF