]> 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
Merge branch 'dev_pasdk_pp_pasdk69ArmDspCom' into 'dev_pasdk_pp'.
[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 #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
67 //#define _SRC4_
68 #ifdef _SRC4_
69 #include <src.h>
70 #include <src_tih.h>
71 #define SUC_TIH_init SRC_TIH_init
72 #define SUC_TIH_ISUC SRC_TIH_ISRC
73 #endif
75 const PAF_ASP_LinkInit decLinkInitI13[] =
76 {
77     //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
78     PAF_ASP_LINKINIT(STD, PCM, MDS),
80 #ifdef _DDPAT_
81     PAF_ASP_LINKINIT(STD, DDP, TID),
82 #endif
83 #ifdef _THD_
84     PAF_ASP_LINKINIT(STD, THD, TID),
85 #endif
86     
87     PAF_ASP_LINKNONE,
88 };
90 const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
91 {
92     decLinkInitI13,
93 };
95 #if 0 // FL: master
96 //
97 // Audio Stream Processing Declarations & Definitions
98 //
100 //#include <ae.h>
101 //#include <ae_mds.h>
103 #include <aspstd.h>
105 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
107 #ifdef _SRC4_
108 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
109     PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
110 #endif
112     PAF_ASP_LINKNONE,
113 };
115 const PAF_ASP_LinkInit aspLinkInitNilI13[] =
117     PAF_ASP_LINKNONE,
118 };
120 const PAF_ASP_LinkInit aspLinkInitStdI13[] =
122     PAF_ASP_LINKNONE,
123 };
125 const PAF_ASP_LinkInit aspLinkInitCusI13[] =
127     PAF_ASP_LINKNONE,
128 };
131 const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
133     {
134         aspLinkInitAllI13,
135         aspLinkInitNilI13,
136         aspLinkInitStdI13,
137         aspLinkInitCusI13,
138     },
139 };
141 //
142 // Encoder Definitions
143 //
145 #include <pce.h>
146 #include <pce_tii.h>
147 extern const IPCE_Params IPCE_PARAMS_NODELAY;
149 const PAF_ASP_LinkInit encLinkInitI13[] =
151     PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
152     PAF_ASP_LINKNONE,
153 };
156 const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
158     encLinkInitI13,
159 };
160 #endif
162 //
163 // Audio Stream Patch Definition
164 //
166 // FL: master
167 //extern const PAF_SIO_ParamsN patchs_devinp[];
168 //extern const PAF_SIO_ParamsN patchs_devout[];
170 const PAF_ASDT_Patchs asdp_patchs_PAi =
172     //NULL, //patchs_devinp,
173     //NULL, //patchs_devout,
174     patchs_decLinkInit,
175     //NULL, //patchs_aspLinkInit,
176     //NULL, //patchs_encLinkInit,
177 };
179 // EOF