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

Commit d8f72540 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audioflinger: fix effect volume set on start. am: e7449bf6 am: c23aecc0

am: 631a40a3

Change-Id: I1f6b3e9a042a1c66ae2d2b91247432ecb61f7162
parents bdcffab6 631a40a3
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1733,10 +1733,12 @@ bool AudioFlinger::EffectChain::setVolume_l(uint32_t *left, uint32_t *right, boo
// resetVolume_l() must be called with PlaybackThread::mLock or EffectChain::mLock held
void AudioFlinger::EffectChain::resetVolume_l()
{
    if ((mLeftVolume != UINT_MAX) && (mRightVolume != UINT_MAX)) {
        uint32_t left = mLeftVolume;
        uint32_t right = mRightVolume;
        (void)setVolume_l(&left, &right, true);
    }
}

void AudioFlinger::EffectChain::syncHalEffectsState()
{