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

Commit fd853dd3 authored by Vatsal Bucha's avatar Vatsal Bucha Committed by Gerrit - the friendly Code Review server
Browse files

hal: Replace property_get_int32 with property_get



We get afe_api_version with property_get_int32
which does not work. Instead get api version
with property_get.

Change-Id: Ifd191a3903c180039d4708690edf2b1842119c37
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 1340b58c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1001,6 +1001,7 @@ static void* spkr_calibration_thread()
    struct audio_device *adev = handle.adev_handle;
    unsigned long min_idle_time = MIN_SPKR_IDLE_SEC;
    char value[PROPERTY_VALUE_MAX];
    char afe_version_value[PROPERTY_VALUE_MAX];
    char wsa_path[MAX_PATH] = {0};
    int spk_1_tzn, spk_2_tzn;
    char buf[32] = {0};
@@ -1041,7 +1042,10 @@ static void* spkr_calibration_thread()
    }

    spv3_enable = property_get_bool("persist.vendor.audio.spv3.enable", false);
    afe_api_version = property_get_int32("persist.vendor.audio.avs.afe_api_version", 0);
    property_get("persist.vendor.audio.avs.afe_api_version", afe_version_value,
                 "0");
    if (atoi(afe_version_value) > 0)
        afe_api_version = atoi(afe_version_value);

    fp = fopen(CALIB_FILE,"rb");
    if (fp) {