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 //#define _DDPAT_
57 #ifdef _DDPAT_
58 #include <ddpat.h>
59 #include <ddpat_tid.h>
60 #endif
62 //#define _THD_
63 #ifdef _THD_
64 #include <thd.h>
65 #include <thd_tid.h>
66 #endif
68 #define _DTS_
69 #ifdef _DTS_
70 #include <dtsuhda.h>
71 #include <dtsuhda_tid.h>
72 #endif
74 //#define _SRC4_
75 #ifdef _SRC4_
76 #include <src.h>
77 #include <src_tih.h>
78 #define SUC_TIH_init SRC_TIH_init
79 #define SUC_TIH_ISUC SRC_TIH_ISRC
80 #endif
82 const PAF_ASP_LinkInit decLinkInitI13[] =
83 {
84 //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
85 PAF_ASP_LINKINIT(STD, PCM, MDS),
87 #ifdef _DDPAT_
88 PAF_ASP_LINKINIT(STD, DDP, TID),
89 #endif
90 #ifdef _THD_
91 PAF_ASP_LINKINIT(STD, THD, TID),
92 #endif
94 #ifdef _DTS_
95 PAF_ASP_LINKINIT(STD, DTSUHDA, TID),
96 #endif
98 PAF_ASP_LINKNONE,
99 };
101 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
102 {
103 decLinkInitI13,
104 };
106 #if 0 // FL: master
107 //
108 // Audio Stream Processing Declarations & Definitions
109 //
111 //#include <ae.h>
112 //#include <ae_mds.h>
114 #include <aspstd.h>
116 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
117 {
118 #ifdef _SRC4_
119 // PAF_ASP_LINKINIT(STD, SRC, MDS),
120 PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
121 #endif
123 PAF_ASP_LINKNONE,
124 };
126 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
127 {
128 PAF_ASP_LINKNONE,
129 };
131 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
132 {
133 PAF_ASP_LINKNONE,
134 };
136 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
137 {
138 PAF_ASP_LINKNONE,
139 };
142 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
143 {
144 {
145 aspLinkInitAllI13,
146 aspLinkInitNilI13,
147 aspLinkInitStdI13,
148 aspLinkInitCusI13,
149 },
150 };
152 //
153 // Encoder Definitions
154 //
156 #include <pce.h>
157 #include <pce_tii.h>
158 extern const IPCE_Params IPCE_PARAMS_NODELAY;
160 const PAF_ASP_LinkInit encLinkInitI13[] =
161 {
162 PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
163 PAF_ASP_LINKNONE,
164 };
167 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
168 {
169 encLinkInitI13,
170 };
171 #endif
173 //
174 // Audio Stream Patch Definition
175 //
177 // FL: master
178 //extern const PAF_SIO_ParamsN patchs_devinp[];
179 //extern const PAF_SIO_ParamsN patchs_devout[];
181 const PAF_ASDT_Patchs asdp_patchs_PAi =
182 {
183 //NULL, //patchs_devinp,
184 //NULL, //patchs_devout,
185 patchs_decLinkInit,
186 //NULL, //patchs_aspLinkInit,
187 //NULL, //patchs_encLinkInit,
188 };
190 // EOF