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 #else
63 //
64 // DH build
65 //
67 #define _DDPAT_
68 #define _THD_
70 #endif
72 //#define _SRC4_
76 #ifdef _DDPAT_
77 #include <ddpat.h>
78 #include <ddpat_tid.h>
79 #endif
81 #ifdef _THD_
82 #include <thd.h>
83 #include <thd_tid.h>
84 #endif
86 #ifdef _DTS_
87 #include <dtsuhda.h>
88 #include <dtsuhda_tid.h>
89 #endif
91 #ifdef _SRC4_
92 #include <src.h>
93 #include <src_tih.h>
94 #define SUC_TIH_init SRC_TIH_init
95 #define SUC_TIH_ISUC SRC_TIH_ISRC
96 #endif
98 const PAF_ASP_LinkInit decLinkInitI13[] =
99 {
100 //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
101 PAF_ASP_LINKINIT(STD, PCM, MDS),
103 #ifdef _DDPAT_
104 PAF_ASP_LINKINIT(STD, DDP, TID),
105 #endif
106 #ifdef _THD_
107 PAF_ASP_LINKINIT(STD, THD, TID),
108 #endif
110 #ifdef _DTS_
111 PAF_ASP_LINKINIT(STD, DTSUHDA, TID),
112 #endif
114 PAF_ASP_LINKNONE,
115 };
117 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
118 {
119 decLinkInitI13,
120 };
122 #if 0 // FL: master
123 //
124 // Audio Stream Processing Declarations & Definitions
125 //
127 //#include <ae.h>
128 //#include <ae_mds.h>
130 #include <aspstd.h>
132 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
133 {
134 #ifdef _SRC4_
135 // PAF_ASP_LINKINIT(STD, SRC, MDS),
136 PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
137 #endif
139 PAF_ASP_LINKNONE,
140 };
142 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
143 {
144 PAF_ASP_LINKNONE,
145 };
147 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
148 {
149 PAF_ASP_LINKNONE,
150 };
152 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
153 {
154 PAF_ASP_LINKNONE,
155 };
158 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
159 {
160 {
161 aspLinkInitAllI13,
162 aspLinkInitNilI13,
163 aspLinkInitStdI13,
164 aspLinkInitCusI13,
165 },
166 };
168 //
169 // Encoder Definitions
170 //
172 #include <pce.h>
173 #include <pce_tii.h>
174 extern const IPCE_Params IPCE_PARAMS_NODELAY;
176 const PAF_ASP_LinkInit encLinkInitI13[] =
177 {
178 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
179 PAF_ASP_LINKNONE,
180 };
183 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
184 {
185 encLinkInitI13,
186 };
187 #endif
189 //
190 // Audio Stream Patch Definition
191 //
193 // FL: master
194 //extern const PAF_SIO_ParamsN patchs_devinp[];
195 //extern const PAF_SIO_ParamsN patchs_devout[];
197 const PAF_ASDT_Patchs asdp_patchs_PAi =
198 {
199 //NULL, //patchs_devinp,
200 //NULL, //patchs_devout,
201 patchs_decLinkInit,
202 //NULL, //patchs_aspLinkInit,
203 //NULL, //patchs_encLinkInit,
204 };
206 // EOF