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

Commit 7945833b authored by Wenfeng Sun's avatar Wenfeng Sun Committed by chien elvis
Browse files

Fix OffloadThread VolumeShaper issue

Bug: 134042971

Test: NTS case AUDIO-026-DDP51-TC3-NonTunnel / Tunnel verify volume starts at 0 when fading in

Change-Id: I8ee4444e3ceb2d8a0ceb979fada10c644b5db35c
parent e8a9a230
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5936,8 +5936,10 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::OffloadThread::prepareTr
            }
        }
        // compute volume for this track
        if (track->isReady()) {  // check ready to prevent premature start.
            processVolume_l(track, last);
        }
    }

    // make sure the pause/flush/resume sequence is executed in the right order.
    // If a flush is pending and a track is active but the HW is not paused, force a HW pause