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

Commit 317be870 authored by E V Ravi's avatar E V Ravi Committed by Gerrit - the friendly Code Review server
Browse files

audio-hal : assign correct power policy status



Assign correct power policy status based on condition

Change-Id: I6fa995a884f14fe17af353608e716b376c373ef5
Signed-off-by: default avatarE V Ravi <quic_evenka@quicinc.com>
parent 3fde6584
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9068,7 +9068,7 @@ void out_set_power_policy(uint8_t enable)
    ALOGD("%s: Enter, state %d", __func__, enable);

    pthread_mutex_lock(&adev->lock);
    adev->out_power_policy = enable ? POWER_POLICY_STATUS_ONLINE : POWER_POLICY_STATUS_ONLINE;
    adev->out_power_policy = enable ? POWER_POLICY_STATUS_ONLINE : POWER_POLICY_STATUS_OFFLINE;
    pthread_mutex_unlock(&adev->lock);

    if (!enable) {