Browse Source

Merge "asoc: return correct index id for secondary mi2s stream-name"

qctecmdr 3 years ago
parent
commit
5239aa7d5c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      asoc/msm_common.c

+ 2 - 0
asoc/msm_common.c

@@ -261,6 +261,8 @@ static int get_mi2s_tdm_auxpcm_intf_index(const char *stream_name)
 			return PRI_MI2S_TDM_AUXPCM;
 		else if (strnstr(stream_name, "TERTIARY", strlen(stream_name)))
 			return TER_MI2S_TDM_AUXPCM;
+		else if (strnstr(stream_name, "SECONDARY", strlen(stream_name)))
+			return SEC_MI2S_TDM_AUXPCM;
 	}
 	pr_debug("%s: stream name %s does not match\n", __func__, stream_name);
 	return -EINVAL;