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

Commit 21cf9ae1 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "Remove "except direct outputs" comment" am: c8f5e904 am: 021bbbdf...

Merge "Remove "except direct outputs" comment" am: c8f5e904 am: 021bbbdf am: 157e099c am: a1158b9a

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

Change-Id: I8494e049e7033d9a8c9fe28258c373e89650a6b9
parents 565b4c8f a1158b9a
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -5189,9 +5189,8 @@ void AudioPolicyManager::onNewAudioModulesAvailableInt(DeviceVector *newDevices)
            continue;
            continue;
        }
        }
        mHwModules.push_back(hwModule);
        mHwModules.push_back(hwModule);
        // open all output streams needed to access attached devices
        // open all output streams needed to access attached devices.
        // except for direct output streams that are only opened when they are actually
        // direct outputs are closed immediately after checking the availability of attached devices
        // required by an app.
        // This also validates mAvailableOutputDevices list
        // This also validates mAvailableOutputDevices list
        for (const auto& outProfile : hwModule->getOutputProfiles()) {
        for (const auto& outProfile : hwModule->getOutputProfiles()) {
            if (!outProfile->canOpenNewIo()) {
            if (!outProfile->canOpenNewIo()) {