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

Commit b1b4ddf7 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "AudioPolicyManager: fix closure of output supporting more than on device"

parents 479eea2b d7a5f2de
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5219,7 +5219,8 @@ status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor>& d
            if (!desc->isDuplicated()) {
                // exact match on device
                if (device_distinguishes_on_address(deviceType) && desc->supportsDevice(device)
                        && desc->containsSingleDeviceSupportingEncodedFormats(device)) {
                        && desc->containsSingleDeviceSupportingEncodedFormats(device)
                        && !mAvailableOutputDevices.containsAtLeastOne(desc->supportedDevices())) {
                    outputs.add(mOutputs.keyAt(i));
                } else if (!mAvailableOutputDevices.containsAtLeastOne(desc->supportedDevices())) {
                    ALOGV("checkOutputsForDevice(): disconnecting adding output %d",