]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/test_arm/framework/itopo/patchs.c
PASDK-401:Add No-IP builds
[processor-sdk/performance-audio-sr.git] / pasdk / test_arm / 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 "audioStreamDecodeProc.h"
48 //
49 // Decoder Definitions
50 //
52 //#include <dwr_inp.h>
53 #include <pcm.h>
54 #include <pcm_mds.h>
56 #ifdef DTS_BUILD
57 //
58 // DTS build
59 //
60 #define _DTS_
62 #elif defined DH_BUILD
63 //
64 // DH build
65 //
67 #define _DDPAT_
68 #define _THD_
69     
70 #else
71 //
72 // NO-IP build
73 //
74 #undef _DTS_
75 #undef _DDPAT_
76 #undef _THD_ 
77     
78 #endif
80 //#define _SRC4_
84 #ifdef _DDPAT_
85 #include <ddpat.h>
86 #include <ddpat_tid.h>
87 #endif
89 #ifdef _THD_
90 #include <thd.h>
91 #include <thd_tid.h>
92 #endif
94 #ifdef _DTS_
95 #include <dtsuhda.h>
96 #include <dtsuhda_tid.h>
97 #endif
99 #ifdef _SRC4_
100 #include <src.h>
101 #include <src_tih.h>
102 #define SUC_TIH_init SRC_TIH_init
103 #define SUC_TIH_ISUC SRC_TIH_ISRC
104 #endif
106 const PAF_ASP_LinkInit decLinkInitI13[] =
108     //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
109     PAF_ASP_LINKINIT(STD, PCM, MDS),
111 #ifdef _DDPAT_
112     PAF_ASP_LINKINIT(STD, DDP, TID),
113 #endif
114 #ifdef _THD_
115     PAF_ASP_LINKINIT(STD, THD, TID),
116 #endif
117     
118 #ifdef _DTS_
119     PAF_ASP_LINKINIT(STD, DTSUHDA, TID),
120 #endif
122     PAF_ASP_LINKNONE,
123 };
125 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
127     decLinkInitI13,
128 };
130 #if 0 // FL: master
131 //
132 // Audio Stream Processing Declarations & Definitions
133 //
135 //#include <ae.h>
136 //#include <ae_mds.h>
138 #include <aspstd.h>
140 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
142 #ifdef _SRC4_
143 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
144     PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
145 #endif
147     PAF_ASP_LINKNONE,
148 };
150 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
152     PAF_ASP_LINKNONE,
153 };
155 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
157     PAF_ASP_LINKNONE,
158 };
160 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
162     PAF_ASP_LINKNONE,
163 };
166 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
168     {
169         aspLinkInitAllI13,
170         aspLinkInitNilI13,
171         aspLinkInitStdI13,
172         aspLinkInitCusI13,
173     },
174 };
176 //
177 // Encoder Definitions
178 //
180 #include <pce.h>
181 #include <pce_tii.h>
182 extern const IPCE_Params IPCE_PARAMS_NODELAY;
184 const PAF_ASP_LinkInit encLinkInitI13[] =
186     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
187     PAF_ASP_LINKNONE,
188 };
191 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
193     encLinkInitI13,
194 };
195 #endif
197 //
198 // Audio Stream Patch Definition
199 //
201 // FL: master
202 //extern const PAF_SIO_ParamsN patchs_devinp[];
203 //extern const PAF_SIO_ParamsN patchs_devout[];
205 const PAF_ASDT_Patchs asdp_patchs_PAi =
207     //NULL, //patchs_devinp,
208     //NULL, //patchs_devout,
209     patchs_decLinkInit,
210     //NULL, //patchs_aspLinkInit,
211     //NULL, //patchs_encLinkInit,
212 };
214 // EOF