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

Commit dfb411f9 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Audioflinger: Dump "master mute" state in threads

"Master mute" which can be toggled on via "ro.audio.silent" property
has user-hearable effect, but is not reflected in the dumpsys.
This can cause confusion (see the bug referenced).

Note that we need to dump PlaybackThread::mMasterMute, not
AudioFlinger::mMasterMute, as the latter does not get updated
by threads in order to avoid taking a lock.

Bug: 113348789
Test: toggle property, check media.audio_flinger dump
Change-Id: I7f276b233df2f5eca585ffb30031835c030858e1
parent aec9c3e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1850,6 +1850,7 @@ void AudioFlinger::PlaybackThread::dumpInternals(int fd, const Vector<String16>&
{
    dumpBase(fd, args);

    dprintf(fd, "  Master mute: %s\n", mMasterMute ? "on" : "off");
    dprintf(fd, "  Normal frame count: %zu\n", mNormalFrameCount);
    dprintf(fd, "  Last write occurred (msecs): %llu\n",
            (unsigned long long) ns2ms(systemTime() - mLastWriteTime));