--- vision_sdk/apps/src/rtos/usecases/tidl/UsecaseDsp/chains_tidlDsp_priv.c	2017-07-06 12:13:05.000000000 +0300
+++ vision_sdk/apps/src/rtos/usecases/tidl/UsecaseDsp_tda3/chains_tidlDsp_priv.c	2017-08-15 17:10:11.372783200 +0300
@@ -70,11 +70,9 @@
 #include "chains_tidlDsp_priv.h"
 Void chains_tidlDsp_SetLinkId(chains_tidlDspObj *pObj){
        pObj->NullSourceLinkID               = IPU1_0_LINK (SYSTEM_LINK_ID_NULL_SRC_0);
-       pObj->IPCOut_IPU1_0_A15_0_0LinkID    = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_OUT_0);
-       pObj->IPCIn_A15_0_IPU1_0_0LinkID     = A15_0_LINK (SYSTEM_LINK_ID_IPC_IN_0);
-       pObj->Alg_tidlpreprocLinkID          = A15_0_LINK (SYSTEM_LINK_ID_ALG_0);
-       pObj->IPCOut_A15_0_DSP1_0LinkID      = A15_0_LINK (SYSTEM_LINK_ID_IPC_OUT_0);
-       pObj->IPCIn_DSP1_A15_0_0LinkID       = DSP1_LINK (SYSTEM_LINK_ID_IPC_IN_0);
+       pObj->Alg_tidlpreprocLinkID          = IPU1_0_LINK (SYSTEM_LINK_ID_ALG_0);
+       pObj->IPCOut_IPU1_0_DSP1_0LinkID     = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_OUT_0);
+       pObj->IPCIn_DSP1_IPU1_0_0LinkID      = DSP1_LINK (SYSTEM_LINK_ID_IPC_IN_0);
        pObj->Alg_tidl_1LinkID               = DSP1_LINK (SYSTEM_LINK_ID_ALG_0);
        pObj->IPCOut_DSP1_IPU1_0_0LinkID     = DSP1_LINK (SYSTEM_LINK_ID_IPC_OUT_0);
        pObj->IPCIn_IPU1_0_DSP1_0LinkID      = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_IN_0);
