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
2022-02-23 09:15:50 -08:00
コミット 69448e2228

ファイルの表示

@@ -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;