Browse Source

dsp: correct comparison condition for VSS_ICOMMON_RSP_GET_PARAM_V3

VSS_ICOMMON_RSP_GET_PARAM_V3 should be compared with opcode. Otherwise the
if condition would always be true. Correct the comparison for
VSS_ICOMMON_RSP_GET_PARAM_V3.

Change-Id: I204c8c71e06b13332fd5b418a40b10618e19a901
Signed-off-by: Meng Wang <[email protected]>
Meng Wang 7 years ago
parent
commit
e60843d16c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dsp/q6voice.c

+ 2 - 2
dsp/q6voice.c

@@ -7591,7 +7591,7 @@ static int32_t qdsp_cvs_callback(struct apr_client_data *data, void *priv)
 	} else if (data->opcode == VSS_ISTREAM_EVT_READY) {
 		pr_debug("Recd VSS_ISTREAM_EVT_READY\n");
 	} else if (data->opcode == VSS_ICOMMON_RSP_GET_PARAM ||
-		   VSS_ICOMMON_RSP_GET_PARAM_V3) {
+		   data->opcode == VSS_ICOMMON_RSP_GET_PARAM_V3) {
 		pr_debug("%s: VSS_ICOMMON_RSP_GET_PARAM\n", __func__);
 		ptr = data->payload;
 		if (ptr[0] != 0) {
@@ -7823,7 +7823,7 @@ static int32_t qdsp_cvp_callback(struct apr_client_data *data, void *priv)
 			}
 		}
 	} else if (data->opcode == VSS_ICOMMON_RSP_GET_PARAM ||
-		   VSS_ICOMMON_RSP_GET_PARAM_V3) {
+		   data->opcode == VSS_ICOMMON_RSP_GET_PARAM_V3) {
 		pr_debug("%s: VSS_ICOMMON_RSP_GET_PARAM\n", __func__);
 		ptr = data->payload;
 		if (ptr[0] != 0) {