Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96ad71a9 authored by Jiyong Park's avatar Jiyong Park
Browse files

Fix incorrect sysprop name

Starting from Q-launching devices, sysprops defined by vendor should
start with vendor. or ro.vendor. Therefore, renaming
ro.qc.sdk.audio.fluencetype to ro.vendor.audio.sdk.fluencetype. For
legacy compatibility, the HAL reads both sysprops; first the new one and
then falls back to the old one.

Bug: 139108926
Test: making a video call via Duo, make sure sound works
Test: vol adjust during a phone call works
Change-Id: I54babf96de702a142cbe860f59d6b5b011bfa374
parent aac4984d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1118,7 +1118,9 @@ void *platform_init(struct audio_device *adev)
    my_data->fluence_type = FLUENCE_NONE;
    my_data->fluence_mode = FLUENCE_ENDFIRE;

    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"))) {
+3 −1
Original line number Diff line number Diff line
@@ -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;

    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)) {