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

Commit 39842475 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix arguments checking in AudioSystem::canBeSpatialized" am: 07b03bd0...

Merge "Fix arguments checking in AudioSystem::canBeSpatialized" am: 07b03bd0 am: 708fdc1f am: 5ff65188 am: 903ee4c0

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



Change-Id: I5ae81cb9805db29fd1021dd3c018ad749bee3c2a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents eec8e1b6 903ee4c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2339,6 +2339,9 @@ status_t AudioSystem::canBeSpatialized(const audio_attributes_t *attr,
                                    const AudioDeviceTypeAddrVector &devices,
                                    bool *canBeSpatialized) {
    const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
    if (canBeSpatialized == nullptr) {
        return BAD_VALUE;
    }
    if (aps == 0) {
        return PERMISSION_DENIED;
    }