Fix uninitialized ENC status variables
authorFrank Livingston <frank-livingston@ti.com>
Thu, 30 Mar 2017 22:57:05 +0000 (17:57 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Thu, 30 Mar 2017 22:57:05 +0000 (17:57 -0500)
pasdk/test_dsp/framework/itopo/params.c

index 7581cda0832fc1063a20ef4c58dfef457f66fa5f..6bb26f20010d139f9a27c6894802c65bf1c73505 100644 (file)
@@ -433,7 +433,7 @@ const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
 {
     sizeof (PAF_EncodeStatus),                              // size
     1,                                                      // mode
 {
     sizeof (PAF_EncodeStatus),                              // size
     1,                                                      // mode
-    0,                                                      // unused1
+    0,                                                      // command2
     PAF_SAMPLERATE_UNKNOWN,                                 // sampleRate
     0,                                                      // channelCount
     0, 0, 0, 0,                                             // Unused                                        
     PAF_SAMPLERATE_UNKNOWN,                                 // sampleRate
     0,                                                      // channelCount
     0, 0, 0, 0,                                             // Unused                                        
@@ -444,12 +444,12 @@ const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
     0,                                                      // frameLength
     0,                                                      // encBypass
     PAF_SOURCE_PCM,                                         // select
     0,                                                      // frameLength
     0,                                                      // encBypass
     PAF_SOURCE_PCM,                                         // select
-    PAF_CC_SAT_SURROUND4, PAF_CC_SUB_ONE, PAF_CC_AUX_SURROUND4_UNKNOWN, 0,0,0,0,0,
     // channelConfigurationRequest.full
     // channelConfigurationRequest.full
-    PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,
+    PAF_CC_SAT_SURROUND4, PAF_CC_SUB_ONE, PAF_CC_AUX_SURROUND4_UNKNOWN, 0,0,0,0,0,
     // channelConfigurationStream.full
     PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,
     // channelConfigurationEncode.full
     // channelConfigurationStream.full
     PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,
     // channelConfigurationEncode.full
+    PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0,0,0,0,0,    
     0, 0, 0, 0,    0, 0, 0, 0,                              // Unused
     -3,                                                     // channelMap.from[0]
     -3,                                                     // channelMap.from[1]
     0, 0, 0, 0,    0, 0, 0, 0,                              // Unused
     -3,                                                     // channelMap.from[0]
     -3,                                                     // channelMap.from[1]
@@ -467,6 +467,22 @@ const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
     -3,                                                     // channelMap.from[13]
     -3,                                                     // channelMap.from[14]
     -3,                                                     // channelMap.from[15]
     -3,                                                     // channelMap.from[13]
     -3,                                                     // channelMap.from[14]
     -3,                                                     // channelMap.from[15]
+    -3,                                                     // channelMap.from[16]
+    -3,                                                     // channelMap.from[17]
+    -3,                                                     // channelMap.from[18]
+    -3,                                                     // channelMap.from[19]
+    -3,                                                     // channelMap.from[20]
+    -3,                                                     // channelMap.from[21]
+    -3,                                                     // channelMap.from[22]
+    -3,                                                     // channelMap.from[23]
+    -3,                                                     // channelMap.from[24]
+    -3,                                                     // channelMap.from[25]
+    -3,                                                     // channelMap.from[26]
+    -3,                                                     // channelMap.from[27]
+    -3,                                                     // channelMap.from[27]
+    -3,                                                     // channelMap.from[28]
+    -3,                                                     // channelMap.from[30]
+    -3,                                                     // channelMap.from[31]
     -3,                                                     // channelMap.to[0]
     -3,                                                     // channelMap.to[1]
     -3,                                                     // channelMap.to[2]
     -3,                                                     // channelMap.to[0]
     -3,                                                     // channelMap.to[1]
     -3,                                                     // channelMap.to[2]
@@ -483,42 +499,32 @@ const PAF_EncodeStatus PAF_AST_params_encodeStatus_primary =
     -3,                                                     // channelMap.to[13]
     -3,                                                     // channelMap.to[14]
     -3,                                                     // channelMap.to[15]
     -3,                                                     // channelMap.to[13]
     -3,                                                     // channelMap.to[14]
     -3,                                                     // channelMap.to[15]
-    -3,                                                     // channelMap.from[0]
-    -3,                                                     // channelMap.from[1]
-    -3,                                                     // channelMap.from[2]
-    -3,                                                     // channelMap.from[3]
-    -3,                                                     // channelMap.from[4]
-    -3,                                                     // channelMap.from[5]
-    -3,                                                     // channelMap.from[6]
-    -3,                                                     // channelMap.from[7]
-    -3,                                                     // channelMap.from[8]
-    -3,                                                     // channelMap.from[9]
-    -3,                                                     // channelMap.from[10]
-    -3,                                                     // channelMap.from[11]
-    -3,                                                     // channelMap.from[12]
-    -3,                                                     // channelMap.from[13]
-    -3,                                                     // channelMap.from[14]
-    -3,                                                     // channelMap.from[15]
-    -3,                                                     // channelMap.to[0]
-    -3,                                                     // channelMap.to[1]
-    -3,                                                     // channelMap.to[2]
-    -3,                                                     // channelMap.to[3]
-    -3,                                                     // channelMap.to[4]
-    -3,                                                     // channelMap.to[5]
-    -3,                                                     // channelMap.to[6]
-    -3,                                                     // channelMap.to[7]
-    -3,                                                     // channelMap.to[8]
-    -3,                                                     // channelMap.to[9]
-    -3,                                                     // channelMap.to[10]
-    -3,                                                     // channelMap.to[11]
-    -3,                                                     // channelMap.to[12]
-    -3,                                                     // channelMap.to[13]
-    -3,                                                     // channelMap.to[14]
-    -3,                                                     // channelMap.to[15]
-    0,                                                      // programFormat.mask
+    -3,                                                     // channelMap.to[16]
+    -3,                                                     // channelMap.to[17]
+    -3,                                                     // channelMap.to[18]
+    -3,                                                     // channelMap.to[19]
+    -3,                                                     // channelMap.to[20]
+    -3,                                                     // channelMap.to[21]
+    -3,                                                     // channelMap.to[22]
+    -3,                                                     // channelMap.to[23]
+    -3,                                                     // channelMap.to[24]
+    -3,                                                     // channelMap.to[25]
+    -3,                                                     // channelMap.to[26]
+    -3,                                                     // channelMap.to[27]
+    -3,                                                     // channelMap.to[28]
+    -3,                                                     // channelMap.to[29]
+    -3,                                                     // channelMap.to[30]
+    -3,                                                     // channelMap.to[31]
+    1,                                                      // programFormat.mask
     0,                                                      // programFormat.form
     0,                                                      // programFormat.form
+    0,                                                      // listeningFormat.mask
+    0,                                                      // listeningFormat.form
     0,                                                      // sampleProcess[0]
     0,                                                      // sampleProcess[0]
+    0, 0, 0, 0,                                             // Unused     
+    PAF_CC_SAT_UNKNOWN, PAF_CC_SUB_ZERO, 0, 0, 0, 0, 0, 0,  // channelConfigurationCompact                                      
+    0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, //channelCompact[PAF_MAXNUMCHAN_HD]
 };
 };
+