hal: Update backend match function for sub string match
Update platform_check_backends_match function to use sub string match
instead of string match.
Change-Id: Ia520cde0a4eba7c916100b7eb113577605ee216f
CRs-fixed: 1009390
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 46611fc..0e85353 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -2000,7 +2000,7 @@
const char * be_itf2 = hw_interface_table[snd_device2];
if (NULL != be_itf1 && NULL != be_itf2) {
- if (0 != strcmp(be_itf1, be_itf2))
+ if ((NULL == strstr(be_itf2, be_itf1)) && (NULL == strstr(be_itf1, be_itf2)))
result = false;
} else if (NULL == be_itf1 && NULL != be_itf2) {
result = false;
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index c0e4088..88e214f 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1797,7 +1797,7 @@
const char * be_itf2 = hw_interface_table[snd_device2];
if (NULL != be_itf1 && NULL != be_itf2) {
- if (0 != strcmp(be_itf1, be_itf2))
+ if ((NULL == strstr(be_itf2, be_itf1)) && (NULL == strstr(be_itf1, be_itf2)))
result = false;
} else if (NULL == be_itf1 && NULL != be_itf2) {
result = false;