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

Commit 5cc71c5f authored by Andy Hung's avatar Andy Hung
Browse files

AudioPolicyManager: fix offload playback for speaker and BT

Without this, deep buffer playback is used.
Fixes regression from commit 4e464707

Test: Play music with Speaker and BT
Bug: 123371431
Change-Id: Ic5d23c6863223f5456414c887c14fda90aa06f5f
parent 5b723961
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -121,6 +121,9 @@ public:

    bool deviceSupportsEncodedFormats(audio_devices_t device) const
    {
        if (device == AUDIO_DEVICE_NONE) {
            return true; // required for isOffloadSupported() check
        }
        DeviceVector deviceList =
            mSupportedDevices.getDevicesFromTypeMask(device);
        if (!deviceList.empty()) {