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

Commit 75787e58 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Update atoi usage to atoll in case of large Numeric values"

parents c090660f 1dff3214
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ void audio_extn_dolby_set_dmid(struct audio_device *adev)
        return;

    property_get("dmid",c_dmid,"0");
    i_dmid = atoi(c_dmid);
    i_dmid = atoll(c_dmid);

    ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
    if (!ctl) {
@@ -762,7 +762,7 @@ void audio_extn_dolby_set_license(struct audio_device *adev)
    i_key = 0;
#endif
    property_get("dmid",c_dmid,"0");
    i_dmid = atoi(c_dmid);
    i_dmid = atoll(c_dmid);
    ALOGV("%s Setting DS1 License, key:0x%x dmid %d",__func__, i_key,i_dmid);
    dolby_license.dmid = i_dmid;
    dolby_license.license_key = i_key;