Browse Source

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

Check and return correct index id for secondary mi2s
stream name.

Change-Id: I4df832e6cfc0e5eeac047e8cd4ce42def3be4061
Phani Kumar Uppalapati 3 năm trước cách đây
mục cha
commit
69448e2228
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;