]> 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
Fix ASIT decodeInfo() to properly return error return to from ARM.
[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 _CAR_
78 #ifdef _CAR_
79 #include <car.h>
80 #include <car_tig.h>
81 #endif
83 #define _OAR_
84 #ifdef _OAR_
85 #include <oar.h>
86 #include <oar_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 //#define _ML0_
102 #ifdef _ML0_
103 #include <ml.h>
104 #include <ml_mds.h>
105 #endif
107 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
109 #ifdef _AE0_
110     PAF_ASP_LINKINIT(CUS,AE,MDS), 
111 #endif
113 #ifdef _ML0_
114     PAF_ASP_LINKINIT(STD, ML, MDS), 
115 #endif
117 #ifdef _SRC4_
118 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
119     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
120 #endif
122 #ifdef _CAR_
123     PAF_ASP_LINKINIT(STD, CAR, TIG),
124 #endif
126 #ifdef _OAR_
127     PAF_ASP_LINKINIT(STD, OAR, TIG),
128 #endif
130 #ifdef _DAP_
131     PAF_ASP_LINKINIT(STD, DAP, TIG),
132 #endif
134 #ifdef _BMDA_
135     PAF_ASP_LINKINIT(STD, BMDA, TIG),
136 #endif
137     PAF_ASP_LINKNONE,
138 };
140 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
142     PAF_ASP_LINKNONE,
143 };
145 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
147 #ifdef _AE0_
148     PAF_ASP_LINKINIT(CUS,AE,MDS), 
149 #endif
151 #ifdef _SRC4_
152 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
153     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
154 #endif
156 #ifdef _CAR_
157     PAF_ASP_LINKINIT(STD, CAR, TIG),
158 #endif
160 #ifdef _OAR_
161     PAF_ASP_LINKINIT(STD, OAR, TIG),
162 #endif
164 #ifdef _DAP_
165     PAF_ASP_LINKINIT(STD, DAP, TIG),
166 #endif
168 #ifdef _BMDA_
169     PAF_ASP_LINKINIT(STD, BMDA, TIG),
170 #endif
171     PAF_ASP_LINKNONE,
172 };
174 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
176     PAF_ASP_LINKNONE,
177 };
179 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
181     {
182         aspLinkInitAllI13,
183         aspLinkInitNilI13,
184         aspLinkInitStdI13,
185         aspLinkInitCusI13,
186     },
187 };
189 //
190 // Encoder Definitions
191 //
193 #include <pce.h>
194 #include <pce_tii.h>
195 extern const IPCE_Params IPCE_PARAMS_NODELAY;
197 const PAF_ASP_LinkInit encLinkInitI13[] =
199     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
200     PAF_ASP_LINKNONE,
201 };
204 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
206     encLinkInitI13,
207 };
209 //
210 // Audio Stream Patch Definition
211 //
213 extern const PAF_SIO_ParamsN patchs_devinp[];
214 extern const PAF_SIO_ParamsN patchs_devout[];
216 const PAF_ASIT_Patchs asip_patchs_PAi =
218     patchs_devinp,
219     //NULL, //patchs_devout,
220     //NULL, //patchs_decLinkInit,
221     //NULL, //patchs_aspLinkInit,
222     //NULL, //patchs_encLinkInit,
223 };
225 // (***) FL: initially a copy of asip
226 const PAF_ASOT_Patchs asop_patchs_PAi =
228     //NULL, //patchs_devinp,
229     patchs_devout,
230     //NULL, //patchs_decLinkInit,
231     patchs_aspLinkInit,
232     patchs_encLinkInit,
233 };
235 // EOF