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

Commit b5ecdb8e authored by Andy Hung's avatar Andy Hung
Browse files

Spatializer: Log latency mode change from callback

Test: compiles - not seeing this called during playback or connection
Bug: 259477444
Change-Id: I521894ef874560b936ef79735431109055aa85c5
parent c7b621a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7493,6 +7493,8 @@ void AudioFlinger::SpatializerThread::onRecommendedLatencyModeChanged(
        std::vector<audio_latency_mode_t> modes) {
    Mutex::Autolock _l(mLock);
    if (modes != mSupportedLatencyModes) {
        ALOGD("%s: thread(%d) supported latency modes: %s",
            __func__, mId, toString(modes).c_str());
        mSupportedLatencyModes.swap(modes);
        sendHalLatencyModesChangedEvent_l();
    }