@@ -84,11 +82,9 @@
 
 Void chains_tidlDsp_ResetLinkPrms(chains_tidlDspObj *pObj){
        NullSrcLink_CreateParams_Init(&pObj->NullSourcePrm);
-       IpcLink_CreateParams_Init(&pObj->IPCOut_IPU1_0_A15_0_0Prm);
-       IpcLink_CreateParams_Init(&pObj->IPCIn_A15_0_IPU1_0_0Prm);
        AlgorithmLink_tidlpreprocCreateParams_Init(&pObj->Alg_tidlpreprocPrm);
-       IpcLink_CreateParams_Init(&pObj->IPCOut_A15_0_DSP1_0Prm);
-       IpcLink_CreateParams_Init(&pObj->IPCIn_DSP1_A15_0_0Prm);
+       IpcLink_CreateParams_Init(&pObj->IPCOut_IPU1_0_DSP1_0Prm);
+       IpcLink_CreateParams_Init(&pObj->IPCIn_DSP1_IPU1_0_0Prm);
        AlgorithmLink_tidlCreateParams_Init(&pObj->Alg_tidl_1Prm);
        IpcLink_CreateParams_Init(&pObj->IPCOut_DSP1_IPU1_0_0Prm);
        IpcLink_CreateParams_Init(&pObj->IPCIn_IPU1_0_DSP1_0Prm);
@@ -98,7 +94,7 @@
 
 Void chains_tidlDsp_SetPrms(chains_tidlDspObj *pObj){
        (pObj->Alg_tidlpreprocPrm).baseClassCreate.size  = sizeof(AlgorithmLink_tidlpreprocCreateParams);
-       (pObj->Alg_tidlpreprocPrm).baseClassCreate.algId  = ALGORITHM_LINK_A15_ALG_TIDLPREPROC;
+       (pObj->Alg_tidlpreprocPrm).baseClassCreate.algId  = ALGORITHM_LINK_IPU_ALG_TIDLPREPROC;
        (pObj->Alg_tidl_1Prm).baseClassCreate.size  = sizeof(AlgorithmLink_tidlCreateParams);
        (pObj->Alg_tidl_1Prm).baseClassCreate.algId  = ALGORITHM_LINK_DSP_ALG_TIDL;
        (pObj->MergePrm).numInQue = 1;
@@ -107,34 +103,26 @@
 
 Void chains_tidlDsp_ConnectLinks(chains_tidlDspObj *pObj){
 
-       //NullSource -> IPCOut_IPU1_0_A15_0_0
-       pObj->NullSourcePrm.outQueParams.nextLink = pObj->IPCOut_IPU1_0_A15_0_0LinkID;
-       pObj->IPCOut_IPU1_0_A15_0_0Prm.inQueParams.prevLinkId = pObj->NullSourceLinkID;
-       pObj->IPCOut_IPU1_0_A15_0_0Prm.inQueParams.prevLinkQueId = 0;
-
-       //IPCOut_IPU1_0_A15_0_0 -> IPCIn_A15_0_IPU1_0_0
-       pObj->IPCOut_IPU1_0_A15_0_0Prm.outQueParams.nextLink = pObj->IPCIn_A15_0_IPU1_0_0LinkID;
-       pObj->IPCIn_A15_0_IPU1_0_0Prm.inQueParams.prevLinkId = pObj->IPCOut_IPU1_0_A15_0_0LinkID;
-       pObj->IPCIn_A15_0_IPU1_0_0Prm.inQueParams.prevLinkQueId = 0;
-
-       //IPCIn_A15_0_IPU1_0_0 -> Alg_tidlpreproc
-       pObj->IPCIn_A15_0_IPU1_0_0Prm.outQueParams.nextLink = pObj->Alg_tidlpreprocLinkID;
-       pObj->Alg_tidlpreprocPrm.inQueParams.prevLinkId = pObj->IPCIn_A15_0_IPU1_0_0LinkID;
+
+       //NullSource -> Alg_tidlpreproc
+       pObj->NullSourcePrm.outQueParams.nextLink = pObj->Alg_tidlpreprocLinkID;
+       pObj->Alg_tidlpreprocPrm.inQueParams.prevLinkId = pObj->NullSourceLinkID;
        pObj->Alg_tidlpreprocPrm.inQueParams.prevLinkQueId = 0;
 
-       //Alg_tidlpreproc -> IPCOut_A15_0_DSP1_0
-       pObj->Alg_tidlpreprocPrm.outQueParams[0].nextLink = pObj->IPCOut_A15_0_DSP1_0LinkID;
-       pObj->IPCOut_A15_0_DSP1_0Prm.inQueParams.prevLinkId = pObj->Alg_tidlpreprocLinkID;
-       pObj->IPCOut_A15_0_DSP1_0Prm.inQueParams.prevLinkQueId = 0;
-
-       //IPCOut_A15_0_DSP1_0 -> IPCIn_DSP1_A15_0_0
-       pObj->IPCOut_A15_0_DSP1_0Prm.outQueParams.nextLink = pObj->IPCIn_DSP1_A15_0_0LinkID;
-       pObj->IPCIn_DSP1_A15_0_0Prm.inQueParams.prevLinkId = pObj->IPCOut_A15_0_DSP1_0LinkID;
-       pObj->IPCIn_DSP1_A15_0_0Prm.inQueParams.prevLinkQueId = 0;
-
-       //IPCIn_DSP1_A15_0_0 -> Alg_tidl_1
-       pObj->IPCIn_DSP1_A15_0_0Prm.outQueParams.nextLink = pObj->Alg_tidl_1LinkID;
-       pObj->Alg_tidl_1Prm.inQueParams[0].prevLinkId = pObj->IPCIn_DSP1_A15_0_0LinkID;
+
+       //Alg_tidlpreproc -> IPCOut_IPU1_0_DSP1_0
+       pObj->Alg_tidlpreprocPrm.outQueParams[0].nextLink = pObj->IPCOut_IPU1_0_DSP1_0LinkID;
+       pObj->IPCOut_IPU1_0_DSP1_0Prm.inQueParams.prevLinkId = pObj->Alg_tidlpreprocLinkID;
+       pObj->IPCOut_IPU1_0_DSP1_0Prm.inQueParams.prevLinkQueId = 0;
+
+       //IPCOut_IPU1_0_DSP1_0 -> IPCIn_DSP1_IPU1_0_0
+       pObj->IPCOut_IPU1_0_DSP1_0Prm.outQueParams.nextLink = pObj->IPCIn_DSP1_IPU1_0_0LinkID;
+       pObj->IPCIn_DSP1_IPU1_0_0Prm.inQueParams.prevLinkId = pObj->IPCOut_IPU1_0_DSP1_0LinkID;
+       pObj->IPCIn_DSP1_IPU1_0_0Prm.inQueParams.prevLinkQueId = 0;
+
+       //IPCIn_DSP1_IPU1_0_0 -> Alg_tidl_1
+       pObj->IPCIn_DSP1_IPU1_0_0Prm.outQueParams.nextLink = pObj->Alg_tidl_1LinkID;
+       pObj->Alg_tidl_1Prm.inQueParams[0].prevLinkId = pObj->IPCIn_DSP1_IPU1_0_0LinkID;
        pObj->Alg_tidl_1Prm.inQueParams[0].prevLinkQueId = 0;
 
        //Alg_tidl_1 -> IPCOut_DSP1_IPU1_0_0
@@ -173,19 +161,13 @@
        status = System_linkCreate(pObj->NullSourceLinkID, &pObj->NullSourcePrm, sizeof(pObj->NullSourcePrm));
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkCreate(pObj->IPCOut_IPU1_0_A15_0_0LinkID, &pObj->IPCOut_IPU1_0_A15_0_0Prm, sizeof(pObj->IPCOut_IPU1_0_A15_0_0Prm));
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
-       status = System_linkCreate(pObj->IPCIn_A15_0_IPU1_0_0LinkID, &pObj->IPCIn_A15_0_IPU1_0_0Prm, sizeof(pObj->IPCIn_A15_0_IPU1_0_0Prm));
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
        status = System_linkCreate(pObj->Alg_tidlpreprocLinkID, &pObj->Alg_tidlpreprocPrm, sizeof(pObj->Alg_tidlpreprocPrm));
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkCreate(pObj->IPCOut_A15_0_DSP1_0LinkID, &pObj->IPCOut_A15_0_DSP1_0Prm, sizeof(pObj->IPCOut_A15_0_DSP1_0Prm));
+       status = System_linkCreate(pObj->IPCOut_IPU1_0_DSP1_0LinkID, &pObj->IPCOut_IPU1_0_DSP1_0Prm, sizeof(pObj->IPCOut_IPU1_0_DSP1_0Prm));
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkCreate(pObj->IPCIn_DSP1_A15_0_0LinkID, &pObj->IPCIn_DSP1_A15_0_0Prm, sizeof(pObj->IPCIn_DSP1_A15_0_0Prm));
+       status = System_linkCreate(pObj->IPCIn_DSP1_IPU1_0_0LinkID, &pObj->IPCIn_DSP1_IPU1_0_0Prm, sizeof(pObj->IPCIn_DSP1_IPU1_0_0Prm));
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
        status = System_linkCreate(pObj->Alg_tidl_1LinkID, &pObj->Alg_tidl_1Prm, sizeof(pObj->Alg_tidl_1Prm));
@@ -225,21 +207,15 @@
        status = System_linkStart(pObj->Alg_tidl_1LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStart(pObj->IPCIn_DSP1_A15_0_0LinkID);
+       status = System_linkStart(pObj->IPCIn_DSP1_IPU1_0_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStart(pObj->IPCOut_A15_0_DSP1_0LinkID);
+       status = System_linkStart(pObj->IPCOut_IPU1_0_DSP1_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
        status = System_linkStart(pObj->Alg_tidlpreprocLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStart(pObj->IPCIn_A15_0_IPU1_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
-       status = System_linkStart(pObj->IPCOut_IPU1_0_A15_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
        status = System_linkStart(pObj->NullSourceLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
@@ -265,21 +241,15 @@
        status = System_linkStop(pObj->Alg_tidl_1LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStop(pObj->IPCIn_DSP1_A15_0_0LinkID);
+       status = System_linkStop(pObj->IPCIn_DSP1_IPU1_0_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStop(pObj->IPCOut_A15_0_DSP1_0LinkID);
+       status = System_linkStop(pObj->IPCOut_IPU1_0_DSP1_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
        status = System_linkStop(pObj->Alg_tidlpreprocLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkStop(pObj->IPCIn_A15_0_IPU1_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
-       status = System_linkStop(pObj->IPCOut_IPU1_0_A15_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
        status = System_linkStop(pObj->NullSourceLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
@@ -305,21 +275,15 @@
        status = System_linkDelete(pObj->Alg_tidl_1LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkDelete(pObj->IPCIn_DSP1_A15_0_0LinkID);
+       status = System_linkDelete(pObj->IPCIn_DSP1_IPU1_0_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkDelete(pObj->IPCOut_A15_0_DSP1_0LinkID);
+       status = System_linkDelete(pObj->IPCOut_IPU1_0_DSP1_0LinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
        status = System_linkDelete(pObj->Alg_tidlpreprocLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
-       status = System_linkDelete(pObj->IPCIn_A15_0_IPU1_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
-       status = System_linkDelete(pObj->IPCOut_IPU1_0_A15_0_0LinkID);
-       UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
-
        status = System_linkDelete(pObj->NullSourceLinkID);
        UTILS_assert(status == SYSTEM_LINK_STATUS_SOK);
 
@@ -328,13 +292,11 @@
 
 Void chains_tidlDsp_printBufferStatistics(chains_tidlDspObj *pObj){
        System_linkPrintBufferStatistics(pObj->NullSourceLinkID);
-       System_linkPrintBufferStatistics(pObj->IPCOut_IPU1_0_A15_0_0LinkID);
        Task_sleep(500);
-       System_linkPrintBufferStatistics(pObj->IPCIn_A15_0_IPU1_0_0LinkID);
        System_linkPrintBufferStatistics(pObj->Alg_tidlpreprocLinkID);
-       System_linkPrintBufferStatistics(pObj->IPCOut_A15_0_DSP1_0LinkID);
+       System_linkPrintBufferStatistics(pObj->IPCOut_IPU1_0_DSP1_0LinkID);
        Task_sleep(500);
-       System_linkPrintBufferStatistics(pObj->IPCIn_DSP1_A15_0_0LinkID);
+       System_linkPrintBufferStatistics(pObj->IPCIn_DSP1_IPU1_0_0LinkID);
        System_linkPrintBufferStatistics(pObj->Alg_tidl_1LinkID);
        System_linkPrintBufferStatistics(pObj->IPCOut_DSP1_IPU1_0_0LinkID);
        Task_sleep(500);
@@ -346,13 +308,11 @@
 
 Void chains_tidlDsp_printStatistics(chains_tidlDspObj *pObj){
        System_linkPrintStatistics(pObj->NullSourceLinkID);
-       System_linkPrintStatistics(pObj->IPCOut_IPU1_0_A15_0_0LinkID);
        Task_sleep(500);
-       System_linkPrintStatistics(pObj->IPCIn_A15_0_IPU1_0_0LinkID);
        System_linkPrintStatistics(pObj->Alg_tidlpreprocLinkID);
-       System_linkPrintStatistics(pObj->IPCOut_A15_0_DSP1_0LinkID);
+       System_linkPrintStatistics(pObj->IPCOut_IPU1_0_DSP1_0LinkID);
        Task_sleep(500);
-       System_linkPrintStatistics(pObj->IPCIn_DSP1_A15_0_0LinkID);
+       System_linkPrintStatistics(pObj->IPCIn_DSP1_IPU1_0_0LinkID);
        System_linkPrintStatistics(pObj->Alg_tidl_1LinkID);
        System_linkPrintStatistics(pObj->IPCOut_DSP1_IPU1_0_0LinkID);
        Task_sleep(500);
