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

Commit b11b0022 authored by Dean Wheatley's avatar Dean Wheatley
Browse files

Stop ALOGV processVolume_l log spam when MSD enabled

On MSD enabled device, direct output threads between MSD and
downstream HAL are continuously active. Enabling verbose logging
causes log spam due to excessive processVolume_l logs; set it to very
very verbose instead.

Test: Check verbose logs on MSD enabled device
Change-Id: Ifed29a3e66c2c7b73cfbca3d2a2640639107731c
parent 90940c49
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6167,12 +6167,11 @@ void AudioFlinger::DirectOutputThread::processVolume_l(Track *track, bool lastTr
    // Ensure volumeshaper state always advances even when muted.
    const sp<AudioTrackServerProxy> proxy = track->mAudioTrackServerProxy;

    const size_t framesReleased = proxy->framesReleased();
    const int64_t frames = mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL];
    const int64_t time = mTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL];

    ALOGV("%s: Direct/Offload bufferConsumed:%zu  timestamp frames:%lld  time:%lld",
            __func__, framesReleased, (long long)frames, (long long)time);
    ALOGVV("%s: Direct/Offload bufferConsumed:%zu  timestamp frames:%lld  time:%lld",
            __func__, proxy->framesReleased(), (long long)frames, (long long)time);

    const int64_t volumeShaperFrames =
            mMonotonicFrameCounter.updateAndGetMonotonicFrameCount(frames, time);