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

Commit 7b8d4343 authored by Wei Jia's avatar Wei Jia
Browse files

AudioPolicyManager: disable offload mode when streaming.

This is a temporary work around until the root cause is fixed in offload
playback path.

Bug: 23499384
Change-Id: I1ee8197ba8995084287ef9385a0f6a30e4bb9351
parent b0a144d7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2200,6 +2200,13 @@ bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadI
        return false;
    }

    // Check if streaming is off, then only allow offload as of now.
    if (offloadInfo.is_streaming)
    {
        ALOGV("isOffloadSupported: is_streaming == true, returning false");
        return false;
    }

    //TODO: enable audio offloading with video when ready
    const bool allowOffloadWithVideo =
            property_get_bool("audio.offload.video", false /* default_value */);