]> 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
Update OARI submodule for PASDK-35 & PASDK-111 testing. This is before bug fix versio...
[processor-sdk/performance-audio-sr.git] / 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 _CAR_
84 #ifdef _CAR_
85 #include <car.h>
86 #include <car_tig.h>
87 #endif
89 //#define _DAP_
90 #ifdef _DAP_
91 #include <dap.h>
92 #include <dap_tig.h>
93 #endif
95 //#define _BMDA_
96 #ifdef _BMDA_
97 #include <bmda.h>
98 #include <bmda_tig.h>
99 #endif
101 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
103 #ifdef _AE0_
104     PAF_ASP_LINKINIT(CUS,AE,MDS), 
105 #endif
107 #ifdef _SRC4_
108 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
109     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
110 #endif
112 #ifdef _OAR_
113     PAF_ASP_LINKINIT(STD, OAR, TIG),
114 #endif
116 #ifdef _CAR_
117     PAF_ASP_LINKINIT(STD, CAR, TIG),
118 #endif
120 #ifdef _DAP_
121     PAF_ASP_LINKINIT(STD, DAP, TIG),
122 #endif
124 #ifdef _BMDA_
125     PAF_ASP_LINKINIT(STD, BMDA, TIG),
126 #endif
127     PAF_ASP_LINKNONE,
128 };
130 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
132     PAF_ASP_LINKNONE,
133 };
135 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
137 #ifdef _AE0_
138     PAF_ASP_LINKINIT(CUS,AE,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 _OAR_
147     PAF_ASP_LINKINIT(STD, OAR, TIG),
148 #endif
150 #ifdef _CAR_
151     PAF_ASP_LINKINIT(STD, CAR, 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 aspLinkInitCusI13[] =
166     PAF_ASP_LINKNONE,
167 };
169 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
171     {
172         aspLinkInitAllI13,
173         aspLinkInitNilI13,
174         aspLinkInitStdI13,
175         aspLinkInitCusI13,
176     },
177 };
179 //
180 // Encoder Definitions
181 //
183 #include <pce.h>
184 #include <pce_tii.h>
185 extern const IPCE_Params IPCE_PARAMS_NODELAY;
187 const PAF_ASP_LinkInit encLinkInitI13[] =
189     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
190     PAF_ASP_LINKNONE,
191 };
194 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
196     encLinkInitI13,
197 };
199 //
200 // Audio Stream Patch Definition
201 //
203 extern const PAF_SIO_ParamsN patchs_devinp[];
204 extern const PAF_SIO_ParamsN patchs_devout[];
206 const PAF_ASIT_Patchs asip_patchs_PAi =
208     patchs_devinp,
209     //NULL, //patchs_devout,
210     //NULL, //patchs_decLinkInit,
211     //NULL, //patchs_aspLinkInit,
212     //NULL, //patchs_encLinkInit,
213 };
215 // (***) FL: initially a copy of asip
216 const PAF_ASOT_Patchs asop_patchs_PAi =
218     //NULL, //patchs_devinp,
219     patchs_devout,
220     //NULL, //patchs_decLinkInit,
221     patchs_aspLinkInit,
222     patchs_encLinkInit,
223 };
225 // EOF