summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-09-10 06:20:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-10 06:20:22 +0000
commit2314aa3bbcdb15101fec1f6e65f336feed0f127d (patch)
tree527996cb0b985fc328889497de3f3c5ed4d0ba71
parent3f2b1fcadb2b40a8e6b306b4896fdc93487c9670 (diff)
parent9af4b91ddd17beb8e0db420874014a5662848159 (diff)
downloadandroid_hardware_qcom_audio-2314aa3bbcdb15101fec1f6e65f336feed0f127d.tar.gz
android_hardware_qcom_audio-2314aa3bbcdb15101fec1f6e65f336feed0f127d.tar.bz2
android_hardware_qcom_audio-2314aa3bbcdb15101fec1f6e65f336feed0f127d.zip
am 9af4b91d: hal: fix backend check routine for combo device
* commit '9af4b91ddd17beb8e0db420874014a5662848159': hal: fix backend check routine for combo device
-rw-r--r--hal/msm8974/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 6250675d..4e759735 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1220,7 +1220,7 @@ bool platform_check_backends_match(snd_device_t snd_device1, snd_device_t snd_de
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;
}