PASDK-251:Fix uninitialized global variables (DSP params, numBufOverride
authorFrank Livingston <frank-livingston@ti.com>
Wed, 22 Mar 2017 21:25:29 +0000 (16:25 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Wed, 22 Mar 2017 21:25:29 +0000 (16:25 -0500)
in PAF_AST_params_outBufStatus.
NOTE: This problem also exists in DA8x, DSPA (SB00) params.

pasdk/test_dsp/framework/itopo/params.c

index f2d577dad1f5e57775ef18d7cc80b5ed5f223e27..7581cda0832fc1063a20ef4c58dfef457f66fa5f 100644 (file)
@@ -396,10 +396,37 @@ const PAF_OutBufStatus PAF_AST_params_outBufStatus =
     0,                                                      // audio
     PAF_OB_CLOCK_INTERNAL,                                  // clock
     PAF_OB_FLUSH_ENABLE,                                    // flush
-    0,                                                      // unused[2] // FL: rateTrackMode
-    0,                                                      // PAF_OB_MARKER_ENABLED // FL: markerMode
-    0                                                       // FL: maxNumBufOverride
-                                                            // FL: (*** ?) missing init. values for numBufOverride[PAF_SOURCE_N]
+    0,                                                      // rateTrackMode // unused
+    PAF_OB_MARKER_DISABLED,                                 // markerMode
+    0,                                                      // maxNumBufOverride
+                                                            // this is the start of numBufOverride[PAF_SOURCE_N]                                                            
+    0,                                                      // PAF_SOURCE_UNKNOWN
+    0,                                                      // PAF_SOURCE_NONE
+    0,                                                      // PAF_SOURCE_PASS
+    0,                                                      // PAF_SOURCE_SNG
+    0,                                                      // PAF_SOURCE_AUTO
+    0,                                                      // PAF_SOURCE_BITSTREAM
+    0,                                                      // PAF_SOURCE_DTSALL
+    0,                                                      // PAF_SOURCE_PCMAUTO
+    0,                                                      // PAF_SOURCE_PCM
+    0,                                                      // PAF_SOURCE_PC8
+    0,                                                      // PAF_SOURCE_AC3
+    0,                                                      // PAF_SOURCE_DTS
+    0,                                                      // PAF_SOURCE_AAC
+    0,                                                      // PAF_SOURCE_MPEG
+    0,                                                      // PAF_SOURCE_DTS12
+    0,                                                      // PAF_SOURCE_DTS13
+    0,                                                      // PAF_SOURCE_DTS14
+    0,                                                      // PAF_SOURCE_DTS16
+    0,                                                      // PAF_SOURCE_WMA9PRO
+    0,                                                      // PAF_SOURCE_MP3
+    0,                                                      // PAF_SOURCE_DSD1,
+    0,                                                      // PAF_SOURCE_DSD2,
+    0,                                                      // PAF_SOURCE_DSD3,
+    0,                                                      // PAF_SOURCE_DDP
+    0,                                                      // PAF_SOURCE_DTSHD
+    0,                                                      // PAF_SOURCE_THD
+    0,                                                      // PAF_SOURCE_DXP                                                          
 };
 
 const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
@@ -685,9 +712,8 @@ const PAF_ASP_LinkInit * const outLinkInit[] =
 const PAF_ASP_outNumBufMap outPrimaryNumBufMap =
 {
     4,                                                      // maxNumBuf
-//    6,                                                      // maxNumBuf
-//    16,                                                      // maxNumBuf
     PAF_SOURCE_N,                                           // length
+                                                            // this is the start of map[PAF_SOURCE_N]                                                            
     0,                                                      // PAF_SOURCE_UNKNOWN
     0,                                                      // PAF_SOURCE_NONE
     2,                                                      // PAF_SOURCE_PASS
@@ -714,10 +740,7 @@ const PAF_ASP_outNumBufMap outPrimaryNumBufMap =
     4,                                                      // PAF_SOURCE_DDP
     4,                                                      // PAF_SOURCE_DTSHD
     4,                                                      // PAF_SOURCE_THD
-//    6,                                                      // PAF_SOURCE_THD
-//    16,                                                      // PAF_SOURCE_THD
     4,                                                      // PAF_SOURCE_DXP
-
 };
 
 const PAF_ASP_outNumBufMap *const outNumBufMap[] =