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

Commit 97ee30e0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not support direct audio tracks when the non-offload effect is...

Merge "Do not support direct audio tracks when the non-offload effect is enabled" into tm-qpr-dev am: 36af0f66

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/20024549



Change-Id: I63144f7cda7cc57d9ed07333624938e58b96fb32
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 07802f43 36af0f66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4097,6 +4097,9 @@ audio_direct_mode_t AudioPolicyManager::getDirectPlaybackSupport(const audio_att

status_t AudioPolicyManager::getDirectProfilesForAttributes(const audio_attributes_t* attr,
                                                AudioProfileVector& audioProfilesVector) {
    if (mEffects.isNonOffloadableEffectEnabled()) {
        return OK;
    }
    AudioDeviceTypeAddrVector devices;
    status_t status = getDevicesForAttributes(*attr, &devices, false /* forVolume */);
    if (status != OK) {