summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-08-15 13:26:53 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-15 13:26:53 -0700
commitd9ec40cbfe00cdf6b77eb6deb8cde14f93b8beac (patch)
tree05ea21c9dd7d37c0e8c2f5bd4eaf97ace784b5c9
parented1679fa77f788deaf9f1f002fa0b124c4403f0b (diff)
parent96ad71a9706ae6512c478be1416c01af1d63190d (diff)
downloadandroid_hardware_qcom_audio-d9ec40cbfe00cdf6b77eb6deb8cde14f93b8beac.tar.gz
android_hardware_qcom_audio-d9ec40cbfe00cdf6b77eb6deb8cde14f93b8beac.tar.bz2
android_hardware_qcom_audio-d9ec40cbfe00cdf6b77eb6deb8cde14f93b8beac.zip
Fix incorrect sysprop name
am: 96ad71a970 Change-Id: Ia9b2c61281e86637f51c52365b9eb0db5cad0c1b
-rw-r--r--hal/msm8916/platform.c4
-rw-r--r--hal/msm8974/platform.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 3602b973..8600b7dc 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -1118,7 +1118,9 @@ void *platform_init(struct audio_device *adev)
my_data->fluence_type = FLUENCE_NONE;
my_data->fluence_mode = FLUENCE_ENDFIRE;
- property_get("ro.qc.sdk.audio.fluencetype", my_data->fluence_cap, "");
+ if (property_get("ro.vendor.audio.sdk.fluencetype", my_data->fluence_cap, NULL) == 0) {
+ property_get("ro.qc.sdk.audio.fluencetype", my_data->fluence_cap, "");
+ }
if (!strncmp("fluencepro", my_data->fluence_cap, sizeof("fluencepro"))) {
my_data->fluence_type = FLUENCE_QUAD_MIC | FLUENCE_DUAL_MIC;
} else if (!strncmp("fluence", my_data->fluence_cap, sizeof("fluence"))) {
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 41d8bd28..8a2fc183 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1805,7 +1805,9 @@ void *platform_init(struct audio_device *adev)
my_data->fluence_in_voice_comm = false;
my_data->fluence_in_voice_rec = false;
- property_get("ro.qc.sdk.audio.fluencetype", value, "none");
+ if (property_get("ro.vendor.audio.sdk.fluencetype", value, NULL) == 0) {
+ property_get("ro.qc.sdk.audio.fluencetype", value, "none");
+ }
if (!strcmp("fluencepro", value)) {
my_data->fluence_type = FLUENCE_PRO_ENABLE;
} else if (!strcmp("fluence", value) || (dual_mic_config)) {