Add 1 16-bit word for EDMA padding for Input Driver
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / audioStreamInpProc.c
index 983559702d88a2d2e9c681e50ad4c54989c8d560..f8085b8e909543cf23d99bedfd12d2dc44ad4348 100644 (file)
@@ -1333,7 +1333,6 @@ PAF_ASIT_initPhaseDecOpCircBuf(
 )
 {
     PAF_AST_Config *pAstCfg;
 )
 {
     PAF_AST_Config *pAstCfg;
-    PAF_AST_DecOpCircBufCtl *pCbCtl;    /* Decoder output circular buffer control */
     PAF_AST_DecOpCircBuf *pCb;          /* Decoder output circular buffer */
     Int as;                             /* Audio Stream Number (1, 2, etc.) */
     Int zMS;
     PAF_AST_DecOpCircBuf *pCb;          /* Decoder output circular buffer */
     Int as;                             /* Audio Stream Number (1, 2, etc.) */
     Int zMS;
@@ -1347,8 +1346,6 @@ PAF_ASIT_initPhaseDecOpCircBuf(
     as = pAstCfg->as;
     zMS = pAstCfg->masterStr;
 
     as = pAstCfg->as;
     zMS = pAstCfg->masterStr;
 
-    pCbCtl = &pC->pAspmCfg->decOpCircBufCtl; // get pointer to circular buffer control
-    
     /* Decode output circular buffer memory */
     if (!(pAstCfg->xDecOpCb = Memory_calloc((IHeap_Handle)HEAP_INTERNAL1_SHM, 
         DECODEN * sizeof (*pAstCfg->xDecOpCb), 4, &eb)))
     /* Decode output circular buffer memory */
     if (!(pAstCfg->xDecOpCb = Memory_calloc((IHeap_Handle)HEAP_INTERNAL1_SHM, 
         DECODEN * sizeof (*pAstCfg->xDecOpCb), 4, &eb)))
@@ -2441,14 +2438,14 @@ PAF_ASIT_decodeInit(
             //pC->xDec[z].decodeControl.rdSampleCount = 0;
 
             // Initialize decoder output circular buffer for selected source
             //pC->xDec[z].decodeControl.rdSampleCount = 0;
 
             // Initialize decoder output circular buffer for selected source
-            errno = cbInitSourceSel(pCbCtl, z, sourceSelect, frameLength, FRAMELENGTH);
+            errno = cbInitSourceSel(pCbCtl, z, sourceSelect, frameLength, FRAMELENGTH, 0);
             if (errno)
             {
                 SW_BREAKPOINT; // FL: debug
                 return errno;
             }
             // FL: debug
             if (errno)
             {
                 SW_BREAKPOINT; // FL: debug
                 return errno;
             }
             // FL: debug
-            cbLog(pCbCtl, z, 1, "PAF_ASIT_decodeInit:cbInit");
+            cbLog(pCbCtl, z, 1, "PAF_ASIT_decodeInit:cbInitSourceSel");
             
             if (z != zMD) 
             {
             
             if (z != zMD) 
             {