2 /*
3 Copyright (c) 2017, 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 DH_BUILD
57 //
58 // DH build
59 //
60 #define _DDPAT_
61 #define _THD_
62 #else
63 #undef _DDPAT_
64 #undef _THD_
65 #endif // DH_BUILD
67 #ifdef DTS_BUILD
68 //
69 // DTS build
70 //
71 #define _DTS_
72 #else
73 #undef _DTS_
74 #endif // DTS_BUILD
77 //#define _SRC4_
80 #ifdef _DDPAT_
81 #include <ddpat.h>
82 #include <ddpat_tid.h>
83 #endif
85 #ifdef _THD_
86 #include <thd.h>
87 #include <thd_tid.h>
88 #endif
90 #ifdef _DTS_
91 #include <dtsuhda.h>
92 #include <dtsuhda_tid.h>
93 #endif
95 #ifdef _SRC4_
96 #include <src.h>
97 #include <src_tih.h>
98 #define SUC_TIH_init SRC_TIH_init
99 #define SUC_TIH_ISUC SRC_TIH_ISRC
100 #endif
102 const PAF_ASP_LinkInit decLinkInitI13[] =
103 {
104 //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
105 PAF_ASP_LINKINIT(STD, PCM, MDS),
107 #ifdef _DDPAT_
108 PAF_ASP_LINKINIT(STD, DDP, TID),
109 #endif
110 #ifdef _THD_
111 PAF_ASP_LINKINIT(STD, THD, TID),
112 #endif
114 #ifdef _DTS_
115 PAF_ASP_LINKINIT(STD, DTSUHDA, TID),
116 #endif
118 PAF_ASP_LINKNONE,
119 };
121 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
122 {
123 decLinkInitI13,
124 };
126 #if 0 // FL: master
127 //
128 // Audio Stream Processing Declarations & Definitions
129 //
131 //#include <ae.h>
132 //#include <ae_mds.h>
134 #include <aspstd.h>
136 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
137 {
138 #ifdef _SRC4_
139 // PAF_ASP_LINKINIT(STD, SRC, MDS),
140 PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
141 #endif
143 PAF_ASP_LINKNONE,
144 };
146 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
147 {
148 PAF_ASP_LINKNONE,
149 };
151 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
152 {
153 PAF_ASP_LINKNONE,
154 };
156 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
157 {
158 PAF_ASP_LINKNONE,
159 };
162 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
163 {
164 {
165 aspLinkInitAllI13,
166 aspLinkInitNilI13,
167 aspLinkInitStdI13,
168 aspLinkInitCusI13,
169 },
170 };
172 //
173 // Encoder Definitions
174 //
176 #include <pce.h>
177 #include <pce_tii.h>
178 extern const IPCE_Params IPCE_PARAMS_NODELAY;
180 const PAF_ASP_LinkInit encLinkInitI13[] =
181 {
182 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
183 PAF_ASP_LINKNONE,
184 };
187 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
188 {
189 encLinkInitI13,
190 };
191 #endif
193 //
194 // Audio Stream Patch Definition
195 //
197 // FL: master
198 //extern const PAF_SIO_ParamsN patchs_devinp[];
199 //extern const PAF_SIO_ParamsN patchs_devout[];
201 const PAF_ASDT_Patchs asdp_patchs_PAi =
202 {
203 //NULL, //patchs_devinp,
204 //NULL, //patchs_devout,
205 patchs_decLinkInit,
206 //NULL, //patchs_aspLinkInit,
207 //NULL, //patchs_encLinkInit,
208 };
210 // EOF