]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/itopo/patchs.c
29636678f14efa7ef5200a2d5820db00df46d2d6
[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
90 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
91 {
92 #ifdef _AE0_
93     PAF_ASP_LINKINIT(CUS,AE,MDS), 
94 #endif
96 #ifdef _SRC4_
97 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
98     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
99 #endif
101 #ifdef _OAR_
102     PAF_ASP_LINKINIT(STD, OAR, TIG),
103 #endif
104 #ifdef _BMDA_
105     PAF_ASP_LINKINIT(STD, BMDA, TIG),
106 #endif
107     PAF_ASP_LINKNONE,
108 };
110 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
112     PAF_ASP_LINKNONE,
113 };
115 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
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 _OAR_
123     PAF_ASP_LINKINIT(STD, OAR, TIG),
124 #endif
125 #ifdef _BMDA_
126     PAF_ASP_LINKINIT(STD, BMDA, TIG),
127 #endif
128     PAF_ASP_LINKNONE,
129 };
131 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
133 #ifdef _AE0_
134     PAF_ASP_LINKINIT(CUS,AE,MDS), 
135 #endif
136     PAF_ASP_LINKNONE,
137 };
139 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
141     {
142         aspLinkInitAllI13,
143         aspLinkInitNilI13,
144         aspLinkInitStdI13,
145         aspLinkInitCusI13,
146     },
147 };
149 //
150 // Encoder Definitions
151 //
153 #include <pce.h>
154 #include <pce_tii.h>
155 extern const IPCE_Params IPCE_PARAMS_NODELAY;
157 const PAF_ASP_LinkInit encLinkInitI13[] =
159     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
160     PAF_ASP_LINKNONE,
161 };
164 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
166     encLinkInitI13,
167 };
169 //
170 // Audio Stream Patch Definition
171 //
173 extern const PAF_SIO_ParamsN patchs_devinp[];
174 extern const PAF_SIO_ParamsN patchs_devout[];
176 const PAF_ASIT_Patchs asip_patchs_PAi =
178     patchs_devinp,
179     //NULL, //patchs_devout,
180     //NULL, //patchs_decLinkInit,
181     //NULL, //patchs_aspLinkInit,
182     //NULL, //patchs_encLinkInit,
183 };
185 // (***) FL: initially a copy of asip
186 const PAF_ASOT_Patchs asop_patchs_PAi =
188     //NULL, //patchs_devinp,
189     patchs_devout,
190     //NULL, //patchs_decLinkInit,
191     patchs_aspLinkInit,
192     patchs_encLinkInit,
193 };
195 // EOF