]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/commitdiff
PASDK-218:Retain cbInit() API, but remove functionality since unused.
authorFrank Livingston <frank-livingston@ti.com>
Sun, 9 Jul 2017 21:41:30 +0000 (16:41 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Sun, 9 Jul 2017 21:41:30 +0000 (16:41 -0500)
pasdk/test_dsp/framework/aspDecOpCircBuf_master.c

index a8fa7ad9b118dbefe8630abd58d463ab66906110..e7349d0546d6fe6027b56aff8cdae955e109d3eb 100644 (file)
@@ -65,10 +65,12 @@ static Void cbReadAfMute(
 );
 #endif
 
+#if 0
 // Init last audio frame configuration info 
 static Void cbInitLastAfInfo(
     PAF_AudioFrame *pAfRd      // last audio frame stored in CB instance
 );
+#endif
 
 // Update last audio frame configuration info 
 static Void cbUpdateLastAfInfo(
@@ -77,7 +79,7 @@ static Void cbUpdateLastAfInfo(
 );
 
 // Generate mute AF on circular buffer read using the last AF configuration info 
-static Void cbReadMuteWithLastAfInfo (
+static Void cbReadMuteWithLastAfInfo(
     PAF_AST_DecOpCircBuf *pCb,    // decoder output circular buffer control
     PAF_AudioFrame *pAfRd         // audio frame into which to read
 );
@@ -121,6 +123,7 @@ Int cbInit(
     PAF_AST_DecOpCircBuf *pCb
 )
 {
+#if 0 // FL: unused
     PAF_AudioFrame *pAfCb;
     PAF_AudioData *pPcmBuf;
     UInt8 *pMetaBuf;
@@ -137,7 +140,7 @@ Int cbInit(
     pCb->strFrameLen = DEF_STR_FRAME_LEN;
     
     // initialize circular buffer maximum number of audio frames
-    pCb->maxNumAfCb = ASP_DECOP_CB_MAX_NUM_AF_THD;//ASP_DECOP_CB_MAX_NUM_AF_PCM;
+    pCb->maxNumAfCb = ASP_DECOP_CB_MAX_NUM_AF_THD; //ASP_DECOP_CB_MAX_NUM_AF_PCM;
     pCb->afWrtIdx = ASP_DECOP_CB_INIT_LAG_PCM;
     pCb->afRdIdx = 0;
     pCb->pcmRdIdx = 0;
@@ -243,6 +246,24 @@ Int cbInit(
         }
     }
     Cache_wait();
+#endif
+
+    // set source select
+    pCb->sourceSel = PAF_SOURCE_UNKNOWN;
+
+    #ifdef CB_RW_OP_CAP_PP // debug
+    // Get address in global variables
+    gCB_samples_op = pCb->cb_samples_op;
+    gCB_op_owner = pCb->cb_op_owner;
+    gCB_opCnt = &pCb->cb_opCnt;
+    gCB_afRdIdx = pCb->cb_afRdIdx;
+    gCB_afWrtIdx = pCb->cb_afWrtIdx;
+    gCB_numAfCb = pCb->cb_numAfCb;
+    #endif
+    
+    // Write back circular buffer configuration
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wait();
 
     return ASP_DECOP_CB_SOK;
 }
@@ -939,6 +960,7 @@ static Void cbReadAfMute(
 }
 #endif
 
+#if 0 // FL: unused
 // Init last audio frame configuration info 
 static Void cbInitLastAfInfo(
     PAF_AudioFrame *pAfRd      // last audio frame stored in CB instance
@@ -960,6 +982,7 @@ static Void cbInitLastAfInfo(
     pAfRd->numPrivateMetadata  = 0;                             /* number of valid private metadata (0 or 1 if metadata filtering enabled) */
     pAfRd->bsMetadata_offset   = 0;                             /* offset into audio frame for change in bsMetadata_type field */
 }
+#endif
 
 // Update last audio frame configuration info 
 static Void cbUpdateLastAfInfo(
@@ -980,7 +1003,7 @@ static Void cbUpdateLastAfInfo(
 }
 
 // Generate mute AF on circular buffer read using the last AF configuration info 
-static Void cbReadMuteWithLastAfInfo (
+static Void cbReadMuteWithLastAfInfo(
     PAF_AST_DecOpCircBuf *pCb,    // decoder output circular buffer control
     PAF_AudioFrame *pAfRd         // audio frame into which to read
 )