[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / test_arm / framework / itopo / patchs.c
diff --git a/procsdk_audio_x_xx_xx_xx/test_arm/framework/itopo/patchs.c b/procsdk_audio_x_xx_xx_xx/test_arm/framework/itopo/patchs.c
--- /dev/null
@@ -0,0 +1,171 @@
+
+/*
+* Copyright (C) 2004-2014 Texas Instruments Incorporated - http://www.ti.com/
+* All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions
+* are met:
+*
+* Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+*
+* Redistributions in binary form must reproduce the above copyright
+* notice, this list of conditions and the following disclaimer in the
+* documentation and/or other materials provided with the
+* distribution.
+*
+* Neither the name of Texas Instruments Incorporated nor the names of
+* its contributors may be used to endorse or promote products derived
+* from this software without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*
+*/
+
+//
+//
+//
+//
+// Framework Declarations
+//
+
+#include <audioStreamProc_patchs.h>
+#include <asp0.h>
+#include <asp1.h>
+
+//
+// Decoder Definitions
+//
+
+//#include <dwr_inp.h>
+#include <pcm.h>
+#include <pcm_mds.h>
+
+#define _DDPAT_
+//#define _SRC4_
+
+#ifdef _DDPAT_
+#include <ddpat.h>
+#include <ddpat_tid.h>
+#endif
+
+#ifdef _SRC4_
+#include <src.h>
+#include <src_tih.h>
+#define SUC_TIH_init SRC_TIH_init
+#define SUC_TIH_ISUC SRC_TIH_ISRC
+#endif
+
+const PAF_ASP_LinkInit decLinkInitI13[] =
+{
+ //PAF_ASP_LINKINITPARAMS (STD, DWRPCM, TII, &IDWRPCM_PARAMS),
+ PAF_ASP_LINKINIT(STD, PCM, MDS),
+
+#ifdef _DDPAT_
+ PAF_ASP_LINKINIT(STD, DDP, TID),
+#endif
+
+ PAF_ASP_LINKNONE,
+};
+
+const PAF_ASP_LinkInit *const patchs_decLinkInit[] =
+{
+ decLinkInitI13,
+};
+
+#if 0 // FL: master
+//
+// Audio Stream Processing Declarations & Definitions
+//
+
+//#include <ae.h>
+//#include <ae_mds.h>
+
+#include <aspstd.h>
+
+const PAF_ASP_LinkInit aspLinkInitAllI13[] =
+{
+#ifdef _SRC4_
+// PAF_ASP_LINKINIT(STD, SRC, MDS),
+ PAF_ASP_LINKINITPARAMS (STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
+#endif
+
+ PAF_ASP_LINKNONE,
+};
+
+const PAF_ASP_LinkInit aspLinkInitNilI13[] =
+{
+ PAF_ASP_LINKNONE,
+};
+
+const PAF_ASP_LinkInit aspLinkInitStdI13[] =
+{
+ PAF_ASP_LINKNONE,
+};
+
+const PAF_ASP_LinkInit aspLinkInitCusI13[] =
+{
+ PAF_ASP_LINKNONE,
+};
+
+
+const PAF_ASP_LinkInit *const patchs_aspLinkInit[1][GEARS] =
+{
+ {
+ aspLinkInitAllI13,
+ aspLinkInitNilI13,
+ aspLinkInitStdI13,
+ aspLinkInitCusI13,
+ },
+};
+
+//
+// Encoder Definitions
+//
+
+#include <pce.h>
+#include <pce_tii.h>
+extern const IPCE_Params IPCE_PARAMS_NODELAY;
+
+const PAF_ASP_LinkInit encLinkInitI13[] =
+{
+ PAF_ASP_LINKINITPARAMS (STD, PCE, TII, &IPCE_PARAMS_NODELAY),
+ PAF_ASP_LINKNONE,
+};
+
+
+const PAF_ASP_LinkInit *const patchs_encLinkInit[] =
+{
+ encLinkInitI13,
+};
+#endif
+
+//
+// Audio Stream Patch Definition
+//
+
+// FL: master
+//extern const PAF_SIO_ParamsN patchs_devinp[];
+//extern const PAF_SIO_ParamsN patchs_devout[];
+
+const PAF_AST_Patchs asdp_patchs_PAi =
+{
+ NULL, //patchs_devinp,
+ NULL, //patchs_devout,
+ patchs_decLinkInit,
+ NULL, //patchs_aspLinkInit,
+ NULL, //patchs_encLinkInit,
+};
+
+// EOF