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

Commit 157e099c 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

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

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