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

Commit 903ee4c0 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

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



Change-Id: I82d7d3af0ad4986e35c5acde80682382b6dee7e3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 588a3547 5ff65188
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2272,6 +2272,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;
    }